/* Daylta marketing site — tokens mirror lib/theme/app_colors.dart and app_text.dart.
   The app is dark-only; so is the site. */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Ground */
  --bg: #12100f;
  --surface: #1b1715;
  --surface-raised: #241e1b;
  --surface-overlay: #2b2421;
  /* Type */
  --text: #fff3e6;
  --text-muted: #b8a697;
  --text-dim: #8c7b6e;
  --text-inverse: #1f1510;
  /* Accent */
  --accent: #ff7a3d;
  --on-accent: #1f1510;
  --accent-soft: rgba(255, 122, 61, 0.16);
  --accent-line: rgba(255, 122, 61, 0.5);
  --accent-glow: rgba(255, 122, 61, 0.45);
  /* Status */
  --success: #5de8a0;
  --warning: #ffc454;
  --danger: #ff5c7a;
  --info: #6fb6ff;
  --focus: #b48cff;
  --rest: #ff8fb1;
  /* Fills & lines */
  --fill: rgba(255, 243, 230, 0.08);
  --fill-strong: rgba(255, 243, 230, 0.14);
  --line: rgba(255, 243, 230, 0.12);
  --line-strong: rgba(255, 243, 230, 0.24);
  /* Bitsy bubble */
  --bubble: #fff3e6;
  --bubble-text: #1f1510;
  /* Depth */
  --shadow-raised: 0 14px 34px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 8px 18px rgba(0, 0, 0, 0.25);
  --glow: 0 0 40px var(--accent-glow);
  /* Radius */
  --r-xs: 10px; --r-sm: 12px; --r-md: 16px; --r-lg: 20px; --r-xl: 24px; --r-xxl: 28px; --r-pill: 999px;
  /* Type */
  --display: "Fredoka", "Segoe UI", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --measure: 68ch;
  --page: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-muted); text-decoration: none; font-weight: 700; }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-line); outline-offset: 3px; border-radius: 6px;
}
::selection { background: var(--accent-soft); color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 0.4em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
p, li { color: var(--text-muted); max-width: var(--measure); }
strong { color: var(--text); font-weight: 800; }
ul, ol { padding-left: 1.3em; }
li { margin: 0.35em 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--fill); padding: 0.1em 0.4em; border-radius: 6px; color: var(--text); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--page); }
.section-label {
  font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-dim); margin: 0 0 12px; display: block;
}
.section-label.accent { color: var(--accent); }
.lede { font-size: 18px; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.center { text-align: center; }
.center p, .center li { margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 16, 15, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 600; font-size: 24px; }
.brand img { width: 28px; height: 28px; display: block; }
.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 8px 12px; border-radius: var(--r-pill); font-size: 15px; }
.nav-links a:hover { background: var(--fill); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--fill); }
.nav-toggle {
  display: none; background: var(--fill); border: 0; color: var(--text); width: 44px; height: 44px;
  border-radius: var(--r-sm); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 18px;
  padding: 14px 26px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  min-height: 52px; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--glow); }
.btn-primary:hover { color: var(--on-accent); box-shadow: 0 0 52px var(--accent-glow); filter: brightness(1.04); }
.btn-secondary { background: var(--fill); color: var(--text); }
.btn-secondary:hover { background: var(--fill-strong); color: var(--text); }
.btn-sm { font-size: 16px; padding: 10px 18px; min-height: 44px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; box-shadow: none; }

/* Store badges: logo plus a two-line label, the pattern people already
   recognise from the stores. Primary = Google Play (live); secondary = a store
   that is not live yet, so it reads quieter and says so. */
.store-badge { gap: 12px; padding: 9px 24px 9px 18px; text-align: left; min-height: 56px; }
.store-badge svg { width: 26px; height: 26px; }
.store-text { display: flex; flex-direction: column; line-height: 1.05; }
.store-eyebrow {
  font-family: var(--body); font-size: 11px; font-weight: 800;
  letter-spacing: 0.9px; text-transform: uppercase; opacity: 0.78;
}
.store-name { font-size: 20px; letter-spacing: -0.01em; }
.btn-secondary.store-badge { box-shadow: inset 0 0 0 1px var(--line-strong); }
/* The live store: same dark badge, marked out by an accent border. */
.btn-secondary.store-badge.store-badge-live { box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-secondary.store-badge.store-badge-live:hover { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 24px var(--accent-soft); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border-radius: var(--r-lg); padding: 22px;
}
.card.raised { background: var(--surface-raised); box-shadow: var(--shadow-raised); }
.card h3 { margin-top: 6px; }
.card p:last-child { margin-bottom: 0; }
.icon-tile {
  width: 44px; height: 44px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center;
  background: var(--fill); color: var(--accent); margin-bottom: 12px;
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.success { color: var(--success); } .icon-tile.info { color: var(--info); }
.icon-tile.focus { color: var(--focus); } .icon-tile.warning { color: var(--warning); } .icon-tile.rest { color: var(--rest); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--fill); color: var(--text); font-size: 12px; font-weight: 800; letter-spacing: 0.3px;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chip.success .dot { background: var(--success); }

/* ---------- Sections ---------- */
section { padding-block: 72px; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 64px 40px; overflow: hidden; border-top: 0; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 70%; pointer-events: none;
  background: radial-gradient(60% 60% at 70% 20%, rgba(255, 122, 61, 0.22), rgba(255, 122, 61, 0) 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 .accent { color: var(--accent); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .phone { z-index: 1; }
.hero-art .bitsy { position: absolute; width: 38%; right: 2%; bottom: -2%; z-index: 2; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5)); }

/* ---------- Phone frame ---------- */
.phone {
  width: min(300px, 100%); aspect-ratio: 750 / 1624; border-radius: 40px; padding: 10px;
  background: #0b0a09; box-shadow: var(--shadow-raised), inset 0 0 0 1px rgba(255,243,230,0.1);
  position: relative; margin: 0 auto;
}
.phone::after {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px; border-radius: 14px; background: #0b0a09;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; background: var(--bg); }
.phone.sm { width: min(240px, 100%); }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 56px; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.step:nth-child(even) .step-copy { order: 2; }
.step-num {
  font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.step-num::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.step ul { margin: 12px 0 0; }
.step-art { display: flex; justify-content: center; }

/* ---------- Bitsy band ---------- */
.bitsy-band .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.bitsy-band img { width: min(320px, 80%); margin: 0 auto; }
.bubble {
  background: var(--bubble); color: var(--bubble-text); border-radius: var(--r-xl); padding: 18px 22px;
  font-family: var(--display); font-weight: 500; font-size: 20px; position: relative; max-width: 460px;
  box-shadow: var(--shadow-soft); margin-bottom: 16px;
}
.bubble::after {
  content: ""; position: absolute; left: -10px; bottom: 18px; border: 10px solid transparent; border-right-color: var(--bubble); border-left: 0;
}

/* ---------- Privacy strip ---------- */
.privacy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.privacy-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.privacy-list svg { width: 22px; height: 22px; flex: none; color: var(--success); margin-top: 3px; }
.privacy-list span { color: var(--text-muted); }

/* ---------- FAQ ---------- */
details { background: var(--surface); border-radius: var(--r-md); padding: 4px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--text); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 14px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: auto -10% -60% ; height: 80%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 100%, rgba(255, 122, 61, 0.25), rgba(255, 122, 61, 0) 70%);
}
.cta-band .wrap { position: relative; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 32px; color: var(--text-dim); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.site-footer h4 { font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-dim); font-family: var(--body); font-weight: 800; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--text-muted); font-weight: 700; }
.site-footer a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- Content pages (legal, about) ---------- */
.page-head { padding-block: 56px 28px; }
.page-head h1 { font-size: clamp(34px, 5vw, 48px); }
.prose { padding-block: 0 72px; }
.prose .wrap { max-width: 820px; }
.prose h2 { font-size: 24px; margin-top: 44px; }
.prose h3 { font-size: 18px; margin-top: 28px; }
.prose table { border-collapse: collapse; width: 100%; margin: 12px 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-muted); }
.prose th { color: var(--text); font-weight: 800; }
.prose .table-wrap { overflow-x: auto; }
.callout { background: var(--surface-raised); border-left: 3px solid var(--accent); border-radius: var(--r-sm); padding: 16px 18px; margin: 20px 0; }
.callout p:last-child { margin: 0; }
.callout.success { border-color: var(--success); }
.toc { background: var(--surface); border-radius: var(--r-md); padding: 16px 20px; margin: 16px 0 32px; }
.toc ol { margin: 0; columns: 2; column-gap: 24px; }
.toc a { color: var(--text-muted); }
.legal-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 800; letter-spacing: 0.4px; color: var(--text-muted); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--fill); border: 1px solid transparent; border-radius: var(--r-sm); color: var(--text);
  padding: 12px 14px; font: inherit; font-weight: 600;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent-line); outline: 0; background: var(--fill-strong); }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--text-dim); }
.form-note { font-size: 13px; color: var(--text-dim); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.contact-links { display: grid; gap: 12px; }
.contact-links a { display: flex; gap: 14px; align-items: center; background: var(--surface); padding: 16px 18px; border-radius: var(--r-md); color: var(--text); }
.contact-links a:hover { background: var(--surface-raised); }
.contact-links svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.contact-links small { display: block; color: var(--text-dim); font-size: 13px; }

/* ---------- Good Reads ---------- */
.reads { display: grid; gap: 18px; }
.read-card { display: grid; gap: 8px; color: var(--text); }
.read-card:hover { background: var(--surface-overlay); color: var(--text); }
.read-card .section-label { margin: 0; }
.read-card h3 { margin: 0; font-size: 22px; }
.read-card p { margin: 0; }
.read-more { color: var(--accent); font-weight: 800; font-size: 14px; }

/* ---------- Articles ---------- */
/* Articles run the header's full width, with the text measure widened to match. */
.article-head .wrap, .prose.article .wrap { max-width: var(--max); }
.article-head h1 { max-width: 20ch; }
.prose.article p, .prose.article li { max-width: none; font-size: 17px; }
.prose.article .art-row { grid-template-columns: 150px 1fr; gap: 28px; }
.prose.article .art-row img { width: 150px; }
.prose.article .figure { max-width: 900px; margin-inline: auto; }
.prose.article .app-shots .phone.sm { width: min(240px, 100%); }
.pull-quote {
  margin: 44px 0; padding: 22px 28px; max-width: none; text-align: left; position: relative;
  background: var(--surface); border-left: 5px solid var(--warning); border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.pull-quote p, .prose.article .pull-quote p {
  font-family: var(--display); font-weight: 500; font-size: clamp(24px, 3vw, 32px); line-height: 1.25;
  color: var(--warning); margin: 0 0 10px; text-wrap: balance; max-width: none;
}
.pull-quote footer { font-size: 15px; color: var(--text-dim); font-weight: 700; }
.pull-quote cite { font-style: italic; }
.art-row { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; margin: 12px 0 20px; }
.art-row img { width: 120px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); }
.art-row p:last-child { margin-bottom: 0; }
.figure { margin: 28px 0; }
.figure svg { width: 100%; height: auto; display: block; }
.figure figcaption { font-size: 14px; color: var(--text-dim); margin-top: 10px; text-align: center; max-width: 60ch; margin-inline: auto; }
.app-shots { margin: 24px 0 28px; }
.app-shots figure { margin: 0; display: grid; gap: 14px; }
.app-shots .phone.sm { width: min(200px, 100%); }
.app-shots figcaption { font-size: 15px; color: var(--text-muted); }
.app-shots figcaption strong { color: var(--accent); }
@media (max-width: 640px) {
  .art-row, .prose.article .art-row { grid-template-columns: 88px 1fr; gap: 14px; }
  .art-row img, .prose.article .art-row img { width: 88px; }
  .prose.article p, .prose.article li { font-size: 16px; }
}

/* ---------- About ---------- */
.values { counter-reset: v; }
.values .card { position: relative; padding-top: 26px; }
.values .card::before {
  counter-increment: v; content: counter(v, decimal-leading-zero);
  position: absolute; top: 14px; right: 18px; font-family: var(--display); color: var(--accent); font-size: 14px; font-weight: 600;
}
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; color: var(--text-muted); }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 8px; justify-self: center; box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 400ms ease, transform 400ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { margin-top: 12px; }
  .bitsy-band .wrap { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 24px; }
  .step:nth-child(even) .step-copy { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
}
/* Six nav items no longer fit beside the brand under about 760px. */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch;
    background: var(--surface-overlay); padding: 10px var(--page) 16px; border-bottom: 1px solid var(--line); gap: 2px;
    box-shadow: var(--shadow-raised); z-index: 60;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-links .btn { margin-top: 8px; }
}
@media (max-width: 640px) {
  section { padding-block: 52px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-art .bitsy { width: 42%; right: -4%; }
  .toc ol { columns: 1; }
  .btn { width: 100%; }
  .hero-ctas .btn, .cta-band .btn { width: auto; flex: 1 1 200px; }
}
