@font-face {
  font-family: "Lilita";
  src: url("/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --blue: #2e8bf0;
  --blue-dark: #1453b8;
  --sky: #cfe9ff;
  --cream: #fff1dc;
  --cream-deep: #f6ddba;
  --brown: #7a3b12;
  --brown-soft: #9c663b;
  --gold: #ffb400;
  --gold-light: #ffe066;
  --green: #6cd41c;
  --ink: #1b3b6b;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: "Fredoka", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.58;
  color: var(--ink);
  background: linear-gradient(180deg, #8ec8ff 0, #d8efff 540px, #fff7e8 920px, #fff7e8 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4, .brand span, .btn { font-family: "Lilita", "Fredoka", sans-serif; font-weight: 400; letter-spacing: 0.01em; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* header */
.site-header {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-size: 24px; text-shadow: 0 2px 0 var(--blue-dark), 0 3px 8px rgba(0, 0, 0, 0.25); }
.brand img { border-radius: 12px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); }
.site-header nav { display: flex; gap: 8px; }
.site-header nav a {
  color: var(--ink); text-decoration: none; padding: 8px 16px; border-radius: 999px;
  font-weight: 600; background: rgba(255, 255, 255, 0.72);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { background: #fff; color: var(--blue-dark); }

/* hero split stage */
.hero {
  position: relative;
  margin-top: -78px;
  padding: 92px 24px 44px;
  background:
    linear-gradient(180deg, rgba(16, 62, 145, 0.2), rgba(255, 247, 232, 0.08) 58%, #fff7e8 100%),
    url("/img/hero.webp") center top / cover no-repeat;
  border-radius: 0 0 42px 42px;
}
.hero-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px;
  align-items: center;
}
.hero-copy { min-width: 0; text-align: left; }
.wordmark {
  width: min(390px, 84vw);
  margin: 0 0 8px;
  filter: drop-shadow(0 10px 18px rgba(0, 40, 90, 0.35));
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-title {
  margin: 4px 0 12px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  color: #fff;
  text-shadow:
    -2px -2px 0 #144699,
    2px -2px 0 #144699,
    -2px 2px 0 #144699,
    2px 2px 0 #144699,
    0 4px 0 #144699,
    0 8px 18px rgba(10, 30, 75, 0.45);
}
.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 18px;
  color: #fff;
  background: rgba(16, 52, 120, 0.74);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 30, 80, 0.22);
}
.cta { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.cta-jump {
  font-size: 16px; font-weight: 700; color: #fff; text-decoration: none;
  padding: 6px 12px; border-radius: 999px; background: rgba(16, 52, 120, 0.56);
}
.cta-jump:hover { color: #fff; background: rgba(16, 52, 120, 0.78); }

.waitlist-card {
  margin-top: 14px;
  background: linear-gradient(180deg, #fffaf0, var(--cream));
  border: 3px solid var(--blue); border-radius: 20px;
  padding: 14px 16px;
  box-shadow: 0 6px 0 var(--blue-dark), 0 14px 26px rgba(10, 30, 75, 0.24);
  text-align: left;
}
.waitlist-card[hidden] { display: none; }
.waitlist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.waitlist-head strong { font-family: "Lilita", sans-serif; font-size: 20px; color: var(--brown); font-weight: 400; }
.waitlist-close {
  border: 0; background: #eaf4ff; color: var(--blue-dark);
  width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer;
}
.waitlist-card > p { margin: 0 0 10px; font-size: 14px; color: #4e3824; }
.waitlist-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.waitlist-controls input {
  flex: 1 1 200px; min-width: 0;
  font-family: "Fredoka", sans-serif; font-size: 14px;
  padding: 9px 12px; border-radius: 12px; border: 2px solid #b5cef2; background: #fff; color: var(--ink);
}
.waitlist-status { margin: 8px 0 0 !important; font-size: 13px !important; color: var(--blue-dark) !important; font-weight: 600; }

.trust-pills {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.trust-pills li {
  font-size: 14px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  color: var(--ink); background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(46, 139, 240, 0.35);
}
.disclosure {
  margin: 12px 0 0; font-size: 14px; font-weight: 500;
  color: #15315c;
  background: rgba(255, 255, 255, 0.8);
  display: inline-block; padding: 4px 12px; border-radius: 10px;
}

/* hero interactive screenshot preview */
.hero-showcase { min-width: 0; }
.hero-stage-card {
  background: linear-gradient(180deg, #fffaf0, var(--cream));
  border: 4px solid var(--blue);
  border-radius: 28px;
  padding: 16px 18px 18px;
  box-shadow: 0 10px 0 var(--blue-dark), 0 20px 36px rgba(10, 35, 80, 0.28);
}
.stage-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 14px;
}
.stage-tab {
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 14px;
  padding: 7px 13px; border-radius: 999px;
  border: 2px solid #b5cef2; background: #fff; color: var(--ink);
  cursor: pointer; transition: background-color 0.12s ease, border-color 0.12s ease;
}
.stage-tab:hover { border-color: var(--blue); }
.stage-tab.is-active { background: var(--blue); border-color: var(--blue-dark); color: #fff; }

.hero-stage-body {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.phone-frame {
  padding: 7px;
  border-radius: 26px;
  background: #182b4d;
  border: 3px solid #355896;
  box-shadow: 0 12px 24px rgba(10, 30, 75, 0.25);
}
.phone-frame img { border-radius: 20px; width: 100%; height: auto; }
.hero-shot-info { min-width: 0; }
.shot-badge {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: #eaf4ff; color: var(--blue-dark);
  border: 1px solid #bcd8fa;
  margin-bottom: 8px;
}
.shot-heading { margin: 0 0 8px; font-size: 25px; color: var(--brown); line-height: 1.15; }
.shot-text { margin: 0 0 10px; font-size: 15px; color: #4e3824; }
.shot-points {
  margin: 0 0 12px; padding-left: 18px;
  font-size: 14px; color: #5b4630;
}
.shot-points li { margin: 4px 0; }
.stage-jump { font-size: 15px; font-weight: 600; text-decoration: none; }
.stage-jump:hover { text-decoration: underline; }

/* buttons */
.btn {
  display: inline-block; font-size: 20px; line-height: 1; padding: 15px 26px 17px;
  border-radius: 20px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.12s ease;
}
.btn:active { transform: translateY(2px) scale(0.98); }
.btn-play {
  color: #4a2200;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: 0 6px 0 #c96a00, 0 12px 20px rgba(0, 0, 0, 0.28), inset 0 3px 0 rgba(255, 255, 255, 0.55);
}
.btn-play:hover { color: #4a2200; transform: translateY(-2px); }
.btn-soon { cursor: default; opacity: 0.96; }
.btn-soon:hover { transform: none; }
.btn-ghost {
  color: var(--ink); background: linear-gradient(180deg, #fff, #dfeeff);
  box-shadow: 0 6px 0 #8aa8d0, 0 12px 20px rgba(0, 0, 0, 0.22);
}
.btn-ghost:hover { color: var(--blue-dark); transform: translateY(-2px); }
.btn-ios {
  color: #fff; background: linear-gradient(180deg, #315496, #1b346b);
  box-shadow: 0 6px 0 #0e1e42, 0 12px 20px rgba(0, 0, 0, 0.24), inset 0 2px 0 rgba(255, 255, 255, 0.25);
}
.btn-ios:hover { color: #fff; transform: translateY(-2px); }
.btn-sm { font-size: 15px; padding: 10px 16px 11px; border-radius: 14px; }

/* sections */
.band { width: 100%; max-width: 1240px; margin: 0 auto; padding: 54px 24px; }
.band.alt {
  max-width: none; background: rgba(255, 255, 255, 0.58);
  padding-left: 0; padding-right: 0;
}
.band.alt > * { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.band h2 { font-size: clamp(28px, 3.6vw, 40px); text-align: center; margin: 0 0 12px; color: var(--blue-dark); }
.section-sub { margin: 0; color: #39557d; font-size: 18px; }

/* 4-screen gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.gallery-card {
  background: linear-gradient(180deg, var(--cream), var(--cream-deep));
  border: 4px solid var(--blue); border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--blue-dark), 0 14px 22px rgba(0, 40, 90, 0.14);
  padding: 16px 16px 18px;
  display: flex; flex-direction: column;
  min-width: 0;
}
.phone-thumb {
  background: #182b4d; padding: 6px; border-radius: 22px; border: 3px solid #355896;
  margin-bottom: 14px;
}
.phone-thumb img { border-radius: 16px; width: 100%; height: auto; }
.gallery-card h3 { margin: 0 0 6px; font-size: 21px; color: var(--brown); }
.gallery-card p { margin: 0; font-size: 15px; color: #5b4630; }

/* interactive twist explorer */
.twists-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  gap: 24px;
  align-items: stretch;
}
.twist-picker {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.twist-btn {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
  text-align: left; padding: 14px 16px; border-radius: 18px;
  border: 3px solid #b5cef2; background: #fff; color: var(--ink);
  cursor: pointer; font-family: "Fredoka", sans-serif;
  transition: border-color 0.12s ease, transform 0.1s ease, background-color 0.12s ease;
}
.twist-btn:hover { border-color: var(--blue); transform: translateY(-1px); }
.twist-btn.is-active {
  background: var(--blue); border-color: var(--blue-dark); color: #fff;
  box-shadow: 0 5px 0 var(--blue-dark);
}
.lvl-tag {
  font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: #eaf4ff; color: var(--blue-dark);
}
.twist-btn.is-active .lvl-tag { background: rgba(255, 255, 255, 0.24); color: #fff; }
.twist-btn strong { font-size: 17px; line-height: 1.2; }

.twist-spotlight {
  background: linear-gradient(180deg, var(--cream), var(--cream-deep));
  border: 4px solid var(--blue); border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--blue-dark), 0 14px 22px rgba(0, 40, 90, 0.14);
  padding: 20px 22px;
  display: flex; align-items: center;
}
.spotlight-grid {
  display: grid; grid-template-columns: 204px minmax(0, 1fr); gap: 22px; align-items: center; width: 100%;
}
.spotlight-copy {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.lvl-pill {
  display: inline-block; font-size: 13px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px;
  background: #fff; color: var(--blue-dark); border: 2px solid #b5cef2;
  margin-bottom: 8px;
}
.twist-spotlight h3 { margin: 0; font-size: 28px; color: var(--brown); }
.spotlight-desc { margin: 0; color: #4e3824; font-size: 17px; }
.spotlight-rules {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.spotlight-rules > div {
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid #ebd2ad; border-radius: 16px;
  padding: 12px 14px;
}
.spotlight-rules h4 { margin: 0 0 4px; font-size: 17px; color: var(--blue-dark); }
.spotlight-rules p { margin: 0; font-size: 14px; color: #5b4630; }

/* steps & feature cards */
.steps, .cards { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 20px; }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.steps li, .cards li {
  background: linear-gradient(180deg, var(--cream), var(--cream-deep));
  border: 4px solid var(--blue); border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--blue-dark), 0 14px 22px rgba(0, 40, 90, 0.16);
  padding: 20px 18px 20px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.steps li { position: relative; padding-top: 32px; }
.diagram-box, .focus-art {
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
  background: #fffdf6;
}
.diagram-box img, .focus-art img {
  width: 100%;
  height: auto;
}
.num {
  position: absolute; top: -22px; left: 18px; width: 46px; height: 46px; border-radius: 50%; z-index: 2;
  display: grid; place-items: center; font-family: "Lilita", sans-serif; font-size: 26px; color: #fff;
  background: linear-gradient(180deg, #9bea3a, var(--green)); border: 3px solid #fff;
  box-shadow: 0 4px 0 #2e8f0a;
}
h3 { margin: 0 0 8px; font-size: 23px; color: var(--brown); overflow-wrap: break-word; }
.steps p, .cards p { margin: 0; color: #5b4630; font-size: 16px; }

/* FAQ accordion */
.faq-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; margin-top: 26px; align-items: start;
}
.faq-grid details {
  background: #fff;
  border: 3px solid #bad6fb; border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 5px 0 #b8d2f4;
}
.faq-grid summary {
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 18px;
  color: var(--blue-dark); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after {
  content: "+"; font-family: "Lilita", sans-serif; font-size: 24px; color: var(--blue);
  flex: none;
}
.faq-grid details[open] summary::after { content: "\2212"; }
.faq-grid details p { margin: 10px 0 0; font-size: 16px; color: #3a4a66; }

/* studio band */
.studio-band { padding-top: 26px; padding-bottom: 54px; }
.studio-box {
  background: linear-gradient(180deg, #fffaf0, var(--cream));
  border: 4px solid var(--blue); border-radius: 26px;
  box-shadow: 0 8px 0 var(--blue-dark), 0 14px 24px rgba(0, 40, 90, 0.14);
  padding: 24px 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px;
}
.studio-box > div:first-child { flex: 1 1 360px; min-width: 0; }
.studio-box h2 { text-align: left; margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); }
.studio-box p { margin: 0; color: #4e3824; max-width: 58ch; overflow-wrap: anywhere; }
.cta-compact { flex: 0 1 auto; min-width: 0; max-width: 100%; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.band.narrow { max-width: 680px; }
.center { text-align: center; }
.center h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 10px; color: var(--blue-dark); }
.center p { margin: 0 0 18px; }

/* legal pages */
.legal {
  max-width: 880px; margin: 10px auto 60px; padding: 34px clamp(20px, 5vw, 48px) 40px;
  background: linear-gradient(180deg, #fffaf0, var(--cream));
  border: 4px solid var(--blue); border-radius: 28px;
  box-shadow: 0 8px 0 var(--blue-dark), 0 18px 30px rgba(0, 40, 90, 0.2);
  width: calc(100% - 32px);
}
.legal h1 { font-size: clamp(36px, 6vw, 52px); margin: 0 0 4px; color: var(--blue-dark); line-height: 1.1; overflow-wrap: break-word; }
.legal h2 { font-size: 26px; margin: 34px 0 8px; color: var(--brown); }
.legal p, .legal li { color: #3a2b1a; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.meta { color: var(--brown-soft); font-weight: 500; margin: 0 0 18px; }
.summary { background: #eaf5ff; border: 3px dashed var(--blue); border-radius: 18px; padding: 8px 22px 12px; margin: 18px 0 8px; }
.summary h2 { margin-top: 14px; color: var(--blue-dark); }

/* footer */
.site-footer { text-align: center; padding: 30px 20px 40px; background: #12306b; color: #cfe0ff; font-size: 16px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: #fff; }
.site-footer .small { font-size: 13px; opacity: 0.78; margin-top: 12px; }

@media (max-width: 1080px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stage-body { grid-template-columns: 188px minmax(0, 1fr); }
  .twists-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero-copy { text-align: center; }
  .wordmark { margin-left: auto; margin-right: auto; }
  .cta, .trust-pills { justify-content: center; }
  .twists-layout { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .site-header { padding: 12px 16px; }
  .site-header nav a { padding: 7px 11px; font-size: 15px; }
  .brand span { font-size: 20px; }
  .hero { padding: 94px 16px 36px; }
  .hero-stage-body, .spotlight-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .phone-frame { max-width: 240px; margin: 0 auto; }
  .shot-points { text-align: left; }
  .band { padding: 40px 16px; }
  .band.alt > * { padding-left: 16px; padding-right: 16px; }
  .gallery-grid, .cards, .cards.cards-4, .twist-picker, .spotlight-rules { grid-template-columns: minmax(0, 1fr); }
  .studio-box { padding: 20px; text-align: center; justify-content: center; }
  .studio-box > div:first-child { flex-basis: 100%; }
  .studio-box h2 { text-align: center; }
  .cta-compact { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wordmark { animation: none; }
  .btn, .stage-tab, .twist-btn { transition: none; }
}
