/* macdnie.com — visual identity: "cryptographic instrument", shared with the app.
 *
 * The one warm signal on a cool graphite/stone chassis is the smart card's gold
 * contact plate. Data, statuses and prices are set in monospace — in a crypto
 * tool the numbers ARE the content; prose is a tight system grotesque.
 * Light + dark from the same token set as app/src/styles.css. No external
 * fonts, no external anything: the privacy pledge holds for the site itself. */

:root {
  color-scheme: light dark;
  /* light theme (default) — mirrors the app */
  --bg:        #e7e7e2;
  --raise:     #f4f4f0;
  --sink:      #dcdcd5;
  --ink:       #191b1f;
  --ink-soft:  #5c5f66;
  --ink-faint: #8a8d93;
  --line:      #cfcfc7;
  --gold:      #9c7616;
  --gold-ink:  #fbf7ec;
  --ok:        #2f7d54;
  --warn:      #9a6a12;
  --err:       #b23b26;
  --gold-glow: color-mix(in srgb, var(--gold) 22%, transparent);
  --shadow:    0 20px 60px rgba(24, 20, 8, 0.16);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #121419;
    --raise:     #1a1d23;
    --sink:      #0d0f13;
    --ink:       #e8e5da;
    --ink-soft:  #9a9c9f;
    --ink-faint: #63666c;
    --line:      #2a2e36;
    --gold:      #d7a637;
    --gold-ink:  #17130a;
    --ok:        #4fb07f;
    --warn:      #d3a34a;
    --err:       #e06a4e;
    --shadow:    0 20px 60px rgba(0, 0, 0, 0.55);
  }
}

/* ── base ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* faint guilloché — the security-print rosette, barely there (same as the app) */
  background-image:
    repeating-radial-gradient(circle at 18% -10%, transparent 0 13px, color-mix(in srgb, var(--ink) 3%, transparent) 13px 14px),
    repeating-radial-gradient(circle at 112% 118%, transparent 0 17px, color-mix(in srgb, var(--ink) 3%, transparent) 17px 18px);
}
::selection { background: var(--gold-glow); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
.mono { font-family: var(--mono); }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

/* skip link */
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 10;
  background: var(--gold); color: var(--gold-ink);
  padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip:focus { left: 8px; }

/* ── header ── */
.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 18px; letter-spacing: -0.015em;
}
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand b { font-weight: 700; }
.brand b span { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 26px); }
.site-nav a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 14px; font-weight: 560;
}
.site-nav a:hover { color: var(--gold); }
.lang-switch {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em;
  color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 5px 9px; text-decoration: none;
}
.lang-switch:hover { color: var(--gold); border-color: var(--gold); }
.nav-cta {
  background: var(--gold); color: var(--gold-ink) !important;
  padding: 8px 15px; border-radius: 8px; font-weight: 640;
}
.nav-cta:hover { color: var(--gold-ink) !important; box-shadow: 0 0 0 4px var(--gold-glow); }
@media (max-width: 760px) {
  .site-nav .nav-link { display: none; }
}

/* ── hero ── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 6vw, 80px); align-items: center;
  padding-block: clamp(56px, 10vh, 116px);
}
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-soft); margin: 0;
}
.eyebrow .unofficial { color: var(--warn); }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.03; letter-spacing: -0.032em; font-weight: 740;
  margin: 18px 0 20px; text-wrap: balance;
}
.lede {
  font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.62;
  color: var(--ink-soft); max-width: 33em; margin: 0;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 640; font-size: 15.5px;
  padding: 13px 22px; border-radius: 10px;
  border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { box-shadow: 0 0 0 5px var(--gold-glow); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-appstore small {
  display: block; font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em;
  opacity: 0.85; margin-bottom: 1px;
}
.btn-appstore .two-line { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
/* Not-yet-shipped state: the App Store badge is present but non-interactive while
   the app is in App Review — clearly muted, with an "in review" status pill. */
.btn-review {
  cursor: default;
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  color: var(--ink-soft);
  border-color: color-mix(in srgb, var(--gold) 30%, var(--line));
}
.btn-review .two-line small { opacity: 0.75; }
.review-pill {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em; white-space: nowrap;
  color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 42%, transparent);
  border-radius: 999px; padding: 3px 9px;
}
.hero-note { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-top: 18px; }

/* ── the instrument (signature moment): ID-1 card + secure-channel transcript ── */
.instrument { min-width: 0; }
.idcard {
  aspect-ratio: 85.6 / 54;               /* ISO/IEC 7810 ID-1, like the real card */
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: clamp(12px, 2.2vw, 18px);
  box-shadow: var(--shadow);
  position: relative;
  padding: 7% 8%;
  display: grid;
  grid-template-columns: clamp(52px, 19%, 84px) 1fr;
  grid-template-rows: 1fr auto;
  gap: 6% 9%;
  overflow: hidden;
  background-image:
    repeating-radial-gradient(circle at 85% -30%, transparent 0 9px, color-mix(in srgb, var(--ink) 4%, transparent) 9px 10px);
}
.idcard .chip { width: 100%; align-self: center; }
.idcard .redacted { align-self: center; display: grid; gap: 12%; }
.idcard .redacted i {
  display: block; height: clamp(7px, 1.2vw, 10px); border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 16%, var(--raise));
}
.idcard .redacted i:nth-child(1) { width: 82%; }
.idcard .redacted i:nth-child(2) { width: 55%; }
.idcard .redacted i:nth-child(3) { width: 68%; }
.idcard .microtext {
  grid-column: 1 / -1; align-self: end;
  font-family: var(--mono); font-size: clamp(8.5px, 1vw, 10.5px);
  letter-spacing: 0.14em; color: var(--ink-faint);
  white-space: nowrap; overflow: hidden;
}
.transcript {
  margin: 26px 4px 0; padding: 0;
  font-family: var(--mono); font-size: 13px; line-height: 2.05;
  color: var(--ink-soft); list-style: none;
}
.transcript .ln { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.transcript .ok { color: var(--ok); }
.transcript .sw { color: var(--gold); }
.transcript .caret {
  display: inline-block; width: 0.55ch; height: 1em;
  background: var(--gold); vertical-align: text-bottom; margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
/* JS arms the reveal; without JS every line is simply visible */
.transcript.armed .ln { opacity: 0; transform: translateY(5px); }
.transcript.armed .ln.on { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s ease; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-block: clamp(40px, 7vh, 72px); }
  .instrument { max-width: 480px; }
}
@media (max-width: 480px) {
  .transcript { font-size: 11.5px; }
}

/* ── section rhythm ── */
.section { padding-block: clamp(60px, 10vh, 116px); border-top: 1px solid var(--line); }
.section h2 {
  font-size: clamp(27px, 3.4vw, 38px); font-weight: 720;
  letter-spacing: -0.026em; line-height: 1.12;
  margin: 14px 0 12px; text-wrap: balance;
}
.section-intro { color: var(--ink-soft); max-width: 44em; margin: 0; font-size: 16.5px; }
.section-intro a, .journey a, .pledges a, .faq a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.section-intro a:hover, .journey a:hover, .pledges a:hover, .faq a:hover { color: var(--gold); }

/* ── the three journeys ── */
.journeys { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 52px; }
.journey { padding-inline: clamp(18px, 3vw, 38px); border-left: 1px solid var(--line); min-width: 0; }
.journey:first-child { padding-left: 0; border-left: 0; }
.journey:last-child { padding-right: 0; }
.journey .verb {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold);
}
.journey h3 { font-size: 21px; font-weight: 680; letter-spacing: -0.018em; margin: 10px 0 10px; }
.journey p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.66; margin: 0; }
.journey .spec {
  display: block; margin-top: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-faint);
}
@media (max-width: 860px) {
  .journeys { grid-template-columns: 1fr; }
  .journey { padding-inline: 0; border-left: 0; border-top: 1px solid var(--line); padding-block: 26px; }
  .journey:first-child { border-top: 0; padding-top: 0; }
  .journey:last-child { padding-bottom: 0; }
}

/* ── privacy pledge ── */
.pledges {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px clamp(40px, 6vw, 72px); margin: 48px 0 0; padding: 0;
}
.pledges > div { min-width: 0; }
.pledges dt {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold);
}
.pledges dd { margin: 9px 0 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }
@media (max-width: 700px) { .pledges { grid-template-columns: 1fr; gap: 30px; } }

/* ── languages strip ── */
.langstrip {
  margin-top: 46px; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px clamp(18px, 3vw, 36px);
}
.langstrip li { border-left: 1px solid var(--line); padding-left: 16px; min-width: 0; }
.langstrip q { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; quotes: "«" "»"; }
.langstrip .lang {
  display: block; margin-top: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint);
}
@media (max-width: 860px) { .langstrip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .langstrip { grid-template-columns: 1fr; } }

/* ── pricing ── */
.plans {
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: 48px;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--raise);
}
.plan { padding: clamp(28px, 4vw, 46px); }
.plan + .plan { border-left: 1px solid var(--line); }
.plan-name {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); margin: 0;
}
.price {
  font-family: var(--mono); font-size: clamp(34px, 4vw, 46px); font-weight: 600;
  letter-spacing: -0.02em; margin: 14px 0 2px; line-height: 1;
}
.price small { font-size: 0.42em; font-weight: 500; color: var(--ink-faint); letter-spacing: 0.04em; }
.plan p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 12px 0 0; }
.plans-foot { font-size: 13.5px; color: var(--ink-faint); max-width: 56em; margin-top: 22px; line-height: 1.6; }
@media (max-width: 700px) {
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
}

/* ── FAQ ── */
.faq { margin-top: 40px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 21px 0; font-weight: 640; font-size: 17px; letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono); font-size: 18px;
  color: var(--gold); flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 26px; color: var(--ink-soft); max-width: 58em; }
.faq .answer p { margin: 0 0 12px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ol, .faq .answer ul { margin: 0 0 12px; padding-left: 22px; }
.faq .answer li { margin-bottom: 6px; }

/* ── download ── */
.download { text-align: center; }
.download .cta-row { justify-content: center; }
.download .direct {
  margin: 26px auto 0; max-width: 44em;
  color: var(--ink-soft); font-size: 15px;
}
.download .todo-note { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-top: 16px; }

/* ── footer ── */
.site-foot { border-top: 1px solid var(--line); padding-block: 42px 52px; margin-top: clamp(60px, 10vh, 110px); }
.disclaimer {
  font-size: 13px; line-height: 1.65; color: var(--ink-faint);
  max-width: 66em; margin: 0;
}
.disclaimer strong { color: var(--ink-soft); }
.foot-nav {
  display: flex; flex-wrap: wrap; gap: 12px 26px;
  margin-top: 20px; padding: 0; list-style: none;
  font-size: 13.5px;
}
.foot-nav a { color: var(--ink-soft); text-decoration: none; }
.foot-nav a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.foot-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--ink-faint); margin-top: 22px; }

/* ── legal prose pages ── */
.prose { max-width: 740px; margin-inline: auto; padding-block: clamp(48px, 8vh, 88px); }
.prose h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 730; letter-spacing: -0.028em; line-height: 1.08; margin: 12px 0 10px; }
.prose .updated { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.06em; }
.prose h2 { font-size: 21px; font-weight: 680; letter-spacing: -0.015em; margin: 44px 0 10px; }
.prose h2 .n { font-family: var(--mono); font-size: 14px; color: var(--gold); font-weight: 600; margin-right: 10px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose .lead { font-size: 17px; color: var(--ink-soft); }
.prose dl.controller {
  border: 1px solid var(--line); border-radius: 12px; background: var(--raise);
  padding: 22px 26px; margin: 24px 0;
  display: grid; grid-template-columns: auto 1fr; gap: 8px 26px;
}
.prose dl.controller dt {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--gold); align-self: baseline; padding-top: 4px;
}
.prose dl.controller dd { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 520px) { .prose dl.controller { grid-template-columns: 1fr; gap: 2px; } .prose dl.controller dd { margin-bottom: 12px; } }

/* ── 404 ── */
.notfound {
  min-height: 62vh; display: grid; place-content: center; text-align: center;
  padding-block: 60px;
}
.notfound .code {
  font-family: var(--mono); font-size: clamp(56px, 10vw, 96px); font-weight: 600;
  letter-spacing: -0.02em; margin: 18px 0 4px; line-height: 1;
}
.notfound .sw { color: var(--gold); font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; }
.notfound p { color: var(--ink-soft); max-width: 34em; margin: 10px auto 26px; }
.notfound svg { width: 56px; height: 56px; margin-inline: auto; }

/* ── motion discipline ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .transcript.armed .ln { opacity: 1; transform: none; }
}

.section-intro.spaced { margin-top: 48px; }
