/* Decue website. Shares the app's colours and type so the site and the app read as one product. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 500 700; font-display: swap; src: url(fonts/bricolage-grotesque-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: "Bricolage Grotesque"; font-weight: 500 700; font-display: swap; src: url(fonts/bricolage-grotesque-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap; src: url(fonts/inter-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: "Inter"; font-weight: 400 600; font-display: swap; src: url(fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin.woff2) format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --bg: #F7F9F8;
  --bg-alt: #EDF1F0;
  --card: #FFFFFF;
  --ink: #13201D;
  --muted: #5A6A66;
  --line: #D3DCD9;
  --accent: #2443D6;
  --accent-ink: #FFFFFF;
  --accent-soft: #E2E7FB;
  --good: #2C7552;
  --good-soft: #DCEEE4;
  --warn: #A3570F;
  --warn-soft: #F7EBDD;
  --hero-a: #2443D6;
  --hero-b: #15277C;
  --bezel: #0B0B0D;
  --todo: #FFE58A;
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 20px;
  color-scheme: light;
}
/* Dark: follows the system unless the visitor picked a theme (data-theme, set by theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0A0E0F; --bg-alt: #11171A; --card: #182023; --ink: #E6EEEC; --muted: #94A4A0; --line: #283335;
  --accent: #8299FF; --accent-ink: #0A1033; --accent-soft: #1D2648; --good: #6CC79B; --good-soft: #15302A;
  --warn: #E5A465; --warn-soft: #33251A; --hero-a: #3452E2; --hero-b: #18225E; --bezel: #000000; --todo: #5C4A0B;
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0E0F; --bg-alt: #11171A; --card: #182023; --ink: #E6EEEC; --muted: #94A4A0; --line: #283335;
  --accent: #8299FF; --accent-ink: #0A1033; --accent-soft: #1D2648; --good: #6CC79B; --good-soft: #15302A;
  --warn: #E5A465; --warn-soft: #33251A; --hero-a: #3452E2; --hero-b: #18225E; --bezel: #000000; --todo: #5C4A0B;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 500 12px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.accent { color: var(--accent); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--card); padding: 8px 14px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 14px; font: 600 16px/1 var(--f-body); text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--card); }
.btn-soon { flex-direction: column; gap: 3px; align-items: flex-start; background: var(--ink); color: var(--bg); cursor: default; padding: 0 22px 0 18px; }
.btn-soon small { font: 500 11px/1 var(--f-body); opacity: .72; }
.btn-soon b { font: 600 17px/1 var(--f-body); }
.btn-soon .row { display: flex; align-items: center; gap: 10px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.wordmark { font: 700 26px/1 var(--f-display); letter-spacing: -.035em; }
.wordmark .cue { color: var(--accent); }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.theme-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; }
.theme-btn:hover { border-color: var(--muted); }
.theme-btn .i-sun, :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; } }
.head-cta { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
@media (max-width: 760px) { .site-nav { display: none; } .theme-btn { margin-left: auto; } }

/* ---------- phone mockup ----------
   A modern phone drawn in CSS: brushed-metal rim, black bezel, camera island, side buttons and a screen glare.
   Everything scales from --w, the phone's width; height follows the screenshot, so the shape never stretches. */
.phone {
  --w: min(300px, 78vw);
  --rim: calc(var(--w) * .019);
  --bezel-w: calc(var(--w) * .032);
  position: relative; flex: none; align-self: flex-start; width: var(--w); max-width: 100%;
  padding: var(--bezel-w); border: var(--rim) solid transparent; border-radius: calc(var(--w) * .17);
  background:
    linear-gradient(#050506, #050506) padding-box,
    linear-gradient(140deg, var(--hi) 0%, var(--mid) 18%, var(--lo) 42%, var(--mid) 58%, var(--hi) 82%, var(--lo) 100%) border-box;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / .55),
    inset 0 0 0 1px rgb(255 255 255 / .07),
    0 calc(var(--w) * .06) calc(var(--w) * .08) calc(var(--w) * -.04) rgb(10 20 40 / .28),
    0 calc(var(--w) * .2) calc(var(--w) * .32) calc(var(--w) * -.14) rgb(10 20 40 / .5);
}
/* Finishes of the iPhone 18 Pro Max: highlight, mid and shadow tones of the metal rim. Black is the default. */
.phone, .phone.black { --hi: #8f949c; --mid: #404348; --lo: #1a1c1f; }
.phone.silver   { --hi: #f6f7f8; --mid: #cdd0d5; --lo: #969aa1; }
.phone.glacier  { --hi: #eef6fb; --mid: #b4cde0; --lo: #7898b0; }
.phone.burgundy { --hi: #b05a6e; --mid: #6e2436; --lo: #3b0e1a; }
/* Low-profile machined side buttons: only a narrow edge protrudes from the rim.
   Separate rounded silhouettes give the action and volume keys distinct lengths. */
.phone::before, .phone::after {
  content: ""; position: absolute; pointer-events: none;
  --button-overhang: calc(var(--w) * .0045);
  width: calc(var(--w) * .013);
  background: linear-gradient(90deg, var(--mid), var(--hi) 28%, var(--mid) 68%, var(--lo));
}
.phone::before {
  left: calc(-1 * var(--rim) - var(--button-overhang));
  top: 15%; height: 19%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 120' preserveAspectRatio='none'%3E%3Crect width='6' height='19' rx='2'/%3E%3Crect y='34' width='6' height='33' rx='2'/%3E%3Crect y='77' width='6' height='33' rx='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 120' preserveAspectRatio='none'%3E%3Crect width='6' height='19' rx='2'/%3E%3Crect y='34' width='6' height='33' rx='2'/%3E%3Crect y='77' width='6' height='33' rx='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.phone::after {
  right: calc(-1 * var(--rim) - var(--button-overhang));
  top: 27%; height: 9%;
  border-radius: calc(var(--w) * .005);
  background: linear-gradient(270deg, var(--mid), var(--hi) 28%, var(--mid) 68%, var(--lo));
}
.screen { position: relative; display: block; aspect-ratio: 390 / 844; border-radius: calc(var(--w) * .125); overflow: hidden; background: var(--bg); isolation: isolate; }
/* The image rounds its own corners too: Safari can skip a parent's rounded clip on tilted elements. */
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: inherit; }
/* Camera island and a soft reflection across the glass. */
.screen::before { content: ""; position: absolute; z-index: 2; top: calc(var(--w) * .028); left: 50%; translate: -50% 0;
  width: calc(var(--w) * .29); height: calc(var(--w) * .085); border-radius: 999px; background: #000; }
.screen::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgb(255 255 255 / .16) 0%, rgb(255 255 255 / .05) 34%, transparent 34.2%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .04); }

.scr-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scr-light { display: none; } :root:not([data-theme="light"]) .scr-dark { display: block; } }
:root[data-theme="dark"] .scr-light { display: none; }
:root[data-theme="dark"] .scr-dark { display: block; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7.2vw, 88px); letter-spacing: -.04em; margin: 14px 0 22px; }
.hero .lede { max-width: 32em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.promise-line { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.promise-line span::before { content: "✓"; color: var(--good); font-weight: 600; margin-right: 6px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art { perspective: 1800px; }
.hero-art .phone.back { position: absolute; transform: translate(40%, 8%) rotateY(-18deg) rotateX(5deg) rotateZ(4deg) scale(.86); filter: brightness(.96); }
.hero-art .phone.front { transform: translateX(-12%) rotateY(-14deg) rotateX(5deg) rotateZ(-2deg); }
.hero-art::before { content: ""; position: absolute; inset: 8% -10% 0; background: radial-gradient(closest-side, var(--accent-soft), transparent); z-index: -1; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { margin-top: 24px; }
  .hero-art .phone.back { display: none; }
  .hero-art .phone.front { transform: rotateY(-10deg) rotateX(4deg); }
}

/* ---------- products strip ---------- */
.products { border-block: 1px solid var(--line); background: var(--bg-alt); padding: 22px 0; }
.products .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.products p { font-weight: 500; color: var(--muted); font-size: 15px; }
.products ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.products li { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 15px; font-weight: 500; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); margin: 12px 0 16px; }
.center { text-align: center; margin-inline: auto; }

/* The habit loop: cue → routine (swapped) → reward. */
.loop { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 14px; }
.loop-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.loop-step h3 { font-size: 24px; margin: 8px 0 10px; }
.loop-step p { color: var(--muted); font-size: 15px; }
.loop-step.swap { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.loop-step .old { display: block; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; font-size: 18px; margin-bottom: 4px; }
.loop-step .new { display: block; color: var(--accent); font: 700 24px/1.15 var(--f-display); letter-spacing: -.02em; }
.loop-arrow { align-self: center; color: var(--muted); font-size: 26px; }
.loop-note { margin-top: 28px; color: var(--muted); max-width: 640px; }
@media (max-width: 860px) {
  .loop { grid-template-columns: 1fr; }
  .loop-arrow { justify-self: center; transform: rotate(90deg); }
}

/* Feature rows: text beside a phone, alternating sides. */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 128px); }
.feature.flip .feature-art { order: -1; }
.feature h2 { font-size: clamp(32px, 4vw, 48px); margin: 12px 0 18px; }
.feature-art { display: flex; justify-content: center; align-items: flex-start; gap: 20px; perspective: 1800px; container-type: inline-size; }
.feature-art .phone { transform: rotateY(-10deg) rotateX(3deg); }
.feature.flip .feature-art .phone { transform: rotateY(10deg) rotateX(3deg); }
.feature-art .phone { --w: min(300px, 100cqi); }
.feature-art.pair .phone { --w: min(236px, calc((100cqi - 20px) / 2)); }
.feature-art.pair .phone:nth-child(2) { margin-top: 64px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.6' fill='none' stroke='%232443D6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks b { font-weight: 600; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.kind { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-art { order: 0; }
  .feature-art .phone { --w: min(260px, 100cqi); }
  .feature-art.pair .phone { --w: min(220px, calc((100cqi - 20px) / 2)); }
  .feature-art.pair .phone:nth-child(2) { margin-top: 40px; }
}

/* ---------- the 14 days ---------- */
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 48px); }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: clamp(4px, 1vw, 10px); align-items: end; height: 180px; position: relative; padding-top: 34px; }
.bars i { border-radius: 8px 8px 4px 4px; background: var(--accent); opacity: .85; }
.bars i:nth-of-type(-n+4) { background: var(--warn); }
/* How hard each day usually is, peaking in the first 100 hours (same curve as the app). */
.bars i:nth-of-type(1) { height: 85%; } .bars i:nth-of-type(2) { height: 98%; } .bars i:nth-of-type(3) { height: 98%; }
.bars i:nth-of-type(4) { height: 89%; } .bars i:nth-of-type(5) { height: 70%; } .bars i:nth-of-type(6) { height: 62%; }
.bars i:nth-of-type(7) { height: 55%; } .bars i:nth-of-type(8) { height: 51%; } .bars i:nth-of-type(9) { height: 47%; }
.bars i:nth-of-type(10) { height: 45%; } .bars i:nth-of-type(11) { height: 43%; } .bars i:nth-of-type(12) { height: 40%; }
.bars i:nth-of-type(13) { height: 38%; } .bars i:nth-of-type(14) { height: 36%; }
.bars .hardest { position: absolute; top: 0; left: 0; right: 0; padding-top: 8px; white-space: nowrap;
  /* The line spans the first four of 14 bars; the label may run past it on small screens. */
  background: linear-gradient(var(--warn), var(--warn)) top left / calc(4 / 14 * 100%) 2px no-repeat;
  font: 500 12px/1.2 var(--f-mono); letter-spacing: .06em; color: var(--warn); text-transform: uppercase; }
.phases { display: grid; grid-template-columns: 3fr 4fr 7fr; gap: clamp(8px, 2vw, 24px); margin-top: 18px; }
.phase { border-top: 3px solid var(--line); padding-top: 16px; }
.phase .eyebrow { color: var(--ink); }
.phase h3 { font-size: 21px; margin: 6px 0 6px; }
.phase p { color: var(--muted); font-size: 15px; }
.plan-foot { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); }
.plan-foot b { color: var(--ink); }
@media (max-width: 760px) {
  .phases { grid-template-columns: 1fr; }
  .bars { height: 130px; }
}

/* ---------- lessons ---------- */
.lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.lessons li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 4px; }
.lessons .eyebrow { font-size: 11px; }
.lessons b { font: 700 19px/1.2 var(--f-display); letter-spacing: -.015em; }
@media (max-width: 860px) { .lessons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lessons { grid-template-columns: 1fr; } }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.principle .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.principle h3 { font-size: 21px; margin-bottom: 8px; }
.principle p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.price-card { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; border-radius: 28px; border: 1px solid var(--line); background: var(--card); }
.price-card .pitch { padding: clamp(28px, 4vw, 52px); background: linear-gradient(150deg, var(--hero-a), var(--hero-b)); color: #fff; }
.price-card .pitch .eyebrow { color: rgb(255 255 255 / .75); }
.price-card .pitch h2 { font-size: clamp(34px, 4.4vw, 52px); margin: 12px 0 16px; }
.price-card .pitch p { color: rgb(255 255 255 / .82); }
.price-card .incl { padding: clamp(28px, 4vw, 52px); }
.price-card .incl .ticks { margin-top: 16px; }
@media (max-width: 860px) { .price-card { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 600 18px/1.35 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--f-body); color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 24px; color: var(--muted); display: grid; gap: 12px; }

/* ---------- closing band ---------- */
.closing { text-align: center; }
.closing h2 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.04em; }
.closing .cta-row { justify-content: center; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.foot-links a:hover { text-decoration: underline; }
.disclaimer { grid-column: 1 / -1; max-width: 760px; }
@media (max-width: 640px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* ---------- legal and support pages ---------- */
.doc { padding: clamp(40px, 6vw, 80px) 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(38px, 5vw, 56px); margin: 12px 0 14px; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; }
.doc h3 { font-size: 19px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc .summary { margin-top: 28px; padding: 22px 24px; border-radius: 16px; background: var(--accent-soft); }
.doc .summary ul { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; white-space: nowrap; }
.contact-card { margin-top: 24px; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.contact-card b { font: 700 22px/1.2 var(--f-display); }
.doc .faq summary { font-size: 17px; }

/* Placeholders the owner must fill in before launch. Loud on purpose. Search the files for class="todo". */
.todo { background: var(--todo); color: inherit; padding: 0 4px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- email updates ---------- */
.newsletter-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 5vw, 64px); padding: clamp(20px, 4vw, 48px); border: 1px solid var(--line); background: var(--card); border-radius: 28px; }
.newsletter-card h2 { font-size: clamp(32px, 4vw, 48px); margin: 10px 0 12px; }
.newsletter-card p { color: var(--muted); }
.newsletter-form { min-width: 0; position: relative; display: grid; gap: 12px; }
.newsletter-label { font-weight: 600; font-size: 14px; }
.newsletter-row { display: flex; gap: 10px; align-items: stretch; }
.newsletter-row input { min-width: 0; flex: 1; width: 100%; padding: 0 14px; min-height: 52px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); font: inherit; }
.newsletter-row input::placeholder { color: var(--muted); }
.newsletter-row .btn { flex: none; white-space: nowrap; padding-inline: 18px; }
.newsletter-row .btn:disabled { opacity: .55; cursor: not-allowed; }
.newsletter-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.newsletter-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.newsletter-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.newsletter-note, #newsletter-status { font-size: 13px; }
#newsletter-status:empty { display: none; }
#newsletter-challenge { min-width: 0; max-width: 100%; }
#newsletter-challenge:empty { height: 0; }
.newsletter-card #newsletter-status[data-state="success"] { color: var(--good); }
.newsletter-card #newsletter-status[data-state="error"] { color: var(--warn); }
@media (max-width: 760px) { .newsletter-card { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .newsletter-row { flex-direction: column; } .newsletter-row .btn { width: 100%; } }
