/* TodaciApp site. Palette taken from the app itself (mint paper, emerald card,
   bronze medal). One family, Schibsted Grotesk, with tabular figures for times.
   The memorable element is the 25-day grid and the phase chart; everything
   around them stays quiet. Generated pages: see scripts/build.mjs. */

:root {
  --paper: #f2f6f4;
  --white: #ffffff;
  --ink: #0f2b24;
  --ink-2: #3d544d;
  --muted: #62766f;
  --emerald: #0b7a60;
  --emerald-deep: #075443;
  --leaf: #d5e9e0;
  --leaf-2: #e6f1ec;
  --copper: #b4673b;
  --copper-soft: #f4e4d8;
  --gold: #c99a3a;
  --line: rgba(15, 43, 36, .12);
  --line-strong: rgba(15, 43, 36, .24);
  --font: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1200px;
  --nav: 68px;
  --r-photo: 28px;
  --r-ui: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; top: 8px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 10px; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Type scale (1.25) ---------- */
h1, h2, h3 { font-weight: 700; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.6vw, 3.9rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.06; letter-spacing: -.03em; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; }
.lead { margin-top: 18px; color: var(--ink-2); font-size: 1.12rem; max-width: 34em; text-wrap: pretty; }
.tag { display: inline-block; margin-bottom: 18px; padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--leaf); color: var(--emerald-deep); }
.section { padding: 128px 0; }
.section-head { margin-bottom: 48px; }

/* ---------- Buttons and links ---------- */
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px; border-radius: var(--r-ui); background: #000; color: #fff; text-decoration: none; line-height: 1.1; transition: background .2s; }
.store-btn:hover { background: var(--emerald-deep); }
.store-btn svg { width: 24px; height: 24px; flex: none; }
.store-btn small { display: block; font-size: .72rem; opacity: .85; }
.store-btn strong { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.store-btn--light { background: #fff; color: #000; }
.store-btn--light:hover { background: var(--leaf); }
.text-link { color: var(--emerald-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: rgba(11,122,96,.35); transition: text-decoration-color .2s; }
.text-link:hover { text-decoration-color: currentColor; }
.text-link--light { color: #fff; text-decoration-color: rgba(255,255,255,.4); display: inline-block; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s; }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--emerald-deep); }
.btn--ghost { border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--brand { background: var(--emerald); color: #fff; }
.btn--brand:hover { background: var(--emerald-deep); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav); background: rgba(242,246,244,.86); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); transition: box-shadow .25s; }
.nav--solid, .nav--scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.08rem; letter-spacing: -.015em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links > a:not(.btn) { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-2); }
.nav__links > a:not(.btn):hover { color: var(--ink); }
.nav__links .btn { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.lang__btn:hover { background: rgba(15,43,36,.06); }
.lang__btn svg { width: 18px; height: 18px; }
.lang__menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 200px; padding: 8px; border-radius: 16px; background: var(--white); box-shadow: 0 24px 48px -20px rgba(15,43,36,.35), 0 0 0 1px var(--line); display: none; max-height: 70vh; overflow: auto; }
.lang--open .lang__menu { display: grid; }
.lang__menu a { padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: .95rem; }
.lang__menu a:hover { background: var(--paper); }
.lang__menu a[aria-current="true"] { color: var(--emerald); font-weight: 700; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .25s, background .2s; }
.nav__toggle span { position: relative; }
.nav__toggle span::before, .nav__toggle span::after { content: ''; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav--open .nav__toggle span { background: transparent; }
.nav--open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav--open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero: headline, then the photo as a stage with real notifications ---------- */
.hero { padding: calc(var(--nav) + 56px) 0 40px; text-align: center; overflow: hidden; }
.hero__head { display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.045em; max-width: 13em; margin-top: 22px; }
.hero__lead { margin-top: 22px; font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 30px; }
.laurels { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; }
.laurels > span { display: grid; justify-items: center; line-height: 1.15; }
.laurels strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.laurels small { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.laurel { width: 22px; height: 52px; color: var(--gold); }
.stars { position: relative; display: inline-flex; color: #d6dcd8; line-height: 0; }
.stars svg { width: 14px; height: 14px; }
.stars__base, .stars__fill { display: inline-flex; }
.stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--gold); white-space: nowrap; }

.hero__stage { position: relative; max-width: 1360px; margin: 56px auto 0; padding: 0 24px; }
.hero__photo { display: block; border-radius: 36px; overflow: hidden; aspect-ratio: 1915 / 821; background: var(--leaf); box-shadow: 0 50px 100px -60px rgba(15,43,36,.6); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.notifs { list-style: none; position: absolute; inset: 0 24px; pointer-events: none; }
.notif { position: absolute; display: flex; gap: 12px; align-items: flex-start; width: min(330px, 30%); padding: 12px 14px; border-radius: 22px; text-align: start; background: rgba(250,252,251,.78); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); box-shadow: 0 20px 40px -18px rgba(15,43,36,.45), inset 0 0 0 1px rgba(255,255,255,.6); }
.notif img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.notif div { min-width: 0; font-size: .86rem; line-height: 1.3; color: var(--ink-2); }
.notif p:first-child { display: flex; justify-content: space-between; gap: 8px; color: var(--ink); }
.notif time { font-size: .76rem; color: var(--muted); white-space: nowrap; }
.notif--1 { top: 12%; left: 5%; }
.notif--2 { top: 46%; right: 4%; }
.notif--3 { bottom: 10%; left: 9%; }
@media (prefers-reduced-motion: no-preference) {
  .notif { animation: notifIn .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(600ms + var(--d) * 450ms); }
  @keyframes notifIn { from { opacity: 0; transform: translateY(18px) scale(.96); } }
}
.hero__meta { margin-top: 22px; font-size: .88rem; color: var(--muted); }

/* ---------- Statement: words light up as you scroll ---------- */
.statement { background: var(--emerald-deep); color: #fff; padding: 160px 0; }
.statement__text { font-size: clamp(2rem, 4.6vw, 4rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; max-width: 19em; text-wrap: balance; }
.statement__text span { color: rgba(255,255,255,.22); transition: color .35s ease; }
.statement__text span.is-lit { color: #fff; }
@media (prefers-reduced-motion: reduce) { .statement__text span { color: #fff; } }

/* ---------- Story: sticky iPhone, screen changes with the step ---------- */
.story { padding: 140px 0 40px; }
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
.story__device { position: relative; }
.story__phone { position: sticky; top: calc(50vh - 330px); width: 312px; margin: 0 auto; aspect-ratio: 600 / 1304; padding: 10px; border-radius: 54px; background: #0d1412; box-shadow: 0 0 0 2px #2a322f, 0 60px 100px -50px rgba(15,43,36,.6); }
.story__phone img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); border-radius: 44px; opacity: 0; transform: scale(.98); transition: opacity .5s ease, transform .5s ease; }
.story__phone img.is-on { opacity: 1; transform: none; }
.story__head { padding-bottom: 40px; }
.story__step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .32; transition: opacity .4s ease; }
.story__step.is-active { opacity: 1; }
.story__num { font-size: .9rem; font-weight: 700; color: var(--emerald); font-variant-numeric: tabular-nums; }
.story__step h3 { margin-top: 10px; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; line-height: 1.08; }
.story__step p { margin-top: 14px; color: var(--ink-2); font-size: 1.12rem; max-width: 26em; }
.story__inline { display: none; }

/* ---------- Phase chart and the 25-day grid ---------- */
.phases__head { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 48px; align-items: end; }
.phases__chart { list-style: none; margin-top: 52px; display: grid; grid-template-columns: 3fr 9fr 4fr 4fr 5fr; gap: 8px; }
.phases__chart li { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 20px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.phases__days { font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.phases__dots { display: flex; flex-wrap: wrap; gap: 4px; min-height: 40px; align-content: flex-start; }
.phases__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--emerald); box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.phases__rhythm { font-size: .88rem; color: var(--ink-2); line-height: 1.35; }
.phases__note { margin-top: 18px; font-size: .88rem; color: var(--muted); max-width: 60em; }
.daygrid { display: flex; align-items: center; gap: 22px; padding: 18px; border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -28px rgba(15,43,36,.45); max-width: 470px; }
.daygrid__cells { list-style: none; display: grid; grid-template-columns: repeat(5, 30px); gap: 6px; flex: none; }
.daygrid__cells li { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .72rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); background: var(--leaf-2); position: relative; }
.daygrid__cells li.is-done { background: var(--emerald); color: transparent; }
.daygrid__cells li.is-done::after { content: ''; position: absolute; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 2.2px 2.2px; transform: translateY(-1px) rotate(-45deg); }
.daygrid__cells li.is-today { background: #fff; color: var(--emerald-deep); box-shadow: inset 0 0 0 2px var(--emerald); font-weight: 800; }
.daygrid figcaption strong { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.daygrid figcaption span { display: block; margin-top: 4px; color: var(--ink-2); font-size: .92rem; line-height: 1.4; max-width: 14em; }
.daygrid.is-visible .daygrid__cells li.is-done, .daygrid.is-visible .daygrid__cells li.is-today { animation: tick .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes tick { from { background: var(--leaf-2); transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .daygrid.is-visible .daygrid__cells li { animation: none !important; } }

/* ---------- Rewards: dark, with a warm medal glow ---------- */
.rewards { position: relative; background: #17120d; color: #f1e6da; overflow: hidden; padding: 140px 0; }
.rewards h2, .rewards h3 { color: #fff; }
.rewards .lead { color: #cdbca9; }
.rewards .tag { background: rgba(201,154,58,.16); color: #e8c46e; }
.rewards__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.rewards__list { list-style: none; margin-top: 34px; display: grid; gap: 24px; }
.rewards__list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.rewards__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #e9c97a, #b4673b); color: #241a10; }
.rewards__icon svg { width: 24px; height: 24px; }
.rewards__list p { margin-top: 4px; color: #cdbca9; font-size: 1rem; }
.rewards__phones { position: relative; height: 660px; }
.rewards__glow { position: absolute; inset: 10% 0 0; background: radial-gradient(closest-side, rgba(233,180,92,.45), rgba(180,103,59,.18) 55%, transparent); filter: blur(10px); }
.phone { position: absolute; width: 296px; padding: 9px; border-radius: 50px; background: #0d1412; box-shadow: 0 0 0 1.5px #3a332c, 0 40px 80px -30px rgba(0,0,0,.8); }
.phone img { width: 100%; border-radius: 41px; }
.phone--back { top: 0; inset-inline-start: 2%; transform: rotate(-4deg); }
.phone--front { top: 90px; inset-inline-end: 0; transform: rotate(3deg); }

/* ---------- Bento of features, each with the real screen that shows it ---------- */
.bento-wrap { background: var(--ink); color: #dfe9e5; }
.bento-wrap h2 { color: #fff; }
.bento-wrap .lead { color: #a9bdb6; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 300px; gap: 16px; }
.bento__card { position: relative; overflow: hidden; border-radius: 26px; background: #16352d; padding: 28px; display: flex; flex-direction: column; isolation: isolate; }
.bento__card h3 { color: #fff; font-size: 1.25rem; }
.bento__card p { margin-top: 8px; color: #a9bdb6; font-size: .98rem; max-width: 24em; }
.bento__text { position: relative; z-index: 1; }
.bento__shot { margin-top: auto; align-self: center; width: 78%; height: 62%; border-radius: 26px 26px 0 0; overflow: hidden; box-shadow: 0 -10px 30px -10px rgba(0,0,0,.4); transform: translateY(28px); }
.bento__shot img { width: 100%; height: 100%; object-fit: cover; }
.bento__a { grid-column: span 4; grid-row: span 2; background: linear-gradient(160deg, #0b7a60, #075443); }
.bento__a .bento__shot { width: 46%; height: 78%; }
.bento__b { grid-column: span 2; grid-row: span 2; }
.bento__b .bento__shot { width: 92%; height: 66%; }
.bento__c { grid-column: span 2; }
.bento__c .bento__shot, .bento__d .bento__shot { width: 88%; height: 46%; border-radius: 20px 20px 0 0; transform: translateY(28px); }
.bento__c::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(201,154,58,.5), transparent 70%); z-index: -1; }
.bento__d { grid-column: span 2; }
.bento__e { grid-column: span 2; }
.bento__setup { margin-top: auto; display: grid; gap: 8px; }
.bento__setup span { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: .92rem; color: #dfe9e5; }
.bento__setup b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald); color: #fff; font-size: .75rem; }
.bento__f { grid-column: span 6; grid-row: span 1; flex-direction: row; align-items: center; gap: 40px; background: linear-gradient(110deg, #16352d 40%, #0b5a47); }
.bento__f .bento__text { flex: 1; }
.bento__duo { height: 250px; width: auto; border-radius: 18px; box-shadow: 0 0 0 6px #0d1412; transform: rotate(-3deg) translateY(10px); }

/* ---------- Privacy ---------- */
.privacy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.privacy__photo { border-radius: var(--r-photo); overflow: hidden; aspect-ratio: 4 / 5; }
.privacy__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.privacy__list { list-style: none; margin: 32px 0; display: grid; gap: 22px; }
.privacy__list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.privacy__list svg { width: 26px; height: 26px; color: var(--emerald); }
.privacy__list p { margin-top: 4px; color: var(--ink-2); font-size: 1rem; }

/* ---------- Pricing ---------- */
.pricing { background: var(--white); }
.pricing__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.fineprint { margin-top: 24px; font-size: .88rem; color: var(--muted); max-width: 36em; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { padding: 30px 28px; border-radius: 22px; background: var(--paper); }
.plan--adfree { background: var(--emerald); color: #fff; }
.plan--adfree h3 { color: #fff; }
.plan h3 { font-size: 1rem; }
.plan__price { margin-top: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.plan__price strong { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.plan__price span { font-size: .9rem; opacity: .8; }
.plan ul { list-style: none; margin-top: 24px; display: grid; gap: 12px; font-size: .97rem; }
.plan li { display: flex; gap: 10px; }
.plan li svg { width: 16px; height: 16px; flex: none; margin-top: 5px; color: var(--emerald); }
.plan--adfree li svg { color: #9fe3cb; }

/* ---------- FAQ and what's new ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 10px; height: 10px; flex: none; border: solid var(--emerald); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 38em; }
.news { margin-top: 48px; padding: 26px; border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.news h3 { font-size: 1.1rem; }
.news__meta { margin-top: 4px; color: var(--muted); font-size: .9rem; }
.news__notes { list-style: none; display: grid; gap: 8px; margin-top: 16px; }
.news__notes li { position: relative; padding-inline-start: 18px; color: var(--ink-2); font-size: .94rem; }
.news__notes li::before { content: ''; position: absolute; inset-inline-start: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }

/* ---------- Final CTA on the calendar photo ---------- */
.cta { position: relative; isolation: isolate; min-height: 640px; display: flex; align-items: center; overflow: hidden; background: #dfe5dc; }
.cta__photo { position: absolute; inset: 0; z-index: -2; }
.cta__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(242,246,244,.96) 0%, rgba(242,246,244,.85) 32%, rgba(242,246,244,0) 58%); }
.cta__copy { padding-top: 96px; padding-bottom: 96px; }
.cta h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -.04em; max-width: 8.5em; line-height: 1; }
.cta p { margin: 18px 0 30px; color: var(--ink-2); font-size: 1.12rem; max-width: 22em; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; background: var(--paper); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer__brand p { margin-top: 14px; color: var(--muted); font-size: .95rem; max-width: 300px; }
.footer h2 { font-size: .9rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; letter-spacing: 0; }
.footer nav { display: grid; gap: 10px; align-content: start; }
.footer nav a { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer__langs { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: var(--muted); font-size: .85rem; }
.footer__disclaimer { max-width: 640px; }

/* ---------- Mobile download bar (non-Safari; Safari shows the Smart App Banner) ---------- */
.getbar { position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: 0 18px 40px -16px rgba(15,43,36,.45), 0 0 0 1px var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.getbar[hidden] { display: none; }
.getbar img { width: 40px; height: 40px; border-radius: 10px; }
.getbar div { flex: 1; min-width: 0; line-height: 1.2; }
.getbar strong { display: block; font-size: .95rem; }
.getbar span { display: block; font-size: .8rem; color: var(--muted); }
.getbar .btn { min-height: 40px; padding: 8px 20px; }
body.has-getbar .footer { padding-bottom: 110px; }

/* ---------- Sub pages (support, privacy, terms) ---------- */
.page-hero { padding: calc(var(--nav) + 72px) 0 48px; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.page-hero p:not(.tag) { margin-top: 16px; color: var(--ink-2); font-size: 1.12rem; max-width: 36em; }
.page-body { padding: 24px 0 110px; }
.support-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.card { padding: 36px; border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.card h2 { font-size: 1.5rem; }
.card > p { margin-top: 8px; color: var(--ink-2); }
.form { display: grid; gap: 18px; margin-top: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__note { font-size: .88rem; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2362766f' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(11,122,96,.18); }
.form .btn { width: 100%; border-radius: var(--r-ui); min-height: 52px; }
.form .btn:disabled { opacity: .6; cursor: default; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.notice { margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: .95rem; }
.notice--error { background: #fde8e5; color: #8a2a1d; }
.notice--warn { background: #fdf1dc; color: #7a4d0b; }
.success { text-align: center; padding: 36px 0 12px; }
.success svg { width: 52px; height: 52px; color: var(--emerald); margin: 0 auto 14px; }
.success h3 { font-size: 1.4rem; }
.success p { margin: 8px 0 22px; color: var(--ink-2); }
.qa h3 { font-size: 1rem; margin-top: 22px; }
.qa p { margin-top: 6px; color: var(--ink-2); font-size: .97rem; }
.aside-links { margin-top: 24px; display: grid; gap: 10px; }
.aside-links a { color: var(--emerald-deep); font-weight: 600; }
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav) + 24px); }
.toc h2 { font-size: .95rem; color: var(--ink); }
.toc ol { list-style: none; margin-top: 14px; display: grid; gap: 8px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; text-decoration: none; color: var(--ink-2); font-size: .93rem; line-height: 1.4; }
.toc a::before { content: counter(toc); color: var(--emerald); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 1.4em; }
.toc a:hover { color: var(--ink); }
.legal__body { max-width: 740px; }
.legal__intro { font-size: 1.1rem; color: var(--ink-2); padding: 24px 28px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.legal__body section { padding-top: 44px; }
.legal__body h2 { font-size: 1.5rem; }
.legal__body p, .legal__body li { color: var(--ink-2); }
.legal__body p { margin-top: 14px; }
.legal__body ul { margin: 14px 0 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.legal__body a { color: var(--emerald-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 18px; }
  .story__grid, .rewards__grid, .privacy__grid { gap: 48px; }
  .phone { width: 250px; }
  .rewards__phones { height: 560px; }
  .phases__head { grid-template-columns: 1fr; }
  .phases__chart { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bento__a { grid-column: span 6; }
  .bento__b, .bento__c, .bento__d, .bento__e { grid-column: span 3; }
  .bento__b { grid-row: span 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .notif { width: 290px; }
}
@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links { position: fixed; inset: var(--nav) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; background: var(--paper); border-bottom: 1px solid var(--line); display: none; max-height: calc(100svh - var(--nav)); overflow: auto; }
  .nav--open { background: var(--paper); }
  .nav--open .nav__links { display: flex; }
  .nav__links > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links .btn { margin-top: 16px; min-height: 48px; }
  .lang { border-bottom: 1px solid var(--line); }
  .lang__btn { padding: 14px 0; font-size: 1.05rem; width: 100%; }
  .lang__menu { position: static; box-shadow: none; padding: 0 0 12px; grid-template-columns: 1fr 1fr; background: transparent; }

  .story { padding-top: 96px; }
  .story__grid { grid-template-columns: 1fr; }
  .story__device { display: none; }
  .story__step { min-height: 0; opacity: 1; padding: 28px 0 40px; border-top: 1px solid var(--line); }
  .story__inline { display: block; width: 62%; max-width: 280px; margin: 0 0 24px; border-radius: 30px; box-shadow: 0 0 0 7px #0d1412, 0 30px 60px -30px rgba(15,43,36,.6); }
  .rewards__grid, .privacy__grid, .pricing__grid, .faq__grid, .support-grid, .legal { grid-template-columns: 1fr; }
  .rewards__phones { height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
  .privacy__photo { aspect-ratio: 4 / 3; }
  .phases__chart { grid-template-columns: 1fr; }
  .phases__chart li { flex-direction: row; align-items: center; gap: 16px; padding: 16px; }
  .phases__days { width: 92px; flex: none; }
  .phases__dots { min-height: 0; width: 100px; flex: none; }
  .toc { position: static; padding: 24px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
  .cta { display: block; min-height: 0; background: var(--paper); }
  .cta__photo { position: relative; display: block; aspect-ratio: 16 / 9; }
  .cta::before { display: none; }
  .cta__copy { padding-top: 40px; padding-bottom: 72px; }
}
@media (max-width: 760px) {
  .hero { padding-top: calc(var(--nav) + 32px); }
  .hero__stage { margin-top: 36px; padding: 0 16px; }
  .hero__photo { aspect-ratio: 1 / 1; border-radius: 28px; }
  .notifs { position: static; display: grid; gap: 10px; margin-top: -64px; padding: 0 12px; position: relative; }
  .notif { position: static; width: 100%; }
  .notif--3 { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .section { padding: 88px 0; }
  .statement { padding: 104px 0; }
  .rewards { padding: 96px 0; }
  .daygrid { gap: 16px; padding: 14px; }
  .daygrid__cells { grid-template-columns: repeat(5, 26px); gap: 5px; }
  .daygrid__cells li { width: 26px; height: 26px; border-radius: 8px; }
  .daygrid figcaption strong { font-size: 1.25rem; }
  .phases__days { width: 76px; }
  .phases__dots { width: 86px; }
  .phone { width: 200px; padding: 6px; border-radius: 34px; }
  .phone img { border-radius: 28px; }
  .rewards__phones { height: 440px; }
  .phone--front { top: 60px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__card, .bento__a, .bento__b, .bento__c, .bento__d, .bento__e, .bento__f { grid-column: auto; grid-row: auto; }
  .bento__shot, .bento__a .bento__shot, .bento__b .bento__shot { width: 70%; height: 300px; margin-top: 24px; }
  .bento__f { flex-direction: column; align-items: flex-start; }
  .bento__duo { height: auto; width: 100%; transform: none; }
  .bento__setup { margin-top: 20px; }
  .plans { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .card { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .page-hero { padding: calc(var(--nav) + 44px) 0 32px; }
}
@media (prefers-reduced-motion: reduce) { .store-btn, .text-link, .story__phone img, .story__step { transition: none; } }

/* Compact App Store badge in the top bar, as on the other app sites */
.store-btn--nav { padding: 6px 14px 6px 11px; gap: 8px; border-radius: 10px; }
.store-btn--nav svg { width: 18px; height: 18px; }
.store-btn--nav small { font-size: .58rem; }
.store-btn--nav strong { font-size: .92rem; }
@media (max-width: 900px) { .nav__links .store-btn--nav { margin-top: 16px; align-self: flex-start; padding: 10px 20px 10px 16px; } .nav__links .store-btn--nav strong { font-size: 1.1rem; } }
.statement__text { color: #fff; }
