/* Odo website. Colors follow the app's Palette (HABIT/Shared/Theme.swift). */

:root {
  --ink: #34304F;
  --ink-2: #4E4766;
  --muted: #625A78;
  --surface: #FFFBF7;
  --ground-top: #FBE7DB;
  --ground-mid: #F6E6E6;
  --ground-bottom: #EEE6F2;
  --line: #EBD8CF;
  --coral: #E5866D;
  --coral-ink: #B8553E;
  --green: #2D6E5F;
  --dusk-1: #3E5873;
  --dusk-2: #7F76A6;
  --dusk-3: #E3A894;
  --page: var(--ground-mid);
  --card: var(--surface);
  --shadow: 0 1px 2px rgba(52, 48, 79, .06), 0 8px 24px rgba(52, 48, 79, .08);
  --radius: 22px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F4ECF0;
    --ink-2: #DCD2E0;
    --muted: #B1A7BF;
    --surface: #2A2740;
    --ground-top: #262338;
    --ground-mid: #211E31;
    --ground-bottom: #1C1A2A;
    --line: #3A3652;
    --coral-ink: #F0A08A;
    --green: #7CC6B2;
    --page: var(--ground-mid);
    --card: var(--surface);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #F4ECF0; --ink-2: #DCD2E0; --muted: #B1A7BF; --surface: #2A2740;
  --ground-top: #262338; --ground-mid: #211E31; --ground-bottom: #1C1A2A; --line: #3A3652;
  --coral-ink: #F0A08A; --green: #7CC6B2; --page: var(--ground-mid); --card: var(--surface);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-ink); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; }
.site-header.solid { position: static; background: var(--ground-top); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: inherit; text-decoration: none; font-weight: 600; font-size: 15px; opacity: .85; }
.nav-links a:hover { opacity: 1; }
.on-dusk .nav, .on-dusk .brand { color: #fff; }
@media (max-width: 600px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 16px; } }

/* Hero: the app icon's dusk sky */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, var(--dusk-1) 0%, var(--dusk-2) 55%, var(--dusk-3) 100%);
  padding: 128px 0 0;
}
.hero::after { /* soft ground the phone stands on */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: var(--page); clip-path: ellipse(75% 100% at 50% 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); font-weight: 800; }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); margin-top: 20px; max-width: 30em; color: rgba(255, 255, 255, .88); }
.hero-copy { padding-bottom: 150px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.hero-phone { justify-self: center; position: relative; padding-bottom: 40px; }
.hero-odo { position: absolute; width: 132px; left: -84px; bottom: 70px; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 10px 20px rgba(52, 48, 79, .25)); }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-odo { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .hero { padding-top: 104px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-copy { padding-bottom: 8px; }
  .hero-odo { width: 96px; left: -52px; bottom: 60px; }
}

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  border-radius: 12px; padding: 9px 18px 9px 14px; line-height: 1.1;
  border: 1px solid rgba(255, 255, 255, .25);
}
.badge svg { width: 24px; height: 24px; }
.badge small { display: block; font-size: 11px; opacity: .8; }
.badge strong { font-size: 18px; font-weight: 600; }
.chip { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .9); }

/* Phone frame */
.phone {
  width: 300px; aspect-ratio: 1320 / 2868; border-radius: 48px; padding: 10px;
  background: #1D1B29; box-shadow: 0 30px 60px rgba(29, 27, 41, .35), inset 0 0 0 2px #3B3850;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
/* Dynamic Island, matched to the Simulator's (284 x 110 px at y 42 on a 1320 px wide screenshot) and drawn a hair
   larger, so a screenshot that already shows one never peeks out. --screen is the screen width inside the bezel. */
.phone { position: relative; --screen: 280px; }
.phone::before { content: ""; position: absolute; z-index: 1; left: 50%; transform: translateX(-50%); border-radius: 99px; background: #000;
  top: calc(10px + var(--screen) * .029); width: calc(var(--screen) * .222); height: calc(var(--screen) * .088); }
@media (max-width: 600px) { .phone { width: 250px; --screen: 230px; border-radius: 40px; } .phone img { border-radius: 31px; } }

/* Sections */
section { padding: 96px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-ink); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; margin-top: 10px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 19px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Build / Avoid split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--card); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.panel h3 { font-size: 28px; font-weight: 800; }
.panel p { margin-top: 12px; color: var(--muted); }
.panel ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.panel li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-weight: 600; }
.panel li > span:last-child { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.panel li small { font-weight: 500; color: var(--muted); }
.tag { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; display: inline-block; margin-bottom: 14px; }
.build .tag { background: #DDEFE8; color: #2D6E5F; }
.avoid .tag { background: #E7E2F3; color: #4E4766; }
/* Rows fill with progress, like the Today tiles. --p is set per row, --fill animates to it. */
@property --fill { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.fills li { --base: #EEEAF6; --tint: #DCD4EE; --solid: #34304F; color: #34304F;
  background: linear-gradient(90deg, var(--tint) var(--fill), var(--base) var(--fill)); transition: --fill 1.4s cubic-bezier(.2, .7, .2, 1); }
.fills.in li { --fill: var(--p); }
.fills li.g { --base: #EDF5F1; --tint: #CDE6DA; --solid: #3E8E78; color: #24584C; }
.fills li.o { --base: #FCF1E6; --tint: #F5DABF; --solid: #C9883E; color: #7A4E1E; }
.fills li.t { --base: #EAF4F6; --tint: #C6E3E8; --solid: #3E95A3; color: #235B64; }
.fills .dot { background: var(--solid); }
.fills .dot:empty { background: none; box-shadow: inset 0 0 0 3px var(--solid); border-radius: 50%; }
.fills .dot.lock { background: var(--solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Crect x='9' y='13' width='10' height='8' rx='2'/%3E%3Cpath d='M11 13v-2a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center/100%; box-shadow: none; border-radius: 9px; }
@media (prefers-reduced-motion: reduce) { .fills li { transition: none; } }
.build li small, .avoid li small { color: inherit; opacity: .7; }
.dot { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; font-size: 15px; }

/* Feature tiles, colored like the Today tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { border-radius: var(--radius); padding: 26px; color: #34304F; }
.tile h3 { font-size: 21px; font-weight: 800; margin-top: 14px; }
.tile p { margin-top: 8px; font-size: 16px; color: #4E4766; }
.tile .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .7); }
.tile .ico svg { width: 24px; height: 24px; }
.t-green { background: #D9EDE4; } .t-lilac { background: #E3DDF2; } .t-peach { background: #FBE2CF; }
.t-teal { background: #D3EAEE; } .t-rose { background: #F7DCDA; } .t-blue { background: #DDE4F4; }

/* Showcase rows */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.show + .show { margin-top: 96px; }
.show.flip > :first-child { order: 2; }
.show h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-top: 10px; }
.show p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.show .media { justify-self: center; width: 100%; display: grid; justify-items: center; }
.plot-card { width: 100%; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: #F7E4DF; }
@media (max-width: 860px) {
  .show { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .show.flip > :first-child { order: 0; }
  .show + .show { margin-top: 72px; }
}
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; text-align: left; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
@media (max-width: 860px) { .checks { max-width: 420px; margin-left: auto; margin-right: auto; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--ink); color: var(--page); font-weight: 800; }
.step h3 { font-size: 21px; font-weight: 800; margin-top: 16px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Privacy band */
.privacy-band { background: linear-gradient(180deg, var(--ground-top), var(--ground-bottom)); }
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .promises { grid-template-columns: 1fr; } }
.promise { background: var(--card); border-radius: 18px; padding: 22px; }
.promise strong { display: block; font-size: 18px; }
.promise span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border-radius: 18px; padding: 0 22px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 28px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 26px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* Closing call */
.closer { text-align: center; color: #fff; background: linear-gradient(180deg, var(--dusk-2), var(--dusk-1)); border-radius: 32px; padding: 72px 24px; }
.closer h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
.closer p { margin-top: 14px; color: rgba(255, 255, 255, .85); font-size: 19px; }
.closer img { width: 110px; margin: 0 auto 18px; }
.closer .hero-cta { justify-content: center; }

/* Footer */
.site-footer { padding: 48px 0 56px; color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Legal and support pages */
.doc { max-width: 720px; margin: 0 auto; padding: 64px 0 32px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); font-weight: 800; }
.doc .updated { color: var(--muted); margin-top: 10px; }
.doc .summary { background: var(--card); border-radius: var(--radius); padding: 24px 26px; margin: 32px 0 8px; box-shadow: var(--shadow); }
.doc .summary ul { margin: 12px 0 0; padding-left: 20px; }
.doc h2 { font-size: 24px; font-weight: 800; margin: 44px 0 12px; }
.doc h3 { font-size: 19px; font-weight: 700; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; color: var(--ink); }
.table-scroll { overflow-x: auto; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--card); border-radius: var(--radius); padding: 24px 26px; margin-top: 28px; box-shadow: var(--shadow); }
.btn { display: inline-block; background: var(--ink); color: var(--page); text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 14px; }

.not-found { text-align: center; padding: 120px 0 80px; }
.not-found img { width: 140px; margin: 0 auto 24px; }
.not-found h1 { font-size: 44px; font-weight: 800; }
.not-found p { margin-top: 12px; color: var(--muted); }
.not-found .btn { margin-top: 28px; }

@media (max-width: 480px) {
  .panel { padding: 24px 20px; }
  .panel li small { display: none; }
}
.panel li span { white-space: nowrap; }

/* Hero facts line */
.facts { margin-top: 18px; font-weight: 700; font-size: 17px; color: #fff; }
.hero-odo, .closer img { height: auto; }

/* Block levels, under the Build / Avoid panels */
.levels { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 16px; margin-top: 20px; align-items: stretch; }
.levels-head { align-self: center; padding-right: 12px; }
.levels-head h3 { font-size: 22px; font-weight: 800; }
.levels-head p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.level { background: var(--card); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); }
.level strong { display: block; font-size: 18px; }
.level span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .levels { grid-template-columns: repeat(3, 1fr); } .levels-head { grid-column: 1 / -1; } }
@media (max-width: 600px) { .levels { grid-template-columns: 1fr; } }

/* Three phones with captions */
.band { background: linear-gradient(180deg, var(--ground-top), var(--ground-bottom)); }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 72px; }
.screens figure { margin: 0; display: grid; justify-items: center; gap: 24px; text-align: center; }
.screens .phone { width: 270px; --screen: 250px; border-radius: 44px; }
.screens .phone img { border-radius: 34px; }
.screens figcaption { max-width: 280px; color: var(--muted); font-size: 16px; }
.screens figcaption strong { display: block; color: var(--ink); font-size: 20px; margin-bottom: 4px; }
@media (max-width: 900px) {
  .screens { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px 56px; padding: 0 16px 12px; scrollbar-width: none; }
  .screens::-webkit-scrollbar { display: none; }
  .screens figure { scroll-snap-align: center; }
}
@media (min-width: 561px) and (max-width: 900px) { .screens { grid-auto-columns: 44%; } }
.tiles { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }
.tile .ico { color: #4E4766; }

/* Plot clip */
.plot-video { display: block; width: 100%; height: auto; }

/* Dark mode: the app's own dark colors */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tile { color: var(--ink); }
  :root:not([data-theme="light"]) .tile p { color: var(--ink-2); }
  :root:not([data-theme="light"]) .tile .ico { background: rgba(255, 255, 255, .1); color: var(--ink); }
  :root:not([data-theme="light"]) .t-green { background: #1F3A34; }
  :root:not([data-theme="light"]) .t-teal { background: #1E3940; }
  :root:not([data-theme="light"]) .t-blue { background: #262E4A; }
  :root:not([data-theme="light"]) .plot-card { background: #211E31; }
  :root:not([data-theme="light"]) .fills li { --base: #34304F; --tint: #4E4673; --solid: #F4ECF0; color: var(--ink); }
  :root:not([data-theme="light"]) .fills li.g { --base: #1F3A34; --tint: #2D5F52; --solid: #7CC6B2; }
  :root:not([data-theme="light"]) .fills li.o { --base: #3D3024; --tint: #6B4F2C; --solid: #E0A460; }
  :root:not([data-theme="light"]) .fills li.t { --base: #1E3940; --tint: #2C6470; --solid: #6FC0CE; }
  :root:not([data-theme="light"]) .fills .dot { color: #211E31; }
  :root:not([data-theme="light"]) .fills .dot.lock { filter: invert(1) hue-rotate(180deg); }
  :root:not([data-theme="light"]) .build .tag { background: #1F3A34; color: #7CC6B2; }
  :root:not([data-theme="light"]) .avoid .tag { background: #34304F; color: #DCD2E0; }
}
