/* Koba website. Dark "stage" at the top (3D scene), paper-coloured sections below. */
:root {
  --ink: #05130e;
  --ink-2: #0a2019;
  --mint: #05e196;
  --mint-deep: #05a870;
  --gold: #f5c451;
  --paper: #f4f2ea;
  --card: #fffefb;
  --text: #10211a;
  --muted: #55665e;
  --line: #dedbd0;
  --on-dark: #eaf6f0;
  --on-dark-muted: #9db5aa;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.1rem); }
h2 { font-size: clamp(1.9rem, 3.7vw, 3.1rem); }
h3 { font: 600 1.12rem/1.3 var(--body); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--mint); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

.eyebrow { font: 600 0.8rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); margin-bottom: 20px; }
.eyebrow--dark { color: var(--mint-deep); }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.22rem); line-height: 1.55; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--mint); color: var(--ink);
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(5, 225, 150, 0.7); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: 0.6; cursor: wait; transform: none; }
.button--small { min-height: 40px; padding: 0 18px; font-size: 0.93rem; }
.button--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.button--ghost:hover { background: var(--text); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--text); }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.link-arrow::after { content: "↓"; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateY(4px); }
.store { display: inline-block; border-radius: 10px; transition: transform 0.25s var(--ease); }
.store:hover { transform: translateY(-2px); }
.store img { height: 52px; width: auto; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--on-dark); transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.nav__inner { width: min(100% - 48px, var(--wrap)); margin-inline: auto; height: 68px; display: flex; align-items: center; gap: 28px; }
.nav.is-scrolled { background: rgba(5, 19, 14, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-light { background: rgba(244, 242, 234, 0.86); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.4rem/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 0.95rem; opacity: 0.82; padding: 12px 0; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; }
.nav__toggle { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; position: relative; color: inherit; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Stage: hero + story over the 3D scene ---------- */
.stage {
  position: relative; color: var(--on-dark);
  background:
    radial-gradient(60% 50% at 72% 38%, rgba(5, 225, 150, 0.13), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(245, 196, 81, 0.06), transparent 70%),
    var(--ink);
}
.stage__scene { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; pointer-events: none; overflow: hidden; }
.stage__scene canvas { width: 100%; height: 100%; display: block; }
.no-webgl .stage__scene { display: none; }

.tag {
  position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; will-change: transform, opacity;
  padding: 7px 12px 8px; border-radius: 10px; background: rgba(10, 32, 25, 0.82); box-shadow: inset 0 0 0 1px rgba(5, 225, 150, 0.35);
  font: 600 0.92rem/1.15 var(--body); color: var(--on-dark); text-align: center;
}
.tag em { display: block; font-style: normal; font-weight: 400; font-size: 0.74rem; color: var(--on-dark-muted); }
.tag--pot { background: var(--gold); color: #2a1d00; box-shadow: none; font-variant-numeric: tabular-nums; }

.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 80px; }
.hero__text { max-width: 600px; }
.hero .lead { color: var(--on-dark-muted); margin-top: 26px; max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 36px; }
.hero__note { margin-top: 30px; font-size: 0.92rem; color: var(--on-dark-muted); max-width: 440px; padding-left: 14px; border-left: 2px solid var(--mint); }

.story { position: relative; padding-bottom: 12vh; }
.panel { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.panel__text { max-width: 470px; }
.panel__text p:last-child { color: var(--on-dark-muted); margin-top: 20px; }
.step { font: 600 0.8rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.step b { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--mint); box-shadow: inset 0 0 0 1.5px var(--mint); letter-spacing: 0; font-size: 0.85rem; }

/* ---------- Light sections ---------- */
.section { position: relative; background: var(--paper); padding: clamp(84px, 11vw, 150px) 0; }
.features { border-radius: 36px 36px 0 0; margin-top: -36px; z-index: 2; }
.section__head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 76px); }
.section__head > p:not(.eyebrow) { color: var(--muted); margin-top: 18px; max-width: 560px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center > p:not(.eyebrow) { margin-inline: auto; }

.showcase { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.showcase__stage { position: relative; perspective: 1200px; display: grid; place-items: center; }
.showcase__halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(5, 225, 150, 0.34), rgba(5, 225, 150, 0) 68%); }
.showcase__phone { position: relative; width: min(100%, 470px); filter: drop-shadow(0 40px 50px rgba(16, 33, 26, 0.22)); will-change: transform; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 36px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.feature-list svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--ink); fill: none; stroke: var(--mint); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-list p { color: var(--muted); font-size: 0.97rem; margin-top: 6px; }

/* ---------- Screens ---------- */
.screens { position: relative; background: var(--ink); color: var(--on-dark); }
.screens__pin { padding: clamp(72px, 9vw, 110px) 0; overflow: hidden; }
.screens.is-pinned .screens__pin { position: sticky; top: 0; height: 100vh; padding: 92px 0 36px; display: flex; flex-direction: column; }
.screens__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(28px, 4vh, 48px); }
.screens__bar { display: none; width: 180px; height: 3px; border-radius: 3px; background: rgba(234, 246, 240, 0.16); overflow: hidden; flex: none; margin-bottom: 12px; }
.screens__bar span { display: block; height: 100%; background: var(--mint); transform-origin: left; transform: scaleX(0); }
.screens.is-pinned .screens__bar { display: block; }
.screens__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.screens__viewport::-webkit-scrollbar { display: none; }
.screens.is-pinned .screens__viewport { overflow: visible; flex: 1; min-height: 0; }
.screens__track { display: flex; gap: 22px; width: max-content; padding-inline: max(24px, calc((100vw - var(--wrap)) / 2)); will-change: transform; }
.screens.is-pinned .screens__track { height: 100%; }
.screens__track li { flex: none; scroll-snap-align: center; border-radius: 26px; overflow: hidden; background: #eef0ee; transition: transform 0.4s var(--ease); }
.screens__track li:hover { transform: translateY(-8px); }
.screens__track img { height: min(64vh, 560px); width: auto; }
.screens.is-pinned .screens__track img { height: 100%; max-height: 680px; }

/* ---------- Pricing ---------- */
.billing { display: inline-flex; margin-top: 30px; padding: 4px; border-radius: 999px; background: #e7e4d9; }
.billing button { min-height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; font: 600 0.95rem/1 var(--body); color: var(--muted); cursor: pointer; transition: background 0.25s, color 0.25s; }
.billing button[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 34px 30px 30px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.plan:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line), 0 30px 40px -30px rgba(16, 33, 26, 0.35); }
.plan--main { background: var(--ink); color: var(--on-dark); box-shadow: none; }
.plan--main:hover { box-shadow: 0 30px 44px -28px rgba(5, 225, 150, 0.55); }
.plan h3 { font: 700 1.5rem/1 var(--display); letter-spacing: -0.02em; }
.plan__size { margin-top: 10px; color: var(--muted); }
.plan--main .plan__size, .plan--main .plan__per { color: var(--on-dark-muted); }
.plan__size b { color: var(--mint-deep); }
.plan--main .plan__size b { color: var(--mint); }
.plan__price { margin-top: 30px; font: 700 clamp(2.6rem, 4vw, 3.3rem)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__price span { font: 600 1rem/1 var(--body); letter-spacing: 0; vertical-align: 1.15em; opacity: 0.7; }
.plan__price i { font-style: normal; }
.plan__per { margin-top: 8px; color: var(--muted); font-size: 0.95rem; min-height: 3.1em; }
.plan__saving { display: inline-block; font-style: normal; font-weight: 600; font-size: 0.8rem; padding: 3px 9px; border-radius: 999px; background: var(--gold); color: #2a1d00; margin-left: 4px; }
.plan ul { margin: 22px 0 30px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; flex: 1; align-content: start; }
.plan--main ul { border-color: rgba(234, 246, 240, 0.16); }
.plan li { padding-left: 28px; position: relative; font-size: 0.98rem; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px; border-left: 2px solid var(--mint-deep); border-bottom: 2px solid var(--mint-deep); transform: rotate(-45deg); }
.plan--main li::before { border-color: var(--mint); }
.plan--main .button:hover { box-shadow: none; }
.pricing__note { margin: 34px auto 0; max-width: 620px; text-align: center; color: var(--muted); font-size: 0.95rem; }

/* ---------- Questions ---------- */
.faq { padding-top: 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq .section__head { margin-bottom: 0; position: sticky; top: 110px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 600 1.14rem/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--mint-deep); border-bottom: 2px solid var(--mint-deep); transform: rotate(45deg); transition: transform 0.3s var(--ease); margin: 0 6px 6px 0; }
.faq details[open] summary::after { transform: rotate(225deg); margin-bottom: -4px; }
.faq details p { color: var(--muted); padding: 0 40px 26px 0; max-width: 62ch; }
.faq details a { color: var(--mint-deep); font-weight: 600; }
.news { margin-top: 40px; display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-weight: 600; line-height: 1.35; transition: transform 0.3s var(--ease); }
.news:hover { transform: translateY(-3px); }
.news img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.news small { display: block; font-weight: 500; color: var(--muted); font-size: 0.8rem; margin-bottom: 4px; }

/* ---------- Contact and footer ---------- */
.contact { background: var(--ink-2); color: var(--on-dark); border-radius: 36px 36px 0 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 110px); align-items: start; }
.contact .lead { color: var(--on-dark-muted); margin: 22px 0 34px; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: 0.92rem; }
.form input, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 0;
  background: rgba(234, 246, 240, 0.07); box-shadow: inset 0 0 0 1px rgba(234, 246, 240, 0.2);
  color: var(--on-dark); font: 400 1rem/1.4 var(--body); transition: box-shadow 0.2s, background 0.2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input::placeholder { color: rgba(157, 181, 170, 0.7); }
.form input:focus, .form textarea:focus { outline: none; background: rgba(234, 246, 240, 0.1); box-shadow: inset 0 0 0 2px var(--mint); }
.form__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__status { font-size: 0.93rem; color: var(--on-dark-muted); min-height: 1.5em; }
.form__status.is-ok { color: var(--mint); }
.form__status.is-error { color: #ffb38a; }

.footer { background: var(--ink); color: var(--on-dark-muted); padding: 70px 0 34px; font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1.5fr; gap: 40px; }
.footer .brand { color: var(--on-dark); margin-bottom: 14px; }
.footer nav { display: grid; gap: 4px; align-content: start; }
.footer nav a { text-decoration: none; padding: 5px 0; transition: color 0.2s; }
.footer nav a:hover { color: var(--on-dark); }
.form--inline { gap: 10px; align-content: start; }
.form--inline label { color: var(--on-dark); }
.form--inline .form__row { flex-wrap: nowrap; gap: 8px; }
.form--inline input { padding: 10px 14px; min-width: 0; }
.footer__base { margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(234, 246, 240, 0.12); font-size: 0.86rem; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1000px) {
  .nav__links { gap: 18px; }
  .feature-list { grid-template-columns: 1fr; gap: 26px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__cta { margin-left: auto; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0; margin: 0; padding: 8px 24px 20px;
    flex-direction: column; gap: 0; background: rgba(5, 19, 14, 0.97); color: var(--on-dark);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav__links a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(234, 246, 240, 0.1); opacity: 1; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .showcase, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .faq .section__head { position: static; }
  .showcase__phone { width: min(78%, 380px); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan__per { min-height: 0; }
}
/* Portrait screens: the scene sits under the hero text, then above the story text. */
@media (max-aspect-ratio: 11/10) {
  .hero { align-items: flex-start; padding: 104px 0 0; }
  .hero__note { display: none; }
  .hero__actions { margin-top: 26px; }
  .hero .lead { margin-top: 18px; }
  .panel { align-items: flex-end; padding-bottom: 7vh; }
  .panel__text { max-width: 560px; padding: 22px 22px 24px; margin-inline: -8px; border-radius: 20px; background: rgba(5, 19, 14, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(234, 246, 240, 0.1); }
  .panel__text h2 { font-size: clamp(1.55rem, 6.2vw, 2.2rem); }
  .panel__text p:last-child { margin-top: 12px; font-size: 0.98rem; }
  .step { margin-bottom: 14px; }
  .tag { font-size: 0.8rem; padding: 5px 9px 6px; }
  .tag em { font-size: 0.68rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .nav__inner { width: min(100% - 40px, var(--wrap)); }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .features, .contact { border-radius: 26px 26px 0 0; }
  .features { margin-top: -26px; }
  .screens__track { gap: 14px; }
  .screens__track img { height: min(62vh, 500px); }
  .faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Offer price ---------- */
.plan__offer { align-self: flex-start; margin: -8px 0 16px; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: #2a1d00; font: 700 0.78rem/1 var(--body); letter-spacing: 0.04em; text-transform: uppercase; }
.plan__price s { font: 600 1.15rem/1 var(--body); letter-spacing: 0; color: var(--on-dark-muted); text-decoration-thickness: 2px; margin-left: 6px; white-space: nowrap; }
.pricing__note a { color: var(--mint-deep); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
