/* HiddenAt public site.
   Palette: paper, mist, graphite ink, brand steel gray, brand orange.
   Motif: the "routing slip" - an address, a speed-line wire, a destination - taken from the logo's speed lines. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --mist: #f3f4f6;
  --ink: #232427;
  --steel: #6d6e71;
  --line: #e3e4e7;
  --orange: #f7941d;
  --orange-ink: #a65800;
  --on-orange: #1f1a14;
  --block: #b42318;
  --focus: #d97b0d;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #17181a;
    --mist: #1f2023;
    --ink: #eceef0;
    --steel: #a9abaf;
    --line: #2e3034;
    --orange-ink: #f7a541;
    --block: #f2877e;
    --focus: #f7a541;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--orange-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: .92em; }
img { max-width: 100%; }

.logo { height: 30px; width: auto; display: block; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 8px;
  background: var(--orange); color: var(--on-orange); font-weight: 650; text-decoration: none; white-space: nowrap; border: 0;
}
.btn:hover { background: #e8850d; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 17px; }
.quiet { color: var(--ink); font-weight: 550; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.quiet:hover { text-decoration-color: var(--orange); }

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 32px; max-width: 1180px; margin: 0 auto; padding: 22px 24px; }
.links { display: flex; gap: 24px; flex: 1; }
.links a, .auth a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.links a:hover, .auth a:not(.btn):hover { color: var(--orange-ink); }
.auth { display: flex; align-items: center; gap: 18px; }

/* ---------- hero ---------- */
main > section { max-width: 1180px; margin: 0 auto; padding: 88px 24px; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding-top: 56px; }
h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 750; font-style: italic;
  margin: 0 0 24px; max-width: 13ch; color: var(--ink);
}
.lede { font-size: 19px; color: var(--steel); max-width: 34em; margin: 0 0 32px; }
.lede .mono { color: var(--ink); }
.cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.fine { font-size: 14px; color: var(--steel); margin: 20px 0 0; max-width: 46em; }

/* the routing slip */
.slip { margin: 0; background: var(--mist); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.slip-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; color: var(--steel); }
.slip-row label { font-weight: 550; }
.field-wrap { display: inline-flex; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; height: 42px; }
.field-wrap:focus-within { border-color: var(--orange); }
.field-wrap input { border: 0; background: transparent; font: 600 16px var(--mono); color: var(--ink); width: 8ch; min-width: 3ch; max-width: 24ch; outline: none; }
.field-wrap .suffix { font: 16px var(--mono); color: var(--steel); }

.route { display: flex; flex-direction: column; gap: 14px; background: var(--paper); border-radius: 12px; padding: 24px 22px; }
.addr { font: 700 clamp(18px, 2.1vw, 24px) var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.addr span { color: var(--orange-ink); }
.wire { display: flex; flex-direction: column; gap: 5px; width: 120px; }
.wire span { height: 3px; border-radius: 3px; background: var(--steel); opacity: .45; }
.wire span:nth-child(1) { width: 70%; }
.wire span:nth-child(2) { width: 100%; background: var(--orange); opacity: 1; }
.wire span:nth-child(3) { width: 55%; margin-left: 20%; }
.dest { font: 600 17px var(--mono); color: var(--ink); }
.dest::before { content: "Delivered to "; font: 500 14px var(--sans); color: var(--steel); }
.route[data-state="blocked"] .dest::before { content: ""; }
.when-blocked { display: none; color: var(--block); font-family: var(--sans); }
.route[data-state="blocked"] .when-forward { display: none; }
.route[data-state="blocked"] .when-blocked { display: inline; }
.route[data-state="blocked"] .wire span { background: var(--line); opacity: 1; }
.route[data-state="blocked"] .addr { text-decoration: line-through; text-decoration-color: var(--block); text-decoration-thickness: 2px; }
.slip-note { margin: 0; font-size: 15px; color: var(--steel); min-height: 3.2em; }
.slip-note b { color: var(--ink); }
.toggle {
  align-self: flex-start; font: 600 15px var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 14px; cursor: pointer;
}
.toggle:hover { border-color: var(--steel); }
.toggle[aria-pressed="true"] { border-color: var(--block); color: var(--block); }

/* one orchestrated moment: mail travels down the wire once on load */
@media (prefers-reduced-motion: no-preference) {
  .wire span:nth-child(2) { animation: travel 1.4s cubic-bezier(.2, .7, .2, 1) .3s both; transform-origin: left; }
  @keyframes travel { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- sections ---------- */
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 40px; font-weight: 720; max-width: 28ch; }
h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -.01em; }
.how { border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 56px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--orange); color: var(--orange-ink); font-weight: 750; display: grid; place-items: center; font-size: 16px;
}
.steps p { margin: 0; color: var(--steel); }

.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; background: var(--mist); border-radius: 24px; max-width: 1132px !important; padding: 72px 56px !important; }
.proof p { color: var(--steel); margin: 0 0 24px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 6px; border-left: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(-45deg); }
.ledger { background: var(--paper); border-radius: 14px; padding: 8px 0; font-size: 15px; }
.ledger-row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--line); align-items: center; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row.head { font-size: 13px; color: var(--steel); font-weight: 600; }
.ledger-row .to { color: var(--steel); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger-row .n { font-variant-numeric: tabular-nums; text-align: right; min-width: 4ch; }
.ledger-row.blocked .to, .ledger-row.bounced .to { color: var(--block); font-weight: 600; }
.ledger-row.blocked .mono { text-decoration: line-through; text-decoration-color: var(--block); }

.plans { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: stretch; }
.plan { border: 2px solid var(--ink); border-radius: 18px; padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.plan .btn { align-self: flex-start; }
.plan.addon { border: 1px solid var(--line); background: var(--mist); }
.plan.addon p { margin: 0; color: var(--steel); }
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan .alt-price { margin: -12px 0 0; color: var(--steel); }
.amt { font-size: 56px; font-weight: 760; letter-spacing: -.03em; line-height: 1; font-style: italic; }
.addon .amt { font-size: 40px; }
.per { color: var(--steel); font-size: 15px; }

.faq > * { max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { font-weight: 650; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--orange-ink); font-weight: 400; font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--steel); margin: 12px 0 0; max-width: 60ch; }

.foot { max-width: 1180px; margin: 0 auto; padding: 40px 24px 56px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .logo { height: 22px; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.foot a { color: var(--steel); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- legal pages ---------- */
.legal { max-width: 760px !important; padding-top: 32px !important; }
.legal h1 { font-size: 2.4rem; max-width: none; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 8px; max-width: none; }
.legal p, .legal li { color: var(--ink); }
.legal .draft { background: var(--mist); border-left: 3px solid var(--orange); padding: 12px 16px; border-radius: 4px; font-size: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero, .proof, .plans { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .proof { padding: 48px 24px !important; border-radius: 0; }
  main > section { padding: 64px 24px; }
}
@media (max-width: 700px) {
  .links { display: none; }
  .top { justify-content: space-between; padding: 16px; }
  .logo { height: 24px; }
  main > section { padding: 48px 16px; }
  .wire { width: 90px; }
  .slip { padding: 18px; }
  .plan { padding: 24px; }
  .amt { font-size: 44px; }
}

/* Comparison pages (/compare/...) - built by scripts/build-compare.py */
.compare { max-width: 980px !important; padding-top: 32px !important; }
.compare .crumbs { font-size: 14px; color: var(--steel); margin: 0 0 12px; }
.compare .crumbs a { color: var(--steel); }
.compare h1 { font-size: clamp(2rem, 4vw, 2.8rem); max-width: none; margin: 0; }
.compare .lede { font-size: 1.15rem; color: var(--steel); max-width: 760px; margin: 16px 0 32px; }
.compare h2 { font-size: 1.35rem; max-width: none; margin: 40px 0 12px; }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { background: var(--mist); font-size: 14px; }
.cmp thead th:nth-child(2) { color: var(--orange-ink); }
.cmp tbody th { font-weight: 600; width: 26%; color: var(--ink); }
.cmp td { color: var(--ink); width: 37%; }
.cmp td:nth-child(2) { background: color-mix(in srgb, var(--orange) 6%, transparent); }
.compare .fine { font-size: 13px; color: var(--steel); margin-top: 10px; }
.cmp-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.cmp-choose > div { border: 1px solid var(--line); border-radius: 14px; padding: 4px 24px 24px; }
.cmp-choose .ours { border: 2px solid var(--ink); display: flex; flex-direction: column; }
.cmp-choose .ours .btn { align-self: flex-start; margin-top: 8px; }
.faq-list > * { max-width: 820px; }
@media (max-width: 760px) { .cmp-choose { grid-template-columns: 1fr; } }
/* Phones: each row becomes a small card - feature, then HiddenAt, then the other service */
@media (max-width: 640px) {
  .cmp-wrap { overflow: visible; border: 0; }
  .cmp { min-width: 0; }
  .cmp thead { display: none; }
  .cmp tr { display: block; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
  .cmp th, .cmp td { display: block; width: auto; border: 0; padding: 8px 14px; }
  .cmp tbody th { background: var(--mist); width: auto; }
  .cmp td { width: auto; }
  .cmp td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 650; color: var(--steel); margin-bottom: 2px; }
  .cmp td:nth-child(2)::before { color: var(--orange-ink); }
}

/* "Stop giving out your real email address" band, between the hero and How it works.
   Inverted colours (ink background) so it reads as a statement in both light and dark mode. */
main > section.statement { max-width: 1132px; margin: 0 auto 8px; padding: 56px 56px 52px; background: var(--ink); color: var(--paper); border-radius: 24px; }
.statement-big { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 760; font-style: italic; margin: 0; max-width: 18ch; }
.statement-sub { font-size: 1.15rem; line-height: 1.55; margin: 18px 0 0; max-width: 46em; opacity: .82; }
.statement-cta { display: inline-block; margin-top: 22px; color: var(--paper); font-weight: 650; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.statement-cta:hover { text-decoration-color: currentColor; }
@media (max-width: 760px) { main > section.statement { margin: 0 16px 8px; padding: 36px 24px; border-radius: 18px; } }

/* "Set it up once" callout under How it works */
.set-and-forget { margin-top: 56px; padding: 28px 32px; border: 2px solid var(--ink); border-radius: 18px; max-width: 900px; }
.set-and-forget h3 { margin: 0 0 8px; font-size: 1.35rem; }
.set-and-forget p { margin: 0; color: var(--steel); }
.set-and-forget .mono { color: var(--ink); }
@media (max-width: 760px) { .set-and-forget { margin-top: 40px; padding: 22px 20px; } }

/* Phishing section: mock email beside the copy */
.phish { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.phish-copy h2 { margin-top: 0; }
.phish-copy p { color: var(--steel); margin: 0 0 18px; }
.phish-copy p:last-child { margin-bottom: 0; }
.phish-copy strong { color: var(--ink); }
.mail-mock { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 12px 32px rgba(0,0,0,.08); font-size: 15px; overflow: hidden; }
.mm-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--line); align-items: baseline; }
.mm-k { color: var(--steel); font-size: 13px; font-weight: 600; }
.mm-to { background: color-mix(in srgb, var(--block) 8%, var(--paper)); }
.mm-to .mono { color: var(--block); font-weight: 650; }
.mm-flag { display: inline-block; margin-left: 10px; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--block); color: var(--block); font-size: 12px; font-weight: 600; white-space: nowrap; }
.mm-body { padding: 18px 22px 22px; color: var(--steel); }
@media (max-width: 960px) { .phish { grid-template-columns: 1fr; gap: 36px; } .phish-copy { order: -1; } }
@media (max-width: 480px) { .mm-row { grid-template-columns: 1fr; gap: 2px; padding: 10px 16px; } .mm-flag { margin: 6px 0 0; } .mm-body { padding: 14px 16px 18px; } }
