/* Animasiin web. Sky outside, ink inside: the page moves like the videos do. */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --sky: #E6F1F8;
  --sky-deep: #D3E6F2;
  --paper: #FFFDF8;
  --ink: #1B1B1F;
  --ink-soft: #4C5563;
  --navy: #10203A;
  --navy-2: #18304F;
  --sun: #FFD23F;
  --sun-soft: #FFE9A8;
  --peach: #FFB27A;
  --line: rgba(27, 27, 31, .12);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 0 rgba(16, 32, 58, .06), 0 12px 32px -18px rgba(16, 32, 58, .35);
  --display: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
code { font: 600 .9em/1 ui-monospace, "Cascadia Mono", Consolas, monospace; background: rgba(27,27,31,.07); padding: .15em .4em; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { width: min(820px, 100%); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--display);
  padding: .95em 1.4em; border-radius: 999px; border: 2.5px solid var(--ink);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn--sun:hover { box-shadow: 0 6px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: rgba(255,255,255,.6); }
.btn--sm { font-size: .9rem; padding: .7em 1.1em; }
.btn--lg { font-size: 1.1rem; padding: 1.05em 1.7em; }

/* Header */
.top { padding-block: 18px; }
.top__in { display: flex; align-items: center; gap: 24px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; font: 500 1rem var(--display); }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(24px, 5vw, 64px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__tag { display: inline-flex; align-items: center; gap: 10px; font: 500 .95rem var(--display); color: var(--ink-soft); margin-bottom: 20px; }
.sticker {
  display: inline-block; background: var(--sun); border: 2.5px solid var(--ink); border-radius: 9px;
  padding: .12em .5em .18em; font: 600 .9rem/1.1 var(--display); color: var(--ink); transform: rotate(-4deg);
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); max-width: 13ch; text-wrap: balance; }
.lead { margin-top: 22px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.chips li { background: rgba(255,255,255,.7); border: 1.5px solid var(--line); border-radius: 999px; padding: .3em .85em; font: 500 .9rem var(--display); color: var(--ink-soft); }

.hero__stage { position: relative; margin: 0; justify-self: center; width: min(330px, 78vw); }
.phone {
  position: relative; aspect-ratio: 9 / 16; border-radius: 40px; overflow: hidden;
  background: var(--navy); border: 8px solid var(--ink);
  box-shadow: 0 30px 60px -28px rgba(16, 32, 58, .55), 0 0 0 10px rgba(255,255,255,.55);
}
.phone__video { width: 100%; height: 100%; object-fit: cover; }

/* Callouts echo the kit's own 3D labels: dot, elbow line, dark tag with a sun edge */
.callout {
  position: absolute; display: flex; flex-direction: column; gap: 1px;
  background: var(--ink); color: #E9EEF5; border-left: 4px solid var(--sun);
  border-radius: 8px; padding: 8px 12px; font: 400 .78rem/1.25 var(--body); white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(16,32,58,.6);
}
.callout b { font: 600 .92rem/1.2 var(--display); color: #fff; }
.callout::before, .callout::after { content: ""; position: absolute; }
.callout::before { height: 2px; background: var(--sun); top: 50%; }
.callout::after { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); top: calc(50% - 4px); box-shadow: 0 0 0 4px rgba(255, 210, 63, .3); }
.callout--a { left: -128px; top: 17%; }
.callout--a::before { right: -48px; width: 48px; }
.callout--a::after { right: -54px; }
.callout--b { right: -150px; top: 44%; }
.callout--b::before { left: -40px; width: 40px; }
.callout--b::after { left: -46px; }
.callout--c { left: -112px; bottom: 14%; }
.callout--c::before { right: -40px; width: 40px; }
.callout--c::after { right: -46px; }

/* Showcase: the "inside" of the page */
.inside {
  background: radial-gradient(120% 70% at 50% 0%, var(--navy-2), var(--navy) 70%);
  color: #E9EEF5; border-radius: 40px 40px 0 0; padding-block: clamp(64px, 9vw, 112px);
}
.inside__head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.inside__head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); color: #fff; text-wrap: balance; }
.inside__head p { margin-top: 16px; color: #B9C6D8; font-size: 1.08rem; }

.reel { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.reel + .reel { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid rgba(255,255,255,.1); }
.reel__meta { position: sticky; top: 24px; }
.reel__meta h3 { font-size: 1.6rem; color: #fff; }
.reel__meta p { margin: 10px 0 20px; color: #B9C6D8; }
.reel__meta .btn--sun { border-color: var(--sun); box-shadow: none; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.clip {
  all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer;
}
.clip video {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-md);
  background: #0B1729; box-shadow: 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.clip:hover video { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--sun); }
.clip:focus-visible { outline: none; }
.clip:focus-visible video { outline: 3px solid var(--sun); outline-offset: 3px; }
.clip__cap { display: block; margin-top: 10px; font: 500 .92rem/1.3 var(--display); color: #DCE4EF; }
.next {
  aspect-ratio: 9 / 16; border-radius: var(--r-md); padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  border: 2px dashed rgba(255, 210, 63, .55); color: #B9C6D8; font-size: .95rem;
}
.next__q { font: 600 1.3rem/1.15 var(--display); color: var(--sun); }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tint { background: var(--sky-deep); }
.inside + .section { border-radius: 40px 40px 0 0; margin-top: -40px; position: relative; background: var(--sky); }
.h-sec { font-size: clamp(1.9rem, 3.8vw, 2.9rem); text-wrap: balance; max-width: 22ch; }
.sub { margin-top: 14px; color: var(--ink-soft); max-width: 60ch; }

/* Products */
.prod { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.prod--main {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(20px, 3vw, 36px); margin-top: clamp(32px, 4vw, 48px);
}
.frame { aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; border: 6px solid var(--ink); background: var(--navy); max-width: 300px; }
.frame video { width: 100%; height: 100%; object-fit: cover; }
.prod h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.prod--main h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.prod__lead { margin-top: 10px; font-size: 1.12rem; color: var(--ink-soft); max-width: 50ch; }
.prod__fine { margin-top: 18px; font-size: .92rem; color: var(--ink-soft); }
.status { display: inline-block; font: 600 .82rem/1 var(--display); padding: .45em .8em; border-radius: 999px; margin-bottom: 12px; }
.status--live { background: #DDF2E2; color: #1E5B32; }
.status--soon { background: var(--sun); color: var(--ink); border: 2px solid var(--ink); transform: rotate(-3deg); }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 6px;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.2l3 3 6-6.4' fill='none' stroke='%231B1B1F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.ticks--sm { font-size: .97rem; gap: 8px; margin: 18px 0 24px; }

.prod-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.prod-row .prod { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.prod-row .prod__body { padding: 24px clamp(20px, 3vw, 32px) 30px; }
.prod-row .prod__body p:not(.status) { margin-top: 10px; color: var(--ink-soft); }
.prod__art { aspect-ratio: 16 / 10; }
.prod__art svg { width: 100%; height: 100%; }
.prod--soon .prod__art { padding: 16px 16px 0; }
.prod__art--discord { background: #2B2F55; padding: 22px 26px; display: flex; align-items: center; }
.channels { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; width: 100%; font: 500 1rem/1.3 var(--display); color: #A9AECF; }
.channels li { padding: 5px 10px; border-radius: 8px; }
.channels li.on { background: rgba(255,255,255,.12); color: #fff; }

/* Steps: a real sequence, so the numbers mean something */
.steps { list-style: none; padding: 0; margin: clamp(32px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--paper); border-radius: var(--r-md); padding: 24px 22px 26px; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px; background: var(--sun); border: 2.5px solid var(--ink); font: 600 1.25rem/1 var(--display); transform: rotate(-4deg);
}
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: 8px; color: var(--ink-soft); font-size: .98rem; }

/* Pricing */
.prices { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; margin-top: clamp(28px, 4vw, 44px); align-items: stretch; }
.price { background: var(--paper); border-radius: var(--r-lg); padding: 28px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.price .btn { margin-top: auto; }
.price h3 { font-size: 1.35rem; }
.price__num { font: 600 2.4rem/1 var(--display); margin-top: 18px; }
.price__note { color: var(--ink-soft); margin-top: 6px; font-size: .95rem; }
.price--main { background: var(--sun-soft); border: 2.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.price--soon { background: rgba(255,253,248,.6); box-shadow: none; border: 2px dashed var(--line); }

/* FAQ */
.faq { margin-top: clamp(28px, 4vw, 40px); display: grid; gap: 12px; }
.faq details { background: var(--paper); border-radius: var(--r-md); padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font: 600 1.1rem/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding-bottom: 20px; color: var(--ink-soft); max-width: 66ch; }

/* CTA */
.cta { background: var(--sun); border-block: 3px solid var(--ink); padding-block: clamp(48px, 7vw, 80px); }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.cta p { margin-top: 10px; max-width: 54ch; color: #3A3524; }

/* Footer */
.foot { padding-block: 36px 44px; }
.foot__in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; color: var(--ink-soft); font-size: .95rem; }
.foot__in img { height: 30px; width: auto; }
.foot nav { display: flex; gap: 20px; font-family: var(--display); }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot__in p { margin-left: auto; }

/* Player */
.player { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
.player::backdrop { background: rgba(10, 20, 36, .82); backdrop-filter: blur(4px); }
.player__box { position: relative; width: min(420px, 92vw, calc((100dvh - 48px) * 9 / 16)); }
.player__video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 22px; background: #000; }
.player__close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.1rem; cursor: pointer;
}

/* Gentle scroll reveal, CSS only, where supported */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .callout { animation: pop .6s cubic-bezier(.3, 1.4, .5, 1) both; }
  .callout--a { animation-delay: .5s; }
  .callout--b { animation-delay: .8s; }
  .callout--c { animation-delay: 1.1s; }
  @keyframes pop { from { opacity: 0; transform: scale(.85); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .clip video { transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .callout--b { right: -96px; }
  .callout--a { left: -96px; }
  .callout--c { left: -84px; }
}
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .hero__stage { margin-top: 12px; }
  .reel { grid-template-columns: 1fr; }
  .reel__meta { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr; max-width: 520px; }
  .prod--main { grid-template-columns: 220px 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .top__in { justify-content: space-between; }
  .brand img { height: 30px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .clip__cap { font-size: .84rem; }
  .next { padding: 14px; font-size: .86rem; }
  .next__q { font-size: 1.1rem; }
  .prod--main { grid-template-columns: 1fr; }
  .prod--main .frame { max-width: 220px; margin-inline: auto; }
  .prod-row { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
  .steps li::before { grid-row: span 2; margin-bottom: 0; }
  .cta__in { flex-direction: column; align-items: flex-start; }
  .foot__in p { margin-left: 0; width: 100%; }
  .inside, .inside + .section { border-radius: 28px 28px 0 0; }
  .inside + .section { margin-top: -28px; }
  .hero__stage { width: min(270px, 66vw); }
  .callout { font-size: .7rem; padding: 6px 9px; }
  .callout b { font-size: .82rem; }
  .callout--a { left: -40px; top: 10%; }
  .callout--a::before { right: -22px; width: 22px; }
  .callout--a::after { right: -28px; }
  .callout--b { right: -44px; top: 46%; }
  .callout--b::before { left: -20px; width: 20px; }
  .callout--b::after { left: -26px; }
  .callout--c { left: -36px; bottom: 10%; }
  .callout--c::before { right: -20px; width: 20px; }
  .callout--c::after { right: -26px; }
}
