/* Glowday website.
   Colors: the app's "Rosé" palette (light and dark). Fonts: the app's fonts, served from this site.
   Light/dark follows the system; the header button overrides it (data-theme on <html>).

   Everything is built from the few values below: one spacing scale (4 px steps), one type scale,
   three corner sizes. New parts of the page use these values instead of new numbers. */
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-display: swap; src: url(fonts/cormorant-600.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 400; font-display: swap; src: url(fonts/nunito-400.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 600; font-display: swap; src: url(fonts/nunito-600.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 700; font-display: swap; src: url(fonts/nunito-700.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 800; font-display: swap; src: url(fonts/nunito-800.woff2) format('woff2'); }

:root {
  /* colors */
  --bg: #FFFAFB; --surface: #FFFFFF; --blush: #FDE7EE; --blush2: #F9D2DF; --ink: #40323B; --muted: #6a5a63;
  --line: #F3E1E8; --accent: #B5486F; --teal: #127B78; --soft: #FFF2F6;
  --shadow: 0 24px 60px rgba(181, 72, 111, .14); --phone-ring: transparent;
  --moon: block; --sun: none;
  /* spacing */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(56px, 9vw, 112px);
  /* type */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Nunito Sans', system-ui, sans-serif;
  --fs-display: clamp(56px, 8.4vw, 100px);
  --fs-h2: clamp(34px, 4.8vw, 56px);
  --fs-h3: 28px;
  --fs-lead: clamp(19px, 1.7vw, 21px);
  --fs-body: 18px;
  --fs-small: 15px;
  /* corners */
  --r-s: 12px; --r-m: 24px; --r-pill: 999px;
  --wrap: 1120px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #1F1A20; --surface: #2A2329; --blush: #45303D; --blush2: #5A3B4D; --ink: #FBEFF3; --muted: #C6ABB8;
  --line: #43353E; --accent: #F5A6BE; --teal: #6ED8D1; --soft: #261F25;
  --shadow: 0 24px 60px rgba(0, 0, 0, .35); --phone-ring: #43353E;
  --moon: none; --sun: block;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #1F1A20; --surface: #2A2329; --blush: #45303D; --blush2: #5A3B4D; --ink: #FBEFF3; --muted: #C6ABB8;
    --line: #43353E; --accent: #F5A6BE; --teal: #6ED8D1; --soft: #261F25;
    --shadow: 0 24px 60px rgba(0, 0, 0, .35); --phone-ring: #43353E;
    --moon: none; --sun: block;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blush2); color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-display); line-height: 1; }
h2 { font-size: var(--fs-h2); line-height: 1.06; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--s4); }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: var(--s3); top: -60px; background: var(--ink); color: var(--bg); padding: 10px var(--s4); border-radius: var(--r-s); z-index: 10; font-weight: 700; }
.skip:focus { top: var(--s3); }
main > section { padding-block: var(--section); }
section[id] { scroll-margin-top: 72px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1; min-height: 44px; }
.spark { width: 20px; height: 20px; fill: var(--accent); flex: none; }
.nav { display: flex; align-items: center; gap: var(--s1); }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; padding: var(--s2) var(--s3); min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--r-pill); }
.nav a:hover { background: var(--blush); }
.mode-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; margin-left: var(--s1); }
.mode-toggle:hover { border-color: var(--blush2); }
.mode-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mode-toggle .i-moon { display: var(--moon); }
.mode-toggle .i-sun { display: var(--sun); }
@media (max-width: 560px) { .nav a.opt { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border-radius: var(--r-pill); padding: var(--s3) 28px; font: 800 17px/1.2 var(--sans); text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
.btn-soft { background: var(--blush); color: var(--ink); }
.btn-soft:hover { background: var(--blush2); }
/* Buttons give a little when pressed */
.btn, .pill, .nav a, .mode-toggle, .swatches button, .modes button { transition: transform .15s ease, background-color .2s ease, border-color .2s ease; }
.btn:active, .pill:active, .nav a:active, .mode-toggle:active, .swatches button:active, .modes button:active { transform: scale(.97); }

/* ---------- hero: the five apps Glowday replaces, then the promise ---------- */
main > .hero { padding-block: clamp(40px, 6vw, 80px) var(--section); }
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: var(--s8); } }
.was { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin-bottom: var(--s5); font-weight: 700; font-size: 17px; color: var(--muted); }
.was-lead { color: var(--ink); }
.was s { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.lead { margin-top: var(--s5); font-size: var(--fs-lead); color: var(--muted); max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.note { margin-top: var(--s4); font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.phone { position: relative; width: min(320px, 78vw); margin-inline: auto; aspect-ratio: 9 / 16; border-radius: 44px; padding: 10px; background: #17121a; box-shadow: 0 0 0 1px var(--phone-ring), var(--shadow); }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: var(--blush); }
.phone-ctrl { position: absolute; inset: auto 22px 22px 22px; display: flex; justify-content: space-between; gap: var(--s2); pointer-events: none; }
.pill { pointer-events: auto; background: rgba(23, 18, 26, .72); color: #fff; border: 0; border-radius: var(--r-pill); padding: 10px var(--s4); min-height: 44px; font: 800 14px/1 var(--sans); cursor: pointer; }
.pill:hover { background: rgba(23, 18, 26, .86); }

/* ---------- stories: real app views next to short text ---------- */
.story-grid { display: grid; gap: var(--s7); align-items: center; }
.story-text { max-width: 30em; }
.story-text h2 { margin-bottom: var(--s5); }
.story-text p { color: var(--muted); font-size: var(--fs-lead); }
.shot { margin: 0; justify-self: center; }
.shot img { height: auto; }
.shot-card img { width: min(440px, 100%); }
.shot-phone img { width: min(280px, 72vw); filter: drop-shadow(0 16px 32px rgba(64, 50, 59, .2)); }
main > .story { padding-block: calc(var(--section) * .6); }
@media (min-width: 880px) {
  .story-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .story-flip .story-text { order: 2; }
}

/* ---------- the other features as a plain list, not cards ---------- */
.rest { border-top: 1px solid var(--line); }
.feats { display: grid; gap: 0 var(--s7); margin: var(--s7) 0 0; }
@media (min-width: 700px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feats { grid-template-columns: repeat(3, 1fr); } }
.feats div { padding: var(--s5) 0; border-top: 1px solid var(--line); }
.feats dt { font-family: var(--serif); font-weight: 600; font-size: var(--fs-h3); line-height: 1.1; margin-bottom: var(--s2); }
.feats dd { margin: 0; color: var(--muted); font-size: 17px; }
.langs { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); color: var(--muted); font-size: 17px; }

/* ---------- color themes: the one interactive moment of the page ---------- */
.looks { background: var(--soft); border-block: 1px solid var(--line); }
.looks-grid { display: grid; gap: var(--s6) var(--s8); grid-template-areas: 'head' 'pv' 'ctrl'; }
.looks-head { grid-area: head; }
.looks-head h2 { margin-bottom: var(--s5); }
.looks-head > p { color: var(--muted); font-size: var(--fs-lead); max-width: 30em; }
.looks-ctrl { grid-area: ctrl; display: grid; gap: var(--s3); }
.pv { grid-area: pv; justify-self: center; text-align: center; }
@media (min-width: 880px) {
  .looks-grid { grid-template-columns: 1.15fr .85fr; grid-template-areas: 'head pv' 'ctrl pv'; align-items: end; }
  .looks-ctrl { align-self: start; }
  .pv { align-self: center; }
}
.swatches { display: grid; gap: var(--s3); }
.sw-row { display: grid; gap: var(--s2); }
@media (min-width: 560px) { .sw-row { grid-template-columns: 96px 1fr; align-items: center; gap: var(--s4); } }
.sw-label { font-weight: 700; font-size: var(--fs-small); color: var(--muted); }
.sw-items, .modes { display: flex; flex-wrap: wrap; gap: var(--s2); }
.swatches button, .modes button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: var(--s2) var(--s4) var(--s2) var(--s2); border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 16px/1 var(--sans); cursor: pointer; }
.swatches button:hover, .modes button:hover { border-color: var(--blush2); }
.swatches button[aria-checked='true'], .modes button[aria-checked='true'] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.modes button { padding: var(--s2) 18px; }
.dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .06); flex: none; }

.pv-screen { width: min(300px, 78vw); border-radius: 44px; padding: 34px 18px 40px; border: 10px solid #17121a; background: var(--pv-bg); color: var(--pv-ink); text-align: left; box-shadow: 0 0 0 1px var(--phone-ring), var(--shadow); transition: background-color .35s ease, color .35s ease; }
.pv-screen p + p { margin-top: 0; }
.pv-title { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.2; margin: 6px 6px 14px; }
.pv-card { background: var(--pv-surface); border: 1px solid var(--pv-line); border-radius: 22px; padding: var(--s4); transition: background-color .35s ease, border-color .35s ease; }
.pv-head { display: flex; align-items: center; gap: var(--s3); padding-bottom: var(--s3); margin-bottom: 6px; border-bottom: 1px solid var(--pv-line); }
.pv-head b { display: block; font-weight: 800; font-size: 20px; line-height: 1.1; }
.pv-head span { color: var(--pv-muted); font-size: 14px; }
.pv-ring { width: 46px; height: 46px; transform: rotate(-90deg); flex: none; }
.pv-ring circle { fill: none; stroke: var(--pv-track); stroke-width: 6; }
.pv-ring .pv-ring-on { stroke: var(--pv-accent); stroke-linecap: round; stroke-dasharray: 67 100; transition: stroke .35s ease; }
.pv-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-weight: 700; font-size: 15px; }
.pv-row i { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--pv-box); display: grid; place-items: center; flex: none; transition: background-color .35s ease, border-color .35s ease; }
.pv-row.on { color: var(--pv-muted); }
.pv-row.on i { background: var(--pv-gold); border-color: var(--pv-gold); }
.pv-row svg { width: 16px; height: 16px; fill: none; stroke: var(--pv-on); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pv-week { margin-top: var(--s3); }
.pv-sub { margin-bottom: 10px; font-weight: 800; font-size: 14px; }
.pv-days { display: flex; justify-content: space-between; }
.pv-days span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--pv-track); color: var(--pv-muted); transition: background-color .35s ease, color .35s ease; }
.pv-days .on { background: var(--pv-accent); color: var(--pv-on); }
.pv-days .now { background: transparent; box-shadow: inset 0 0 0 2px var(--pv-accent); color: var(--pv-ink); }
.pv-name { margin-top: var(--s4); font-weight: 700; font-size: var(--fs-small); color: var(--muted); }

/* ---------- privacy and questions share one layout: heading left, list right ---------- */
.privacy-grid, .questions-grid { display: grid; gap: var(--s6); }
@media (min-width: 880px) { .privacy-grid, .questions-grid { grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: start; } }
.privacy-grid h2, .questions-grid h2 { margin-bottom: var(--s5); }
.privacy-grid p, .questions-grid > div > p { color: var(--muted); max-width: 26em; }
.checks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.checks li { display: flex; gap: var(--s3); align-items: flex-start; font-weight: 600; padding: 18px 0; border-bottom: 1px solid var(--line); }
.checks svg { width: 26px; height: 26px; flex: none; stroke: var(--teal); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.questions { border-top: 1px solid var(--line); }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 800; padding: 18px 0; min-height: 44px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent); }
/* plus that turns into a minus */
summary::after { content: ''; flex: none; width: 16px; height: 16px; background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat; transition: transform .2s ease; }
details[open] summary::after { background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat; transform: rotate(180deg); }
details p { color: var(--muted); padding-bottom: var(--s5); max-width: 36em; }

/* ---------- legal and support pages ---------- */
.page { padding: clamp(40px, 6vw, 72px) 0 var(--section); }
.page .wrap { max-width: 720px; }
.page h1 { font-size: clamp(44px, 7vw, 68px); margin-bottom: var(--s5); }
.page h2 { font-size: 30px; margin: var(--s7) 0 var(--s3); }
.page ul { padding-left: 1.2em; margin: var(--s4) 0 0; }
.page li + li { margin-top: var(--s2); }
.page address { font-style: normal; line-height: 1.7; }
.page .faq { margin-top: var(--s4); }
.updated { color: var(--muted); font-size: var(--fs-small); margin-bottom: var(--s4); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: var(--s7) 0; color: var(--muted); font-size: var(--fs-small); }
.foot { display: grid; gap: var(--s5); }
.foot-brand p { margin-top: var(--s1); max-width: 24em; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.foot-nav a { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot-nav a:hover { text-decoration: underline; }
.copy { padding-top: var(--s5); border-top: 1px solid var(--line); }
@media (min-width: 720px) {
  .foot { grid-template-columns: 1fr auto; align-items: start; }
  .copy { grid-column: 1 / -1; }
}

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  .btn { width: 100%; }
  .foot-nav { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .pill, .nav a, .mode-toggle, .swatches button, .modes button, .pv-screen, .pv-card, .pv-row i, .pv-ring .pv-ring-on, .pv-days span, summary::after { transition: none; }
  .btn:active, .pill:active, .nav a:active, .mode-toggle:active, .swatches button:active, .modes button:active { transform: none; }
}
