/* Morrow: the marketing site. One page, no framework, no third-party requests (fonts are served from here). */

@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/poppins-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/poppins-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/poppins-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/poppins-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/poppins-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/poppins-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-weight: 100 900; font-style: normal; font-display: swap; src: url('/fonts/fraunces-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-weight: 100 900; font-style: normal; font-display: swap; src: url('/fonts/fraunces-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }


:root {
  --night: #0b0410;
  --ink: #ffffff;
  --muted: #e8d9e2;
  --soft: #cdb6c4;
  --rose: #ff5c8a;
  --sun: #ffe08a;
  --wine: #3b0f24;
  --plum: #7a1e48;
  --card: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.16);
  --paper: #fff5f8;
  --paper-ink: #2a0d1b;
  --paper-muted: #5e3a4b;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --ui: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font-family: var(--ui); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--night); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sun); color: var(--wine); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 60; background: transparent; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--rose), var(--sun)); }
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 2; }
.wrap { max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) var(--pad) 12px; border-bottom: 1px solid transparent; transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s; }
.nav.scrolled { background: rgba(11, 4, 16, 0.82); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 28px); }
.nav nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav nav a:hover { color: #fff; }
.nav nav a.btn { color: var(--wine); }
@media (max-width: 760px) { .nav nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 16px; border: 0; cursor: pointer; font: 700 16px/1 var(--ui); text-decoration: none; color: var(--wine); background: linear-gradient(135deg, var(--rose), var(--sun)); box-shadow: 0 12px 30px -8px rgba(255, 92, 138, 0.65); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.btn:hover { box-shadow: 0 18px 40px -8px rgba(255, 92, 138, 0.85); }
.btn-lg { padding: 18px 32px; font-size: 17px; border-radius: 18px; }
.btn-small { padding: 10px 18px; font-size: 14px; border-radius: 12px; }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* type: big, high contrast */
.eyebrow { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--sun); margin-bottom: 18px; }
.eyebrow.dark { color: #c4134f; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; max-width: 20ch; color: #fff; }
.h2.dark { color: var(--paper-ink); }
.pitch { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3vw, 36px); line-height: 1.2; color: #fff; margin-top: 18px; text-wrap: balance; }
.pitch mark { background: none; color: var(--sun); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 54ch; margin-top: 18px; }
.lede.dark { color: var(--paper-muted); }
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* hero */
.hero { position: relative; overflow: hidden; min-height: 100vh; padding: 120px max(var(--pad), calc((100% - var(--max)) / 2)) 80px; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(20px, 4vw, 60px); background: radial-gradient(120% 80% at 80% 0%, rgba(122, 30, 72, 0.55), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgba(255, 92, 138, 0.18), transparent 60%); }
.display { font-family: var(--display); font-weight: 800; font-size: clamp(58px, 7.6vw, 118px); line-height: 0.98; letter-spacing: -0.04em; display: flex; flex-wrap: wrap; gap: 0 0.22em; color: #fff; }
.display .w { display: inline-block; overflow: hidden; padding: 0.06em 0.04em 0.16em; margin: -0.06em -0.04em -0.12em; }
.display .w > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.display .w:nth-child(1) > span { animation-delay: 0.1s; }
.display .w:nth-child(2) > span { animation-delay: 0.25s; }
.display .w:nth-child(3) > span { animation-delay: 0.4s; }
@keyframes rise { from { transform: translateY(110%) rotate(4deg); } to { transform: none; } }
.sun-word > span { background: linear-gradient(120deg, var(--rose), var(--sun) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); }
.store svg { width: 24px; height: 24px; flex: none; color: var(--rose); }
.store small { display: block; font-size: 11px; letter-spacing: 0.04em; color: var(--muted); line-height: 1.2; }
.store b { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.hero-stage { position: relative; display: grid; place-items: center; min-height: 560px; perspective: 1400px; }
.sun { position: absolute; width: min(70%, 420px); aspect-ratio: 1; border-radius: 50%; left: 50%; bottom: 8%; transform: translate(-50%, 40%); opacity: 0; background: radial-gradient(circle, #fff3c4, var(--sun) 45%, rgba(255, 92, 138, 0.9) 78%); box-shadow: 0 0 120px 40px rgba(255, 190, 120, 0.45), 0 0 260px 90px rgba(255, 92, 138, 0.3); animation: sunrise 2.4s 0.2s var(--ease) forwards; }
@keyframes sunrise { to { transform: translate(-50%, -10%); opacity: 1; } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 104px; } .hero-stage { min-height: 520px; } .scroll-cue { display: none; } }

/* iPhone frame */
.iphone { --w: 300px; position: relative; width: var(--w); aspect-ratio: 1206 / 2622; border-radius: calc(var(--w) * 0.168); padding: calc(var(--w) * 0.028); background: linear-gradient(145deg, #8b8b92 0%, #3b3b42 18%, #17171b 45%, #2d2d34 72%, #9a9aa2 100%); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.16) inset, 0 0 0 calc(var(--w) * 0.012) #050507, 0 60px 110px -30px rgba(0, 0, 0, 0.85), 0 20px 60px -20px rgba(255, 92, 138, 0.35); transform-style: preserve-3d; transition: transform 0.25s ease-out; }
.iphone-screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * 0.14); overflow: hidden; background: #0b0a0e; isolation: isolate; }
.iphone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.btn-side { position: absolute; width: calc(var(--w) * 0.012); background: linear-gradient(90deg, #55555c, #1c1c20); border-radius: 2px; }
.b-action { left: calc(var(--w) * -0.016); top: 14%; height: 4%; }
.b-vup { left: calc(var(--w) * -0.016); top: 21%; height: 7%; }
.b-vdn { left: calc(var(--w) * -0.016); top: 30%; height: 7%; }
.b-pwr { right: calc(var(--w) * -0.016); top: 25%; height: 11%; }
.glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 38%); mix-blend-mode: screen; opacity: 0.55; }
.hero-phone { --w: min(310px, 70vw); transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 2deg)); animation: bob 7s ease-in-out infinite; }
.hero-phone .shot { opacity: 0; transition: opacity 0.9s var(--ease); }
.hero-phone .shot.is-on { opacity: 1; }
@keyframes bob { 50% { translate: 0 -12px; } }
.toast { position: absolute; display: flex; gap: 10px; align-items: flex-start; width: 250px; padding: 11px 13px; border-radius: 20px; background: rgba(40, 24, 36, 0.78); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7); opacity: 0; animation: toast 7s ease-in-out infinite; }
.toast b { font-size: 13px; font-weight: 600; }
.toast small { margin-left: 8px; font-size: 11px; color: var(--soft); }
.toast p { font-size: 13px; line-height: 1.35; margin-top: 2px; color: #fff; }
.toast-ic { flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--rose) url('/apple-touch-icon.png') center / cover; }
.t1 { left: -8%; top: 22%; animation-delay: 1.6s; }
.t2 { right: -10%; bottom: 20%; animation-delay: 4.6s; }
@keyframes toast { 0% { opacity: 0; transform: translateY(18px) scale(0.94); } 8%, 38% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: translateY(-10px) scale(0.98); } }

/* promises */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); transform: translateY(-40px); }
.promise { padding: 26px 26px 28px; border-radius: 26px; background: linear-gradient(160deg, #2b0f21, #170818); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.pi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: var(--wine); background: linear-gradient(135deg, var(--rose), var(--sun)); margin-bottom: 14px; }
.promise h3 { font-family: var(--display); font-size: 26px; line-height: 1.15; font-weight: 700; }
.promise p { color: var(--muted); font-size: 16.5px; margin-top: 8px; }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr; transform: none; padding-top: 30px; } }

/* the film */
.story { position: relative; background: linear-gradient(180deg, #0b0410, #1a0a18 40%, #0b0410); }
.cine { display: none; }
.story.cine-on .cine { display: block; height: 560vh; position: relative; }
.story.cine-on .rows-fallback { display: none; }
.cine-stick { position: sticky; top: 0; height: 100vh; width: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); align-items: center; gap: clamp(20px, 5vw, 80px); padding: 80px max(var(--pad), calc((100% - var(--max)) / 2)) 30px; }
.cine-copy { position: relative; z-index: 3; }
.cine-h { font-size: clamp(30px, 4.2vw, 56px); max-width: 15ch; }
.caps { position: relative; min-height: 140px; margin-top: 26px; }
.cap { position: absolute; left: 0; top: 0; max-width: 34ch; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; color: var(--muted); opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); pointer-events: none; }
.cap b { display: block; color: #fff; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; margin-bottom: 6px; }
.cap.on { opacity: 1; transform: none; }
.cine-cta { margin-top: 18px; opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.5s var(--ease); pointer-events: none; }
.cine-cta.on { opacity: 1; transform: none; pointer-events: auto; }
.cine-bar { margin-top: 26px; height: 3px; max-width: 300px; border-radius: 3px; background: var(--line); }
.cine-bar span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--rose), var(--sun)); border-radius: 3px; }
.cine-stage { position: relative; height: 100%; min-height: 0; width: 100%; display: grid; place-items: center; perspective: 1800px; z-index: 2; }
.cine-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 92, 138, 0.42), rgba(255, 224, 138, 0.12) 50%, transparent 70%); filter: blur(20px); opacity: var(--glow, 0.5); }
.cine-phone { --w: min(300px, 50vw, 46vh); transform: rotateY(var(--ry, -20deg)) rotateX(var(--rx, 4deg)); transition: none; will-change: transform; }
.cine-phone .cs { opacity: 0; transition: opacity 0.5s var(--ease); }
.cine-phone .cs.is-on { opacity: 1; }
#phone3d { position: absolute; inset: 0; width: 100%; height: 100%; display: none; z-index: 1; pointer-events: none; }
.cine.gl-on #phone3d { display: block; }
.cine.gl-on .cine-phone { display: none; }
@media (max-width: 860px) {
  .cine-stick { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); padding-top: 72px; gap: 0; align-items: start; }
  .cine-h { display: none; }
  .caps { min-height: 112px; margin-top: 10px; }
  .cine-copy .eyebrow { margin-bottom: 4px; }
  .cine-bar { display: none; }
  .cine-phone { --w: min(240px, 58vw, 36vh); }
  .cine-cta { position: absolute; right: 0; top: 0; margin: 0; padding: 12px 18px; font-size: 14px; }
}
/* plain rows: the same story without scroll tricks */
.rows-fallback { padding-block: clamp(80px, 12vw, 140px); }
.rows { display: grid; gap: clamp(70px, 10vw, 140px); margin-top: 70px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 110px); align-items: center; }
.row.flip .row-text { order: 2; }
.row-text { max-width: 440px; }
.row-n { font-family: var(--display); font-size: clamp(54px, 8vw, 110px); line-height: 1; font-weight: 800; background: linear-gradient(135deg, var(--rose), var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 8px; }
.row-text h3 { font-family: var(--display); font-size: clamp(32px, 4vw, 52px); line-height: 1.05; font-weight: 700; }
.row-text p { color: var(--muted); font-size: 19px; margin-top: 14px; }
.row-phone { display: flex; justify-content: center; }
.row-phone .iphone { --w: min(300px, 74vw); }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; gap: 26px; justify-items: center; text-align: center; } .row.flip .row-text { order: 0; } }

/* light bands: strong contrast, on paper */
.band-light { background: var(--paper); color: var(--paper-ink); padding-block: clamp(80px, 11vw, 140px); }
.band-light .h2 { color: var(--paper-ink); }

/* try it: three homeworks */
.try-head { max-width: 760px; }
.todo { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.todo li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: #fff; border: 1.5px solid #e9cbd8; font-weight: 600; font-size: 15.5px; color: var(--paper-ink); transition: background 0.3s, border-color 0.3s; }
.todo-c { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cfa9ba; display: grid; place-items: center; color: transparent; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.todo-c svg { width: 14px; height: 14px; }
.todo li.done { background: #e8fff4; border-color: #2fbf86; }
.todo li.done .todo-c { background: #2fbf86; border-color: #2fbf86; color: #04271a; }
.board { position: relative; margin-top: 40px; max-width: 760px; padding: 24px; border-radius: 32px; background: #0f0b14; color: #fff; box-shadow: 0 50px 90px -40px rgba(42, 13, 27, 0.7); overflow: hidden; }
.board-top { display: flex; gap: 18px; align-items: center; padding: 4px 4px 18px; }
.board-ring { position: relative; width: 64px; height: 64px; flex: none; }
.board-ring svg, .g-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.r-bg { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 9; }
.r-fg { fill: none; stroke: url(#none); stroke: var(--rose); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 263.9; stroke-dashoffset: 263.9; transition: stroke-dashoffset 0.9s var(--ease), stroke 0.4s; }
.board-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 24px; font-weight: 700; }
.board-top h3 { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.board-top p { color: var(--muted); font-size: 15.5px; margin-top: 3px; }

.tcard { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; padding: 14px 12px 14px 20px; border-radius: 20px; background: #17121c; border: 1px solid rgba(255, 255, 255, 0.1); transition: transform 0.35s var(--ease), border-color 0.3s, opacity 0.3s; }
.tcard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: 20px 0 0 20px; background: var(--c, var(--rose)); }
.tcard:hover { transform: translateX(4px); border-color: rgba(255, 255, 255, 0.28); }
.c-orange { --c: #ff7a3d; }
.c-blue { --c: #3d8bff; }
.c-indigo { --c: #6a7bff; }
.d-circle { flex: none; width: 28px; height: 28px; margin-top: 2px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.5); background: transparent; padding: 0; cursor: pointer; display: grid; place-items: center; transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease); }
.d-circle:hover { border-color: var(--sun); }
.t-open { flex: 1; min-width: 0; display: grid; gap: 3px; text-align: left; background: transparent; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.t-name { font-size: 18px; font-weight: 700; }
.t-desc { color: var(--muted); font-size: 15.5px; line-height: 1.4; }
.t-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.t-badges em, .d-badges em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); color: #fff; }
.t-badges em svg { width: 13px; height: 13px; }
.t-badges:empty { display: none; }
.d-play { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ff6f98, #ffc271); color: #fff; margin-top: 2px; }
.d-play[hidden] { display: none; }
.d-play svg { width: 16px; height: 16px; }
.d-more { flex: none; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; border-radius: 10px; }
.d-more:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.d-more svg { width: 20px; height: 20px; }
.d-menu { position: absolute; right: 10px; top: 52px; z-index: 6; min-width: 170px; padding: 6px; border-radius: 16px; background: #231b29; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7); }
.d-menu[hidden] { display: none; }
.d-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; background: transparent; border-radius: 10px; text-align: left; cursor: pointer; font: 600 15px var(--ui); color: #fff; }
.d-menu button:hover { background: rgba(255, 255, 255, 0.1); }
.d-menu svg { width: 18px; height: 18px; color: #ff7aa6; }
.tcard.is-done .d-circle { background: linear-gradient(135deg, #ff6f98, #ffc271); border-color: transparent; transform: scale(1.1); }
.tcard.is-done .d-circle::after { content: ''; width: 10px; height: 5.5px; border-left: 3px solid #3b0f24; border-bottom: 3px solid #3b0f24; transform: rotate(-45deg) translate(1px, -1px); }
.tcard.is-done .t-name, .tcard.is-done .t-desc { text-decoration: line-through; opacity: 0.6; }
.tcard.is-done { opacity: 0.8; }
.is-hint .d-circle, .is-hint .t-open { animation: pulse 1.8s ease-in-out infinite; }
.is-hint .t-open { border-radius: 10px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 138, 0); } 50% { box-shadow: 0 0 0 6px rgba(255, 92, 138, 0.45); } }
.board-done { position: absolute; inset: 0; z-index: 8; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; background: radial-gradient(circle at 50% 115%, rgba(255, 224, 138, 0.6), rgba(255, 92, 138, 0.3) 50%, rgba(15, 11, 20, 0.95)); animation: fadein 0.7s var(--ease); }
.board-done[hidden] { display: none; }
.board-done p { font-family: var(--display); font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
.sunrise { width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, #fff3c4, var(--sun) 55%, var(--rose)); box-shadow: 0 0 60px 20px rgba(255, 190, 120, 0.55); animation: pop 1s var(--ease); }
@keyframes fadein { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(40px) scale(0.5); opacity: 0; } }

/* the app's own sheets (centered dialog on desktop, bottom sheet on phone) */
.sheet-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.sheet-layer.open { pointer-events: auto; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(8, 3, 12, 0.7); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.35s; }
.sheet-layer.open .sheet-scrim { opacity: 1; }
.d-sheet { position: absolute; left: 50%; bottom: 0; width: min(520px, 100%); max-height: 94vh; overflow: auto; padding: 10px 22px 22px; border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #24101f, #0c0910 26%); color: #fff; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 -30px 70px -10px rgba(0, 0, 0, 0.7); transform: translate(-50%, 110%); transition: transform 0.5s var(--ease); font-size: 15px; line-height: 1.4; visibility: hidden; }
.d-sheet.open { transform: translate(-50%, 0); visibility: visible; }
.d-sheet svg { width: 1em; height: 1em; display: inline-block; flex: none; }
@media (min-width: 700px) { .d-sheet { bottom: auto; top: 50%; border-radius: 28px; transform: translate(-50%, -40%) scale(0.96); opacity: 0; transition: transform 0.45s var(--ease), opacity 0.3s; } .d-sheet.open { transform: translate(-50%, -50%); opacity: 1; } }
.d-grab { width: 42px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.3); margin: 0 auto 14px; }
.d-sh-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.d-sh-head > div { flex: 1; min-width: 0; }
.d-sh-head b { display: block; font-size: 21px; font-weight: 700; }
.d-sh-head small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.d-sh-ic { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, #ff6f98, #ffc271); color: #3b0f24; }
.d-sh-ic svg { width: 24px; height: 24px; }
.d-x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.d-x svg { width: 16px; height: 16px; }
.d-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff7a3d; margin-right: 7px; }
.d-fl { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font-size: 14px; font-weight: 500; color: #ecdbe5; }
.d-fl svg { width: 17px; height: 17px; color: #ff6f98; }
.d-fl em { margin-left: 4px; font-style: normal; font-size: 12.5px; color: var(--soft); }
.d-fl-row { justify-content: space-between; }
.d-fl-row span { display: inline-flex; align-items: center; gap: 8px; }
.d-fl-row b { color: #fff; font-size: 15px; }
.d-pill { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 16px; border-radius: 99px; background: #17121c; border: 1px solid rgba(255, 255, 255, 0.16); font-size: 15px; }
.d-pill svg { width: 15px; height: 15px; color: var(--soft); }
#dText { width: 100%; resize: none; border-radius: 16px; border: 1.5px solid rgba(255, 255, 255, 0.2); background: #120e17; color: #fff; padding: 13px 14px; font: inherit; font-size: 16px; }
#dText::placeholder { color: #9d8a96; }
#dText:focus, #dStep:focus { outline: none; border-color: var(--rose); }
.d-stepin { display: flex; gap: 10px; align-items: center; }
.d-stepin input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 99px; border: 1.5px solid rgba(255, 255, 255, 0.2); background: #120e17; color: #fff; font: inherit; font-size: 15px; }
.d-stepin input::placeholder { color: #9d8a96; }
.d-stepin button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #2a2131; color: #fff; display: grid; place-items: center; cursor: pointer; }
.d-stepin button svg { width: 18px; height: 18px; }
.d-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.d-steps li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #17121c; font-size: 14.5px; }
.d-steps li i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); flex: none; }
.d-cta { display: block; width: 100%; margin-top: 20px; padding: 16px; border: 0; border-radius: 999px; font: 700 16px var(--ui); color: #fff; background: linear-gradient(90deg, #ff6f98, #ffc271); box-shadow: 0 14px 30px -12px rgba(255, 92, 138, 0.85); cursor: pointer; }
.d-cta[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.d-days { display: flex; gap: 10px; padding-top: 14px; }
.d-days button { position: relative; flex: none; width: 74px; padding: 12px 0; border-radius: 18px; background: #17121c; border: 1.5px solid rgba(255, 255, 255, 0.14); display: grid; justify-items: center; cursor: pointer; color: #fff; font-family: var(--ui); }
.d-days small { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.d-days b { font-size: 22px; }
.d-days em { position: absolute; top: -10px; font-style: normal; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #e11d48; color: #fff; }
.d-days .on { background: linear-gradient(160deg, #ff6f98, #ffc271); border-color: transparent; color: #3b0f24; }
.d-days .on small { color: #3b0f24; }
.d-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.d-chips button { padding: 11px 16px; border-radius: 99px; border: 0; background: #241c2b; color: #fff; font: 600 15px var(--ui); cursor: pointer; }
.d-chips .on { background: linear-gradient(90deg, #ff6f98, #ffc271); color: #3b0f24; }
#dDur { width: 100%; margin: 6px 0 0; accent-color: #ff6f98; height: 30px; }
.d-sum { text-align: center; margin-top: 10px; font-size: 15px; color: var(--muted); }
.d-sum b { color: #fff; font-weight: 600; }
.d-toast { position: absolute; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 5; max-width: calc(100% - 32px); padding: 13px 18px; border-radius: 16px; background: #2a2131; border: 1px solid rgba(255, 255, 255, 0.2); font-size: 15px; font-weight: 600; opacity: 0; transition: opacity 0.35s, transform 0.35s var(--ease); pointer-events: none; }
.d-toast.on { opacity: 1; transform: translate(-50%, 0); }
.sheet-layer .d-toast { z-index: 100; }

/* notes */
.notes { position: relative; padding-block: clamp(90px, 12vw, 150px); background: radial-gradient(90% 80% at 85% 20%, rgba(255, 92, 138, 0.28), transparent 60%), linear-gradient(180deg, #0b0410, #1d0a1a); }
.notes-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.notes-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.notes-points li { padding: 14px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 17px; }
.notes-points b { color: #fff; }
.notes-try { margin-top: 22px; color: var(--sun); font-weight: 600; font-size: 17px; }
.gcard { padding: 22px; border-radius: 32px; background: #120d17; border: 1px solid var(--line); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9); }
.g-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 99px; background: #1b1521; width: max-content; max-width: 100%; overflow: hidden; margin-bottom: 18px; }
.g-tabs span { padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--soft); white-space: nowrap; }
.g-tabs .on { background: #0b0810; color: #fff; }
.g-top { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 18px; border-radius: 24px; background: radial-gradient(120% 120% at 20% 0%, rgba(255, 92, 138, 0.3), rgba(255, 224, 138, 0.06) 70%), #1a1320; }
.g-ring { position: relative; width: 150px; height: 150px; }
.g-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.g-ring b { font-family: var(--display); font-size: 40px; font-weight: 800; color: #34d399; line-height: 1; }
.g-ring small { font-size: 11.5px; color: var(--muted); margin-top: 2px; letter-spacing: 0; }
.g-ring .r-fg { stroke: url(#none); stroke: var(--sun); }
.g-tiles { display: grid; gap: 10px; }
.g-tiles > div { padding: 10px 14px; border-radius: 16px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.1); }
.g-tiles small { display: block; font-size: 12.5px; color: var(--muted); }
.g-tiles b { display: block; font-size: 18px; font-weight: 700; }
.g-low { border-color: rgba(255, 92, 138, 0.55) !important; }
.g-low b { color: #ff9ab6; }
.g-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.g-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n a" "p p"; align-items: center; gap: 8px 12px; width: 100%; padding: 10px 14px; border-radius: 16px; background: #1a1320; border: 1.5px solid transparent; cursor: pointer; color: #fff; font: inherit; text-align: left; transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease); }
.g-row:hover { transform: translateX(3px); }
.g-row[aria-pressed="true"] { border-color: var(--rose); background: #241a2b; }
.g-row .gn { grid-area: n; min-width: 0; font-weight: 600; font-size: 16px; }
.g-row .gp { grid-area: p; display: flex; flex-wrap: wrap; gap: 5px; }
.g-row .gp i { font-style: normal; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); }
.g-row .gp i.new { background: linear-gradient(135deg, var(--rose), var(--sun)); color: var(--wine); animation: pop 0.6s var(--ease); }
.g-row .ga { grid-area: a; min-width: 56px; text-align: right; font-size: 17px; font-weight: 800; }
/* rows stack on two lines by default, so the grade pills can never run over the subject name;
   when the card is wide enough for the longest case (8 grades) they sit on one line */
.g-list { container-type: inline-size; }
@container (min-width: 520px) { .g-row { grid-template-columns: minmax(0, 1fr) auto 56px; grid-template-areas: "n p a"; } .g-row .gp { justify-content: flex-end; } }
.g-add { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #1a1320; }
.g-add > span { font-size: 15.5px; color: var(--muted); }
.g-add b { color: #fff; }
.g-btns { display: flex; gap: 8px; }
.g-btns button { width: 46px; height: 46px; border-radius: 14px; border: 0; background: #2a2131; color: #fff; font: 800 18px var(--ui); cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s; }
.g-btns button:hover { background: linear-gradient(135deg, var(--rose), var(--sun)); color: var(--wine); transform: translateY(-3px); }
@media (max-width: 900px) { .notes-grid { grid-template-columns: 1fr; } .g-top { grid-template-columns: 1fr; justify-items: center; } .g-tiles { width: 100%; } }

/* roles, privacy */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 52px; }
.card { padding: 30px 26px; border-radius: 28px; background: #fff; border: 1.5px solid #f0d3df; box-shadow: 0 24px 50px -30px rgba(42, 13, 27, 0.4); transition: transform 0.4s var(--ease), border-color 0.3s; }
.card:hover { transform: translateY(-6px); border-color: var(--rose); }
.card-ic { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; font-size: 25px; color: var(--wine); background: linear-gradient(135deg, var(--rose), var(--sun)); margin-bottom: 20px; }
.card h3 { font-family: var(--display); font-size: 28px; font-weight: 700; margin-bottom: 8px; color: var(--paper-ink); }
.card p { color: var(--paper-muted); font-size: 17px; }
.privacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 52px; }
.p-item { padding: 28px 26px; border-radius: 26px; background: #fff; border: 1.5px solid #f0d3df; }
.p-item h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; color: var(--paper-ink); }
.p-item p { color: var(--paper-muted); font-size: 17px; }

/* devices */
.devices { padding-block: clamp(90px, 12vw, 150px); background: linear-gradient(180deg, #1d0a1a, #0b0410); }
.stage-dev { margin-top: 56px; display: flex; align-items: flex-end; justify-content: center; gap: clamp(16px, 4vw, 56px); }
.laptop { flex: 1 1 0; max-width: 760px; min-width: 0; }
.laptop-lid { border-radius: 16px 16px 6px 6px; padding: 2.2% 2.2% 3%; background: linear-gradient(160deg, #2a2a32, #0e0e12); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.14) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.laptop-lid img { width: 100%; height: auto; border-radius: 6px; display: block; background: #0b0a0e; }
.laptop-base { height: 14px; margin: 0 -3%; border-radius: 0 0 18px 18px; background: linear-gradient(#bdbdc4, #6c6c74 60%, #3a3a40); box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.6); }
.phones { display: flex; gap: clamp(10px, 2vw, 22px); align-items: flex-end; flex: none; }
.dev-ios { --w: clamp(120px, 15vw, 190px); }
.android { --w: clamp(120px, 15vw, 190px); position: relative; width: var(--w); aspect-ratio: 900 / 1949; padding: calc(var(--w) * 0.035); border-radius: calc(var(--w) * 0.15); background: linear-gradient(150deg, #5b5f66, #1c1d21 45%, #3a3c42); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.14) inset, 0 0 0 calc(var(--w) * 0.01) #050507, 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.android-screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * 0.12); overflow: hidden; background: #0b0a0e; }
.android-screen img { width: 100%; height: 100%; object-fit: cover; }
.punch { position: absolute; z-index: 2; top: 2.4%; left: 50%; width: 5%; aspect-ratio: 1; margin-left: -2.5%; border-radius: 50%; background: #030304; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.08); }
.badges { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.badges li { padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.badges b { display: block; font-size: 17px; font-weight: 700; }
.badges small { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .stage-dev { flex-direction: column; align-items: center; } .laptop { width: 100%; } }

/* schools */
.schools { padding-block: clamp(90px, 12vw, 150px); background: radial-gradient(90% 80% at 15% 100%, rgba(255, 92, 138, 0.25), transparent 60%), #0b0410; }
.how { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.how li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.how li > span { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--wine); background: linear-gradient(135deg, var(--rose), var(--sun)); }
.how h3 { font-size: 21px; font-weight: 700; }
.how p { color: var(--muted); font-size: 17px; margin-top: 4px; }
.cta-band { margin-top: 70px; padding: clamp(28px, 4vw, 48px); border-radius: 32px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, rgba(255, 92, 138, 0.35), rgba(255, 224, 138, 0.22)); border: 1px solid rgba(255, 255, 255, 0.25); }
.cta-band h3 { font-family: var(--display); font-size: clamp(28px, 3.8vw, 44px); font-weight: 700; line-height: 1.1; }
.cta-band p { color: var(--muted); margin-top: 6px; }
.footer { padding: 40px var(--pad) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 15px; background: #0b0410; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer b { color: #fff; }

/* a visible, reduced-motion friendly page */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .display .w > span { animation: none; }
  .sun { animation: none; opacity: 1; transform: translate(-50%, -10%); }
  .toast { animation: none; opacity: 1; position: static; margin-top: 12px; }
  .hero-phone, .scroll-cue span, .is-hint .d-circle, .is-hint .t-open { animation: none; }
  .hero-phone .shot, .r-fg { transition: none; }
}
@media (max-width: 560px) { .toast { width: min(240px, 64vw); } .t1 { left: 0; top: 14%; } .t2 { right: 0; bottom: 8%; } }

html.lock { overflow: hidden; }

/* try it: text on the left, the three homeworks on the right */
.try .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.try .board { margin-top: 0; max-width: none; }
@media (max-width: 960px) { .try .wrap { grid-template-columns: 1fr; } .try .board { margin-top: 36px; } }

.try .h2 { max-width: none; font-size: clamp(34px, 4.2vw, 56px); }

.notes-grid > *, .try .wrap > *, .cine-stick > * { min-width: 0; }
.g-tabs { width: 100%; flex-wrap: wrap; border-radius: 22px; }
.g-tabs span { flex: 1 1 auto; text-align: center; }
.gcard, .board { max-width: 100%; }
