/* ============================================================
   Duekeep marketing site — shared styles
   One brand blue (#4A90D9), the #2D6FAF→#4A90D9 sign-in gradient,
   Nunito, Material Symbols Rounded, flat rounded cards, calm voice.
   Light + dark aware. In-page app mockups render in the app's
   fixed LIGHT palette (like a real screenshot).
   ============================================================ */

:root {
  color-scheme: light dark;
  --brand: #4A90D9;
  --brand-2: #2D6FAF;
  --gold: #FFCB45;

  --bg: #FBFCFE;
  --bg-2: #F1F4FB;
  --card: #FFFFFF;
  --text: #14161A;
  --muted: #52565E;
  --line: rgba(20, 30, 50, 0.10);
  --shadow: 0 1px 2px rgba(20, 40, 80, 0.04), 0 12px 32px rgba(20, 40, 80, 0.07);
  --shadow-lg: 0 20px 60px rgba(20, 40, 80, 0.16);
  --on-brand: #FFFFFF;
  --brand-soft: rgba(74, 144, 217, 0.10);

  --maxw: 1120px;
  --r-card: 18px;
  --r-lg: 26px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1116;
    --bg-2: #141922;
    --card: #171C24;
    --text: #E7EAF0;
    --muted: #A7AEB9;
    --line: rgba(255, 255, 255, 0.10);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
    --brand-soft: rgba(74, 144, 217, 0.16);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", -apple-system, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.material-symbols-rounded { font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; line-height: 1; }

/* Scroll reveal (only when JS active + motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0, 0, 1); }
  html.js .reveal.in { opacity: 1; transform: none; }
  html.js .reveal.d1 { transition-delay: 0.08s; }
  html.js .reveal.d2 { transition-delay: 0.16s; }
  html.js .reveal.d3 { transition-delay: 0.24s; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; border-radius: 13px; padding: 12px 20px;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(74, 144, 217, 0.32); }
.btn--primary:hover { background: #3f83cc; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-2); }
.btn--light { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn--light:hover { background: rgba(255,255,255,0.26); }

/* ── Top nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(20, 40, 80, 0.05); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: -0.5px; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; display: block; filter: drop-shadow(0 3px 8px rgba(45, 111, 175, 0.28)); }
.nav__links { display: flex; align-items: center; gap: 24px; font-weight: 600; }
.nav__links a { color: var(--muted); }
.nav__links a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #245F9E 0%, var(--brand-2) 42%, var(--brand) 100%);
  color: var(--on-brand);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 82% 12%, rgba(255, 214, 110, 0.22), transparent 70%),
    radial-gradient(50% 40% at 8% 90%, rgba(255, 255, 255, 0.14), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative; max-width: var(--maxw); margin: 0 auto; padding: 72px 24px 84px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); font-weight: 800; letter-spacing: -1.6px; line-height: 1.03; margin: 0 0 18px; }
.hero__lead { max-width: 520px; font-size: clamp(16px, 2vw, 19px); opacity: 0.94; margin: 0 0 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__note { margin-top: 18px; font-size: 13.5px; opacity: 0.8; display: flex; align-items: center; gap: 6px; }
.hero__art { display: flex; justify-content: center; }

.badges { display: flex; gap: 14px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff; padding: 11px 18px; border-radius: 14px; transition: background 0.15s ease;
}
.badge:hover { text-decoration: none; background: rgba(255, 255, 255, 0.24); }
.badge .material-symbols-rounded { font-size: 26px; }
.badge small { display: block; font-weight: 600; font-size: 11.5px; opacity: 0.82; letter-spacing: 0.2px; }
.badge b { font-size: 15.5px; letter-spacing: -0.2px; }

/* ── Sections ────────────────────────────────────────────── */
section { padding: 84px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.2px; font-size: 12.5px; font-weight: 800; color: var(--brand); margin: 0 0 12px; }
.section-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.8px; margin: 0 0 14px; line-height: 1.12; }
.section-lead { color: var(--muted); max-width: 640px; margin: 0 auto 8px; font-size: 17.5px; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* ── Feature grid ────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px;
  box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.card__icon .material-symbols-rounded { font-size: 27px; }
.card h3 { margin: 0 0 7px; font-size: 18.5px; font-weight: 700; letter-spacing: -0.2px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ── Showcase (alternating text + UI snippet) ────────────── */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase + .showcase { margin-top: 96px; }
.showcase--flip .showcase__media { order: -1; }
.showcase__body .eyebrow { color: var(--brand); }
.showcase__body h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; letter-spacing: -0.6px; margin: 0 0 14px; line-height: 1.14; }
.showcase__body p { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.checks .material-symbols-rounded { color: var(--brand); font-size: 22px; font-variation-settings: "FILL" 1; }

/* ── App UI mockup (fixed LIGHT app palette) ─────────────── */
.ui, .phone {
  --a-bg: #FCFCFF; --a-card: #F1F4FB; --a-card2: #E9EDF6;
  --a-text: #1A1C20; --a-muted: #43474E; --a-line: rgba(195, 199, 207, 0.55);
  --a-brand: #4A90D9; --a-brand-soft: rgba(74, 144, 217, 0.12); --a-pc: #0E2A47; --a-pcbg: #D4E3FA;
  --od-c: #BA1A1A; --od-b: #FFDAD6; --ds-c: #795900; --ds-b: #FFDDB3; --ok-c: #2D6A1B; --ok-b: #CFEFB6;
}

/* Phone frame */
.phone {
  position: relative;
  width: min(330px, 82vw); border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #23262d, #101216);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone__screen {
  position: relative; background: var(--a-bg); border-radius: 36px; overflow: hidden;
  height: 640px; color: var(--a-text);
}
.phone__notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 104px; height: 24px; background: #101216; border-radius: 13px; z-index: 3; }
.app { padding: 46px 16px 74px; height: 100%; overflow: hidden; }

.app__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.app__chip { display: inline-flex; align-items: center; gap: 6px; background: var(--a-card); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; color: var(--a-text); }
.app__chip .material-symbols-rounded { font-size: 17px; color: var(--a-brand); }
.app__avatar { width: 34px; height: 34px; border-radius: 50%; background: #6AA0DE; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.app__greet { color: var(--a-muted); font-size: 13.5px; margin: 14px 0 2px; }
.app__head { font-size: 21px; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 14px; color: var(--a-text); }

.app__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.stat { background: var(--a-card); border-radius: 14px; padding: 11px 10px; text-align: center; }
.stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; }
.stat span { font-size: 11px; color: var(--a-muted); font-weight: 600; }
.stat.od b { color: var(--od-c); } .stat.ds b { color: var(--ds-c); } .stat.buy b { color: var(--a-brand); }

.app__label { text-transform: uppercase; letter-spacing: 1px; font-size: 10.5px; font-weight: 800; color: var(--a-muted); margin: 14px 2px 8px; }

.focus { background: var(--a-card); border-radius: 18px; padding: 14px; margin-bottom: 14px; }
.focus__row { display: flex; align-items: center; gap: 11px; }
.focus__ic { width: 40px; height: 40px; border-radius: 12px; background: var(--a-brand-soft); color: var(--a-brand); display: grid; place-items: center; }
.focus__ic .material-symbols-rounded { font-size: 22px; }
.focus__t { font-weight: 700; font-size: 15px; color: var(--a-text); }
.focus__s { font-size: 12.5px; color: var(--a-muted); }
.focus__btns { display: flex; gap: 8px; margin-top: 12px; }
.mini { flex: 1; text-align: center; border-radius: 11px; padding: 9px; font-weight: 700; font-size: 13px; }
.mini--fill { background: var(--a-brand); color: #fff; }
.mini--ghost { background: var(--a-card2); color: var(--a-text); }

.svc { display: flex; align-items: center; gap: 11px; background: var(--a-card); border-radius: 14px; padding: 11px 13px 11px 11px; margin-bottom: 9px; position: relative; overflow: hidden; }
.svc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.svc.od::before { background: var(--od-c); } .svc.ds::before { background: var(--ds-c); } .svc.ok::before { background: var(--ok-c); }
.svc__ic { width: 34px; height: 34px; border-radius: 10px; background: var(--a-card2); color: var(--a-muted); display: grid; place-items: center; margin-left: 4px; }
.svc__ic .material-symbols-rounded { font-size: 19px; }
.svc__body { flex: 1; min-width: 0; }
.svc__t { font-weight: 700; font-size: 13.5px; color: var(--a-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc__s { font-size: 11.5px; color: var(--a-muted); }
.pill { font-size: 10.5px; font-weight: 800; padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.pill.od { color: var(--od-c); background: var(--od-b); } .pill.ds { color: var(--ds-c); background: var(--ds-b); } .pill.ok { color: var(--ok-c); background: var(--ok-b); }

.app__nav { position: absolute; left: 0; right: 0; bottom: 0; height: 62px; background: var(--a-bg); border-top: 1px solid var(--a-line); display: flex; justify-content: space-around; align-items: center; padding-bottom: 6px; }
.app__nav a { display: grid; justify-items: center; gap: 2px; color: var(--a-muted); font-size: 10px; font-weight: 700; }
.app__nav a .material-symbols-rounded { font-size: 23px; }
.app__nav a.on { color: var(--a-brand); }
.app__nav a.on .material-symbols-rounded { font-variation-settings: "FILL" 1; }

/* Standalone UI snippet card (used in showcases) */
.ui {
  background: var(--a-bg); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(20, 40, 80, 0.06);
}
.ui__label { text-transform: uppercase; letter-spacing: 1px; font-size: 10.5px; font-weight: 800; color: var(--a-muted); margin: 4px 4px 10px; }
.member { display: flex; align-items: center; gap: 11px; padding: 9px 6px; }
.member + .member { border-top: 1px solid var(--a-line); }
.member__av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; }
.member__t { font-weight: 700; font-size: 14px; color: var(--a-text); }
.member__s { font-size: 12px; color: var(--a-muted); }
.member__role { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--a-pc); background: var(--a-pcbg); padding: 4px 9px; border-radius: 8px; }

.item { display: flex; align-items: center; gap: 12px; }
.item__img { width: 56px; height: 56px; border-radius: 14px; background: var(--a-card2); display: grid; place-items: center; color: var(--a-muted); }
.item__img .material-symbols-rounded { font-size: 28px; }
.item__t { font-weight: 800; font-size: 15px; color: var(--a-text); }
.item__s { font-size: 12.5px; color: var(--a-muted); }
.stepper { margin-left: auto; display: flex; align-items: center; gap: 10px; background: var(--a-card); border-radius: 12px; padding: 6px 10px; }
.stepper b { font-weight: 800; }
.stepper .material-symbols-rounded { color: var(--a-brand); font-size: 20px; }

/* ── Steps ───────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; counter-reset: s; }
.step { position: relative; padding-top: 8px; }
.step__n { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -0.2px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ── Band / CTA ──────────────────────────────────────────── */
.band { background: var(--bg-2); }
.cta-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, #245F9E, var(--brand-2) 45%, var(--brand));
  color: var(--on-brand); border-radius: var(--r-lg); text-align: center; padding: 64px 24px;
}
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 80% 10%, rgba(255, 214, 110, 0.2), transparent 70%); }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.8px; margin: 0 0 10px; }
.cta p { opacity: 0.92; margin: 0 0 26px; font-size: 17px; }
.cta .badges { justify-content: center; }

/* ── Prose (privacy / support body) ──────────────────────── */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; }
.prose h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; letter-spacing: -0.9px; margin: 0 0 4px; }
.prose .updated { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.prose h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.3px; margin: 34px 0 8px; }
.prose p, .prose li { color: var(--text); }
.prose .muted { color: var(--muted); font-size: 14.5px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose code { background: rgba(127, 127, 127, 0.16); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 2px 20px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 17px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "expand_more"; font-family: "Material Symbols Rounded"; font-size: 24px; color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > p { margin: 0 0 18px; color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; font-weight: 600; }
.footer__links a { color: var(--muted); }
.footer small { color: var(--muted); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 8px; text-align: center; padding-top: 56px; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__note, .hero__eyebrow { justify-content: center; }
  .hero__art { margin-top: 36px; }
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase--flip .showcase__media { order: 0; }
  .showcase__media { display: flex; justify-content: center; }
  .ui { max-width: 380px; width: 100%; }
}
@media (max-width: 780px) {
  section { padding: 60px 0; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 540px) {
  .features { grid-template-columns: 1fr; }
  .nav__links { gap: 16px; }
  .nav__links a.hide-sm { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
