/* Demoty — one red, one type scale, one radius scale. */

:root {
  --red: #ff0a18;
  --red-deep: #d90010;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --bg: #ffffff;
  --tint: #f5f5f7;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --r-card: 28px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  margin: 0; font-weight: 700;
}
h2 { font-size: clamp(40px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.045em; }
h3 { font-size: 28px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.muted { color: var(--ink-3); }
.eyebrow { color: var(--red); font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.lede { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.38; color: var(--ink-2); letter-spacing: -0.02em; margin-top: 22px; max-width: 620px; }
.head { text-align: center; }
.head .lede { margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); outline-offset: 3px; border-radius: 10px; }

/* Capsule buttons. */
.pill {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  height: 54px; padding: 0 30px; border-radius: 999px; text-decoration: none;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform 160ms var(--ease), background-color 200ms, color 200ms, box-shadow 200ms;
}
.pill:active { transform: scale(0.97); }
.pill-white { background: #fff; color: var(--red); box-shadow: 0 14px 34px -14px rgba(120, 0, 8, 0.55); }
.pill-nav { height: 34px; padding: 0 16px; font-size: 14px; background: var(--red); color: #fff; }

/* Navigation: white on the red opening, glass afterwards. */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 300ms, border-color 300ms, color 300ms; border-bottom: 1px solid transparent; }
.nav[data-tone="glass"] { background: rgba(255, 255, 255, 0.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom-color: var(--line); }
.nav[data-tone="light"] { color: #fff; }
.nav[data-tone="light"] .pill-nav { background: #fff; color: var(--red); }
.nav[data-tone="light"] nav a { color: rgba(255, 255, 255, 0.85); }
.nav-inner { width: min(var(--wrap), 100% - 40px); margin-inline: auto; height: 58px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; transition: color 200ms; }
@media (hover: hover) and (pointer: fine) { .nav nav a:hover { color: inherit; } .pill-white:hover { box-shadow: 0 18px 40px -14px rgba(120, 0, 8, 0.7); } }
@media (max-width: 700px) { .nav nav { display: none; } .pill-nav { margin-left: auto; } }

/* 1. The scene. The script places every layer from the scroll position. */
.scene { position: relative; height: 640vh; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.red { position: absolute; inset: 0; background: var(--red); z-index: 2; will-change: clip-path, opacity; }
.hero-text { position: absolute; left: 0; right: 0; z-index: 3; text-align: center; color: #fff; padding: 0 20px; will-change: transform, opacity; }
.hero-text h1 { font-size: clamp(46px, 7.6vw, 108px); line-height: 0.98; letter-spacing: -0.05em; }
.eyebrow-light { font-size: 17px; font-weight: 600; opacity: 0.85; margin-bottom: 14px; }
.hero-lede { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.35; opacity: 0.9; margin: 20px auto 30px; max-width: 560px; letter-spacing: -0.02em; }
.logo { position: absolute; z-index: 3; will-change: transform; }
.flower { width: 100%; height: 100%; will-change: transform, opacity, filter; filter: drop-shadow(0 30px 40px rgba(100, 0, 6, 0.35)); }
.island { position: absolute; z-index: 4; border-radius: 999px; background: rgba(0, 0, 0, var(--dark, 0)); will-change: left, top, width, height; }
.island img { position: absolute; inset: 0; width: 100%; height: 100%; }
.device { position: absolute; z-index: 1; }
.device img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 50px 60px rgba(0, 0, 0, 0.18)); }
.chapters { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.chapters li { position: absolute; opacity: 0; will-change: transform, opacity; }
.chapters .num { display: block; color: var(--red); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; margin-bottom: 14px; }
.chapters h2 { font-size: clamp(36px, 4.6vw, 68px); }
.chapters p { margin-top: 18px; color: var(--ink-2); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; max-width: 440px; }
@media (max-width: 899px) {
  .chapters li { text-align: center; }
  .chapters h2 { font-size: 34px; }
  .chapters p { font-size: 17px; margin: 10px auto 0; max-width: 340px; }
  .chapters .num { margin-bottom: 6px; }
}
.hint { position: absolute; z-index: 3; bottom: 28px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, 0.85); font-size: 14px; font-weight: 600; }
.hint span { display: inline-block; margin-left: 6px; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

/* 2. Floating frames. */
.frames { padding: clamp(110px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.float-row { margin-top: clamp(56px, 7vw, 96px); }
.float-track { display: flex; gap: clamp(20px, 3vw, 44px); width: max-content; padding-inline: 6vw; will-change: transform; }
.float-track img { height: clamp(320px, 38vw, 520px); width: auto; filter: drop-shadow(0 36px 40px rgba(0, 0, 0, 0.16)); transition: transform 500ms var(--ease); }
.float-track img:nth-child(even) { transform: translateY(48px); }
@media (hover: hover) and (pointer: fine) { .float-track img:hover { transform: translateY(-10px) rotate(-1.5deg); } .float-track img:nth-child(even):hover { transform: translateY(36px) rotate(1.5deg); } }

/* 3. Try it. */
.make { background: var(--tint); padding: clamp(100px, 12vw, 160px) 0; }
.make-grid { display: grid; grid-template-columns: 1fr minmax(300px, 440px); gap: clamp(40px, 7vw, 110px); align-items: center; }
.control { margin-top: 30px; }
.control-label { font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 12px; }
.control-label .frame-name { text-transform: none; color: var(--ink); letter-spacing: -0.01em; font-size: 15px; margin-left: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 52px; height: 52px; border-radius: 16px; border: 0; padding: 0; cursor: pointer;
  background: var(--img) center / cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform 200ms var(--ease), box-shadow 200ms;
}
.swatch.on { box-shadow: 0 0 0 3px var(--tint), 0 0 0 5.5px var(--red); }
.swatch:active { transform: scale(0.94); }
.dots { display: flex; gap: 12px; }
.dot { width: 36px; height: 36px; border-radius: 999px; border: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); transition: transform 200ms var(--ease), box-shadow 200ms; }
.dot.on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 3px var(--tint), 0 0 0 5.5px var(--red); }
.dot:active { transform: scale(0.92); }
.control-row { display: flex; align-items: center; gap: 18px; }
.control-row .control-label { margin: 0; min-width: 64px; }
input[type="range"] { flex: 1; max-width: 280px; accent-color: var(--red); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.06); }
.seg button { border: 0; background: transparent; height: 38px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color 200ms, color 200ms, box-shadow 200ms; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }

.canvas-wrap { position: sticky; top: 90px; width: min(100%, calc((100vh - 140px) * 9 / 16)); justify-self: center; }
.canvas { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-card); overflow: hidden; box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.4); isolation: isolate; }
.canvas-bg, .canvas-bg-next { position: absolute; inset: -6%; background: var(--img) center / cover; transition: filter 300ms var(--ease); }
.canvas-bg-next { opacity: 0; transition: opacity 500ms var(--ease), filter 300ms; }
.canvas-pattern { position: absolute; inset: 0; opacity: 0; transition: opacity 300ms; }
.canvas-pattern[data-p="dots"] { opacity: 1; background: radial-gradient(rgba(255, 255, 255, 0.35) 1.4px, transparent 1.6px) 0 0 / 18px 18px; }
.canvas-pattern[data-p="grid"] { opacity: 1; background:
  linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px) 0 0 / 22px 22px,
  linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px) 0 0 / 22px 22px; }
.canvas-phone { position: absolute; left: 50%; top: 7%; height: 86%; width: auto; transform: translateX(-50%); filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.35)); transition: transform 450ms var(--ease), opacity 250ms; }
.canvas-phone.swap { transform: translateX(-50%) scale(0.94); opacity: 0.4; }
@media (max-width: 899px) { .make-grid { grid-template-columns: 1fr; } .canvas-wrap { position: relative; top: 0; width: min(380px, 100%); margin: 0 auto; order: -1; } }

/* 4. Status bar. */
.statusbar { padding: clamp(110px, 13vw, 170px) 0; }
.status { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.bars { display: grid; gap: 12px; justify-items: center; }
.bar-label { font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.02em; margin-top: 14px; }
.bar { width: min(420px, 100%); height: 72px; border-radius: 24px; background: var(--card); box-shadow: 0 1px 0 var(--line), 0 24px 50px -28px rgba(0, 0, 0, 0.35);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; font-weight: 600; font-size: 17px; }
.bar .t { justify-self: start; padding-left: 14px; }
.bar .ic { justify-self: end; display: flex; gap: 6px; padding-right: 8px; }
.bar .ic i { width: 16px; height: 11px; border-radius: 3px; background: var(--ink); }
.bar .ic i:last-child { width: 25px; border-radius: 4px; }
.isle { width: 126px; height: 37px; border-radius: 999px; background: #000; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
.isle-rec { width: 178px; }
.isle-rec i { width: 12px; height: 12px; border-radius: 999px; background: #ff3b30; box-shadow: 0 0 0 5px rgba(255, 59, 48, 0.3); }
.isle-rec b { color: #fff; font-size: 14px; }
@media (max-width: 899px) { .status { grid-template-columns: 1fr; text-align: center; } .status .lede { margin-inline: auto; } }

/* 5. Trust. */
.trust { padding: 0 0 clamp(110px, 13vw, 170px); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.trust article { background: var(--tint); border-radius: var(--r-card); padding: clamp(34px, 4vw, 52px); }
.trust article p { margin-top: 14px; color: var(--ink-2); font-size: 19px; line-height: 1.42; }
@media (max-width: 899px) { .trust-grid { grid-template-columns: 1fr; } }

/* 6. Pricing. */
.pricing { background: var(--tint); padding: clamp(110px, 13vw, 170px) 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 940px; margin: clamp(56px, 7vw, 88px) auto 0; }
.plan { background: var(--card); border-radius: var(--r-card); padding: clamp(34px, 4vw, 48px); }
.price { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif; font-size: 56px; font-weight: 700; letter-spacing: -0.045em; margin-top: 10px; }
.price span { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; opacity: 0.7; }
.alt { font-size: 15px; opacity: 0.8; margin-top: 2px; }
.plan-pro { background: var(--red); color: #fff; box-shadow: 0 40px 70px -30px rgba(200, 0, 12, 0.6); }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 13px; }
.ticks li { position: relative; padding-left: 30px; font-size: 17px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 999px;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.plan-pro .ticks li::before { background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23ff0a18' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (max-width: 899px) { .plans { grid-template-columns: 1fr; } }

/* 7. FAQ. */
.faq-section { padding: clamp(110px, 13vw, 170px) 0; }
.faq-title { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 44px 26px 0; position: relative; font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform 300ms var(--ease), margin 300ms; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details p { color: var(--ink-2); padding: 0 44px 28px 0; font-size: 18px; }

/* 8. Final. */
.final { background: var(--red); color: #fff; padding: clamp(110px, 14vw, 190px) 0; overflow: hidden; }
.final-inner { text-align: center; display: grid; justify-items: center; gap: 34px; }
.final img { width: clamp(150px, 18vw, 220px); filter: drop-shadow(0 30px 40px rgba(100, 0, 6, 0.4)); }
.final h2 { max-width: 900px; }

.footer { padding: 30px 0 44px; font-size: 13px; color: var(--ink-3); }
.footer-inner { display: flex; align-items: center; gap: 20px; }
.footer-inner p { margin-left: auto; }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.brand-sm { font-size: 15px; color: var(--ink); gap: 8px; }
.brand-sm img { width: 22px; height: 22px; border-radius: 6px; }

/* Reveal on scroll. */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* Reduce Motion: no pinned scene; the end state, laid out normally. */
.reduce .scene { height: auto; }
.reduce .pin { position: relative; height: auto; overflow: visible; padding: 120px 0 60px; display: grid; justify-items: center; gap: 40px; }
.reduce .red { position: absolute; inset: 0 0 auto; height: 620px; }
.reduce .hero-text { position: relative; z-index: 3; }
.reduce .logo, .reduce .island, .reduce .hint { display: none; }
.reduce .device { position: relative; z-index: 3; width: min(320px, 70vw); aspect-ratio: 675 / 1380; }
.reduce .device img:not(:first-child) { display: none; }
.reduce .chapters { position: relative; display: grid; gap: 48px; width: min(640px, 100% - 40px); }
.reduce .chapters li { position: relative; opacity: 1; text-align: center; }
.reduce .chapters p { margin-inline: auto; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: opacity 300ms ease; transform: none; }
  .hint span { animation: none; }
}
