/* Validacta: light, high-contrast, matte. Warm paper background, dark ink text. */
:root {
  --paper: #F7F2E8;
  --paper-alt: #EFE8DA;
  --card: #FFFDF8;
  --ink: #1B1A17;
  --ink-soft: #3D3A33;
  --rule: #D6CCB8;
  --accent: #1F4E46;       /* deep green: 9.6:1 on paper */
  --accent-hover: #163B35;
  --on-accent: #FFFDF8;
  --focus: #B4560F;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-wrap: break-word;
}
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 6vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 68ch; }
cite { font-style: italic; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.wrap.narrow { width: min(760px, 100% - 2.5rem); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--card); color: var(--ink); padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(247, 242, 232, .96); border-bottom: 1px solid var(--rule); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.wordmark { font: 700 1.5rem/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.wordmark-small { font-size: 1.2rem; margin: 0 0 .4rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid var(--accent);
  font: 600 1.0625rem/1.2 var(--sans); cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-small { min-height: 44px; padding: .55rem 1.1rem; font-size: 1rem; }
.btn-wide { width: 100%; }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { font: 700 .8125rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .09em; color: var(--accent); margin-bottom: 1rem; }
.lede { font-size: 1.1875rem; color: var(--ink-soft); }

.ella-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 16px;
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 0 1px 0 var(--rule);
}
.ella-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.ella-head h2 { font-size: 1.35rem; margin: 0; }
.ella-sub { margin: .15rem 0 0; font-size: .9375rem; color: var(--ink-soft); }
.ella-mark {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper-alt); border: 2px solid var(--accent);
  font: 700 1.4rem/1 var(--serif); color: var(--accent);
}
.ella-status { margin: 1rem 0 0; padding: .8rem 1rem; background: var(--paper-alt); border-left: 4px solid var(--accent); border-radius: 6px; font-size: 1rem; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--paper-alt); border-block: 1px solid var(--rule); }
.points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.points li { padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.points strong { display: block; font-family: var(--serif); font-size: 1.1rem; margin-bottom: .15rem; }

/* Comparison table */
.table-wrap { margin-top: 2rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 1rem 1.1rem; border-bottom: 1px solid var(--rule); }
.compare thead th { background: var(--paper-alt); color: var(--ink); border-bottom: 2px solid var(--ink); font: 700 .875rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.compare tbody th { font-family: var(--serif); font-size: 1.05rem; width: 24%; }
.compare tbody td:last-child { background: #F3F7F2; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.row-keep th, .row-keep td { background: #FBF3E4 !important; }

/* Segments */
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.segment { background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.4rem 1.4rem .6rem; }
.segment p { font-size: 1rem; }

/* Closing */
.closing { border-top: 1px solid var(--rule); }
.closing .btn { margin-top: .5rem; }

/* Footer */
.footer { background: var(--paper-alt); border-top: 1px solid var(--rule); padding: 2rem 0; font-size: .9375rem; color: var(--ink-soft); }
.footer p { margin: 0; }

/* Tablet */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .segments { grid-template-columns: 1fr; }
}

/* Phone: the table becomes one card per step */
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .wordmark { font-size: 1.3rem; }
  .table-wrap { background: transparent; border: 0; overflow: visible; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
  .compare tbody th { width: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .compare td { padding: .85rem 1.1rem; }
  .compare td::before { content: attr(data-label); display: block; font: 700 .75rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-bottom: .25rem; }
  .compare tbody tr:last-child th { border-bottom: 1px solid var(--rule); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
