/* UnplugFirst · product site (unplugfirst.app). Colors and type are the app's own (docs/brand/brand.md,
   docs/design/tokens.json; Nunito). Sizes are D4U's shared ones (the store shell's --sh-fs-* values).
   Rule: amber #F2B544 only on graphite. On ivory the accent is always the deep amber #9A6410. */

@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin.woff") format("woff"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrainsmono-700-d4u.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #F6F3EC; --bg-alt: #EFEBE2; --surface: #FFFFFF; --ink: #20252B; --muted: #4A5058; --line: #E4E0D7;
  --primary: #9A6410; --on-primary: #FFFFFF; --tint: #F3E8D0; --chip-ink: #5C3D08;
  --alert: #F8E7C2; --on-alert: #5C3D08;
  --glow: rgba(154, 100, 16, .12);
  /* The night band is graphite in both modes, so its accent is the amber. */
  --night: #20252B; --night-alt: #2A3038; --night-ink: #F6F3EC; --night-muted: #C9CDD2; --night-line: #3A414A; --amber: #F2B544;
  --d4u: #1652F0;
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 22px;
  /* D4U's shared sizes (same values as the store shell's --sh-fs-*) */
  --fs-display: clamp(40px, 5.6vw, 72px);
  --fs-h2: clamp(30px, 3.6vw, 44px);
  --fs-h3: clamp(20px, 1.8vw, 22px);
  --fs-lead: clamp(18px, 1.6vw, 20px);
  --fs-body: 17px;
  --fs-button: 16px;
  --fs-small: 14px;
  --fs-label: 13px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #20252B; --bg-alt: #1A1E23; --surface: #2A3038; --ink: #F6F3EC; --muted: #C9CDD2; --line: #3A414A;
    --primary: #F2B544; --on-primary: #20252B; --tint: #352C1C; --chip-ink: #F2B544;
    --alert: #3A3020; --on-alert: #F5D08A;
    --glow: rgba(242, 181, 68, .10);
    --night: #15181C; --night-alt: #20252B;
    --d4u: #5B87FF;
  }
}
:root[data-theme="dark"] {
  --bg: #20252B; --bg-alt: #1A1E23; --surface: #2A3038; --ink: #F6F3EC; --muted: #C9CDD2; --line: #3A414A;
  --primary: #F2B544; --on-primary: #20252B; --tint: #352C1C; --chip-ink: #F2B544;
  --alert: #3A3020; --on-alert: #F5D08A;
  --glow: rgba(242, 181, 68, .10);
  --night: #15181C; --night-alt: #20252B;
  --d4u: #5B87FF;
}

/* Logos and theme icons follow the same two selectors */
.logo-dark, .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light, :root:not([data-theme="light"]) .i-moon { display: none; }
  :root:not([data-theme="light"]) .logo-dark, :root:not([data-theme="light"]) .i-sun { display: block; }
}
:root[data-theme="dark"] .logo-light, :root[data-theme="dark"] .i-moon { display: none; }
:root[data-theme="dark"] .logo-dark, :root[data-theme="dark"] .i-sun { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 var(--fs-body)/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 800; }
.accent { color: var(--primary); }

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.wrap-narrow { width: min(760px, 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 12px; background: var(--primary); color: var(--on-primary); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }
.icon { display: block; width: 28px; height: 28px; flex: none; color: var(--primary); }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: block; flex: none; }
.brand img { height: 28px; width: auto; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--primary); }
.tools { display: flex; align-items: center; gap: 10px; }
.theme { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.theme svg { width: 19px; height: 19px; }
.lang { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.lang:hover { border-color: var(--primary); color: var(--primary); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); background: radial-gradient(70% 80% at 85% 45%, var(--glow) 0%, transparent 62%), var(--bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 { font-size: var(--fs-display); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; }
.hero .lead { margin: 22px 0 0; max-width: 32em; font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); }
/* A status, not a button: flat text with an accent bar, no fill and no rounded pill. */
.soon { display: block; margin: 26px 0 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--primary); color: var(--ink); font-weight: 800; font-size: var(--fs-small); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-weight: 700; font-size: var(--fs-small); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
/* Phones: D4U's frame (.sh-phone, assets/css/devices.css). Only size and placement are set here. */
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; margin-left: auto; }
.hero-phones .sh-phone { --sh-phone-w: 250px; }
.hero-phones .back { transform: translate(14%, -6%); }
.hero-phones .front { margin-left: -60px; transform: translateY(6%); z-index: 1; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.alt { background: var(--bg-alt); }
.section-lead { margin: 16px 0 0; max-width: 40em; color: var(--muted); font-size: var(--fs-lead); line-height: 1.55; }
.eyebrow { margin: 0 0 12px; color: var(--primary); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: var(--fs-label); }

/* How it works: the app's three steps, the third one highlighted as in the app */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.steps li { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps li.key { background: var(--alert); border-color: transparent; }
.steps li.key h3, .steps li.key p { color: var(--on-alert); }
.num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; background: var(--tint); color: var(--chip-ink); font-weight: 900; }
.steps li.key .num { background: var(--surface); color: var(--on-alert); }
.steps p { margin: 10px 0 0; color: var(--muted); }

/* Night mode: a graphite band in both modes, like the app's night */
.night { padding: clamp(64px, 9vw, 120px) 0; background: var(--night); color: var(--night-ink); }
.night h2 { color: var(--night-ink); }
.night .eyebrow { color: var(--amber); }
.night .section-lead, .night p { color: var(--night-muted); }
.split { display: grid; grid-template-columns: 1fr 300px; align-items: center; gap: clamp(32px, 6vw, 80px); }
.split.flip { grid-template-columns: 300px 1fr; }
.split.flip .sh-phone { order: -1; }
.split .sh-phone { --sh-phone-w: 280px; justify-self: center; }
.faces { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.faces li { padding: 8px 16px; border-radius: 999px; background: var(--night-alt); border: 1px solid var(--night-line); color: var(--night-ink); font-size: var(--fs-label); font-weight: 800; }
.points { display: grid; gap: 18px; margin: 32px 0 0; padding: 0; list-style: none; }
.points li { display: flex; gap: 14px; align-items: flex-start; }
.points .icon { color: var(--amber); margin-top: 2px; }
.points strong { display: block; color: var(--night-ink); font-size: var(--fs-h3); font-weight: 800; line-height: 1.25; }
.points span { display: block; margin-top: 4px; color: var(--night-muted); }

/* Ways to warn */
.forms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.forms li { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.forms h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.forms p { margin: 8px 0 0; color: var(--muted); }
.state { padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--chip-ink); font-size: var(--fs-label); font-weight: 800; letter-spacing: .02em; }
.note { margin: 22px 0 0; color: var(--muted); font-size: var(--fs-small); }

/* Privacy promise */
.promise { text-align: center; }
.promise .icon { width: 40px; height: 40px; margin: 0 auto 18px; }
.promise p { max-width: 640px; margin: 18px auto 0; color: var(--muted); font-size: var(--fs-lead); line-height: 1.5; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: var(--fs-button); text-decoration: none; }
.button:hover { filter: brightness(1.08); }
.promise .button { margin-top: 28px; }

/* Documents: privacy, support */
.doc { padding: clamp(40px, 7vw, 80px) 0 80px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 900; letter-spacing: -.03em; margin-bottom: 26px; }
.doc h2 { margin: 40px 0 10px; font-size: 24px; font-weight: 800; }
.doc h3 { margin: 28px 0 8px; font-size: 19px; font-weight: 800; }
.doc p, .doc li { color: var(--ink); }
.doc .lead { font-size: var(--fs-lead); }
.doc .updated { color: var(--muted); font-size: var(--fs-small); }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 18px 36px 18px 0; position: relative; cursor: pointer; list-style: none; font-weight: 800; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--primary); font-size: 26px; font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }
.missing { text-align: center; }
.missing h1 { font-size: 96px; }

/* Footer: D4U's one structure (store shell, d4u.work). Top: the product, the company, the legal links;
   below a line: the © on the left and the signature on the right. Stacked on phones. */
.foot { border-top: 1px solid var(--line); background: var(--bg-alt); font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--muted); }
.foot p { margin: 0; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot ul a { font-weight: 400; }
.foot ul a:hover { text-decoration: underline; }
.foot-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 28px 40px; padding: 44px 0 32px; }
/* No display here: the light and dark marks take it from the logo rules above. */
.foot-mark { height: 28px; width: auto; margin-bottom: 12px; }
.foot .foot-label { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.foot-company strong { color: var(--ink); font-weight: 600; }
.foot-bottom { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; padding: 18px 0 32px; border-top: 1px solid var(--line); }
.powered a { color: var(--ink); font: 700 15px/1 "JetBrains Mono", ui-monospace, Menlo, monospace; text-decoration: none; }
.powered b { color: var(--d4u); font-weight: 700; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phones { margin: 8px auto 0; }
  .hero-phones .sh-phone { --sh-phone-w: 190px; }
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip .sh-phone { order: 0; }
  .split .sh-phone { --sh-phone-w: 230px; }
}
@media (max-width: 600px) {
  .forms { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top nav { display: none; }
  .tools { margin-left: auto; }
  .brand img { height: 24px; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
