/* Aforeday — site styles.

   One stylesheet for every page. The palette is built from the app icon
   (deep navy field, three brass stripes): navy, warm paper, brass accent,
   slate text. Display type is Instrument Serif, text is Instrument Sans,
   both self-hosted under the SIL Open Font License (assets/fonts/).
   No web-font services, no scripts from anyone else, no third-party
   requests of any kind. */

/* ------------------------------------------------------------------ */
/* Fonts                                                                */
/* ------------------------------------------------------------------ */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-400-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-400-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-variable-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-variable-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ */
/* Tokens                                                               */
/* ------------------------------------------------------------------ */

:root {
  --paper: #F6F2EB;
  --paper-2: #EEE8DD;
  --surface: #FFFDF9;
  --ink: #14202F;
  --ink-2: #4F5968;
  --ink-3: #737C8A;
  --line: #E2DACC;
  --line-2: #CFC5B3;
  --brass: #C9A96A;
  --brass-2: #E3CFA2;
  --brass-ink: #7D5F2C;
  --navy: #132037;
  --navy-2: #0E182B;
  --on-navy: #F3EFE7;
  --on-navy-2: #AAB4C5;
  --phone: #101318;
  --focus: #8A6A33;
  --dayline: #C4B9A4;

  --shadow-1: 0 1px 2px rgba(20, 32, 47, 0.05), 0 6px 20px rgba(20, 32, 47, 0.07);
  --shadow-2: 0 2px 4px rgba(20, 32, 47, 0.06), 0 24px 60px rgba(20, 32, 47, 0.16);
  --glow: rgba(201, 169, 106, 0.28);

  --serif: "Instrument Serif", "New York", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --measure: 42rem;
  --page: 74rem;
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --radius: 1.25rem;
  --radius-s: 0.75rem;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 180ms;
  --t-base: 320ms;
  --t-slow: 800ms;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E182B;
    --paper-2: #0A1222;
    --surface: #15223A;
    --ink: #F1EDE5;
    --ink-2: #B1BAC9;
    --ink-3: #8390A4;
    --line: #22314D;
    --line-2: #30425F;
    --brass-2: #8F7441;
    --brass-ink: #D9BE86;
    --navy: #0A1324;
    --navy-2: #070E1B;
    --phone: #1A1F27;
    --focus: #D9BE86;
    --dayline: #3E5074;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.4), 0 28px 70px rgba(0, 0, 0, 0.6);
    --glow: rgba(201, 169, 106, 0.16);
  }
}

/* ------------------------------------------------------------------ */
/* Base                                                                 */
/* ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv05";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* A faint paper grain, drawn inline so nothing is fetched. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

a { color: var(--brass-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; transition: color var(--t-fast) var(--ease); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--brass); color: var(--navy-2); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--navy); color: var(--on-navy); padding: 0.75rem 1rem; border-radius: 0 0 0.75rem 0;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* The mark: three brass stripes, the icon abstracted. */
.mark { display: inline-block; width: 1em; height: 1em; flex: none; }
.mark rect { fill: var(--brass); }

/* ------------------------------------------------------------------ */
/* Header                                                               */
/* ------------------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.005em; line-height: 1;
}
.brand:hover { text-decoration: none; }
.brand-icon {
  width: 2rem; height: 2rem; border-radius: 0.55rem; flex: none;
  box-shadow: 0 0 0 1px rgba(20, 32, 47, 0.08), 0 2px 6px rgba(20, 32, 47, 0.12);
  transition: transform var(--t-base) var(--ease);
}
.brand:hover .brand-icon { transform: rotate(-4deg); }

.nav { display: flex; align-items: center; gap: 0.25rem 1.6rem; font-size: 0.95rem; font-weight: 500; }
.nav a {
  position: relative; color: var(--ink-2); text-decoration: none; padding: 0.4rem 0; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.1rem; height: 1.5px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav-cta {
  color: var(--navy); font-weight: 600;
  padding: 0.45rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--line-2);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
@media (prefers-color-scheme: dark) {
  .nav .nav-cta { color: var(--ink); }
  .nav .nav-cta:hover { background: var(--brass); color: var(--navy-2); border-color: var(--brass); }
}

/* ------------------------------------------------------------------ */
/* Type                                                                 */
/* ------------------------------------------------------------------ */

h1, h2, .display {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em;
  line-height: 1.02; margin: 0; text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 2.2rem + 3.6vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.4rem); }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 0.45rem; font-weight: 600; letter-spacing: -0.005em; }
h1 em, h2 em, .display em { font-style: italic; color: var(--brass-ink); }

p { margin: 0 0 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-ink); margin-bottom: 1.25rem;
}
.eyebrow .mark { width: 0.9rem; height: 0.9rem; }

.lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.32rem); line-height: 1.55; color: var(--ink-2); max-width: 36rem; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; }

.section-head { max-width: var(--measure); margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head h2 { margin-bottom: 1.1rem; }
.section-head .lede { margin-bottom: 0; }

/* ------------------------------------------------------------------ */
/* Buttons                                                              */
/* ------------------------------------------------------------------ */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; margin-top: 2.2rem; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease),
              background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }

.btn-primary { background: var(--navy); color: var(--on-navy); box-shadow: var(--shadow-1); }
.btn-primary:hover { box-shadow: var(--shadow-2); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--ink-3); background: color-mix(in srgb, var(--surface) 60%, transparent); }

/* The store button: drawn here, not Apple's badge artwork. */
.btn-store {
  background: var(--navy); color: var(--on-navy); padding: 0.45rem 1.35rem 0.45rem 1.05rem;
  gap: 0.7rem; box-shadow: var(--shadow-1); min-height: 3.4rem;
}
.btn-store:hover { box-shadow: var(--shadow-2); }
.btn-store svg { width: 1.5rem; height: 1.5rem; }
.btn-store .store-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn-store .store-text small { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.btn-store .store-text span { font-size: 1.05rem; }
.btn-store .tray-arrow { transition: transform var(--t-base) var(--ease); }
.btn-store:hover .tray-arrow { transform: translateY(2px); }

@media (prefers-color-scheme: dark) {
  .btn-primary, .btn-store { background: var(--brass); color: var(--navy-2); }
  .btn-primary:hover, .btn-store:hover { background: var(--brass-2); color: var(--navy-2); }
  .btn-quiet { color: var(--ink); }
}

/* ------------------------------------------------------------------ */
/* Reveal on scroll (JS adds .is-visible; without JS everything shows)  */
/* ------------------------------------------------------------------ */

.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Hero                                                                 */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: clip;
}
.hero::before {
  /* a soft brass dawn behind the phone */
  content: ""; position: absolute; inset: auto -10% -20% 40%; height: 120%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
.hero h1 { max-width: 15ch; margin-bottom: 1.4rem; }
.hero .lede { max-width: 32rem; }
.status {
  display: inline-flex; align-items: flex-start; gap: 0.6rem; margin-top: 1.6rem;
  font-size: 0.92rem; color: var(--ink-2); max-width: 34rem;
}
.status::before {
  content: ""; width: 0.5rem; height: 0.5rem; margin-top: 0.5rem; border-radius: 50%;
  background: var(--brass); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 22%, transparent);
}

/* Load orchestration: the headline settles, then the rest follows. */
.hero-copy > * { animation: rise 900ms var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: 60ms; }
.hero-copy > :nth-child(2) { animation-delay: 140ms; }
.hero-copy > :nth-child(3) { animation-delay: 260ms; }
.hero-copy > :nth-child(4) { animation-delay: 380ms; }
.hero-copy > :nth-child(5) { animation-delay: 480ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* The stage: a day that draws itself, the phone, and cards that settle. */
.stage {
  position: relative; margin: 0 auto;
  width: min(100%, 30rem); aspect-ratio: 30 / 34;
}
.dayline {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  color: var(--dayline);
}
.dayline .axis { stroke: currentColor; stroke-width: 1; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s var(--ease) 300ms forwards; }
.dayline .tick { stroke: currentColor; stroke-width: 1; opacity: 0; animation: fadein 600ms var(--ease) forwards; }
.dayline .tick:nth-of-type(1) { animation-delay: 900ms; }
.dayline .tick:nth-of-type(2) { animation-delay: 1100ms; }
.dayline .tick:nth-of-type(3) { animation-delay: 1300ms; }
.dayline .tick:nth-of-type(4) { animation-delay: 1500ms; }
.dayline .tick:nth-of-type(5) { animation-delay: 1700ms; }
.dayline text { font-family: var(--sans); font-size: 11px; fill: var(--ink-3); opacity: 0; animation: fadein 600ms var(--ease) forwards; }
.dayline text:nth-of-type(1) { animation-delay: 1000ms; }
.dayline text:nth-of-type(2) { animation-delay: 1200ms; }
.dayline text:nth-of-type(3) { animation-delay: 1400ms; }
.dayline text:nth-of-type(4) { animation-delay: 1600ms; }
.dayline text:nth-of-type(5) { animation-delay: 1800ms; }
.dayline .dot { fill: var(--brass); opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop 700ms var(--ease) forwards; }
.dayline .dot:nth-of-type(1) { animation-delay: 1500ms; }
.dayline .dot:nth-of-type(2) { animation-delay: 1750ms; }
.dayline .dot:nth-of-type(3) { animation-delay: 2000ms; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.4); } 60% { opacity: 1; transform: scale(1.18); } 100% { opacity: 1; transform: scale(1); } }

.stage .phone {
  position: absolute; left: 50%; top: 2%;
  width: 17.5rem; margin-left: -8.75rem;
  animation: rise 1100ms var(--ease) 200ms both;
}

.phone {
  position: relative; margin: 0 auto; width: min(100%, 18rem);
  padding: 0.5rem; border-radius: 3.1rem;
  background: var(--phone);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.25),
    var(--shadow-2);
}
.phone::after {
  /* a soft glass highlight along the top edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), transparent 30%);
}
.phone img, .phone picture { border-radius: 2.6rem; aspect-ratio: 1320 / 2868; width: 100%; background: #F8F7F5; }

/* Slow crossfade between three screens; the first sets the height. */
.phone-fade { position: relative; }
.phone-fade img { position: absolute; inset: 0.5rem; width: calc(100% - 1rem); height: auto; opacity: 0; animation: crossfade 15s ease-in-out infinite; }
.phone-fade img:nth-of-type(1) { position: relative; inset: auto; width: 100%; animation-delay: 0s; }
.phone-fade img:nth-of-type(2) { animation-delay: 5s; }
.phone-fade img:nth-of-type(3) { animation-delay: 10s; }
@keyframes crossfade {
  0% { opacity: 0; }
  6% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

/* Floating cards: proposals that settle into place beside the phone. */
.float {
  position: absolute; z-index: 2; width: 13.5rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 1rem; padding: 0.8rem 0.95rem;
  box-shadow: var(--shadow-2); font-size: 0.82rem; line-height: 1.4;
  animation: settle 1100ms var(--ease) both;
}
.float strong { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.15rem; }
.float .meta { color: var(--ink-2); display: block; }
.float .chips { display: flex; gap: 0.4rem; margin-top: 0.6rem; }
.float .chip {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.22rem 0.6rem; border-radius: 999px;
  font-size: 0.74rem; font-weight: 600; background: var(--paper-2); color: var(--ink);
}
.float .chip-brass { background: var(--brass-ink); color: #fff; }
@media (prefers-color-scheme: dark) { .float .chip-brass { background: var(--brass); color: var(--navy-2); } }
.float .chip svg { width: 0.8rem; height: 0.8rem; }
.float-1 { left: -2%; top: 12%; animation-delay: 1300ms; }
.float-2 { right: -3%; top: 44%; animation-delay: 1650ms; }
.float-3 { left: 4%; bottom: 7%; animation-delay: 2000ms; width: 12.5rem; }
@keyframes settle {
  from { opacity: 0; transform: translateY(26px) rotate(-1.5deg); }
  to { opacity: 1; transform: none; }
}
.float .undo-bar { height: 3px; border-radius: 2px; background: var(--paper-2); margin-top: 0.55rem; overflow: hidden; }
.float .undo-bar i { display: block; height: 100%; width: 100%; background: var(--brass); transform-origin: left; animation: drain 24s linear 2200ms infinite; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ------------------------------------------------------------------ */
/* Sections                                                             */
/* ------------------------------------------------------------------ */

section { scroll-margin-top: 4.5rem; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-tint { background: var(--paper-2); }

/* Three jobs */
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: job; }
.job {
  position: relative; counter-increment: job;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.6rem 1.9rem; overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.job::before {
  content: counter(job, decimal-leading-zero);
  position: absolute; right: 1.3rem; top: 1.1rem;
  font-family: var(--serif); font-size: 1.1rem; color: var(--ink-3); letter-spacing: 0.04em;
}
.job:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.job h3 { font-family: var(--serif); font-weight: 400; font-size: 1.65rem; line-height: 1.1; margin: 1.25rem 0 0.7rem; letter-spacing: -0.01em; }
.job p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.icon {
  width: 3rem; height: 3rem; border-radius: 0.9rem; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brass) 16%, var(--surface)); color: var(--brass-ink);
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.icon svg { width: 1.5rem; height: 1.5rem; }
.job:hover .icon { background: var(--navy); color: var(--brass); transform: rotate(-6deg); }
@media (prefers-color-scheme: dark) { .job:hover .icon { background: var(--brass); color: var(--navy-2); } }

/* Stroke icons share one style */
.icon svg, .principle svg, .keep-card svg, .float .chip svg, .steps svg {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ------------------------------------------------------------------ */
/* Approval: propose → approve → act, with a posture switch             */
/* ------------------------------------------------------------------ */

.approval { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.approval .section-head { margin-bottom: 1.5rem; }
.approval .fine { font-size: 0.92rem; color: var(--ink-2); }

.posture {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-1);
}
.seg { border: 0; margin: 0 0 1.5rem; padding: 0; }
.seg legend { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.7rem; }
.seg-track {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem;
  background: var(--paper-2); border-radius: 999px; padding: 0.25rem;
}
.seg-track::before {
  /* the sliding pill */
  content: ""; position: absolute; top: 0.25rem; bottom: 0.25rem; left: 0.25rem; width: calc(50% - 0.375rem);
  border-radius: 999px; background: var(--navy); box-shadow: var(--shadow-1);
  transition: transform var(--t-base) var(--ease);
}
.seg-track input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg-track label {
  position: relative; z-index: 1; text-align: center; padding: 0.6rem 0.5rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; color: var(--ink-2); cursor: pointer;
  transition: color var(--t-base) var(--ease);
}
.seg-track input:checked + label { color: var(--on-navy); }
.seg-track input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.seg-track:has(#posture-act:checked)::before { transform: translateX(calc(100% + 0.25rem)); }
@media (prefers-color-scheme: dark) {
  .seg-track::before { background: var(--brass); }
  .seg-track input:checked + label { color: var(--navy-2); }
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: 1.25rem; height: 1px; background: var(--line-2);
}
.steps::after {
  content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: 1.25rem; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease);
}
.posture.is-visible .steps::after { transform: scaleX(1); }
.step { position: relative; padding: 0 0.6rem; text-align: center; }
.step-dot {
  position: relative; z-index: 1; width: 2.5rem; height: 2.5rem; margin: 0 auto 0.8rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2);
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.step-dot svg { width: 1.15rem; height: 1.15rem; }
.step h4 { margin: 0 0 0.35rem; font-size: 0.98rem; font-weight: 600; }
.step p { margin: 0; font-size: 0.86rem; line-height: 1.45; color: var(--ink-2); }
.step button {
  all: unset; display: block; width: 100%; cursor: pointer; border-radius: var(--radius-s); padding: 0.4rem 0.2rem 0.6rem;
}
.step button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.step.is-active .step-dot { background: var(--navy); border-color: var(--navy); color: var(--brass); transform: scale(1.08); }
@media (prefers-color-scheme: dark) { .step.is-active .step-dot { background: var(--brass); border-color: var(--brass); color: var(--navy-2); } }
.step.is-active h4 { color: var(--ink); }

/* text that depends on the posture */
.posture .for-act { display: none; }
.posture:has(#posture-act:checked) .for-ask { display: none; }
.posture:has(#posture-act:checked) .for-act { display: block; }
.posture[data-posture="act"] .for-ask { display: none; }
.posture[data-posture="act"] .for-act { display: block; }
span.for-ask, span.for-act { display: inline; }
.posture:has(#posture-act:checked) span.for-act, .posture[data-posture="act"] span.for-act { display: inline; }

.undo-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.55rem;
  padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.76rem; font-weight: 600;
  background: color-mix(in srgb, var(--brass) 18%, var(--surface)); color: var(--brass-ink);
}
.undo-chip svg { display: inline-block; width: 0.85rem; height: 0.85rem; }
.posture:has(#posture-act:checked) .undo-chip.for-act, .posture[data-posture="act"] .undo-chip.for-act { display: inline-flex; }
.posture-note { margin: 1.4rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-2); }
.posture-note svg { display: inline-block; width: 1rem; height: 1rem; vertical-align: -0.15em; margin-right: 0.3rem; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ */
/* Feature rows with real screens                                       */
/* ------------------------------------------------------------------ */

.feature {
  display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-text { order: 2; }
.feature-text { max-width: 30rem; }
.feature-text h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.08; margin-bottom: 1rem; letter-spacing: -0.01em; }
.feature-text p { margin: 0 0 0.9rem; color: var(--ink-2); }
.feature figure { margin: 0; position: relative; }
.feature .phone { width: min(100%, 16.5rem); }
.feature figure::before {
  content: ""; position: absolute; inset: 10% 0 -10% 0; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
}
.js .feature .phone { transition: transform 1s var(--ease); }

/* ------------------------------------------------------------------ */
/* What it reads and keeps                                              */
/* ------------------------------------------------------------------ */

.keeps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.keep-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.6rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.keep-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.keep-card header { display: flex; align-items: center; gap: 0.75rem; }
.keep-card header svg { width: 1.4rem; height: 1.4rem; color: var(--brass-ink); flex: none; }
.keep-card h3 { margin: 0; font-size: 1.1rem; }
.keep-card dl { margin: 0; display: grid; gap: 0.8rem; }
.keep-card dt { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.2rem; }
.keep-card dd { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.keep-card dd strong { color: var(--ink); font-weight: 600; }

.never {
  margin-top: 1.5rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start;
  padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--navy); color: var(--on-navy);
}
.never svg { width: 1.6rem; height: 1.6rem; color: var(--brass); margin-top: 0.1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.never p { margin: 0; }
.never strong { color: #fff; }
.never a { color: var(--brass); }

/* ------------------------------------------------------------------ */
/* Privacy principles                                                   */
/* ------------------------------------------------------------------ */

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.principle { position: relative; background: var(--surface); padding: 1.7rem 1.6rem 1.9rem; transition: background var(--t-base) var(--ease); }
.principle:hover { background: var(--paper); }
.principle svg { width: 1.6rem; height: 1.6rem; color: var(--brass-ink); margin-bottom: 1rem; transition: transform var(--t-base) var(--ease); }
.principle:hover svg { transform: translateY(-2px); }
.principle h3 { font-size: 1.08rem; }
.principle p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* ------------------------------------------------------------------ */
/* Subscription                                                         */
/* ------------------------------------------------------------------ */

.plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.plan-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-1);
  position: relative; overflow: hidden;
}
.plan-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--brass), var(--brass-2));
}
.plan-card .plan-name { font-family: var(--serif); font-size: 2rem; line-height: 1; margin: 0 0 0.4rem; }
.plan-card .plan-price { color: var(--ink-2); margin-bottom: 1.4rem; }
.plan-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.plan-card li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.97rem; }
.plan-card li svg { width: 1.1rem; height: 1.1rem; flex: none; margin-top: 0.25rem; color: var(--brass-ink); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ */
/* Navy band                                                            */
/* ------------------------------------------------------------------ */

.band { position: relative; background: var(--navy); color: var(--on-navy); overflow: clip; }
.band::before {
  content: ""; position: absolute; inset: -40% -20% auto 50%; height: 120%;
  background: radial-gradient(closest-side, rgba(201, 169, 106, 0.22), transparent 70%); pointer-events: none;
}
.band .section { border-top: 0; }
.band h2 { color: var(--on-navy); }
.band h2 em { color: var(--brass); }
.band .lede, .band .muted { color: var(--on-navy-2); }
.band a:not(.btn) { color: var(--brass); }
.band .btn-primary, .band .btn-store { background: var(--brass); color: var(--navy-2); }
.band .btn-primary:hover, .band .btn-store:hover { background: var(--brass-2); }
.band .btn-quiet { color: var(--on-navy); border-color: rgba(255, 255, 255, 0.22); }
.band .btn-quiet:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.06); }
.band .eyebrow { color: var(--brass); }
.band .wrap { position: relative; }

/* The three stripes, drawn large and faint behind the band. */
.band-mark { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: clamp(8rem, 18vw, 16rem); opacity: 0.18; pointer-events: none; }
.band-mark rect { fill: var(--brass); }

/* ------------------------------------------------------------------ */
/* Documents (privacy, terms, support, imprint, 404)                    */
/* ------------------------------------------------------------------ */

.doc { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); }
.doc .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.doc-body { max-width: var(--measure); min-width: 0; }
.doc h1 { font-size: clamp(2.6rem, 2rem + 2.6vw, 4.4rem); margin-bottom: 1rem; }
.doc h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); margin: 3.2rem 0 1rem; padding-top: 1.6rem; border-top: 1px solid var(--line); scroll-margin-top: 5.5rem; }
.doc h3 { margin: 1.9rem 0 0.5rem; scroll-margin-top: 5.5rem; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: 0.4rem 0; }
.doc li::marker { color: var(--brass-ink); }
.doc .meta { color: var(--ink-2); font-size: 0.98rem; }
.doc .lede { max-width: none; }
.doc code { font-size: 0.9em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 0.3em; }

.summary {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.5rem 1.9rem; margin: 2.25rem 0; overflow: hidden;
}
.summary::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brass); }
.summary h2 { margin: 0 0 0.7rem; padding: 0; border: 0; font-size: 1.5rem; }
.summary ul { margin: 0; }

.toc-inline { margin: 2rem 0; padding: 0; list-style: none; columns: 2 16rem; column-gap: 2rem; font-size: 0.95rem; }
.toc-inline li { margin: 0.25rem 0; break-inside: avoid; }

.doc-aside { display: none; }
.doc-aside nav { position: sticky; top: 5.5rem; }
.doc-aside h2 { font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 0.9rem; padding: 0; border: 0; }
.doc-aside ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.doc-aside li { margin: 0; }
.doc-aside a {
  display: block; padding: 0.38rem 0 0.38rem 1rem; margin-left: -1px; border-left: 1.5px solid transparent;
  color: var(--ink-2); text-decoration: none; font-size: 0.88rem; line-height: 1.35;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.doc-aside a:hover { color: var(--ink); }
.doc-aside a.is-current { color: var(--ink); border-left-color: var(--brass); }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.table-note { margin: 0 0 0.9rem; color: var(--ink-2); font-size: 0.92rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table thead th { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; background: var(--paper-2); }
.data-table td:first-child { font-weight: 500; }

.faq dt { font-weight: 600; margin-top: 1.7rem; font-size: 1.08rem; }
.faq dd { margin: 0.4rem 0 0; color: var(--ink); }
.address { font-style: normal; line-height: 1.7; }

/* ------------------------------------------------------------------ */
/* Footer                                                               */
/* ------------------------------------------------------------------ */

.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; font-size: 0.92rem; color: var(--ink-2); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: start; }
.site-footer .brand { font-size: 1.3rem; margin-bottom: 0.6rem; }
.site-footer .brand-icon { width: 1.6rem; height: 1.6rem; border-radius: 0.45rem; }
.site-footer p { margin: 0.25rem 0; max-width: 34rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: flex-end; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer nav a[aria-current="page"] { color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Responsive                                                           */
/* ------------------------------------------------------------------ */

@media (min-width: 64rem) {
  .doc .wrap { grid-template-columns: minmax(0, 1fr) 15rem; }
  .doc-aside { display: block; }
  .doc.doc-narrow .wrap { grid-template-columns: minmax(0, 1fr); }
  .doc.doc-narrow .doc-aside { display: none; }
}

@media (max-width: 64rem) {
  .jobs, .keeps { grid-template-columns: minmax(0, 1fr); }
  .jobs { gap: 1rem; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approval { grid-template-columns: minmax(0, 1fr); }
  .plan { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: none; }
  .hero::before { inset: auto -20% -10% -20%; height: 60%; }
  .stage { width: min(100%, 24rem); aspect-ratio: 24 / 30; }
  .stage .phone { width: 15.5rem; margin-left: -7.75rem; }
  .float { width: 12rem; font-size: 0.78rem; }
  .float-1 { left: -2%; top: 8%; }
  .float-2 { right: -2%; top: 42%; }
  .float-3 { left: 0; bottom: 4%; width: 11.5rem; }
  .dayline { display: none; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-text { order: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .steps::before, .steps::after { left: 1.25rem; right: auto; top: 1.5rem; bottom: 1.5rem; width: 1px; height: auto; }
  .steps::after { transform: scaleY(0); transform-origin: top; }
  .posture.is-visible .steps::after { transform: scaleY(1); }
  .step { text-align: left; padding: 0; }
  .step button { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.9rem; align-items: start; padding: 0.45rem 0; }
  .step-dot { margin: 0; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { border-bottom: 1px solid var(--line); }
  .data-table tr:last-child { border-bottom: 0; }
  .data-table td { border-bottom: 0; padding: 0.35rem 1.1rem; }
  .data-table td:first-child { padding-top: 1.1rem; }
  .data-table td:last-child { padding-bottom: 1.1rem; }
  .data-table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 0.15rem; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .site-footer nav { justify-content: flex-start; }
  .band-mark { display: none; }
}

@media (max-width: 40rem) {
  .nav { gap: 0.25rem 1.1rem; font-size: 0.92rem; }
  .nav a[data-anchor], .nav a[data-secondary] { display: none; }
  .nav .nav-cta { padding: 0.4rem 0.8rem; }
  .brand { gap: 0.55rem; }
  .float-1 { display: none; }
  .eyebrow { align-items: flex-start; }
  .eyebrow .mark { margin-top: 0.2em; }
  .brand { font-size: 1.3rem; }
  .stage { width: min(100%, 20rem); aspect-ratio: 20 / 27; }
  .stage .phone { width: 13rem; margin-left: -6.5rem; top: 0; }
  .float { width: 10.5rem; padding: 0.65rem 0.75rem; font-size: 0.74rem; }
  .float strong { font-size: 0.8rem; }
  .float .chip { font-size: 0.68rem; padding: 0.18rem 0.5rem; }
  .float-1 { left: -4%; top: 6%; }
  .float-2 { right: -4%; top: 30%; }
  .float-3 { left: -2%; bottom: 6%; width: 10rem; }
  .actions .btn { width: 100%; }
  .hero .lede { font-size: 1.08rem; }
}

/* ------------------------------------------------------------------ */
/* Reduced motion: everything visible, nothing moving                   */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .phone-fade img:nth-of-type(n + 2) { display: none; }
  .dayline .axis { stroke-dashoffset: 0; }
  .dayline .tick, .dayline text, .dayline .dot { opacity: 1; }
  .float .undo-bar i { animation: none; transform: scaleX(0.7); }
  .steps::after { transform: none; }
  .js .feature .phone { transform: none !important; }
}

@media print {
  .site-header, .site-footer, .skip, .actions, .doc-aside, body::before { display: none; }
  body { background: #fff; color: #000; }
}

@media (min-width: 64rem) {
  .doc:not(.doc-narrow) .toc-inline { display: none; }
}
