/* MillionairesGPS website — the app's locked design (lib/theme/locked_design.dart).
   Always dark. One gold button per screen. Bright colour only on small things;
   areas get a 14 % tint. Phone first; desktop from 900px. */

:root {
  --page: #111216;
  --card: #1B1C22;
  --raised: #24262E;
  --line: #2C2E36;
  --text: #ECECF1;
  --grey: #A3A6B3;
  --quiet: #888B99;
  --gold: #FFC21A;
  --on-gold: #15151B;
  --link: #60A5FA;
  --delete: #F87171;

  --target: #FBBF24;
  --weekly: #FF8A5B;
  --task: #60A5FA;
  --subtask: #4ADE80;
  --ritual: #A78BFA;
  --rewrite: #FB7185;
  --focus: #2DD4BF;
  --pink: #E879F9;
  --network: #38BDF8;

  --r-card: 18px;
  --r-btn: 14px;
  --r-tile: 10px;
  --r-chip: 9px;
  --edge: 20px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #93C5FD; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--edge); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.main { display: flex; flex-direction: column; gap: 56px; padding-bottom: 40px; }

/* Colour helpers: set --c on an element, get the bright colour and its 14 % tint. */
.c-target { --c: var(--target); --t: rgba(251, 191, 36, 0.14); }
.c-weekly { --c: var(--weekly); --t: rgba(255, 138, 91, 0.14); }
.c-task { --c: var(--task); --t: rgba(96, 165, 250, 0.14); }
.c-subtask { --c: var(--subtask); --t: rgba(74, 222, 128, 0.14); }
.c-ritual { --c: var(--ritual); --t: rgba(167, 139, 250, 0.14); }
.c-rewrite { --c: var(--rewrite); --t: rgba(251, 113, 133, 0.14); }
.c-focus { --c: var(--focus); --t: rgba(45, 212, 191, 0.14); }
.c-pink { --c: var(--pink); --t: rgba(232, 121, 249, 0.14); }
.c-network { --c: var(--network); --t: rgba(56, 189, 248, 0.14); }
.accent, .small.accent { color: var(--c, var(--gold)); }
.gold { color: var(--gold); }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; font-weight: 600; letter-spacing: -0.4px; }
.brand:hover { color: var(--text); }
.logo { width: 32px; height: 32px; border-radius: 7px; flex-shrink: 0; }
.top-links { display: flex; align-items: center; gap: 28px; }
.top-links .nav { display: none; color: var(--grey); font-size: 15px; font-weight: 600; }
.top-links .nav:hover { color: var(--text); }
.top-download { min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 600; }

/* Type */
.eyebrow { font-size: 13px; font-weight: 500; color: var(--grey); }
h1 { font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -0.8px; }
h2 { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.5px; }
.lead { font-size: 17px; line-height: 24px; color: var(--grey); }
.small { font-size: 13px; line-height: 18px; color: var(--quiet); }
.link { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; align-self: flex-start; }

/* Buttons */
.btns { display: flex; flex-direction: column; gap: 12px; }
.btn {
  min-height: 52px; border-radius: var(--r-btn); padding: 0 24px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.2px; border: 0; cursor: pointer; font-family: inherit;
}
.btn img, .btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { color: var(--on-gold); filter: brightness(1.05); }
.btn-dark { background: var(--card); border: 1px solid var(--line); color: var(--text); }
.btn-dark:hover { color: var(--text); background: var(--raised); }
.note { font-size: 13px; color: var(--quiet); text-align: center; }

/* Pill label */
.pill {
  align-self: flex-start; min-height: 26px; padding: 0 10px; border-radius: var(--r-chip);
  background: var(--t); color: var(--c); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center;
}

/* Cards and rows */
.card { background: var(--card); border-radius: var(--r-card); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.card-pad { padding: 20px; }
.rows { padding: 6px 0; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; }
.row + .row { border-top: 1px solid var(--line); margin: 0 20px; padding-left: 0; padding-right: 0; }
.row-title { font-size: 17px; font-weight: 600; }
.row-sub { font-size: 15px; line-height: 20px; color: var(--grey); }
.row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile {
  width: 40px; height: 40px; border-radius: var(--r-tile); background: var(--t); color: var(--c);
  font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tile svg { width: 20px; height: 20px; }
.dots { display: flex; flex-direction: column; gap: 12px; }
.dot-item { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 20px; }
.dot-item::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: var(--c); margin-top: 6px; flex-shrink: 0; }

/* Hero */
.hero { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero-phone { display: none; }

/* 3-6-9 */
.quote { background: rgba(167, 139, 250, 0.14); border-radius: var(--r-card); padding: 24px 20px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.quote-mark { font-size: 56px; line-height: 40px; height: 32px; font-weight: 700; color: var(--ritual); }
.quote blockquote { margin: 0; font-size: 24px; line-height: 31px; font-weight: 700; letter-spacing: -0.4px; }
.quote figcaption { font-size: 13px; line-height: 18px; color: var(--grey); }
.steps { list-style: none; margin: 0; }
.step-num {
  width: 52px; height: 52px; border-radius: var(--r-btn); background: rgba(167, 139, 250, 0.14); color: var(--ritual);
  font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step { padding-top: 16px; padding-bottom: 16px; gap: 16px; }

/* Analysis */
.score { display: flex; align-items: center; gap: 16px; }
.ring {
  width: 84px; height: 84px; border-radius: 50%; border: 9px solid var(--subtask); border-right-color: rgba(248, 113, 113, 0.55);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.split-line { height: 1px; background: var(--line); }

/* Features */
.group-label { font-size: 13px; font-weight: 600; color: var(--grey); letter-spacing: 0.4px; text-transform: uppercase; padding: 8px 4px 0; }
.features-list { list-style: none; margin: 0; }

/* Network cards (desktop) use .feature-grid; on phone they are rows */
.num-badge { font-size: 18px; }

/* Final download */
.cta { padding: 28px 20px; display: flex; flex-direction: column; gap: 16px; text-align: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 16px 0 24px; display: flex; flex-direction: column; gap: 8px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { min-height: 44px; display: flex; align-items: center; font-size: 15px; }
.footer small { font-size: 12px; color: var(--quiet); }

/* Side pages (privacy, terms, support, login, download) */
.page-title { padding-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.doc { padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; font-size: 15px; line-height: 22px; color: var(--grey); }
.doc h2 { font-size: 20px; line-height: 26px; color: var(--text); margin-top: 8px; }
.doc h3 { font-size: 17px; line-height: 22px; color: var(--text); }
.doc ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc strong { color: var(--text); }
.form { max-width: 440px; width: 100%; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; color: var(--grey); padding: 0 4px; }
.input {
  height: 48px; border: 0; border-radius: 12px; background: var(--card); color: var(--text); padding: 0 16px;
  font-size: 17px; font-family: inherit; caret-color: var(--gold);
}
.input::placeholder { color: var(--quiet); }
.error { color: var(--delete); font-size: 15px; }

/* Download banner (phones only; desktop never sees it) */
.install-app-banner { display: none; }
body.device-ios .install-app-banner.is-visible,
body.device-android .install-app-banner.is-visible {
  display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50;
  align-items: center; gap: 4px; padding: 10px 4px 10px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
body.has-install-banner { padding-bottom: 104px; }
.install-app-banner__main { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 12px; color: var(--text); }
.install-app-banner__main:hover { color: var(--text); }
.install-app-banner__icon { width: 44px; height: 44px; border-radius: var(--r-tile); flex-shrink: 0; }
.install-app-banner__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.install-app-banner__title { font-size: 15px; line-height: 20px; font-weight: 600; }
.install-app-banner__store { font-size: 13px; line-height: 18px; color: var(--grey); display: flex; align-items: center; gap: 4px; }
.install-app-banner__store img { width: 13px; height: 13px; }
.install-app-banner__get { height: 36px; padding: 0 14px; border-radius: 18px; background: var(--text); color: var(--on-gold); font-size: 15px; font-weight: 600; display: flex; align-items: center; flex-shrink: 0; }
.install-app-banner__close { width: 36px; height: 44px; flex-shrink: 0; background: transparent; border: 0; padding: 0; color: var(--quiet); font-size: 22px; line-height: 22px; cursor: pointer; }

/* Desktop */
@media (min-width: 900px) {
  .wrap { padding: 0 40px; }
  .main { gap: 96px; padding-bottom: 48px; }
  .top { padding-top: 28px; }
  .logo { width: 36px; height: 36px; border-radius: 8px; }
  .brand { font-size: 18px; }
  .top-links .nav { display: inline; }
  .top-download { min-height: 44px; padding: 0 20px; border-radius: var(--r-btn); background: var(--raised); border: 1px solid var(--line); color: var(--text); }
  .top-download:hover { color: var(--text); }
  h1 { font-size: 60px; line-height: 64px; letter-spacing: -1.6px; }
  h2 { font-size: 40px; line-height: 46px; letter-spacing: -0.9px; }
  .lead { font-size: 18px; line-height: 26px; max-width: 720px; }
  .hero { flex-direction: row; align-items: center; justify-content: space-between; gap: 56px; padding-top: 40px; }
  .hero .lead { font-size: 19px; line-height: 28px; }
  .hero-copy { max-width: 640px; gap: 24px; }
  .hero .btns { flex-direction: row; flex-wrap: wrap; }
  .hero .note { text-align: left; }
  .btn { min-height: 56px; padding: 0 28px; }
  .hero-phone { display: flex; width: 320px; flex-shrink: 0; flex-direction: column; gap: 14px; padding: 24px 18px; border-radius: 40px; }
  .hero-phone .mini { background: var(--raised); border-radius: var(--r-btn); padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
  .hero-phone .mini .tile { font-size: 20px; }
  .hero-phone .mini-sub { font-size: 13px; color: var(--grey); }
  .quote { padding: 48px 56px; border-radius: 24px; gap: 16px; }
  .quote-mark { font-size: 88px; line-height: 60px; height: 48px; }
  .quote blockquote { font-size: 40px; line-height: 50px; letter-spacing: -0.9px; max-width: 900px; }
  .quote figcaption { font-size: 16px; line-height: 22px; }

  /* lists become grids of cards */
  .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; background: none; box-shadow: none; padding: 0; }
  .grid3 > .row, .grid3 > li { background: var(--card); border-radius: var(--r-card); padding: 20px; margin: 0; border-top: 0; align-items: flex-start; }
  .steps.grid3 > li { flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; }
  .steps.grid3 .step-num { width: auto; height: auto; background: none; font-size: 44px; line-height: 1; }
  .steps.grid3 .row-title { font-size: 20px; }
  .network-cards.grid3 > li { flex-direction: column; gap: 12px; padding: 28px; }
  .network-cards .row-title { font-size: 20px; }
  .tile { width: 44px; height: 44px; border-radius: 12px; font-size: 18px; }
  .analysis { flex-direction: row; align-items: center; gap: 56px; }
  .analysis > .stack:first-child { flex: 1; }
  .analysis .card { width: 440px; flex-shrink: 0; padding: 28px; }
  .ring { width: 104px; height: 104px; border-width: 10px; font-size: 24px; }
  .cta { padding: 56px 48px; border-radius: 24px; align-items: center; }
  .cta .btns { flex-direction: row; justify-content: center; }
  .footer { flex-direction: row-reverse; justify-content: space-between; align-items: center; padding-top: 24px; }
  .footer-links a { font-size: 14px; min-height: 0; }
  .footer small { font-size: 14px; }
  .proof { max-width: 720px; }
  .doc { padding: 40px 48px; font-size: 16px; line-height: 24px; }
}
