/* SightZen website: the app's horizon, in the browser. */

:root {
  --ink: #2a2540;
  --muted: #5e5973;
  --faint: #8a85a0;
  --paper: #f4f2f7;
  --card: #ffffff;
  --line: #e7e3ee;
  --primary: #6e5b9a;
  --lavender: #c4b5fd;
  --night: #15132a;
  --night-2: #262450;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Outfit', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  /* Sky colours, set from the visitor's time of day by main.js. */
  --sky-0: #a3cbe8;
  --sky-1: #cbe4f3;
  --sky-2: #eef6f6;
  --far: #b9c6ea;
  --mid: #a8d8ce;
  --sun: #fff3cf;
  --sky-ink: #2a2540;
  --sky-muted: rgba(42, 37, 64, 0.7);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
/* clip, not hidden: hidden would make body a scroll container and stop the closing band from pinning. */
html, body { overflow-x: clip; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h1, h2, h3, .demo-prompt { text-wrap: balance; }
p { text-wrap: pretty; }
h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: 1.02; font-weight: 300; }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0 0 14px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* ---------- The sky ---------- */

.sky {
  position: relative;
  min-height: 100svh;
  padding-bottom: 0;
  color: var(--sky-ink);
  background: linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 46%, var(--sky-2) 72%, var(--paper) 100%);
  isolation: isolate;
}
/* Only the scenery is clipped, so the hero phone can stand over the next section. */
.sky-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky-layer { position: absolute; inset: 0; }

.hill { position: absolute; left: 0; width: 100%; height: 38vh; bottom: 0; }
.hill.far { bottom: 22vh; }
.hill.mid { bottom: 9vh; }
.hill.near { bottom: -1px; height: 26vh; }
.hill path { vector-effect: non-scaling-stroke; }

.sun, .moon { position: absolute; left: 0; top: 0; width: 220px; height: 220px; margin: -110px 0 0 -110px; }
.sun::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sun) 90%, transparent) 0%, color-mix(in srgb, var(--sun) 35%, transparent) 30%, transparent 70%);
  animation: glow 5s ease-in-out infinite alternate;
}
.sun .disc { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 1px rgba(42, 37, 64, 0.08); }
.sun .halo { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.8); animation: ripple 4.8s ease-out infinite; }
.sun .halo + .halo { animation-delay: 2.4s; }
.moon { display: none; }
.moon::before { content: ''; position: absolute; inset: 40px; border-radius: 50%; background: radial-gradient(circle, rgba(243, 238, 220, 0.35), transparent 70%); }
.moon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; box-shadow: inset -12px 6px 0 0 #f3eedc; transform: rotate(-20deg); }
.is-night .sun { display: none; }
.is-night .moon { display: block; animation: float 6s ease-in-out infinite alternate; }

/* Clouds drawn like the app's illustrations: white with a fine ink line. */
.cloud { position: absolute; width: 170px; height: 70px; margin-top: -40px; animation: drift linear infinite; }
.cloud svg { width: 100%; height: 100%; overflow: visible; }
.cloud-body { fill: rgba(255, 255, 255, 0.9); stroke: var(--a-ink, rgba(48, 46, 92, 0.45)); stroke-width: 1.1px; stroke-linejoin: round; }
.cloud-line { fill: none; stroke: var(--a-soft, rgba(48, 46, 92, 0.22)); stroke-width: 1px; stroke-linecap: round; }

/* The hero illustration (js/art.js). */
.art { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.art path, .art ellipse { stroke: var(--a-ink); stroke-width: 1.1px; stroke-linejoin: round; stroke-linecap: round; }
.art .c { fill: none; stroke: var(--a-soft); stroke-width: 1px; }
.art .stem { stroke: var(--a-ink); stroke-width: 1.15px; }
.art .ripple { fill: none; stroke: var(--a-ripple); stroke-width: 1.4px; opacity: 0.6; }
.art .ground { fill: var(--paper); stroke: none; }
.art .bird { fill: none; stroke: var(--a-ink); stroke-width: 1.3px; }
.art .m1 { fill: var(--a-m1); } .art .m2 { fill: var(--a-m2); }
.art .h1 { fill: var(--a-h1); } .art .h2 { fill: var(--a-h2); } .art .h3 { fill: var(--a-h3); }
.art .lake { fill: var(--a-lake); } .art .pad { fill: var(--a-pad); } .art .lotus { fill: var(--a-lotus); } .art .core { fill: var(--a-core); }
.art .s1 { fill: var(--a-s1); } .art .s2 { fill: var(--a-s2); } .art .s3 { fill: var(--a-s3); } .art .s4 { fill: var(--a-s4); } .art .s5 { fill: var(--a-s5); }
.art .l1 { fill: var(--a-l1); } .art .l2 { fill: var(--a-l2); } .art .l3 { fill: var(--a-l3); } .art .l4 { fill: var(--a-l4); } .art .l5 { fill: var(--a-l5); }
/* A faint paper grain over the scene, as in the printed-looking app illustrations. */
.sky-scene::after { content: ''; position: absolute; inset: 0; background: url(/images/grain.png); pointer-events: none; }
.cloud-a { top: 44%; animation-duration: 120s; animation-delay: -30s; }
.cloud-b { top: 56%; transform: scale(0.7); animation-duration: 160s; animation-delay: -110s; opacity: 0.8; }
.cloud-c { top: 30%; transform: scale(0.55); animation-duration: 200s; animation-delay: -60s; opacity: 0.6; }
.is-night .cloud { opacity: 0.08; }

.stars { position: absolute; inset: 0 0 35% 0; opacity: 0; transition: opacity 1s; }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: twinkle 2.6s ease-in-out infinite alternate; }
.is-night .stars, .is-dusk .stars, .night .stars { opacity: 1; }

@keyframes glow { from { transform: scale(0.92); opacity: 0.8; } to { transform: scale(1.04); opacity: 1; } }
@keyframes ripple { from { transform: scale(0.55); opacity: 0.55; } to { transform: scale(1.35); opacity: 0; } }
@keyframes drift { from { left: -200px; } to { left: calc(100% + 60px); } }
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 0.95; } }
@keyframes float { from { transform: translateY(-3px); } to { transform: translateY(3px); } }

/* ---------- Nav and hero ---------- */

.nav { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 22px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--serif); font-size: 22px; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--sky-muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--sky-ink); }

.hero { max-width: 860px; margin: 0 auto; padding: 9vh 24px 0; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; font-weight: 500; color: var(--sky-muted); margin-bottom: 18px; }
.lede { max-width: 640px; margin: 26px auto 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--sky-muted); }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 15px 26px; border-radius: 30px; background: var(--ink); color: #fff; font-weight: 500; }
.ghost { display: inline-flex; align-items: center; padding: 15px 26px; border-radius: 30px; background: rgba(255, 255, 255, 0.55); color: var(--sky-ink); text-decoration: none; font-weight: 500; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ghost:hover { background: rgba(255, 255, 255, 0.8); }
/* Dark skies (dusk and night): a glass button with light text, as in the break demo. */
.is-dusk .sky .ghost, .is-night .sky .ghost { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); }
.is-dusk .sky .ghost:hover, .is-night .sky .ghost:hover { background: rgba(255, 255, 255, 0.2); }
.is-dusk .sky .primary, .is-night .sky .primary { background: var(--lavender); color: var(--night); }

.hero-phone { margin: 7vh auto 0; width: min(330px, 74vw); position: relative; z-index: 2; margin-bottom: -18vh; }

/* ---------- Phones ---------- */

.phone {
  border-radius: 46px;
  padding: 10px;
  background: #1b1828;
  box-shadow: 0 0 0 1.5px #4a4660 inset, 0 40px 80px -30px rgba(30, 20, 70, 0.45), 0 18px 36px -18px rgba(30, 20, 70, 0.35);
}
/* height: auto, or the img's height attribute wins and the screen is cropped. */
.phone img, .phone video { width: 100%; height: auto; border-radius: 37px; aspect-ratio: 660 / 1434; object-fit: cover; background: #0f0d1a; }
.phones { display: flex; justify-content: center; gap: 22px; }
.phones .phone { width: min(280px, 42vw); }
.phones.single .phone { width: min(310px, 70vw); }
.tilt-l { transform: rotate(-2.5deg) translateY(10px); }
.tilt-r { transform: rotate(2.5deg) translateY(-14px); }
.video-phone .phone { width: min(300px, 66vw); margin: 0 auto; }

/* ---------- Sections ---------- */

.band { padding: clamp(80px, 12vw, 150px) 24px; position: relative; }
#break { padding-top: calc(18vh + 90px); }
.split { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split.reverse .copy { order: 2; }
.copy p { color: var(--muted); font-size: 18px; max-width: 470px; }
.copy h2 { margin-bottom: 22px; }
.kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 12.5px; font-weight: 600; color: var(--primary); margin-bottom: 14px; }
.note { font-size: 14px !important; color: var(--faint) !important; }
.center { max-width: 760px; margin: 0 auto; text-align: center; }
.center p { color: var(--muted); font-size: 18px; }
.center h2 { margin-bottom: 18px; }
.narrow { max-width: 720px; margin: 0 auto; }
.narrow p { color: var(--muted); }
.narrow h2 { margin-bottom: 22px; }

.night { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #f5f2fb; overflow: hidden; }
.night p { color: rgba(245, 242, 251, 0.74); }
.night .kicker { color: var(--lavender); }
.night .note { color: rgba(245, 242, 251, 0.5) !important; }
.night .stars { inset: 0; }

/* A day down the page: each section picks up the sky where the one above left it,
   from a cool morning through midday and golden hour to a lavender dusk. The closing band
   then sets the sun as you scroll (main.js). Light enough everywhere for the dark text. */
#break { background: linear-gradient(180deg, var(--paper), #ebeffa); }
#postcard { background: linear-gradient(180deg, #ebeffa, #e4eff8); }
#routines { background: linear-gradient(180deg, #e4eff8, #e6f2f3); }
#widgets { background: linear-gradient(180deg, #e6f2f3, #f4efe2); }
#calm { background: linear-gradient(180deg, #f4efe2, #f9e9d6); }
#progress { background: linear-gradient(180deg, #f9e9d6, #fbe1c8); }
#pro { background: linear-gradient(180deg, #fbe1c8, #f8d5c7); }
#evidence { background: linear-gradient(180deg, #f8d5c7, #eed3e1); }
#faq { background: linear-gradient(180deg, #eed3e1, #ddd3ec); }
.widgets { width: min(560px, 92vw); height: auto; margin: 40px auto 0; filter: drop-shadow(0 30px 40px rgba(60, 40, 100, 0.18)); }

.cards { list-style: none; padding: 0; margin: 50px auto 0; max-width: 1120px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 18px 40px -26px rgba(59, 51, 96, 0.35); }
.card .icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(184, 169, 201, 0.25); color: var(--primary); margin-bottom: 18px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

.plans { max-width: 900px; margin: 50px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { background: var(--card); border-radius: var(--radius); padding: 34px 32px; box-shadow: 0 18px 40px -26px rgba(59, 51, 96, 0.35); }
.plan h3 { font-size: 28px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 9px 0 9px 30px; position: relative; color: var(--muted); border-top: 1px solid var(--line); }
.plan li:first-child { border-top: 0; }
.plan li::before { content: ''; position: absolute; left: 4px; top: 17px; width: 11px; height: 11px; border-radius: 50%; background: var(--lavender); }
.plan.pro { background: linear-gradient(160deg, #2b2650 0%, #3d3470 100%); color: #f5f2fb; }
.plan.pro li { color: rgba(245, 242, 251, 0.8); border-color: rgba(255, 255, 255, 0.12); }
.plan.pro li::before { background: #ffd99a; }
.fine { font-size: 14px; margin: 18px 0 0; color: rgba(245, 242, 251, 0.6); }

details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative; font-family: var(--serif); font-size: 21px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-family: var(--sans); font-size: 26px; color: var(--primary); transition: transform 0.3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 12px; }

/* The end of the page is the end of the day. The scene pins for a while (sticky) so the
   sunset plays while you scroll (main.js sets --dark, the hills and the sun). */
.closing { position: relative; text-align: center; height: calc(150px + 185svh); overflow: clip; }
.closing.night { background: var(--night); }
.closing-fade { height: 150px; background: linear-gradient(180deg, #ddd3ec, #4b4382); }
.closing-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; padding: max(110px, 21svh) 24px 0; box-sizing: border-box;
  background: linear-gradient(180deg, #4b4382 0, #6f5c9c 52%, #c98f98 80%, #f2bd9c 100%); }
.closing-scene { position: absolute; inset: 0; pointer-events: none; }
.closing-dark { position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0, var(--night-2) 100%); opacity: var(--dark, 1); }
.closing .stars { transition: opacity 0.4s; }
.closing-scene .hill { height: min(210px, 25svh); }
.closing-scene .hill.far { bottom: min(52px, 6svh); }
.closing-scene .hill.mid { bottom: -1px; }
.dusk-sun { position: absolute; left: 50%; top: 0; width: 240px; height: 240px; margin: -120px 0 0 -120px; opacity: var(--sunup, 0); }
.dusk-sun::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, var(--dsun, #ffd59a) 0%, rgba(255, 190, 150, 0.35) 28%, transparent 68%); }
.dusk-sun .disc { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--dsun, #ffd59a); }
.dusk-sun .halo { position: absolute; left: 50%; top: 50%; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.6); animation: ripple 4.8s ease-out infinite; }
.dusk-sun .halo + .halo { animation-delay: 2.4s; }
.dusk-moon { position: absolute; right: 7%; top: 9%; width: 140px; height: 140px; opacity: 0; }
.dusk-moon::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(243, 238, 220, 0.32), transparent 70%); }
.dusk-moon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; box-shadow: inset -11px 6px 0 0 #f3eedc; transform: rotate(-20deg); }
.closing h2 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 14px; }
/* Above the scenery: the hills are absolutely placed and would cover the form. */
.closing .center { position: relative; z-index: 1; max-width: 920px; }

.footer { background: var(--night); color: rgba(245, 242, 251, 0.62); padding: 36px 24px 48px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; justify-content: space-between; }
.footer .brand { color: #f5f2fb; font-size: 19px; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { color: rgba(245, 242, 251, 0.82); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer p { margin: 0; font-size: 14px; width: 100%; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.phones.reveal .tilt-l { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.js-off .reveal { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */

.page-sky { height: 220px; background: linear-gradient(180deg, var(--sky-0), var(--sky-1) 60%, var(--paper)); position: relative; overflow: hidden; }
.page-sky .hill { height: 120px; }
.page-sky .hill.far { bottom: 30px; }
.page-sky .hill.mid { bottom: -1px; }
.page-sky .nav { position: relative; z-index: 2; color: var(--sky-ink); }
.legal { max-width: 760px; margin: -40px auto 0; padding: 0 24px 100px; position: relative; }
.legal h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 8px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal .last-updated { color: var(--faint); font-size: 15px; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .copy { order: 0; }
  .copy p { max-width: none; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .hero { padding-top: 5vh; }
  .phones { gap: 12px; }
  .phones .phone { width: 44vw; padding: 7px; border-radius: 32px; }
  .phones .phone img { border-radius: 26px; }
  .cards, .plans { grid-template-columns: 1fr; }
  .tilt-l, .tilt-r { transform: none; }
  .sun, .moon { width: 160px; height: 160px; margin: -80px 0 0 -80px; }
  .sun .halo { width: 110px; height: 110px; margin: -55px 0 0 -55px; }
  .sun .disc { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  /* The closing on a phone: words higher, a smaller sun below them, the moon above them. */
  .closing-pin { padding-top: max(64px, 11svh); }
  .dusk-sun { width: 190px; height: 190px; margin: -95px 0 0 -95px; }
  .dusk-sun .disc { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .dusk-sun .halo { width: 124px; height: 124px; margin: -62px 0 0 -62px; }
  .dusk-moon { right: 3%; top: 0; width: 100px; height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .cloud-a { left: 12%; } .cloud-b { left: 70%; } .cloud-c { left: 40%; }
}

/* ---------- Buttons ---------- */

.primary { display: inline-flex; align-items: center; gap: 9px; padding: 15px 26px; border-radius: 30px; border: 0; background: var(--ink); color: #fff; font: 500 16px var(--sans); text-decoration: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 10px 24px -12px rgba(30, 20, 70, 0.6); }
.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(30, 20, 70, 0.7); }
.primary:active { transform: scale(0.98); }
.ghost.dark { background: rgba(255, 255, 255, 0.12); color: #f5f2fb; border: 1px solid rgba(255, 255, 255, 0.25); font: 500 16px var(--sans); cursor: pointer; }
.soon { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 18px; font-size: 14.5px; color: var(--sky-muted); }

/* ---------- Launch signup ---------- */

.notify { display: flex; gap: 10px; max-width: 460px; margin: 30px auto 0; }
.notify input[type="email"] { flex: 1; min-width: 0; padding: 15px 20px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.1); color: #fff; font: 400 16px var(--sans); }
.notify input[type="email"]::placeholder { color: rgba(245, 242, 251, 0.5); }
.notify input[type="email"]:focus { outline: 2px solid var(--lavender); outline-offset: 2px; }
.notify button { padding: 15px 24px; border-radius: 30px; border: 0; background: var(--lavender); color: var(--night); font: 600 16px var(--sans); cursor: pointer; }
.notify button:disabled { opacity: 0.6; }
.notify-fine { font-size: 13.5px; margin-top: 12px; }
.notify-fine a { color: var(--lavender); }
.notify-done { font-family: var(--serif); font-size: 22px; color: #f5f2fb !important; margin-top: 26px; }
.hp, .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Try a break ---------- */

body.demo-open { overflow: hidden; }
.demo { position: fixed; inset: 0; z-index: 100; color: #f5f2fb; display: flex; flex-direction: column; animation: demo-in 0.9s ease both; }
.demo[hidden] { display: none; }
@keyframes demo-in { from { opacity: 0; } to { opacity: 1; } }
.demo-scene { position: absolute; inset: 0; overflow: hidden; }
.demo-night { position: absolute; inset: 0; background: linear-gradient(180deg, #111127 0%, #1c1b3b 55%, #2b2954 100%); }
.demo-night .stars { inset: 0 0 30% 0; opacity: 1; }
.demo-dawn { position: absolute; inset: 0; background: linear-gradient(180deg, #1f1d3b 0%, #3a3156 45%, #7a5566 75%, #c98a78 100%); opacity: 0; transition: opacity 2.4s ease; }
.demo-moon { position: absolute; right: 12%; top: 10%; width: 120px; height: 120px; transition: opacity 1.5s; }
.demo-moon::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(243, 238, 220, 0.3), transparent 70%); }
.demo-moon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; box-shadow: inset -10px 5px 0 0 #f3eedc; transform: rotate(-20deg); }
.demo-sun { position: absolute; left: 22%; top: 58%; width: 220px; height: 220px; margin: -110px 0 0 -110px; opacity: 0; transform: translateY(140px); transition: transform 3s cubic-bezier(.2,.7,.2,1), opacity 1.2s; }
.demo-sun::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 216, 176, 0.85) 0%, rgba(255, 216, 176, 0.3) 30%, transparent 70%); }
.demo-sun .disc { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #ffd8b0; }
.demo-sun .halo { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.7); animation: ripple 4.8s ease-out infinite; }
.demo-sun .halo + .halo { animation-delay: 2.4s; }
.demo .hill { height: 34vh; }
.demo .hill.far { bottom: 9vh; }
.demo .hill.mid { bottom: -1px; height: 22vh; }
.demo.is-done .demo-dawn { opacity: 1; }
.demo.is-done .demo-moon { opacity: 0; }
.demo.is-done .demo-sun { opacity: 1; transform: none; }

.demo-stage { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 28px 12vh; cursor: pointer; outline: none; }
.demo-label { text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; color: rgba(245, 242, 251, 0.62); margin: 0 0 14px; transition: opacity 1.8s; }
.demo-prompt { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.25; max-width: 680px; margin: 0; transition: opacity 1.8s; animation: rise 1.1s cubic-bezier(.2,.7,.2,1) 0.25s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.demo-glow { width: 300px; height: 300px; margin: 34px 0 14px; border-radius: 50%; background: radial-gradient(circle, rgba(196, 181, 253, 0.55) 0%, rgba(196, 181, 253, 0.16) 40%, transparent 70%); animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.9); opacity: 0.75; } 50% { transform: scale(1.06); opacity: 1; } }
.demo-time { font-family: var(--serif); font-size: 22px; margin: 0; opacity: 0; transition: opacity 0.3s; }
.demo-cue { font-size: 14.5px; color: rgba(245, 242, 251, 0.6); margin: 10px 0 0; transition: opacity 1.8s; }
.demo-words { transition: opacity 1.8s; }
.demo.is-resting .demo-words, .demo.is-resting .demo-cue { opacity: 0; }
.demo.is-peek .demo-time { opacity: 1; }
.demo.is-done .demo-stage { display: none; }
.demo-cancel { position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: none; border: 0; color: rgba(245, 242, 251, 0.6); font: 500 16px var(--sans); padding: 12px 18px; cursor: pointer; transition: opacity 1.8s; }
.demo.is-resting .demo-cancel { opacity: 0.35; }
.demo.is-done .demo-cancel { display: none; }

.demo-done { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 28px 16vh; }
.demo-done[hidden] { display: none; }
.demo-check { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--lavender); color: var(--night); margin-bottom: 22px; animation: pop 0.7s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.demo-done h2 { font-size: clamp(36px, 4.6vw, 54px); animation: rise 0.9s cubic-bezier(.2,.7,.2,1) 0.25s both; }
.demo-done p { max-width: 520px; color: rgba(245, 242, 251, 0.78); margin: 14px 0 0; animation: rise 0.9s cubic-bezier(.2,.7,.2,1) 0.45s both; }
.demo-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; animation: rise 0.9s cubic-bezier(.2,.7,.2,1) 0.65s both; }
.demo-actions .primary { background: var(--lavender); color: var(--night); }

/* ---------- Wide screens: text and phone side by side on the hills ---------- */

@media (min-width: 1100px) {
  .hero-wrap { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px; padding: 0 40px; min-height: calc(100svh - 90px); }
  .hero { text-align: left; padding: 0 0 12vh; margin: 0; max-width: 620px; }
  .hero .lede { margin-left: 0; }
  .hero .cta, .hero .soon { justify-content: flex-start; }
  /* Capped by height too, so short laptop screens keep open sky above the phone for the sun. */
  .hero-phone { margin: 8vh 0 0; width: min(360px, 26vw, 40vh); justify-self: center; margin-bottom: -10vh; }
  /* Clouds keep to the open sky above the words and the phone. */
  .sky .cloud-a { top: 10%; transform: scale(0.6); }
  .sky .cloud-b { top: 13.5%; transform: scale(0.45); }
  .sky .cloud-c { display: none; }
  #break { padding-top: 180px; }
  .phones .phone { width: min(300px, 22vw); }
  .phones.single .phone { width: min(340px, 26vw); }
}
@media (max-width: 640px) {
  .notify { flex-direction: column; }
  .demo-glow { width: 230px; height: 230px; margin-top: 24px; }
  .demo-moon { top: 2%; right: 4%; width: 96px; height: 96px; }
  .demo-sun { left: 20%; top: 60%; }
  /* Clouds stay out of the words on a narrow hero. */
  .cloud { opacity: 0.55; }
  .cloud-a { top: 64%; }
  .cloud-b { top: 80%; }
  .cloud-c { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-sun { transform: none; }
}
