/* Vezi landing — Torre Viva on the web. One day, 07:00 to midnight. */

:root {
  --day: #f3f7e8;
  --afternoon: #f4f1dc;
  --night: #0a0c07;

  --bg: var(--day);
  --surface: #ffffff;
  --ink: #172008;
  --ink2: #55613f;
  --line: #d5dfbf;
  --fill: #84b026;
  --on-fill: #10190a;
  --accent-text: #4a6a0e;
  --accent-display: #4f7010;
  --teal: #0b8574;
  --red: #e5383b;
  --amber: #f59e0b;

  /* the app's own dark card language, used by every phone mockup in both phases */
  --app-bg: #0a0c07;
  --app-card: #171c12;
  --app-line: #2a3320;
  --app-ink: #f0f4e6;
  --app-ink2: #a4ae92;
  --app-lime: #9ccb3a;

  --gutter: clamp(16px, 4vw, 56px);
  --rail: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Inclusive Sans', ui-sans-serif, system-ui, sans-serif;
  interpolate-size: allow-keywords;
}

.night {
  --bg: var(--night);
  --surface: #171c12;
  --ink: #f0f4e6;
  --ink2: #a4ae92;
  --line: #2a3320;
  --fill: #9ccb3a;
  --accent-text: #c0e36a;
  --accent-display: #c0e36a;
  --teal: #2bc4ad;
  --red: #ff5c5c;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #9fb36f var(--day); -webkit-text-size-adjust: 100%; }
html:has(body[data-phase='night']) { scrollbar-color: #4a5a2c var(--night); }
body {
  margin: 0;
  background: var(--day);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  caret-color: var(--fill);
}
::selection { background: #9ccb3a; color: #10190a; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--fill); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--day); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }

/* ---------- buttons, links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  background: var(--fill); color: var(--on-fill);
  font: 600 1.0625rem/1 var(--font); text-decoration: none;
  border: 0; border-radius: 18px; cursor: pointer;
  box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 10px 24px -12px rgb(62 107 20 / .7);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s;
}
.btn svg { transition: transform .5s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 18px 30px -14px rgb(62 107 20 / .8); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.night .btn, .night .btn:hover, body[data-phase='night'] .nav .btn { box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 14px 26px -14px rgb(0 0 0 / .8); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; border-radius: 13px; box-shadow: none; }
.btn--full { width: 100%; }
.link { color: var(--accent-text); font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color .3s; }
.link:hover { text-decoration-color: currentColor; }

/* ---------- nav with the clock ---------- */
.nav {
  --nbg: rgb(255 255 255 / .86); --nink: #172008; --nline: #d5dfbf;
  position: fixed; z-index: 50; top: 12px; left: var(--gutter); right: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  height: 60px; padding: 0 10px 0 18px;
  background: var(--nbg); color: var(--nink);
  border: 1px solid var(--nline); border-radius: 20px;
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  transition: background-color .8s, color .8s, border-color .8s;
  overflow: clip;
}
body[data-phase='night'] .nav { --nbg: rgb(23 28 18 / .86); --nink: #f0f4e6; --nline: #2a3320; }
.nav__brand { justify-self: start; display: block; }
.wm { height: 32px; width: auto; }
.wm--night, body[data-phase='night'] .wm--day { display: none; }
body[data-phase='night'] .wm--night { display: block; }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 10px; }

.clock { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.clock__orb { color: #d98a00; transition: color .8s, transform 1.2s var(--ease); }
body[data-phase='night'] .clock__orb { color: #c0e36a; transform: rotate(-24deg); }
.orb-moon, body[data-phase='night'] .orb-sun { display: none; }
body[data-phase='night'] .orb-moon { display: block; }
.clock__time { font-size: 1.125rem; letter-spacing: .01em; min-width: 5ch; }
.clock__label { font-weight: 500; font-size: .9375rem; opacity: .72; white-space: nowrap; }
.nav__day { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.nav__day i { display: block; height: 100%; background: var(--fill, #84b026); transform-origin: left; transform: scaleX(var(--p, 0)); }
body[data-phase='night'] .nav__day i { background: #9ccb3a; }

.lang { display: flex; padding: 3px; border: 1px solid var(--nline); border-radius: 12px; }
.lang button { border: 0; background: none; color: inherit; font: 600 .8125rem/1 var(--font); padding: 8px 9px; border-radius: 9px; cursor: pointer; opacity: .62; transition: opacity .3s, background-color .3s; }
.lang button:hover { opacity: 1; }
.lang button[aria-pressed='true'] { opacity: 1; background: color-mix(in srgb, var(--nink) 12%, transparent); }

/* ---------- hero 07:00 ---------- */
.hero {
  position: relative; min-height: max(100svh, 680px);
  display: grid; grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
  padding-left: var(--gutter);
}
.hero__copy { align-self: center; padding: 128px clamp(24px, 4vw, 72px) 72px 0; max-width: 46rem; }
.hero__h { font-size: clamp(2.5rem, 4.7vw, 4.5rem); line-height: 1.03; letter-spacing: -0.03em; }
.ln { display: block; overflow: clip; padding-bottom: .12em; }
.ln > span { display: inline-block; }
.ln--accent { color: var(--accent-display); }
.hero__sub { margin-top: 28px; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--ink2); max-width: 36rem; }
.hero__act { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.hero__facts { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink2); max-width: 36rem; }

.hero__scene { position: relative; min-height: 100%; }
.hero__scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; border-bottom-left-radius: 44px; }

.float {
  position: absolute; display: flex; align-items: center; gap: 14px;
  padding: 16px 20px 16px 16px; border-radius: 22px; max-width: 320px;
  box-shadow: 0 24px 48px -20px rgb(10 12 7 / .6), 0 2px 6px rgb(10 12 7 / .2);
}
.float b { display: block; font-weight: 700; line-height: 1.2; }
.float small { display: block; font-size: .875rem; margin-top: 3px; }
.float--pass { left: -44px; bottom: 17%; background: linear-gradient(180deg, #a9d24a, #86b32a); color: #10190a; }
.float--pass b { text-transform: uppercase; letter-spacing: .02em; font-size: 1rem; }
.float--pass small { color: #22300c; }
.float__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgb(255 255 255 / .42); flex: none; }
.float--note { right: 28px; bottom: 6%; background: var(--app-card); color: var(--app-ink); border: 1px solid var(--app-line); }
.float--note small { color: var(--app-ink2); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--app-lime); flex: none; }
.dot--amber { background: var(--amber); }
.dot--teal { background: #2bc4ad; }

/* ---------- agenda sections ---------- */
.sec {
  position: relative; background: var(--bg); color: var(--ink);
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr);
  padding: clamp(96px, 13vw, 184px) var(--gutter) clamp(80px, 10vw, 144px);
}
.rail { position: relative; }
.rail::before { content: ''; position: absolute; left: 5px; top: calc(clamp(96px, 13vw, 184px) * -1); bottom: calc(clamp(80px, 10vw, 144px) * -1); width: 1px; background: var(--line); }
.rail time {
  position: sticky; top: 108px; display: inline-block;
  font-weight: 600; font-size: 1rem; color: var(--ink2);
  padding: 4px 0 4px 22px; background: var(--bg);
}
.rail time::before { content: ''; position: absolute; left: 0; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--fill); box-shadow: 0 0 0 4px var(--bg); }
.sec__body { min-width: 0; max-width: 1240px; }

.h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); line-height: 1.06; letter-spacing: -0.025em; max-width: 20ch; }
.h2--quote { max-width: 22ch; font-size: clamp(2.125rem, 4.2vw, 4rem); }
.h2--xl { font-size: clamp(2.25rem, 4.2vw, 4rem); max-width: 16ch; }
.lead { margin-top: 24px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--ink2); max-width: 34rem; }
.fact { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 34rem; color: var(--ink2); }
.fact b { color: var(--ink); font-weight: 600; }
.note { margin-top: 16px; font-size: .875rem; color: var(--ink2); text-align: center; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--flip .split__copy { order: 2; }
.split__demo { position: relative; display: grid; justify-items: center; }

/* ---------- 08:30 problem ---------- */
.pains { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.pain:nth-child(2) { margin-top: 56px; }
.pain:nth-child(3) { margin-top: 112px; }
.pain p { margin-top: 24px; color: var(--ink2); max-width: 30ch; }
.pain strong { display: block; color: var(--ink); font-size: 1.1875rem; line-height: 1.3; font-weight: 700; margin-bottom: 8px; }
.pain__art { height: 190px; display: grid; align-items: end; }

.logbook { background: #fbf6e2; border-radius: 6px 14px 14px 6px; padding: 22px 20px 20px 34px; display: grid; gap: 17px; transform: rotate(-2deg); box-shadow: 0 16px 28px -18px rgb(23 32 8 / .4); position: relative; }
.logbook::before { content: ''; position: absolute; left: 18px; top: 0; bottom: 0; width: 1px; background: #e9a3a3; }
.logbook i { display: block; height: 1px; background: #b9c4d6; position: relative; }
.logbook .scrawl::after { content: ''; position: absolute; left: 4px; bottom: 3px; width: 62%; height: 9px; background: repeating-radial-gradient(circle at 0 100%, transparent 0 4px, #33405c 4px 5.2px); opacity: .55; filter: blur(.6px); }
.logbook .scrawl--2::after { width: 38%; opacity: .3; }

.bill { background: var(--surface); border-radius: 18px; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; box-shadow: 0 16px 28px -18px rgb(23 32 8 / .4); }
.bill span { grid-column: 1 / -1; color: var(--ink2); font-size: .9375rem; }
.bill b { font-size: 2.25rem; letter-spacing: -0.02em; line-height: 1.1; }
.bill em { font-style: normal; font-weight: 700; font-size: 2.25rem; color: var(--red); line-height: 1.1; }

.chat { display: grid; gap: 7px; justify-items: start; }
.b { background: var(--surface); border: 1px solid var(--line); padding: 8px 13px; border-radius: 15px 15px 15px 5px; font-size: .875rem; line-height: 1.3; }
.b--r { justify-self: end; background: #dcebb4; border-color: #c4d88f; border-radius: 15px 15px 5px 15px; }
.b--notice { opacity: .4; filter: blur(.7px); font-weight: 600; }

.bridge { margin-top: clamp(72px, 9vw, 128px); font-size: clamp(1.5rem, 2.6vw, 2.375rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; color: var(--accent-display); max-width: 24ch; text-wrap: balance; }

/* ---------- phones ---------- */
.phone {
  width: min(290px, 78vw); aspect-ratio: 9 / 17.5; position: relative; overflow: clip;
  background: var(--app-bg); color: var(--app-ink);
  border: 1px solid #39442b; border-radius: 42px; padding: 16px 14px;
  box-shadow: 0 0 0 7px #11150c, 0 0 0 8px #39442b, 0 44px 70px -34px rgb(10 12 7 / .75), 0 14px 22px -14px rgb(10 12 7 / .5);
  display: flex; flex-direction: column; gap: 12px; font-size: .875rem;
}
.phone__bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 10px 0; font-weight: 600; font-size: .8125rem; }
.phone__role { color: var(--app-lime); font-weight: 600; }
.phone b { display: block; font-weight: 600; line-height: 1.25; }
.phone small { display: block; color: var(--app-ink2); font-size: .8125rem; margin-top: 2px; }

/* 10:15 package */
.moment--pkg { background: var(--day); }
.shot { background: var(--app-card); border: 1px solid var(--app-line); border-radius: 22px; overflow: clip; margin-top: auto; }
.shot__view { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(120% 90% at 50% 100%, #4a4636, #23241b); display: grid; place-items: center; }
.box { width: 56%; filter: drop-shadow(0 12px 10px rgb(0 0 0 / .45)); }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.shot__meta { padding: 12px 14px 14px; }
.push { position: absolute; left: 12px; right: 12px; top: 44px; display: flex; gap: 12px; align-items: center; background: #232a1b; border: 1px solid #3a4629; border-radius: 18px; padding: 12px 14px; }
.push__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #3e6b14; color: #e6f5c4; flex: none; }

.js [data-play] .push { transform: translateY(-160%); opacity: 0; }
.js [data-play] .shot__meta { opacity: 0; }
.js [data-play] .box { transform: scale(.82) translateY(14px); opacity: 0; }
.js [data-play].play .box { transform: none; opacity: 1; transition: transform .9s var(--ease) .15s, opacity .5s .15s; }
.js [data-play].play .flash { animation: flash .7s ease-out .95s; }
.js [data-play].play .shot__meta { opacity: 1; transition: opacity .6s 1.3s; }
.js [data-play].play .push { transform: none; opacity: 1; transition: transform 1s var(--ease) 1.9s, opacity .4s 1.9s; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .95; } 100% { opacity: 0; } }

/* 13:00 pass */
.moment--pass { background: var(--day); }
.duo { grid-template-columns: auto auto; justify-content: center; align-items: center; }
.duo .phone--res { transform: rotate(-4deg) translate(18px, 22px); z-index: 1; }
.duo .phone--guard { transform: rotate(3deg) translate(-18px, -22px); z-index: 2; }
.duo .phone { width: min(250px, 44vw); }
.pass { margin-top: auto; margin-bottom: auto; background: var(--app-card); border: 1px solid var(--app-line); border-radius: 22px; padding: 16px; text-align: center; }
.pass b { font-size: 1.0625rem; margin-top: 2px; }
.qr { margin: 14px auto; width: 78%; aspect-ratio: 1; background: #f0f4e6; border-radius: 14px; padding: 9%; }
.qr svg { width: 100%; height: 100%; }
.pass__win { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--app-ink2); border-top: 1px dashed var(--app-line); padding-top: 10px; }
.pass__win span:last-child { color: var(--app-lime); font-weight: 600; }

.scan { position: relative; margin: auto 10px; aspect-ratio: 1; border-radius: 20px; background: radial-gradient(90% 90% at 50% 40%, #2b3323, #12160d); overflow: clip; transition: background-color .5s; }
.c { position: absolute; width: 26px; height: 26px; border: 3px solid var(--app-ink); transition: border-color .4s; }
.c1 { left: 14px; top: 14px; border-right: 0; border-bottom: 0; border-radius: 9px 0 0 0; }
.c2 { right: 14px; top: 14px; border-left: 0; border-bottom: 0; border-radius: 0 9px 0 0; }
.c3 { left: 14px; bottom: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 9px; }
.c4 { right: 14px; bottom: 14px; border-left: 0; border-top: 0; border-radius: 0 0 9px 0; }
.laser { position: absolute; left: 10%; right: 10%; top: 12%; height: 2px; background: var(--app-lime); box-shadow: 0 0 14px 2px rgb(156 203 58 / .8); opacity: 0; }
.verdict { display: flex; align-items: center; gap: 12px; background: #1d2a10; border: 1px solid #4d6f1c; border-radius: 18px; padding: 12px; }
.verdict__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--app-lime); color: #10190a; flex: none; }
.verdict small { color: #c0e36a; }

.js [data-play] .qr rect { opacity: 0; }
.js [data-play].play .qr rect { opacity: 1; transition: opacity .3s calc(var(--d) * 1ms); }
.js [data-play] .verdict { transform: translateY(120%); opacity: 0; }
.js [data-play] .verdict__ic { transform: scale(.3); }
.js [data-play].play .laser { animation: sweep 1.5s cubic-bezier(.45, 0, .55, 1) 1.1s 1 both; }
.js [data-play].play .c { border-color: var(--app-lime); transition-delay: 2.5s; }
.js [data-play].play .verdict { transform: none; opacity: 1; transition: transform .9s var(--ease) 2.6s, opacity .3s 2.6s; }
.js [data-play].play .verdict__ic { transform: none; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) 2.85s; }
@keyframes sweep { 0% { top: 12%; opacity: 0; } 10% { opacity: 1; } 50% { top: 86%; } 90% { opacity: 1; } 100% { top: 12%; opacity: 0; } }

.replay { margin-top: 28px; display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); color: var(--ink); font: 600 .9375rem/1 var(--font); padding: 11px 16px; border-radius: 13px; cursor: pointer; transition: border-color .3s, background-color .3s; }
.replay:hover { border-color: var(--fill); background: color-mix(in srgb, var(--fill) 12%, transparent); }
.replay:hover svg { transform: rotate(-60deg); }
.replay svg { transition: transform .6s var(--ease); }

/* 16:40 payment */
.moment--pay { --bg: var(--afternoon); background: linear-gradient(var(--day), var(--afternoon) 38vh); --line: #ddd8b8; }
.receipt { position: relative; width: min(400px, 100%); background: #fffef8; border-radius: 22px 22px 4px 4px; padding: 28px 28px 30px; box-shadow: 0 40px 60px -36px rgb(60 50 10 / .55), 0 2px 5px rgb(60 50 10 / .12); transform: rotate(1.5deg); }
.receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; background: conic-gradient(from -45deg at 50% 0, #fffef8 90deg, transparent 0) 0 0 / 18px 10px repeat-x; }
.receipt header { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 16px; border-bottom: 1.5px dashed #d9d3b2; }
.receipt header small { color: var(--ink2); }
.receipt li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #eeead2; }
.receipt li em { font-style: normal; display: inline-block; font-size: .75rem; font-weight: 600; color: #0b6b5e; background: #d5f1ec; padding: 2px 8px; border-radius: 99px; margin-left: 4px; }
.receipt footer { display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px; font-weight: 600; }
.receipt footer b { font-size: 2rem; letter-spacing: -0.02em; }
.stamp { position: absolute; right: 22px; top: 50px; padding: 5px 14px; border: 3px solid #3e6b14; color: #3e6b14; border-radius: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; transform: rotate(-11deg); background: rgb(255 254 248 / .8); }

.js [data-play] .receipt li { opacity: 0; transform: translateY(-10px); }
.js [data-play] .receipt footer { opacity: 0; }
.js [data-play] .stamp { opacity: 0; transform: rotate(-11deg) scale(1.9); }
.js [data-play].play .receipt li { opacity: 1; transform: none; transition: opacity .5s, transform .7s var(--ease); }
.js [data-play].play .receipt li:nth-child(1) { transition-delay: .2s; }
.js [data-play].play .receipt li:nth-child(2) { transition-delay: .5s; }
.js [data-play].play .receipt li:nth-child(3) { transition-delay: .8s; }
.js [data-play].play .receipt li:nth-child(4) { transition-delay: 1.1s; }
.js [data-play].play .receipt footer { opacity: 1; transition: opacity .5s 1.4s; }
.js [data-play].play .stamp { opacity: 1; transform: rotate(-11deg); transition: transform .5s cubic-bezier(.2, 1.3, .4, 1) 2.7s, opacity .15s 2.7s; }

/* ---------- 18:30 dusk ---------- */
.dusk { position: relative; height: 150vh; background: var(--night); }
.dusk__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.dusk__stick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(calc(1.12 - var(--dusk, 0) * .12)); }
/* night falls from the sky down: a soft edge that travels with the scroll, so progress is always visible */
.dusk__night {
  --edge: calc(var(--dusk, 0) * 150% - 50%);
  -webkit-mask-image: linear-gradient(to bottom, #000 var(--edge), transparent calc(var(--edge) + 50%));
  mask-image: linear-gradient(to bottom, #000 var(--edge), transparent calc(var(--edge) + 50%));
}
.dusk__plate {
  position: absolute; left: var(--gutter); bottom: clamp(24px, 6vh, 72px); max-width: 560px;
  background: #ffffff; color: #172008; border-radius: 28px; padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 30px 60px -30px rgb(10 12 7 / .7);
  transition: background-color 1.2s, color 1.2s;
  transform: translateY(calc((0.5 - var(--dusk, 0)) * 56px));
}
.dusk__plate p { margin-top: 14px; color: #55613f; transition: color 1.2s; }
.dusk__plate .h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
/* the cue says the page continues, and its bar fills with the same progress as the photo */
.dusk__cue {
  position: absolute; right: var(--gutter); bottom: clamp(24px, 6vh, 72px);
  display: grid; gap: 10px; justify-items: center; padding: 14px 18px 12px;
  background: rgb(10 12 7 / .82); color: #f0f4e6; border-radius: 20px;
  font-weight: 600; font-size: .9375rem;
  opacity: clamp(0, calc((0.93 - var(--dusk, 0)) * 10), 1);
}
.dusk__track { display: flex; align-items: center; gap: 10px; color: #c0e36a; }
.dusk__track svg:first-child { color: #f2b13c; }
.dusk__bar { width: 132px; height: 4px; border-radius: 99px; background: rgb(240 244 230 / .22); overflow: clip; }
.dusk__bar i { display: block; height: 100%; border-radius: 99px; background: #9ccb3a; transform-origin: left; transform: scaleX(var(--dusk, 0)); }
.dusk__hint { display: flex; align-items: center; gap: 6px; }
.dusk__hint svg { animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 0% { transform: translateY(-3px); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(5px); opacity: 0; } }
.dusk.is-night .dusk__plate { background: #171c12; color: #f0f4e6; }
.dusk.is-night .dusk__plate p { color: #a4ae92; }

/* ---------- 19:00 vote ---------- */
.ballot { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px; }
.ballot > small { color: var(--ink2); font-size: .875rem; }
.ballot > b { display: block; font-size: 1.3125rem; line-height: 1.3; margin-top: 4px; }
.grid { margin-top: 22px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.grid i { aspect-ratio: 1; border-radius: 9px; background: #232a1b; border: 1px solid #2f3a22; display: grid; place-items: center; font-style: normal; font-size: .6875rem; font-weight: 600; color: #6f7a5c; transition: background-color .5s, color .5s, border-color .5s, transform .6s var(--ease); transition-delay: calc(var(--d) * 1ms); }
.play .grid i.yes { background: #9ccb3a; border-color: #9ccb3a; color: #10190a; transform: scale(1.001); }
.play .grid i.no { background: #3a2222; border-color: #6b3434; color: #ffb3b3; }
html:not(.js) .grid i.yes { background: #9ccb3a; color: #10190a; }
.tally { margin-top: 20px; height: 8px; border-radius: 99px; background: #232a1b; overflow: clip; }
.tally i { display: block; height: 100%; border-radius: 99px; background: #9ccb3a; transform-origin: left; transform: scaleX(0); transition: transform 2.2s var(--ease) .3s; }
.play .tally i, html:not(.js) .tally i { transform: scaleX(.7083); }
.tally__txt { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; color: var(--ink2); }
.tally__txt b { color: var(--ink); font-size: 1rem; }

.chip { position: absolute; display: flex; align-items: center; gap: 12px; background: #232a1b; border: 1px solid #3a4629; border-radius: 16px; padding: 12px 16px; font-size: .9375rem; font-weight: 500; max-width: 300px; }
.chip--ann { top: -40px; right: max(-28px, -3vw); }
.chip--res { bottom: -72px; left: max(-28px, -3vw); }
.js [data-play] .chip { opacity: 0; transform: translateY(18px) scale(.96); }
.js [data-play].play .chip { opacity: 1; transform: none; transition: transform .9s var(--ease), opacity .5s; }
.js [data-play].play .chip--ann { transition-delay: 1.5s; }
.js [data-play].play .chip--res { transition-delay: 2.1s; }

.also { margin-top: 28px; border-top: 1px solid var(--line); max-width: 34rem; }
.also li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; }
.also li::before { content: ''; position: absolute; left: 2px; top: 50%; width: 14px; height: 8px; margin-top: -7px; border-left: 2px solid var(--fill); border-bottom: 2px solid var(--fill); transform: rotate(-45deg); }

/* ---------- 20:30 steps ---------- */
.how { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); position: relative; counter-reset: s; }
.how::before { content: ''; position: absolute; left: 22px; right: 12%; top: 22px; height: 1px; background: var(--fill); transform-origin: left; }
.how li { position: relative; }
.n { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: var(--bg); border: 1px solid var(--fill); color: var(--accent-text); font-weight: 700; position: relative; }
.how h3 { margin-top: 24px; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
.how p { margin-top: 10px; color: var(--ink2); font-size: 1rem; }
.js .how[data-play]::before { transform: scaleX(0); }
.js .how[data-play] li { opacity: 0; transform: translateY(20px); }
.js .how[data-play].play::before { transform: none; transition: transform 2s var(--ease); }
.js .how[data-play].play li { opacity: 1; transform: none; transition: opacity .6s, transform .9s var(--ease); }
.js .how[data-play].play li:nth-child(2) { transition-delay: .35s; }
.js .how[data-play].play li:nth-child(3) { transition-delay: .7s; }
.js .how[data-play].play li:nth-child(4) { transition-delay: 1.05s; }

/* ---------- 21:30 voices ---------- */
.quotes { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); }
.quotes figure:nth-child(2) { margin-top: 88px; }
.quotes blockquote { margin-top: 18px; font-size: clamp(1.25rem, 1.9vw, 1.6875rem); line-height: 1.35; letter-spacing: -0.012em; font-weight: 500; }
.quotes figcaption { margin-top: 20px; color: var(--ink2); }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 50%, transparent); border-radius: 99px; padding: 3px 10px; }
.price { margin-top: clamp(72px, 9vw, 128px); padding-top: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 88px); }
.price h3 { font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.15; letter-spacing: -0.02em; }
.price p { color: var(--ink2); max-width: 34rem; }

/* ---------- 22:30 faq ---------- */
.faq__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__body .h2 { position: sticky; top: 120px; }
.qa { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 1.25rem; font-weight: 600; line-height: 1.3; transition: color .3s; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--fill); border-bottom: 2px solid var(--fill); transform: rotate(45deg) translate(-3px, -3px); transition: transform .6s var(--ease); }
details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
summary:hover { color: var(--accent-text); }
details > div { padding: 0 48px 28px 0; color: var(--ink2); max-width: 38rem; }
details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .6s var(--ease), opacity .5s, content-visibility .6s allow-discrete; }
details[open]::details-content { block-size: auto; opacity: 1; }

/* ---------- 23:45 close ---------- */
.close { position: relative; background: var(--night); color: var(--ink); padding: clamp(96px, 13vw, 184px) var(--gutter) 0; overflow: clip; }
.close__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.close::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #0a0c07 0%, rgb(10 12 7 / .93) 38%, rgb(10 12 7 / .55) 70%, rgb(10 12 7 / .35) 100%), linear-gradient(0deg, #0a0c07 0%, transparent 30%, transparent 70%, #0a0c07 100%); }
.close__in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1360px; margin-inline: auto; }
.close__copy .lead { color: #c9d2b8; }

.form { background: rgb(23 28 18 / .94); border: 1px solid #2f3a22; border-radius: 28px; padding: clamp(22px, 2.6vw, 34px); display: grid; grid-template-columns: 1fr 1.7fr; gap: 16px 14px; }
.f { grid-column: 1 / -1; min-width: 0; }
.f--sm { grid-column: 1; } .f--lg { grid-column: 2; }
label { display: block; font-size: .9375rem; font-weight: 500; color: #c9d2b8; margin-bottom: 7px; }
input { width: 100%; height: 52px; padding: 0 16px; font: 400 1.0625rem var(--font); color: #f0f4e6; background: #0d100a; border: 1px solid #55643c; border-radius: 14px; transition: border-color .3s, box-shadow .3s; }
input:hover { border-color: #7d9058; }
input:focus { outline: 0; border-color: #9ccb3a; box-shadow: 0 0 0 1px #9ccb3a; }
.err { display: none; margin-top: 6px; font-size: .875rem; color: #ff8a8a; }
.f.invalid input { border-color: #ff5c5c; }
.f.invalid .err { display: block; }
.form .btn { margin-top: 6px; grid-column: 1 / -1; position: relative; }
.btn__spin { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgb(16 25 10 / .3); border-top-color: #10190a; animation: spin .8s linear infinite; }
.form.is-loading .btn { pointer-events: none; opacity: .85; }
.form.is-loading .btn__spin { display: block; }
.form__msg { grid-column: 1 / -1; font-size: .9375rem; min-height: 1.5em; color: #c0e36a; }
.form__msg.bad { color: #ff8a8a; }
.form.is-done .f, .form.is-done .btn { display: none; }
.form.is-done .form__msg { font-size: 1.25rem; font-weight: 600; line-height: 1.35; padding: 24px 0; }
@keyframes spin { to { transform: rotate(1turn); } }

.foot { position: relative; z-index: 2; margin-top: clamp(80px, 10vw, 144px); padding: 28px 0 32px; border-top: 1px solid #2a3320; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; color: #a4ae92; font-size: .9375rem; max-width: 1360px; margin-inline: auto; }
.foot img { height: 28px; width: auto; }
.foot span:last-child { margin-left: auto; }
/* The footer sits in the night phase, so the link takes the app's lime rather than the day accent.
   It stays before the copyright span, which keeps its `margin-left: auto` and its place at the end. */
.foot__link { color: var(--app-lime); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.foot__link:hover { text-decoration-thickness: 2px; }

/* ---------- reveals (content is visible unless JS is running) ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .9s ease-out, transform 1.2s var(--ease), filter 1s ease-out; }
.js [data-reveal='rise'] { transform: translateY(36px); filter: blur(8px); }
.js [data-reveal='settle'] { transform: scale(.95) translateY(24px); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
.js .pain:nth-child(2)[data-reveal] { transition-delay: .15s; }
.js .pain:nth-child(3)[data-reveal] { transition-delay: .3s; }
.js .quotes figure:nth-child(2)[data-reveal] { transition-delay: .2s; }

/* hero entrance */
.js .hero .ln > span { transform: translateY(108%); }
.js .hero__sub, .js .hero__act, .js .hero__facts { opacity: 0; transform: translateY(18px); }
.js .hero__scene > img { clip-path: inset(0 0 0 100% round 0 0 0 44px); transform: scale(1.12); }
.js .float { opacity: 0; transform: translateY(28px) scale(.94); }
.js.ready .hero .ln > span { transform: none; transition: transform 1.3s var(--ease); }
.js.ready .hero .ln:nth-child(2) > span { transition-delay: .14s; }
.js.ready .hero__sub, .js.ready .hero__act, .js.ready .hero__facts { opacity: 1; transform: none; transition: opacity .9s ease-out .55s, transform 1.1s var(--ease) .55s; }
.js.ready .hero__act { transition-delay: .68s; }
.js.ready .hero__facts { transition-delay: .82s; }
.js.ready .hero__scene > img { clip-path: inset(0 0 0 0 round 0 0 0 44px); transform: scale(1); transition: clip-path 1.6s var(--ease) .1s, transform 2.4s var(--ease) .1s; }
.js.ready .float { opacity: 1; transform: none; transition: opacity .6s 1.25s, transform 1.1s var(--ease) 1.25s; }
.js.ready .float--note { transition-delay: 1.6s; }
.js.ready .float--pass { animation: bob 7s ease-in-out 2.6s infinite; }
@keyframes bob { 50% { translate: 0 -8px; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .pains { grid-template-columns: 1fr 1fr; }
  .pain:nth-child(3) { margin-top: 0; }
  .faq__body { grid-template-columns: 1fr; }
  .faq__body .h2 { position: static; }
  .how { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .how::before { display: none; }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr auto; height: 56px; padding: 0 8px 0 14px; }
  .nav__cta, .clock__label { display: none; }
  .clock { justify-self: center; }
  .wm { height: 28px; }
  .hero { grid-template-columns: 1fr; padding: 0 var(--gutter); min-height: 0; }
  .hero__copy { padding: 116px 0 40px; }
  .hero__scene { min-height: 0; height: 72vw; max-height: 480px; margin-bottom: 72px; }
  .hero__scene > img { border-radius: 28px; }
  .js .hero__scene > img { clip-path: inset(0 0 0 100% round 28px); }
  .js.ready .hero__scene > img { clip-path: inset(0 0 0 0 round 28px); }
  .float--pass { left: 12px; bottom: -28px; }
  .float--note { display: none; }
  .sec { grid-template-columns: 1fr; }
  .rail { display: none; }
  .split { grid-template-columns: 1fr; gap: 56px; }
  .split--flip .split__copy { order: 0; }
  .quotes, .price, .close__in { grid-template-columns: 1fr; }
  .quotes figure:nth-child(2) { margin-top: 0; }
  .chip--ann { right: 0; } .chip--res { left: 0; }
  .split__demo { padding-block: 24px; }
  .dusk { height: 140vh; }
  .dusk__plate { right: var(--gutter); }
  .dusk__cue { right: auto; left: 50%; bottom: auto; top: 84px; translate: -50% 0; width: max-content; max-width: calc(100% - 32px); }
}
@media (max-width: 600px) {
  .pains { grid-template-columns: 1fr; gap: 48px; }
  .pain:nth-child(2) { margin-top: 0; }
  .pain__art { height: auto; }
  .how { grid-template-columns: 1fr; row-gap: 36px; }
  .hero__act .btn { width: 100%; }
  .duo .phone--res { transform: rotate(-3deg) translate(2px, 16px); }
  .duo .phone--guard { transform: rotate(2deg) translate(-2px, -16px); }
  .duo .phone { width: 45vw; }
  .pass { padding: 12px 10px; }
  .pass__win { flex-direction: column; gap: 2px; align-items: center; }
  .duo .phone { border-radius: 30px; padding: 12px 10px; font-size: .75rem; }
  .duo .phone small { font-size: .6875rem; }
  .form { grid-template-columns: 1fr; }
  .f--sm, .f--lg { grid-column: 1; }
  summary { font-size: 1.125rem; }
  details > div { padding-right: 0; }
  .foot span:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero .ln > span, .js .hero__sub, .js .hero__act, .js .hero__facts, .js .float { opacity: 1; transform: none; filter: none; }
  .js .hero__scene > img { clip-path: none; transform: none; }
  .dusk__stick img { transform: none; }
  .dusk__plate { transform: none; }
}
