/* Gapwise website. Light theme only, same design language as the app: Paper, Petrol, Marker. */

:root {
  --paper: #F6F2E9;
  --paper-deep: #EDE6D7;
  --card: #FFFDF8;
  --ink: #171A1C;
  --muted: #5A5C58;
  --faint: #8A8C86;
  --hairline: rgba(23, 26, 28, 0.10);
  --petrol: #163C3A;
  --petrol-soft: #DCE8E5;
  --on-petrol: #F6F2E9;
  --marker: #D8FF65;
  --marker-deep: #B9E63A;
  --pink: #FFA8D4;
  --orange: #FFB866;
  --blue: #94D6FF;
  --mint: #85F0CA;
  --gold: #FFD952;
  --success: #2E7D57;
  --error: #C2412D;
  --radius: 16px;
  --radius-lg: 26px;
  --gutter: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--petrol); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 34em; }
.eyebrow {
  font: 600 0.72rem/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.petrol { color: var(--petrol); }

/* Marker that draws itself when the element comes into view */
.hl {
  background-image: linear-gradient(transparent 14%, var(--marker) 14%, var(--marker) 90%, transparent 90%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  padding: 0 0.1em;
  transition: background-size 0.9s var(--ease) 0.25s;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.in .hl, .hl.in, .no-js .hl { background-size: 100% 100%; }
mark { background: linear-gradient(transparent 14%, var(--marker) 14%, var(--marker) 90%, transparent 90%); color: inherit; padding: 0 0.1em; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--petrol); z-index: 30; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 242, 233, 0.78);
  backdrop-filter: saturate(1.5) blur(16px);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-color: var(--hairline); box-shadow: 0 6px 24px rgba(23,26,28,0.05); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 1.25rem var(--serif); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 3px 10px rgba(22,60,58,0.25); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--marker-deep); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.lang { display: flex; gap: 2px; background: var(--paper-deep); border-radius: 999px; padding: 3px; }
.lang a { font: 600 0.75rem var(--mono); text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 999px; transition: background 0.2s; }
.lang a[aria-current="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.header-cta { padding: 0 16px; min-height: 40px; font-size: 0.9rem; }
@media (max-width: 860px) { .site-header .nav, .site-header .header-cta { display: none; } .lang { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-marker { background: var(--marker); color: var(--ink); box-shadow: 0 8px 24px rgba(185, 230, 58, 0.45), inset 0 -2px 0 rgba(0,0,0,0.08); }
.btn-marker:hover { box-shadow: 0 12px 30px rgba(185, 230, 58, 0.6), inset 0 -2px 0 rgba(0,0,0,0.08); }
.btn-petrol { background: var(--petrol); color: var(--on-petrol); box-shadow: 0 8px 24px rgba(22,60,58,0.25); }
.btn-quiet { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--hairline); }
.btn[aria-disabled="true"] { cursor: default; }
.btn svg { width: 20px; height: 20px; flex: none; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline), 0 4px 14px rgba(23,26,28,0.05);
  font-size: 0.85rem; color: var(--muted);
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--marker-deep); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--marker-deep); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: drift 18s ease-in-out infinite alternate; }
.blob.a { width: 520px; height: 520px; background: var(--marker); top: -160px; right: -80px; }
.blob.b { width: 420px; height: 420px; background: #BFE3DC; bottom: -180px; left: -120px; animation-duration: 22s; }
.blob.c { width: 260px; height: 260px; background: #FFE3B8; top: 40%; left: 42%; animation-duration: 26s; opacity: 0.45; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } 100% { transform: translate(-30px, 50px) scale(0.95); } }
.word-rain { position: absolute; inset: 0; overflow: hidden; }
.word-rain span {
  position: absolute; bottom: -40px;
  font: 500 0.9rem var(--serif); font-style: italic; color: rgba(22,60,58,0.13);
  white-space: nowrap; animation: rise linear infinite;
}
@keyframes rise { from { transform: translateY(0) rotate(-4deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateY(-115vh) rotate(4deg); opacity: 0; } }

.hero .wrap { display: grid; gap: 40px; align-items: center; grid-template-columns: 1.08fr 0.92fr; }
.hero h1 { margin: 22px 0 22px; }
.gap-word { display: inline-block; position: relative; min-width: 3.2em; transition: min-width 0.4s var(--ease); }
.gap-word.in { min-width: 0; }
.gap-word .slot { position: absolute; left: 0.1em; right: 0.1em; bottom: 0.08em; height: 0.08em; background: var(--ink); opacity: 0.6; transform-origin: left; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 18px; font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero .fine span { display: inline-flex; align-items: center; gap: 6px; }
.hero .fine span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

/* Staggered entrance */
.enter { opacity: 0; transform: translateY(18px); animation: enter 0.9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes enter { to { opacity: 1; transform: none; } }

/* Phone */
.stage { position: relative; justify-self: center; perspective: 1200px; }
.phone {
  position: relative;
  width: min(310px, 72vw);
  aspect-ratio: 1320 / 2868;
  border-radius: 48px;
  border: 10px solid #171A1C;
  overflow: hidden;
  background: #171A1C;
  box-shadow: 0 40px 80px rgba(22, 60, 58, 0.22), 0 0 0 1px rgba(0,0,0,0.05);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease);
}
/* Crossfade: the outgoing screen stays fully visible underneath until the new one is in. */
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 0; }
.phone img.prev { opacity: 1; z-index: 1; }
.phone img.on { opacity: 1; z-index: 2; animation: screen-in 0.75s var(--ease); }
.phone img.prev { animation: screen-out 0.75s var(--ease) forwards; }
@keyframes screen-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes screen-out { from { transform: none; } to { transform: translateX(-30%); filter: brightness(0.85); } }
.phone.small { width: min(260px, 64vw); border-width: 8px; border-radius: 40px; }
.phone.static img { opacity: 1; transform: none; }

.chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 16px;
  background: var(--card); color: var(--ink);
  box-shadow: 0 14px 34px rgba(23,26,28,0.14);
  font-size: 0.88rem; white-space: nowrap;
  opacity: 0; transform: translateY(10px) scale(0.92);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.chip.on { opacity: 1; transform: none; animation: bob 4s ease-in-out infinite; }
.chip b { font-family: var(--mono); }
.chip .ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--marker); font-weight: 700; font-size: 0.8rem; }
.chip.c1 { left: -70px; top: 22%; }
.chip.c2 { right: -60px; top: 46%; animation-delay: 0.6s; }
.chip.c3 { left: -40px; bottom: 14%; animation-delay: 1.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .chip.c1 { left: -14px; } .chip.c2 { right: -14px; } .chip.c3 { left: -8px; }
}
@media (max-width: 520px) { .chip { font-size: 0.78rem; padding: 8px 10px; } .chip.c3 { display: none; } }

/* ---------- Marquee ---------- */
.marquee { padding: 26px 0; border-block: 1px solid var(--hairline); background: var(--card); overflow: hidden; display: grid; gap: 14px; }
.marquee .row { display: flex; gap: 14px; width: max-content; animation: scroll 60s linear infinite; }
.marquee .row.rev { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .row { animation-play-state: paused; }
.pair { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline); white-space: nowrap; font-size: 0.95rem; }
.pair b { font: 600 1rem var(--serif); }
.pair i { font-style: normal; color: var(--faint); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 96px 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 14px 0 16px; }
.section-head .lead { margin-inline: inherit; }
.section-head.center .lead { margin-inline: auto; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Live demo ---------- */
.demo-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .demo-wrap { grid-template-columns: 1fr; } }
.demo {
  background: var(--card); border-radius: 30px; padding: 30px;
  box-shadow: 0 30px 70px rgba(22,60,58,0.14), inset 0 0 0 1px var(--hairline);
  position: relative; overflow: hidden; min-height: 420px;
}
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 28px; height: 6px; border-radius: 99px; background: var(--paper-deep); transition: background 0.4s; }
.demo-dots i.done { background: var(--petrol); }
.demo-dots i.miss { background: var(--orange); }
.streak { font: 700 0.85rem var(--mono); background: var(--marker); padding: 5px 10px; border-radius: 99px; opacity: 0; transform: scale(0.6); transition: 0.35s var(--ease); }
.streak.on { opacity: 1; transform: none; }
.demo .tag { font: 600 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.demo .sentence { font: 600 clamp(1.4rem, 3vw, 1.9rem)/1.3 var(--serif); margin: 12px 0 8px; min-height: 2.6em; }
.demo .blank { display: inline-block; min-width: 4.2em; border-bottom: 3px solid var(--ink); text-align: center; transition: 0.3s; }
.demo .blank.right { border-color: var(--success); color: var(--success); background: rgba(216,255,101,0.5); border-radius: 6px 6px 0 0; }
.demo .blank.wrong { border-color: var(--error); color: var(--error); }
.demo .hint { color: var(--muted); font-size: 0.95rem; min-height: 1.5em; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.opt {
  min-height: 58px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--hairline);
  font: 600 1.05rem var(--serif); transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.opt:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--petrol), 0 8px 18px rgba(22,60,58,0.12); }
.opt.right { background: var(--success); color: #fff; box-shadow: none; animation: pop 0.4s var(--ease); }
.opt.wrong { background: #FBE3DE; color: var(--error); box-shadow: none; animation: shake 0.4s; }
.opt:disabled { cursor: default; }
@keyframes pop { 50% { transform: scale(1.06); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.feedback { margin-top: 16px; min-height: 1.6em; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.feedback.good { color: var(--success); }
.feedback.bad { color: var(--error); }
.demo-end { position: absolute; inset: 0; background: var(--card); display: grid; place-items: center; text-align: center; padding: 30px; opacity: 0; pointer-events: none; transition: opacity 0.5s; }
.demo-end.on { opacity: 1; pointer-events: auto; }
.demo-end h3 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 10px 0; }
.demo-end p { color: var(--muted); margin-bottom: 22px; }
.burst { position: absolute; width: 10px; height: 6px; border-radius: 2px; pointer-events: none; animation: burst 1s var(--ease) forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.step { background: var(--card); border-radius: var(--radius-lg); padding: 26px; box-shadow: inset 0 0 0 1px var(--hairline); position: relative; overflow: hidden; }
.step .num { font: 600 0.85rem var(--mono); color: var(--faint); }
.step h3 { margin: 16px 0 8px; }
.step p { color: var(--muted); }
.step .art { height: 150px; margin: -6px -6px 18px; border-radius: 18px; background: var(--paper); position: relative; overflow: hidden; display: grid; place-items: center; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
/* step 1: scanning page */
.page { width: 120px; height: 120px; background: #fff; border-radius: 6px; box-shadow: 0 6px 16px rgba(0,0,0,0.08); padding: 14px 12px; display: grid; gap: 9px; transform: rotate(-4deg); position: relative; overflow: hidden; }
.page i { height: 6px; border-radius: 3px; background: #CFD6E6; }
.page i:nth-child(odd) { width: 80%; } .page i:nth-child(even) { width: 60%; }
.beam { position: absolute; left: 0; right: 0; height: 3px; background: var(--marker-deep); box-shadow: 0 0 14px 4px rgba(216,255,101,0.9); animation: beam 2.4s ease-in-out infinite; }
@keyframes beam { 0%, 100% { top: 6%; } 50% { top: 90%; } }
/* step 2: time picker */
.times { display: flex; gap: 14px; font: 700 2rem var(--serif); }
.times span { padding: 2px 10px; border-radius: 10px; color: var(--faint); animation: pick 4.5s infinite; }
.times span:nth-child(2) { animation-delay: 1.5s; } .times span:nth-child(3) { animation-delay: 3s; }
@keyframes pick { 0%, 33% { background: var(--marker); color: var(--ink); } 34%, 100% { background: transparent; color: var(--faint); } }
/* step 3: flipping question types */
.flip { position: relative; width: 190px; height: 92px; }
.flip div { position: absolute; inset: 0; background: #fff; border-radius: 14px; box-shadow: 0 6px 16px rgba(0,0,0,0.08); display: grid; place-items: center; font: 600 1rem var(--serif); opacity: 0; animation: flipin 8s infinite; }
.flip div:nth-child(2) { animation-delay: 2s; } .flip div:nth-child(3) { animation-delay: 4s; } .flip div:nth-child(4) { animation-delay: 6s; }
@keyframes flipin { 0% { opacity: 0; transform: rotateX(-70deg); } 4%, 22% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: rotateX(70deg); } }

/* ---------- Feature scrollytelling ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.story-phone { position: sticky; top: 110px; height: fit-content; justify-self: center; }
.story-list { display: grid; gap: 0; }
.story-item { min-height: min(62vh, 620px); display: flex; flex-direction: column; justify-content: center; opacity: 0.32; transition: opacity 0.5s; }
.story-item.active { opacity: 1; }
.story-item h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 12px 0 14px; }
.story-item p { color: var(--muted); max-width: 30em; }
.story-item ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.story-item li { display: flex; gap: 10px; align-items: flex-start; }
.story-item li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--marker); box-shadow: inset 0 0 0 4px var(--card); outline: 1.5px solid var(--marker-deep); }
.story-item .inline-phone { display: none; }
.pro-tag { display: inline-block; font: 700 0.68rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--petrol); color: var(--on-petrol); margin-left: 8px; vertical-align: middle; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story-phone { display: none; }
  .story-item { min-height: 0; opacity: 1; padding: 28px 0; border-top: 1px solid var(--hairline); }
  .story-item .inline-phone { display: block; margin-top: 26px; justify-self: center; align-self: center; }
}

/* ---------- Puzzle showcase ---------- */
.puzzle-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .puzzle-wrap { grid-template-columns: 1fr; } }
.board { background: var(--card); border-radius: 30px; padding: 26px; box-shadow: 0 30px 70px rgba(22,60,58,0.12), inset 0 0 0 1px var(--hairline); display: grid; justify-content: center; }
.grid { display: grid; gap: 3px; }
.cell { width: var(--cs); height: var(--cs); border-radius: 6px; display: grid; place-items: center; font: 700 calc(var(--cs) * 0.5) var(--sans); position: relative; }
.cell.l { background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(23,26,28,0.18); transform: scale(0.6); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.4s; }
.board.in .cell.l { transform: none; opacity: 1; transition-delay: calc(var(--i) * 18ms); }
.cell.l.f { background: var(--marker); box-shadow: none; animation: pop 0.35s var(--ease); }
.cell .n { position: absolute; top: 2px; left: 4px; font: 600 0.55rem var(--mono); color: var(--faint); }
.clues { display: grid; gap: 8px; margin-top: 26px; }
.clue { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline); transition: 0.3s; }
.clue b { font: 700 0.8rem var(--mono); color: var(--faint); min-width: 1.6em; }
.clue.active { background: var(--marker); box-shadow: none; }
.clue.done { opacity: 0.5; text-decoration: line-through; }

/* ---------- Worksheet fan ---------- */
.sheets { position: relative; height: 380px; display: grid; place-items: center; }
.sheet { position: absolute; width: 230px; height: 320px; background: #fff; border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,0.12); padding: 20px; transition: transform 1s var(--ease); display: grid; align-content: start; gap: 9px; }
.sheet h4 { margin: 0 0 6px; font: 600 1rem var(--serif); background: linear-gradient(transparent 55%, var(--marker) 55%); justify-self: start; padding: 0 3px; }
.sheet i { display: block; height: 5px; border-radius: 3px; background: #E3E1DA; }
.sheet i.w { width: 70%; } .sheet i.s { width: 45%; }
.sheet .mini { display: grid; grid-template-columns: repeat(7, 14px); gap: 2px; margin-top: 6px; }
.sheet .mini span { height: 14px; border: 1px solid #BDBAB0; border-radius: 2px; }
.sheet .mini span.x { border-color: transparent; }
.sheets.in .s1 { transform: rotate(-12deg) translate(-90px, 10px); }
.sheets.in .s2 { transform: rotate(10deg) translate(90px, 6px); }
.sheets.in .s3 { transform: translateY(-10px); }
.stamp { position: absolute; right: 12%; bottom: 8%; z-index: 3; background: var(--petrol); color: var(--on-petrol); font: 700 0.9rem var(--mono); padding: 10px 16px; border-radius: 999px; transform: scale(0) rotate(-20deg); transition: transform 0.6s var(--ease) 0.9s; box-shadow: 0 10px 24px rgba(22,60,58,0.3); }
.sheets.in .stamp { transform: scale(1) rotate(-6deg); }

/* ---------- 30-day plan ---------- */
.plan-card { background: var(--card); border-radius: 30px; padding: 34px; box-shadow: inset 0 0 0 1px var(--hairline), 0 30px 70px rgba(22,60,58,0.1); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.stat { background: var(--paper); border-radius: 18px; padding: 18px; }
.stat .v { font: 700 clamp(1.8rem, 4vw, 2.6rem) var(--mono); }
.stat .k { color: var(--muted); font-size: 0.9rem; }
.days { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; max-width: 520px; margin: 0 auto 18px; }
.day { aspect-ratio: 1; border-radius: 50%; background: var(--paper-deep); position: relative; transform: scale(0.5); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.4s, background 0.3s; transition-delay: calc(var(--i) * 45ms); }
.plan-card.in .day { transform: none; opacity: 1; }
.plan-card.in .day.done { background: var(--petrol); }
.day.reward { box-shadow: inset 0 0 0 3px var(--c); }
.plan-card.in .day.reward.done { background: var(--c); animation: pop 0.5s var(--ease) calc(var(--i) * 45ms + 300ms); }
.day .lbl { position: absolute; top: 108%; left: 50%; transform: translateX(-50%); font: 600 0.62rem var(--mono); color: var(--faint); white-space: nowrap; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } .days { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Privacy ---------- */
.privacy { background: var(--petrol-soft); border-radius: 36px; padding: 60px 44px; position: relative; overflow: hidden; }
.privacy h2 { max-width: 16em; margin: 14px 0 34px; }
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.privacy-grid div { background: var(--card); border-radius: 20px; padding: 22px; transition: transform 0.3s var(--ease); }
.privacy-grid div:hover { transform: translateY(-4px); }
.privacy-grid .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--petrol); color: var(--on-petrol); display: grid; place-items: center; margin-bottom: 14px; }
.privacy-grid .ic svg { width: 22px; height: 22px; }
.privacy-grid h3 { font-size: 1.1rem; margin-bottom: 6px; }
.privacy-grid p { color: var(--muted); font-size: 0.95rem; }
.lock { position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(22,60,58,0.06); }
@media (max-width: 960px) { .privacy-grid { grid-template-columns: 1fr 1fr; } .privacy { padding: 44px 22px; } }
@media (max-width: 520px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.price-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: stretch; }
@media (max-width: 900px) { .price-wrap { grid-template-columns: 1fr; } }
.price-card { background: var(--card); border-radius: 30px; padding: 34px; box-shadow: inset 0 0 0 2px var(--petrol), 0 30px 70px rgba(22,60,58,0.14); position: relative; }
.toggle { display: inline-flex; background: var(--paper-deep); border-radius: 999px; padding: 4px; position: relative; margin-bottom: 24px; }
.toggle button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--muted); transition: color 0.3s; }
.toggle button[aria-pressed="true"] { color: var(--ink); }
.toggle .knob { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--card); box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.4s var(--ease), width 0.4s var(--ease); }
.price { font: 700 clamp(2.6rem, 6vw, 3.4rem) var(--mono); letter-spacing: -0.02em; }
.price small { font: 500 1rem var(--sans); color: var(--muted); letter-spacing: 0; }
.price-sub { color: var(--muted); margin-top: 4px; min-height: 1.5em; }
.save { display: inline-block; background: var(--marker); font: 700 0.8rem var(--sans); padding: 4px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.incl { margin: 26px 0 28px; padding: 0; list-style: none; display: grid; gap: 12px; }
.incl li { display: flex; gap: 12px; align-items: flex-start; }
.incl li svg { flex: none; width: 22px; height: 22px; color: var(--success); }
.price-card .note { font-size: 0.85rem; color: var(--muted); margin-top: 16px; }
.timeline { background: var(--card); border-radius: 30px; padding: 34px; box-shadow: inset 0 0 0 1px var(--hairline); }
.timeline h3 { margin-bottom: 26px; }
.tl { display: grid; gap: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 3px; background: var(--paper-deep); border-radius: 2px; }
.tl::after { content: ""; position: absolute; left: 19px; top: 20px; width: 3px; height: calc(100% - 40px); background: var(--marker-deep); border-radius: 2px; transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease) 0.3s; }
.timeline.in .tl::after { transform: scaleY(1); }
.tl-row { display: flex; gap: 18px; padding: 12px 0; position: relative; z-index: 1; }
.tl-dot { flex: none; width: 41px; height: 41px; border-radius: 50%; background: var(--marker); display: grid; place-items: center; font: 700 0.8rem var(--mono); box-shadow: 0 0 0 5px var(--card); }
.tl-row b { display: block; }
.tl-row span { color: var(--muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-child { border-top: 1px solid var(--hairline); }
.faq summary { cursor: pointer; font: 600 1.1rem var(--sans); list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--paper-deep); position: relative; transition: transform 0.4s var(--ease), background 0.3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: var(--ink); border-radius: 2px; }
.faq summary .pm::after { transform: rotate(90deg); transition: transform 0.4s var(--ease); }
.faq details[open] .pm { background: var(--marker); transform: rotate(180deg); }
.faq details[open] .pm::after { transform: rotate(0); }
.faq .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq details[open] .ans { grid-template-rows: 1fr; }
.faq .ans > div { overflow: hidden; }
.faq .ans p { color: var(--muted); padding-bottom: 22px; max-width: 46em; }

/* ---------- Final CTA ---------- */
.final { text-align: center; padding: 110px 0 120px; overflow: hidden; position: relative; isolation: isolate; }
.final .blob.a { top: auto; bottom: -260px; right: 10%; }
.final .icon { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 26px; box-shadow: 0 20px 40px rgba(22,60,58,0.3); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
.final h2 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 18px; }
.final p { color: var(--muted); margin-bottom: 30px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0 56px; font-size: 0.9rem; color: var(--muted); background: var(--card); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Legal and support pages ---------- */
.doc { max-width: 780px; padding: 56px 0 90px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 30px; }
.doc h2 { font-size: 1.4rem; margin: 38px 0 10px; }
.doc h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; }
.doc .card { background: var(--card); border-radius: var(--radius); padding: 22px 24px; margin: 18px 0; box-shadow: inset 0 0 0 1px var(--hairline); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .word-rain, .blob { display: none; }
  .enter { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee .row { animation: none; }
}
