/* Saano Studio / Dayclaim website.
   Signature: a sunrise over a summit with a planted flag (the Dayclaim icon), dawn by day, night with stars in dark mode. */

:root {
  /* Page */
  --bg: #F7F1E8;
  --surface: #FFFFFF;
  --surface-2: #FBF6EE;
  --line: rgba(31, 44, 94, 0.12);
  --text: #182046;
  --secondary: #575A6E;
  --navy: #1F2C5E;
  --amber: #F2A24E;
  --amber-deep: #E58A35;
  --amber-text: #9A4F0C;
  --mark: #FFE3B8;
  --shadow: 0 1px 2px rgba(24, 32, 70, 0.06), 0 12px 32px rgba(24, 32, 70, 0.08);

  /* Sky and land in the hero */
  --sky-1: #B9C6EC;
  --sky-2: #E9C9C8;
  --sky-3: #F9D5B4;
  --sky-4: #FCE7CE;
  --land-far: #C7B9D6;
  --land-mid: #8E86B4;
  --flag: #1F2C5E;
  --stars: 0;
  --sun-glow: rgba(255, 186, 102, 0.75);

  /* Medal */
  --medal-disc: #1F2C5E;
  --medal-peak: #FBF3E6;
  --medal-ribbon-a: #1F2C5E;
  --medal-ribbon-b: #16204A;

  /* Ribbon band and the Pro card */
  --band-bg: #1F2C5E;
  --band-text: #F7F1E8;
  --pro-bg: #1F2C5E;
  --pro-text: #F7F1E8;
  --pro-secondary: #CFC9E4;

  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1026;
    --surface: #141A3A;
    --surface-2: #10163170;
    --line: rgba(244, 238, 228, 0.1);
    --text: #F4EEE4;
    --secondary: #C9C4D6;
    --navy: #F4EEE4;
    --amber: #FFA94D;
    --amber-deep: #F2913A;
    --amber-text: #FFB866;
    --mark: #5A3A12;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);

    --sky-1: #060A1C;
    --sky-2: #0E1538;
    --sky-3: #241E4E;
    --sky-4: #4A2E52;
    --land-far: #1A2150;
    --land-mid: #121838;
    --flag: #FFA94D;
    --stars: 1;
    --sun-glow: rgba(255, 150, 70, 0.45);

    --medal-disc: #1F2C5E;
    --medal-peak: #FBF3E6;
    --medal-ribbon-a: #C46E26;
    --medal-ribbon-b: #B4621F;

    --band-bg: #222B5E;
    --band-text: #F4EEE4;
    --pro-bg: linear-gradient(160deg, #1F2858 0%, #141A3A 100%);
    --pro-text: #F4EEE4;
    --pro-secondary: #C9C4D6;

    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--amber-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 14px; }

.wrap-wide { width: min(1180px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 14px; border-radius: 10px; background: var(--surface); color: var(--text);
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(46px, 7.6vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--navy);
}
/* Each line slides up out of its own mask, slanted like the DAYCLAIM wordmark. */
.display .line { display: block; overflow: hidden; padding: 0.04em 0.08em 0.1em 0; margin-bottom: -0.1em; }
.display .line > span { display: inline-block; transform: skewX(-7deg); transform-origin: bottom left; animation: line-up 1s cubic-bezier(.2, .8, .2, 1) both; }
.display .line:nth-child(2) > span { animation-delay: 0.12s; }
.display .line:nth-child(3) > span { animation-delay: 0.24s; }
.display .line > span { white-space: nowrap; }
@keyframes line-up { from { transform: translateY(105%) skewX(-7deg); } to { transform: translateY(0) skewX(-7deg); } }

.eyebrow {
  margin: 0 0 18px;
  font: 600 13px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-text);
}
.eyebrow--live { display: inline-flex; align-items: center; gap: 10px; }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--amber-deep); }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--amber); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

.kicker { margin: 0 0 12px; font: 600 13px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-text); }
.section-title { font-family: var(--display); font-weight: 750; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -0.03em; max-width: 16ch; }
.section-head { margin-bottom: 36px; }
.text-link { font-weight: 650; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.text-link::after { content: "→"; color: var(--amber-text); transition: transform .25s ease; }
.text-link:hover::after, .showcase:hover .text-link::after { transform: translateX(4px); }
.muted { color: var(--secondary); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.site-header--overlay { position: fixed; left: 0; right: 0; }
.site-header.is-scrolled, .site-header:not(.site-header--overlay) {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; letter-spacing: -0.01em; }
.brand img { width: auto; height: 26px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-header nav { display: flex; gap: 6px; }
.site-header nav a { padding: 8px 12px; border-radius: 999px; color: var(--secondary); text-decoration: none; font-size: 15px; font-weight: 550; transition: color .2s, background-color .2s; }
.site-header nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.site-header nav a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--text) 9%, transparent); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }
.hero__lede { max-width: 34ch; margin-top: 26px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--secondary); animation: fade-up .9s .35s cubic-bezier(.2, .8, .2, 1) both; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; animation: fade-up .9s .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.store-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 16px; border-radius: 16px;
  background: var(--text); color: var(--bg);
  font-weight: 650; font-size: 19px; line-height: 1.1; letter-spacing: -0.01em;
}
.store-pill svg { width: 26px; height: 26px; fill: currentColor; }
.store-pill small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0; opacity: 0.8; }

/* App hero: sky, sun and land */
.hero--app { min-height: max(720px, 100svh); display: flex; align-items: center; padding: 110px 0 120px; }
.scene { position: absolute; inset: 0; z-index: 0; }
.scene__sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 42%, var(--sky-3) 72%, var(--sky-4) 100%); }
.scene__stars { position: absolute; inset: 0 0 35% 0; opacity: var(--stars); }
.scene__stars::before, .scene__stars::after { content: ""; position: absolute; inset: 0; }
.scene__stars::before {
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 18% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 27% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 30%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 46%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 61% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 69% 10%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 77% 36%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 16%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 93% 40%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 4% 54%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 31% 58%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 57% 62%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 82% 58%, #fff 50%, transparent 51%);
  animation: twinkle 5s ease-in-out infinite alternate;
}
.scene__stars::after {
  background-image:
    radial-gradient(1px 1px at 13% 28%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 23% 6%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 34%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 66% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 73% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 97% 26%, #fff 50%, transparent 51%);
  animation: twinkle 3.6s 1.2s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 1; } }

/* The sun rises once on load, then keeps climbing as you scroll (--scroll is 0–1, set by main.js). */
.sun { position: absolute; width: var(--sun-size, 520px); aspect-ratio: 1; pointer-events: none; }
.scene .sun {
  --sun-size: min(620px, 52vw);
  left: 71%; bottom: 8%;
  translate: -50% calc(var(--scroll, 0) * -26%);
}
.sun__glow { position: absolute; inset: -45%; border-radius: 50%; background: radial-gradient(circle, var(--sun-glow) 0%, transparent 62%); animation: glow 6s ease-in-out infinite alternate; }
.sun__rays { position: relative; width: 100%; height: 100%; overflow: visible; }
.scene .sun { animation: sunrise 2.6s cubic-bezier(.16, .84, .3, 1) both; }
.scene .sun__glow { animation: glow 6s ease-in-out infinite alternate; }
.sun__rays polygon { transform-origin: 512px 486px; animation: spin 90s linear infinite; }
@keyframes sunrise { from { transform: translateY(42%); opacity: 0.2; } to { transform: translateY(0); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glow { from { opacity: 0.75; transform: scale(0.96); } to { opacity: 1; transform: scale(1.04); } }

.scene__land { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 46%; min-height: 240px; }
.land-far { fill: var(--land-far); opacity: 0.85; transform: translateY(calc(var(--scroll, 0) * 18px)); }
.land-mid { fill: var(--land-mid); }
.land-near { fill: var(--bg); }
.flag line { stroke: var(--land-mid); }
.flag__cloth { fill: var(--flag); transform-origin: 703px 98px; animation: flag 2.4s ease-in-out infinite; }
@keyframes flag { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-6deg) scaleX(0.9); } }

.hero__device { display: flex; justify-content: center; animation: phone-in 1.2s .25s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes phone-in { from { opacity: 0; transform: translateY(60px) rotate(2deg); } to { opacity: 1; transform: none; } }

/* Studio hero */
.hero--studio { padding: 150px 0 90px; }
.studio-sky { position: absolute; inset: 0; z-index: 0; background: radial-gradient(90% 70% at 78% 40%, color-mix(in srgb, var(--sky-3) 80%, transparent) 0%, transparent 60%), linear-gradient(180deg, color-mix(in srgb, var(--sky-1) 55%, var(--bg)) 0%, var(--bg) 100%); }

/* Studio hero: the logo is the headline. Letters rise one by one, then STUDIO. */
.studio-hero { position: relative; z-index: 2; }
.studio-hero__logo { margin: 0; color: var(--navy); line-height: 0; }
.logo-hero { width: min(820px, 100%); height: auto; overflow: visible; }
.logo-hero [class^="lg-"]:not(.lg-band):not(.lg-studio) { animation: logo-letter .9s cubic-bezier(.2, .8, .2, 1) both; }
.logo-hero .lg-1 { animation-delay: .07s !important; }
.logo-hero .lg-2 { animation-delay: .14s !important; }
.logo-hero .lg-3 { animation-delay: .21s !important; }
.logo-hero .lg-4 { animation-delay: .28s !important; }
.logo-hero .lg-studio { animation: logo-letter .9s .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes logo-letter { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
.studio-hero__row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 56px; max-width: 980px; }
.studio-hero__line { margin: 0; font-family: var(--display); font-weight: 750; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.025em; animation: fade-up .9s .6s cubic-bezier(.2, .8, .2, 1) both; }
.studio-hero__row .hero__lede { margin-top: 4px; animation-delay: .7s; }

/* ---------- Phone ---------- */
.phone {
  --phone-w: 300px;
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 1206 / 2622;
  padding: calc(var(--phone-w) * 0.032);
  border-radius: calc(var(--phone-w) * 0.165);
  background: linear-gradient(145deg, #2A3054, #0B0E20 60%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 80px -20px rgba(15, 18, 50, 0.55), 0 18px 36px -18px rgba(15, 18, 50, 0.5);
  flex: none;
}
.phone__screen { position: relative; height: 100%; border-radius: calc(var(--phone-w) * 0.135); overflow: hidden; background: #0B1026; container-type: inline-size; }
.phone__screen::after { content: ""; position: absolute; top: 2.4%; left: 50%; width: 31%; height: 3.7%; translate: -50% 0; border-radius: 99px; background: #000; z-index: 3; }
.phone__screen img, .phone__screen picture { width: 100%; height: 100%; object-fit: cover; }
.phone--hero { --phone-w: clamp(250px, 24vw, 330px); animation: float 7s ease-in-out infinite; }
.phone--stage { --phone-w: clamp(260px, 24vw, 320px); }
.phone--small { --phone-w: 230px; }
.phone--showcase { --phone-w: 260px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* The ringing screen, drawn to match the app (sizes follow the phone's width). */
.ring-screen {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  padding: 0 7cqw 7cqw; color: #F4EEE4; text-align: center;
  font-family: var(--body);
  background:
    radial-gradient(120% 45% at 50% 108%, rgba(242, 162, 78, 0.55) 0%, rgba(160, 80, 110, 0.35) 40%, transparent 70%),
    linear-gradient(180deg, #0B1026 0%, #151A40 50%, #2A2350 100%);
}
:where(.ring-screen p) { margin: 0; }
.ring-screen__status { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 5.2cqw 3cqw 0 4cqw; font: 600 4.2cqw/1 var(--body); }
.ring-screen__icons { display: flex; gap: 1.6cqw; }
.ring-screen__icons i { display: block; width: 5cqw; height: 2.6cqw; border-radius: 1cqw; background: #F4EEE4; opacity: 0.9; }
.ring-screen__icons i:first-child { width: 4cqw; border-radius: 4cqw 4cqw 0.6cqw 0.6cqw; }
.ring-screen__greeting { margin-top: 15cqw ; font-size: 5.2cqw; font-weight: 600; color: #FFA94D; }
.ring-screen__time { margin-top: 3cqw ; font-size: 25cqw; font-weight: 200; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ring-screen__label { margin-top: 3cqw ; font-size: 4.2cqw; opacity: 0.8; }
.ring-screen__sun { position: relative; width: 44cqw; height: 44cqw; margin: auto 0; display: grid; place-items: center; }
.ring-screen__sun b { width: 22cqw; height: 22cqw; border-radius: 50%; background: #FFA94D; box-shadow: 0 0 10cqw rgba(255, 169, 77, 0.6); animation: sun-beat 1.6s ease-in-out infinite; }
.ring-screen__sun span { position: absolute; inset: 0; border-radius: 50%; border: 0.7cqw solid #FFA94D; animation: ripple 2.4s ease-out infinite; }
.ring-screen__sun span:nth-child(2) { animation-delay: 0.8s; }
.ring-screen__sun span:nth-child(3) { animation-delay: 1.6s; }
@keyframes ripple { from { transform: scale(0.5); opacity: 0.9; } to { transform: scale(1.25); opacity: 0; } }
@keyframes sun-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.ring-screen__button { width: 100%; padding: 4.4cqw 0; border-radius: 99px; background: #FFA94D; color: #111; font-size: 5cqw; font-weight: 700; }
.ring-screen__note { margin-top: 4cqw ; font-size: 3.3cqw; opacity: 0.8; }
.ring-screen__exit { margin-top: 7cqw ; font-size: 3.2cqw; opacity: 0.6; }

/* ---------- Mission ribbon ---------- */
.ribbon { position: relative; z-index: 3; margin-top: -1px; background: var(--band-bg); color: var(--band-text); overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ribbon__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon__list { display: flex; margin: 0; padding: 0; list-style: none; }
.ribbon__list li { display: flex; align-items: center; gap: 8px; padding: 0 28px; white-space: nowrap; font: 500 17px/1.2 var(--mono); }
.ribbon__list li::after { content: "✺"; margin-left: 28px; color: var(--amber); }
.ribbon__list b { color: var(--amber); font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Steps (sticky phone on wide screens) ---------- */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 110px 0 40px; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; opacity: 0.35; transition: opacity .5s ease; }
.step.is-current { opacity: 1; }
.step h2 { font-family: var(--display); font-weight: 750; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 16px; }
.step p { font-size: 19px; color: var(--secondary); }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 50%; border: 2px solid var(--amber); color: var(--amber-text); font: 700 17px/1 var(--mono); }
.step.is-current .step__num { background: var(--amber); border-color: var(--amber); color: #111; }
.step__figure { display: none; }
.steps__stage { position: sticky; top: 12vh; height: 76vh; display: flex; align-items: center; justify-content: center; }
.steps__stage::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--amber) 35%, transparent) 0%, transparent 65%); }
.stage-layer { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .6s ease, transform .6s ease; }
.stage-layer img, .stage-layer picture { width: 100%; height: 100%; object-fit: cover; }
.steps[data-active="1"] [data-layer="1"], .steps[data-active="2"] [data-layer="2"], .steps[data-active="3"] [data-layer="3"] { opacity: 1; transform: none; }

/* ---------- Features (bento) ---------- */
.features { padding: 80px 0 40px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; padding: 26px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.tile:hover { transform: translateY(-4px); }
.tile--wide { grid-column: span 2; }
.tile h3 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--secondary); font-size: 16px; max-width: 40ch; }
.tile__visual { height: 120px; margin-bottom: 22px; display: flex; align-items: center; }

.backups { gap: 0; justify-content: space-between; position: relative; }
.backups::before { content: ""; position: absolute; left: 6px; right: 6px; top: calc(50% - 14px); height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.backups span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; font: 600 15px/1 var(--mono); color: var(--secondary); }
.backups i { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--amber); }
.tile.is-in .backups i { animation: ring-dot 4s ease-in-out infinite; }
.backups span:nth-child(2) i { animation-delay: 1s !important; }
.backups span:nth-child(3) i { animation-delay: 2s !important; }
.backups span:nth-child(4) i { animation-delay: 3s !important; }
@keyframes ring-dot { 0%, 30%, 100% { background: var(--surface-2); box-shadow: none; } 8%, 20% { background: var(--amber); box-shadow: 0 0 0 8px color-mix(in srgb, var(--amber) 25%, transparent); } }

.stillup { justify-content: space-between; gap: 12px; padding: 14px 16px; height: auto; min-height: 120px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.stillup p { margin: 0; display: flex; flex-direction: column; }
.stillup b { font-size: 18px; }
.stillup span { color: var(--secondary); font-size: 14px; }
.stillup em { font-style: normal; font-weight: 700; padding: 10px 16px; border-radius: 99px; background: var(--amber); color: #111; white-space: nowrap; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(-3px); } 90% { transform: translateX(3px); } }

.streak { justify-content: space-between; }
.streak span { display: flex; flex-direction: column; align-items: center; gap: 10px; font: 600 13px/1 var(--mono); color: var(--secondary); }
.streak span::before { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: transparent; }
.tile.is-in .streak span:not(:last-child)::before { animation: fill-dot .4s ease forwards; }
.streak span:nth-child(2)::before { animation-delay: .12s !important; }
.streak span:nth-child(3)::before { animation-delay: .24s !important; }
.streak span:nth-child(4)::before { animation-delay: .36s !important; }
.streak span:nth-child(5)::before { animation-delay: .48s !important; }
.streak span:nth-child(6)::before { animation-delay: .6s !important; }
@keyframes fill-dot { to { background: var(--amber); border-color: var(--amber); } }

.nightlock { gap: 12px; flex-wrap: wrap; font: 600 18px/1.2 var(--mono); }
.nightlock b { padding: 10px 14px; border-radius: 14px; background: var(--band-bg); color: var(--band-text); font-weight: 600; }
.nightlock span { color: var(--amber-text); }

.sounds { gap: 8px; align-items: flex-end; }
.sounds i { width: 14px; height: 30%; border-radius: 99px; background: linear-gradient(180deg, var(--amber), var(--amber-deep)); animation: eq 1.1s ease-in-out infinite alternate; }
.sounds i:nth-child(2) { animation-delay: -0.3s; }
.sounds i:nth-child(3) { animation-delay: -0.6s; }
.sounds i:nth-child(4) { animation-delay: -0.15s; }
.sounds i:nth-child(5) { animation-delay: -0.75s; }
.sounds i:nth-child(6) { animation-delay: -0.45s; }
.sounds i:nth-child(7) { animation-delay: -0.9s; }
@keyframes eq { from { height: 18%; } to { height: 95%; } }

.summary { gap: 12px; }
.summary span { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); font: 600 clamp(20px, 2.4vw, 28px)/1 var(--mono); letter-spacing: -0.02em; }
.summary small { font: 600 12px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--secondary); }

/* ---------- Pricing ---------- */
.pricing { padding: 90px 0 30px; }
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; align-items: stretch; }
.plan { position: relative; overflow: hidden; padding: 32px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan h3 { font-size: 20px; }
.plan__price { margin: 12px 0 18px; font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.04em; }
.plan__price small { font-family: var(--body); font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--secondary); }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { position: relative; padding: 9px 0 9px 30px; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 14px; height: 8px; border-left: 2.5px solid var(--amber-deep); border-bottom: 2.5px solid var(--amber-deep); transform: rotate(-45deg); }
.plan--pro { background: var(--pro-bg); color: var(--pro-text); border-color: transparent; }
.plan--pro .plan__price small, .plan--pro .plan__note { color: var(--pro-secondary); }
.plan--pro li { border-top-color: rgba(255, 255, 255, 0.12); }
.plan--pro li::before { border-color: var(--amber); }
.plan__note { margin: 18px 0 0; font-size: 15px; }
.plan__sun { position: absolute; right: -120px; top: -140px; width: 340px; opacity: 0.22; pointer-events: none; }
.plan__sun .sun { position: relative; --sun-size: 340px; }
.plan > :not(.plan__sun) { position: relative; }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--secondary); }

/* ---------- Privacy band ---------- */
.privacy-band { margin-top: 90px; padding: 80px 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--sky-3) 35%, transparent)); }
.privacy-band__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.privacy-band p { font-size: 19px; color: var(--secondary); max-width: 44ch; }

/* ---------- Studio page ---------- */
.showcase-wrap { padding-top: 40px; }
.showcase {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px;
  padding: 48px 56px 0; border-radius: 36px; overflow: hidden; color: inherit; text-decoration: none;
  background: linear-gradient(160deg, var(--sky-1) 0%, var(--sky-2) 45%, var(--sky-3) 100%);
  box-shadow: var(--shadow);
}
.showcase__copy { padding-bottom: 48px; max-width: 30rem; }
.showcase__icon { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 10px 24px rgba(31, 44, 94, 0.2); margin-bottom: 22px; }
.showcase h2 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.6vw, 56px); letter-spacing: -0.035em; line-height: 1; color: var(--navy); }
.showcase__tag { margin: 8px 0 16px; font-weight: 700; font-size: 20px; color: var(--amber-text); }
.showcase p { color: var(--secondary); font-size: 18px; }
.showcase__device { align-self: end; margin-bottom: -150px; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.showcase:hover .showcase__device { transform: translateY(-14px) rotate(-1.5deg); }

.principles { padding: 110px 0 20px; }
.principles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principles__grid article { padding: 28px 28px 0 0; }
.principles__grid article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.principles__grid h3 { font-size: 21px; margin-bottom: 8px; letter-spacing: -0.01em; }
.principles__grid p { color: var(--secondary); max-width: 30ch; }

/* ---------- Docs: legal and support ---------- */
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding: 56px 0 0; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.toc__title { font: 600 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--secondary); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--secondary); text-decoration: none; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.is-current { color: var(--text); border-left-color: var(--amber); }
.doc { max-width: 680px; }
.doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 14px; }
.doc h2 { margin: 48px 0 14px; font-size: 24px; letter-spacing: -0.015em; scroll-margin-top: 96px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc .effective { font: 500 14px/1.4 var(--mono); color: var(--secondary); margin-bottom: 28px; }
.doc strong { font-weight: 650; }
.doc__lede { font-size: 20px; color: var(--secondary); }
mark { background: var(--mark); color: inherit; padding: 0 4px; border-radius: 4px; }

details { margin: 10px 0; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
details[open] { border-color: color-mix(in srgb, var(--amber) 60%, transparent); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 650; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 24px/1 var(--body); color: var(--amber-text); transition: transform .25s ease; }
details[open] summary::after { transform: rotate(45deg); }
details > :not(summary) { margin-left: 20px; margin-right: 20px; }
details > :last-child { margin-bottom: 18px; }

/* ---------- 404 ---------- */
.notfound { padding: 160px 0 60px; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 110px; padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 14px; }
.site-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer__brand { display: flex; align-items: center; gap: 18px; }
.site-footer__brand img { width: auto; height: 34px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--secondary); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Scroll reveals (only when JavaScript is on) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .d2 { transition-delay: .1s; }
.js .d3 { transition-delay: .2s; }
.js .bento .tile:nth-child(2), .js .plans .plan:nth-child(2) { transition-delay: .08s; }
.js .bento .tile:nth-child(3) { transition-delay: .16s; }
.js .bento .tile:nth-child(5) { transition-delay: .08s; }
.js .bento .tile:nth-child(6) { transition-delay: .16s; }

/* ---------- Smaller screens ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; text-align: left; }
  .hero--app { padding: 110px 0 96px; min-height: 0; }
  .scene .sun { --sun-size: min(560px, 120vw); left: 50%; bottom: 3%; }
  .scene__land { height: 24%; min-height: 200px; }
  .hero__device { justify-content: center; }
  .phone--hero { --phone-w: min(280px, 70vw); }
  .hero--studio { padding: 120px 0 60px; }
  .studio-hero__row { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
    
  .steps { grid-template-columns: 1fr; padding-top: 80px; }
  .steps__stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 34px 0; max-width: none; }
  .step__figure { display: flex; justify-content: center; margin-top: 26px; }

  .bento { grid-template-columns: 1fr 1fr; }
  .tile--wide { grid-column: span 2; }
  .plans, .privacy-band__inner { grid-template-columns: 1fr; }

  .showcase { grid-template-columns: 1fr; padding: 36px 28px 0; }
  .showcase__copy { padding-bottom: 0; }
  .showcase__device { justify-self: center; margin-bottom: -120px; }
  .showcase-wrap { padding-bottom: 0; }
  .principles__grid { grid-template-columns: 1fr; }
  .principles__grid article, .principles__grid article + article { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }

  .doc-layout { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
  .toc { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap-wide { width: calc(100% - 32px); }
  .site-header nav a { padding: 8px 10px; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tile { padding: 22px; border-radius: 24px; }
  .summary span { padding: 12px; }
  .plan { padding: 26px 22px; }
  .plan__price { font-size: 46px; }
  .ribbon__list li { font-size: 15px; padding: 0 20px; }
  .ribbon__list li::after { margin-left: 20px; }
}

/* ---------- Reduced motion: keep everything still and visible ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .scene .sun { translate: -50% 0; }
  .ribbon__track { flex-wrap: wrap; width: auto; }
  .ribbon__list[aria-hidden="true"] { display: none; }
  .ribbon__list { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .ribbon { mask-image: none; }
  .step { opacity: 1; }
}
