/* One Today website — Daylight design system (matches the app). */
:root {
  --ground: #f3f5f2;
  --surface: #ffffff;
  --ink: #16211e;
  --muted: #55625e;
  --line: #dde3df;
  --line-soft: #edf1ee;
  --accent: #0b6e60;
  --accent-hover: #08564b;
  --on-accent: #ffffff;
  --accent-tint: #e1f0ec;
  --on-accent-tint: #0b4f45;
  --marigold: #f2b441;
  --marigold-tint: #fcefd2;
  --marigold-ink: #7a5000;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 24px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0f1614;
    --surface: #18211e;
    --ink: #e8eeeb;
    --muted: #a3b1ac;
    --line: #2a3632;
    --line-soft: #212b28;
    --accent: #4fc2ae;
    --accent-hover: #6fd3c1;
    --on-accent: #062a24;
    --accent-tint: #173a33;
    --on-accent-tint: #a8e3d6;
    --marigold-tint: #3a2e12;
    --marigold-ink: #f6cf7a;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--surface);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 50;
}

.skip-link:focus {
  left: 12px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-right: auto;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
}

.menu {
  display: none;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .menu {
    display: block;
    position: relative;
  }

  .menu summary {
    list-style: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
  }

  .menu summary::-webkit-details-marker {
    display: none;
  }

  .menu nav {
    position: absolute;
    right: 0;
    top: 52px;
    width: min(260px, calc(100vw - 32px));
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 8px;
    display: grid;
    box-shadow: 0 18px 40px rgb(0 0 0 / 0.12);
  }

  .menu nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .menu nav a:hover {
    background: var(--ground);
  }

  .site-header .header-cta {
    display: none;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--muted);
}

.btn-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.95rem;
  border-radius: 999px;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---- Sections ---- */
.section {
  padding: 72px 0;
}

.section-tight {
  padding: 40px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-accent-tint);
  background: var(--accent-tint);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 60ch;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.center .lead {
  margin-inline: auto;
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.center.section-head {
  margin-inline: auto;
}

/* ---- Hero ---- */
.hero {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* ---- Phone mockup (pure HTML/CSS, mirrors the app's Today screen) ---- */
.phone {
  width: min(340px, 100%);
  margin-inline: auto;
  background: var(--ground);
  border: 10px solid #16211e;
  border-radius: 44px;
  padding: 22px 16px 16px;
  box-shadow: 0 30px 60px rgb(22 33 30 / 0.18);
  font-size: 13px;
  line-height: 1.4;
}

.phone .p-date {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.phone .p-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 2px 0 14px;
}

.phone .p-title strong {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.phone .p-chip {
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: var(--on-accent);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.phone .p-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 14px;
  text-align: center;
}

.phone .p-week span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.phone .p-week .on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.phone .p-week .fav {
  background: var(--marigold);
  border-color: var(--marigold);
  color: #16211e;
}

.phone .p-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.phone .p-photo {
  height: 120px;
  background:
    radial-gradient(circle at 30% 40%, #f6c27a 0 18%, transparent 19%),
    linear-gradient(160deg, #f2a65a, #e46f5c 55%, #9d4f6b);
}

.phone .p-body {
  padding: 12px 14px;
}

.phone .p-kept {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.phone .p-text {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  margin: 4px 0 0;
  letter-spacing: -0.01em;
}

.phone .p-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px 6px 10px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}

.phone .p-nav {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 4px;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
}

.phone .p-nav .on {
  color: var(--accent);
  font-weight: 800;
}

/* ---- Cards & grids ---- */
.grid {
  display: grid;
  gap: 16px;
}

.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));
}

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card.tint {
  background: var(--accent-tint);
  border-color: transparent;
}

.card.gold {
  background: var(--marigold-tint);
  border-color: transparent;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  color: var(--on-accent-tint);
  margin-bottom: 16px;
}

.icon svg {
  width: 24px;
  height: 24px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checks svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-top: 2px;
}

.steps {
  counter-reset: step;
}

.steps .card::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

/* ---- Screenshot strip ---- */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x mandatory;
}

.shots figure {
  margin: 0;
  scroll-snap-align: start;
}

.shots img {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.shots figcaption {
  text-align: center;
  font-weight: 600;
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.95rem;
}

/* ---- Themes swatches ---- */
.swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.swatch {
  border-radius: 18px;
  padding: 14px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgb(0 0 0 / 0.06);
}

.swatch b {
  font-family: var(--display);
  font-size: 1.05rem;
}

.swatch i {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

/* ---- FAQ ---- */
.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  color: var(--muted);
}

/* ---- Article / long-form ---- */
.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: 1.6em;
}

.prose h3 {
  margin-top: 1.4em;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line);
}

.breadcrumb a {
  color: var(--muted);
}

.note {
  background: var(--marigold-tint);
  color: var(--ink);
  border-radius: 18px;
  padding: 18px 20px;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 32px;
  padding: clamp(32px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.cta-band h2 {
  color: inherit;
  margin-bottom: 8px;
}

.cta-band p {
  margin: 0;
  opacity: 0.9;
}

.cta-band .btn {
  background: var(--surface);
  color: var(--ink);
}

@media (max-width: 760px) {
  .cta-band {
    grid-template-columns: 1fr;
  }
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 96px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.site-footer h2 {
  font-family: var(--body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

/* Sticky install bar on phones */
.install-bar {
  display: none;
}

@media (max-width: 640px) {
  .install-bar {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
  }

  .install-bar .btn {
    width: 100%;
    box-shadow: 0 12px 30px rgb(11 110 96 / 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}

/* Long-form sections share the page's left edge, with a readable line length. */
.wrap.prose {
  max-width: none;
}

.wrap.prose > * {
  max-width: 720px;
}
