/*
 * alphapassword.app
 *
 * The palette is the product's own tokens, unchanged, so the site looks like
 * the thing it is selling. One rule carries the design: colour means yours.
 * The accent and the category hues appear only on surfaces holding your data;
 * everything the server touches is grey monospace.
 *
 * Nothing is loaded from another origin — no fonts, no analytics, no CDN. A
 * page whose argument is "nothing leaves your device" cannot open by fetching a
 * typeface from someone else's server.
 */
:root {
  color-scheme: light;
  --ground: #f4f5f7;
  --surface: #fbfbfc;
  --panel: #e6eaef;
  --ink: #12161c;
  --muted: #5f6772;
  --line: #dce1e8;
  --edge: #b8c0ca;
  --accent: #1f4e79;
  --on-accent: #ffffff;
  --ok: #14622b;
  --warn: #96590a;
  --risk: #a3000b;
  --c-money: #1f6b4e; --c-email: #2b55a0; --c-social: #743d86;
  --c-media: #8a2f4a; --c-work: #3a5668; --c-travel: #1a6874;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "IBM Plex Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 60ch;
  --gutter: clamp(20px, 4vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #0b0e12;
    --surface: #0e1217;
    --panel: #181d24;
    --ink: #e7e9ec;
    --muted: #98a1ad;
    --line: #262d36;
    --edge: #414956;
    --accent: #e0a458;
    --on-accent: #241b0c;
    --ok: #6fcf8e;
    --warn: #e0a458;
    --risk: #e0685f;
    --c-money: #5bbd90; --c-email: #7ba4e8; --c-social: #c08bd4;
    --c-media: #e07f9b; --c-work: #8cabc1; --c-travel: #5cb8c4;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* `height: auto` matters: the width/height attributes are there so the layout
   does not jump while images load, and without this they also *fix* the height,
   which rendered every screenshot at its full 820px and stretched the page to
   eleven thousand pixels. */
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1120px, 100% - (var(--gutter) * 2)); margin-inline: auto; }
section { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }

/* --- the bar ------------------------------------------------------------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--ground); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.wordmark { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; margin-right: auto; }
.wordmark::after { content: "_"; color: var(--accent); }
.bar nav { display: flex; gap: 22px; font-size: 13.5px; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }
.bar .go { font-size: 13.5px; text-decoration: none; color: var(--accent); border: 1px solid currentColor; padding: 7px 13px; border-radius: 8px; }

/* --- shared type --------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 14px; margin: 0 0 16px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 14px; font-weight: 600; }
h3 { font-size: 17px; font-weight: 560; margin: 0 0 6px; }
.lede { color: var(--muted); max-width: var(--measure); margin: 0 0 32px; font-size: 17px; }
.button {
  display: inline-block; text-decoration: none; padding: 13px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 560; background: var(--accent); color: var(--on-accent);
}
.button.quiet { background: none; color: var(--ink); border: 1px solid var(--edge); font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- hero ---------------------------------------------------------------- */
.hero { padding: clamp(40px, 5vw, 68px) 0 0; border-bottom: 1px solid var(--line); overflow: hidden; }
h1 {
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(30px, 4.3vw, 50px); line-height: 1.1; letter-spacing: -0.03em;
  margin: 0 0 20px; max-width: 19ch;
}
h1 .cannot { color: var(--accent); }
.hero .lede { font-size: 17.5px; margin-bottom: 26px; }
.hero .lede strong { color: var(--ink); font-weight: 560; }

/* --- the device scene ---------------------------------------------------- */
/* Three real screens and one drawn watch. The motion says the one thing worth
   saying: what crosses between them is unreadable. */
.scene {
  position: relative; margin: clamp(28px, 4vw, 52px) 0 44px;
  height: clamp(330px, 38vw, 470px);
}
.device { position: absolute; opacity: 0; transform: translateY(24px); }
.scene.playing .device { animation: rise 900ms cubic-bezier(.2,.7,.3,1) forwards; }
.scene.playing .laptop { animation-delay: 60ms; }
.scene.playing .phone { animation-delay: 260ms; }
.scene.playing .watch { animation-delay: 420ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

.laptop { left: 0; top: 0; width: min(64%, 700px); }
.laptop .glass {
  border: 1px solid var(--edge); border-radius: 14px 14px 4px 4px;
  background: var(--surface); padding: 9px 9px 0; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
.laptop img { border-radius: 8px 8px 0 0; }
.laptop .foot {
  height: 12px; margin: 0 -9px; border-radius: 0 0 14px 14px;
  background: var(--panel); border-top: 1px solid var(--line);
}

.phone { right: 4%; top: 6%; width: 196px; }
.phone .glass {
  border: 1px solid var(--edge); border-radius: 30px; background: var(--surface);
  padding: 8px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.55);
}
.phone img { border-radius: 24px; }
.phone .notch {
  position: absolute; left: 50%; transform: translateX(-50%); top: 14px;
  width: 34%; height: 16px; border-radius: 999px; background: var(--panel);
}

.watch { right: 21%; bottom: 16%; width: 112px; }
.watch .glass {
  border: 1px solid var(--edge); border-radius: 26px; background: #0b0e12;
  padding: 16px 12px; text-align: center; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
}
.watch .issuer { font: 500 9px/1 var(--sans); color: #98a1ad; letter-spacing: .08em; text-transform: uppercase; }
.watch .digits { font: 500 19px/1.4 var(--mono); color: #e0a458; letter-spacing: .06em; }
.watch .ring { width: 26px; height: 26px; margin: 4px auto 0; }
.watch .ring circle { fill: none; stroke-width: 2.5; }
.watch .track { stroke: #414956; }
.watch .arc { stroke: #e0a458; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.scene.playing .watch .arc { animation: drain 30s linear infinite; }
@keyframes drain { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 69; } }

/* What crosses the wire. It is the point of the whole picture, so it is the
   only thing that moves after everything has settled. */
.packet {
  position: absolute; left: 42%; top: 26%;
  font: 10px/1.5 var(--mono); color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); border-radius: 7px;
  padding: 6px 8px; width: 138px; word-break: break-all;
  opacity: 0; z-index: 3;
}
.scene.playing .packet { animation: cross 4.2s cubic-bezier(.4,0,.2,1) 900ms infinite; }
@keyframes cross {
  0%   { opacity: 0; transform: translate(150px, -40px) scale(.92); }
  20%  { opacity: 1; transform: translate(110px, -14px) scale(1); }
  55%  { opacity: 1; transform: translate(10px, 34px) scale(1); }
  82%  { opacity: 1; transform: translate(-90px, 60px) scale(.96); }
  100% { opacity: 0; transform: translate(-120px, 70px) scale(.9); }
}
.scene .caption {
  position: absolute; left: 0; bottom: -30px; margin: 0;
  font-size: 12.5px; color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .device, .scene.playing .device { opacity: 1; transform: none; animation: none; }
  .packet, .scene.playing .packet { opacity: 1; animation: none; transform: translate(20px, 20px); }
  .scene.playing .watch .arc { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --- scroll reveal ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.seen { opacity: 1; transform: none; }

/* --- proof --------------------------------------------------------------- */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.side { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.side > header {
  padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.theirs, .theirs * { color: var(--muted); }
.item { padding: 18px 16px 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.badge { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--panel); color: var(--c-money); font: 600 12px/1 var(--mono); }
.row b { display: block; font-weight: 500; font-size: 15px; }
.row span { font-size: 12.5px; color: var(--muted); }
.fields { margin-top: 16px; display: grid; gap: 10px; }
.f label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.f div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font-size: 14px; }
.f .secret { font-family: var(--mono); letter-spacing: 0.16em; }
.f .code { font-family: var(--mono); color: var(--accent); letter-spacing: 0.08em; }
.record { padding: 16px; font-family: var(--mono); font-size: 12px; }
.record dl { margin: 0; display: grid; grid-template-columns: 92px 1fr; gap: 5px 12px; }
.record dt { color: var(--muted); }
.record dd { margin: 0; word-break: break-all; }
.cipher {
  margin-top: 12px; padding: 11px; background: var(--panel); border-radius: 8px;
  font-size: 11px; line-height: 1.55; word-break: break-all; max-height: 128px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent);
  mask-image: linear-gradient(180deg, #000 58%, transparent);
}
figcaption { grid-column: 1/-1; margin-top: 14px; font-size: 12.5px; color: var(--muted); max-width: var(--measure); }

/* --- feature blocks ------------------------------------------------------ */
.feature { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(48px, 7vw, 96px); }
.feature:nth-child(even) .words { order: 2; }
.feature p { color: var(--muted); margin: 0 0 10px; }
.feature .shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 24px 48px -32px rgba(0,0,0,.45); }
.feature .shot img { border-radius: 11px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; }

/* --- how it works -------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.step { background: var(--surface); padding: 22px 20px 24px; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.step p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.opaque { margin-top: 24px; border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; max-width: var(--measure); }
.opaque b { font-weight: 560; }
.opaque p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }

/* --- comparison ---------------------------------------------------------- */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
tbody th { font-weight: 400; }
td { text-align: center; width: 15%; }
th:first-child { width: 40%; }
.yes { color: var(--ok); }
.no { color: var(--muted); }
.mine { background: color-mix(in srgb, var(--accent) 8%, transparent); }
thead .mine { color: var(--ink); font-weight: 600; }

/* --- refusals ------------------------------------------------------------ */
.refusals { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.refusal { background: var(--ground); padding: 22px 0; display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 28px; }
.refusal p { margin: 0; color: var(--muted); max-width: var(--measure); }

/* --- the server's view --------------------------------------------------- */
.sees { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.sees ul { margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 13.5px; }
.sees li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.sees li::before { content: "•"; color: var(--edge); }
.sees p { color: var(--muted); max-width: var(--measure); }

/* --- platforms ----------------------------------------------------------- */
.clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.client { background: var(--surface); padding: 18px 18px 20px; }
.client p { margin: 0; font-size: 13.5px; color: var(--muted); }
.status { display: inline-block; margin-bottom: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--edge); color: var(--muted); }
.status.live { color: var(--ok); border-color: currentColor; }
.aside { margin: 18px 0 0; padding-left: 14px; border-left: 2px solid var(--edge); color: var(--muted); font-size: 14px; max-width: var(--measure); }

/* --- faq ----------------------------------------------------------------- */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-size: 16px; font-weight: 500; list-style: none; display: flex; gap: 12px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; font-family: var(--mono); color: var(--accent); }
.faq details[open] summary::before { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0 24px; max-width: var(--measure); }

/* --- close and footer ---------------------------------------------------- */
.close h2 { font-family: var(--mono); font-size: clamp(22px, 3.2vw, 34px); letter-spacing: -0.02em; }
footer { padding: 34px 0 56px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: baseline; }
footer a { color: var(--muted); }
footer .last { margin-left: auto; }

@media (max-width: 900px) {
  .proof, .sees, .feature, .steps, .clients { grid-template-columns: 1fr; }
  .feature:nth-child(even) .words { order: 0; }
  .refusal { grid-template-columns: 1fr; gap: 8px; }
  .bar nav { display: none; }
  .scene { height: auto; display: grid; gap: 18px; }
  .device { position: static; width: auto !important; }
  .watch { display: none; }
  .packet { display: none; }
  .scene .caption { position: static; }
}

/* --- the privacy page ----------------------------------------------------
   Long-form prose, which the rest of this site does not have: everything else
   is short blocks in a wide grid. Narrower measure, and headings that separate
   sections a reader is scanning for one answer rather than reading through. */
.prose { max-width: 68ch; }
.prose h1 { margin: 0 0 14px; }
.prose h2 {
  font-family: var(--mono); font-size: 15px; font-weight: 600;
  margin: 38px 0 10px; letter-spacing: -0.01em;
}
.prose p, .prose li { font-size: 15.5px; line-height: 1.62; }
.prose .lede { font-size: 17.5px; }
.prose .muted { font-size: 13px; color: var(--muted); }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose li { margin-bottom: 7px; }
.prose code { font: 13px var(--mono); color: var(--ink); }

/* The two-column "can we read it" table. The comparison matrix above sets
   centred, narrow cells for ticks and crosses; this one holds sentences. */
.reads { min-width: 0; }
.reads td, .reads th { text-align: left; width: auto; vertical-align: top; }
.reads th:first-child, .reads td:first-child { width: 46%; }
