/* DayBright website. Colours mirror the app's DB.Colors tokens (light and dark). */
:root {
  --paper: #fffdf7;
  --card: #ffffff;
  --ink: #1e1b16;
  --ink-2: #6b655c;
  --line: rgba(30, 27, 22, 0.1);
  --sun: #ffc53d;
  --sun-deep: #ff9f1c;
  --sky: #6db6ff;
  --coral: #ff6f61;
  --mint: #7ed3a6;
  --lilac: #b39ddb;
  --cloud: #d9d4cb;
  --hero-top: #fff8ea;
  --hero-bottom: #ffd79a;
  --tint: #fff6e3;
  --shadow: 0 24px 60px rgba(84, 60, 10, 0.12);
  --r-card: 28px;
  --r-tile: 20px;
  --r-chip: 14px;
  --wrap: min(1120px, calc(100vw - 2rem));
  --font-display: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121014;
    --card: #1c1920;
    --ink: #f5f1e8;
    --ink-2: #b8b1a6;
    --line: rgba(245, 241, 232, 0.12);
    --sun: #ffd166;
    --sun-deep: #ff9f1c;
    --sky: #4a90e2;
    --coral: #ff8a7a;
    --mint: #5fbf8f;
    --lilac: #9c86c9;
    --cloud: #3a363f;
    --hero-top: #1c1920;
    --hero-bottom: #3a2a10;
    --tint: #171419;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }

.skip {
  position: absolute; left: -999px; top: 0; padding: 0.5rem 1rem; background: var(--ink); color: var(--paper); border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; z-index: 100; }

.wrap { width: var(--wrap); margin: 0 auto; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.top__row { display: flex; align-items: center; gap: 1.5rem; padding: 0.7rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.brand__icon { width: 36px; height: 36px; border-radius: 9px; }
.top__nav { display: flex; gap: 1.3rem; margin-left: auto; font-size: 0.95rem; font-weight: 600; }
.top__nav a { text-decoration: none; color: var(--ink-2); }
.top__nav a:hover { color: var(--ink); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.3rem; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14); }
.button_small { padding: 0.55rem 1rem; font-size: 0.9rem; }
.button_ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.link { font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--sun); padding-bottom: 1px; }
.link:hover { border-bottom-color: var(--sun-deep); }
.eyebrow {
  margin: 0 0 0.9rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun-deep);
}
.eyebrow_light { color: var(--sun); }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--sun) 45%, transparent), transparent 40%),
    linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 3rem; align-items: center; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
}
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; font-weight: 800; margin: 0 0 1.1rem; }
.hero__lede { font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); max-width: 34rem; margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.badge { display: inline-flex; line-height: 0; border-radius: 10px; transition: transform 0.18s ease; }
.badge:hover { transform: translateY(-2px); }
.badge img { width: 162px; height: auto; }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; list-style: none; padding: 0; margin: 1.6rem 0 0; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.facts li::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sun-deep); margin-right: 0.5rem; vertical-align: middle; }

.hero__visual { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 420px; }
.hero__sun {
  /* sun.webp has an opaque yellow background: clip to the sun disc itself */
  position: absolute; width: min(130%, 640px); top: -24%; left: 50%; transform: translateX(-50%);
  clip-path: circle(30.5% at 50% 50%); opacity: 0.96; pointer-events: none;
}
.phone {
  margin: 0; width: min(100%, 250px); border-radius: 42px; border: 7px solid #1d1d1f; background: #1d1d1f;
  box-shadow: var(--shadow); overflow: hidden; position: relative; z-index: 1;
}
.phone img { width: 100%; border-radius: 35px; }
.phone_hero { width: min(100%, 290px); }

@media (prefers-reduced-motion: no-preference) {
  .phone_hero { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__sun { animation: glow 6s ease-in-out infinite alternate; }
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes glow { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.04); } }

/* Sections */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section_tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 40rem; margin-bottom: 2rem; }
.section__lede { color: var(--ink-2); font-size: 1.05rem; margin-top: 0.8rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.6rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.step h3 { margin: 0.9rem 0 0.5rem; }
.step p { color: var(--ink-2); }
.chip { display: inline-block; padding: 0.3rem 0.7rem; border-radius: var(--r-chip); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #1e1b16; }
.chip_sun { background: var(--sun); }
.chip_sky { background: var(--sky); }
.chip_lilac { background: var(--lilac); }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.shot .phone { width: min(100%, 230px); }
.shot figcaption { text-align: center; max-width: 16rem; }
.shot figcaption strong { display: block; font-family: var(--font-display); margin-bottom: 0.2rem; }
.shot figcaption span { color: var(--ink-2); font-size: 0.95rem; }

.privacy { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: start; }
.privacy__intro .link { display: inline-block; margin-top: 1.2rem; }
.privacy__points { display: grid; gap: 1rem; }
.point { padding: 1.3rem 1.5rem; border-radius: var(--r-tile); background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--mint); }
.point:nth-child(2) { border-left-color: var(--sky); }
.point:nth-child(3) { border-left-color: var(--lilac); }
.point h3 { margin-bottom: 0.35rem; }
.point p { color: var(--ink-2); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.panel { padding: clamp(1.5rem, 3vw, 2.4rem); }
.panel h2 { font-size: 1.6rem; }
.panel_plus { background: linear-gradient(160deg, color-mix(in srgb, var(--sun) 28%, var(--card)) 0%, var(--card) 60%); }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.pills li { padding: 0.4rem 0.8rem; border-radius: 999px; background: color-mix(in srgb, var(--cloud) 55%, transparent); font-size: 0.86rem; font-weight: 700; }
.list { margin: 1.2rem 0 0; padding-left: 1.2rem; line-height: 1.55; }
.list li + li { margin-top: 0.55rem; }
.panel__note { margin-top: 1.3rem; color: var(--ink-2); font-size: 0.95rem; }

.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sun-deep); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.7rem; color: var(--ink-2); }

.cta {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr); gap: 2rem; align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem); border-radius: var(--r-card);
  background: linear-gradient(135deg, #1e1b16 0%, #3a2a10 100%); color: #f5f1e8;
}
.cta h2 { margin: 0.4rem 0 1rem; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.cta p { color: rgba(245, 241, 232, 0.8); }
.cta a:not(.badge):not(.button) { color: #fff; font-weight: 700; }
.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.cta .button_ghost { color: #f5f1e8; border-color: rgba(245, 241, 232, 0.4); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: 0.92rem; color: var(--ink-2); }
.foot__row { display: grid; gap: 0.9rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot__links a { text-decoration: none; font-weight: 700; color: var(--ink); }
.foot__links a:hover { color: var(--sun-deep); }
.foot__made a { font-weight: 700; color: var(--ink); text-decoration: none; }
.foot__fine { font-size: 0.82rem; }

/* Legal pages */
.doc { max-width: 46rem; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.08; margin-bottom: 0.5rem; }
.doc h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; }
.doc p { margin: 0 0 0.9rem; }
.doc ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.doc li { margin-bottom: 0.4rem; }
.doc a { color: var(--ink); text-decoration-color: var(--sun-deep); }
.doc__meta { color: var(--ink-2); margin-bottom: 1.5rem; }
.doc__other { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--ink-2); }

/* Responsive */
@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .top__nav { display: none; }
  .top__row .button_small { margin-left: auto; }
  .hero__grid, .privacy, .split, .cta { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { gap: 1.5rem; padding-top: 2.5rem; }
  .hero__visual { order: -1; min-height: 0; padding-top: 2rem; }
  .hero__sun { top: -18%; width: min(120%, 420px); }
  .phone_hero { width: min(100%, 230px); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 1.3rem; }
}
