/* Snivio — site styles. Tokens first; everything else uses them. */
@font-face {
  font-family: "Inter Display";
  src: url("fonts/Inter-Black.woff") format("woff");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("fonts/Inter-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #0f0b16;        /* page: plum-black, the app's night */
  --ink-2: #17111f;      /* raised surfaces */
  --line: #2b2337;       /* rules and outlines */
  --paper: #f4f0fa;      /* text */
  --mute: #a99fba;       /* secondary text */
  --violet: #9b6bff;     /* brand */
  --magenta: #d64fe0;    /* brand, second stop of the logo */
  --caption: #ffe14d;    /* the highlight color of a short's caption */

  --display: "Inter Display", "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4vw, 2.75rem);
  --step-4: clamp(2.6rem, 6.4vw, 4.75rem);

  --wrap: 1120px;
  --gap: clamp(1.25rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 var(--step-0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--caption); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); color: var(--ink); padding: .5rem .75rem; z-index: 10; }

h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -0.025em; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.lede { color: var(--mute); font-size: var(--step-1); line-height: 1.55; max-width: 34em; }

/* ---- Header ----------------------------------------------------------------------- */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 2rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 900 1.3rem/1 var(--display); letter-spacing: -0.03em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { display: flex; gap: 1.6rem; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--mute); font-size: var(--step--1); }
.top nav a:hover { color: var(--paper); }

/* ---- Buttons ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.4rem; border-radius: 999px;
  font: 700 var(--step-0)/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(100deg, var(--violet), var(--magenta)); color: #fff; }
.btn-primary:hover { background: linear-gradient(100deg, #a77dff, #df66e8); }
.btn-quiet { border-color: var(--line); color: var(--paper); background: transparent; }
.btn-quiet:hover { border-color: var(--mute); }
.btn-small { min-height: 38px; padding: 0 1rem; font-size: var(--step--1); }

/* ---- Hero ------------------------------------------------------------------------- */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-size: var(--step-4); max-width: 12em; }
.hero .lede { margin-top: 1.5rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.hero .fine { margin-top: 1rem; color: var(--mute); font-size: var(--step--1); }

/* The phone: a short being made, live */
.phone {
  justify-self: center; width: min(320px, 78vw); aspect-ratio: 9 / 16; position: relative;
  border-radius: 34px; padding: 10px; background: #050308;
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -30px rgba(155, 107, 255, .45);
}
.screen {
  position: relative; height: 100%; border-radius: 26px; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 18%, #3a2752 0%, #1c1426 55%, #120d19 100%);
}
.scene { position: absolute; inset: 0; transform-origin: 50% 42%; transition: transform .12s cubic-bezier(.3, .7, .3, 1); }
.scene.punch { transform: scale(1.09); }
.scene svg { position: absolute; left: 0; bottom: 0; width: 100%; }
.hook {
  position: absolute; top: 9%; left: 50%; transform: translateX(-50%); width: 84%;
  background: #fff; color: #111; border-radius: 10px; padding: .55rem .7rem;
  font: 900 .98rem/1.15 var(--display); letter-spacing: -0.01em; text-align: center; text-wrap: balance;
}
.cap {
  position: absolute; left: 6%; right: 6%; top: 62%; text-align: center;
  font: 900 1.55rem/1.08 var(--display); letter-spacing: -0.01em; text-transform: uppercase;
  color: #fff; paint-order: stroke fill; -webkit-text-stroke: 6px #000;
}
.cap span { display: inline-block; margin: 0 .12em; opacity: .0; transform: translateY(4px); transition: opacity .1s, transform .1s; }
.cap span.on { opacity: 1; transform: none; }
.cap span.hot { color: var(--caption); transform: scale(1.08); }
.bar { position: absolute; left: 7%; right: 7%; bottom: 4.5%; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: #fff; }

/* ---- Sections --------------------------------------------------------------------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.head { max-width: 40em; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head p { margin-top: 1rem; color: var(--mute); }

/* How it works: a real sequence, so it is numbered */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; padding-top: 1.25rem; border-top: 2px solid var(--violet); }
.steps li::before { content: counter(s); display: block; font: 900 var(--step-2)/1 var(--display); color: var(--violet); margin-bottom: .9rem; }
.steps p { margin-top: .5rem; color: var(--mute); }

/* Features: a plain two-column list, not cards */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 4rem; }
.feature p { margin-top: .45rem; color: var(--mute); }
.tag { display: inline-block; margin-left: .45rem; padding: .1rem .45rem; border-radius: 6px; vertical-align: .2em;
  background: rgba(255, 225, 77, .14); color: var(--caption); font: 700 .7rem/1.4 var(--body); letter-spacing: .02em; }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
.compare th, .compare td { text-align: left; padding: 1rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 800 var(--step-0)/1.3 var(--display); color: var(--mute); }
.compare thead th:last-child { color: var(--paper); }
.compare td:first-child { color: var(--mute); width: 30%; }
.compare td:last-child { font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--gap); align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.2rem); display: flex; flex-direction: column; }
.plan.pro { border-color: var(--violet); background: linear-gradient(160deg, rgba(155, 107, 255, .13), rgba(214, 79, 224, .05) 60%, transparent); }
.price { display: flex; align-items: baseline; gap: .5rem; margin: 1rem 0 .3rem; }
.price b { font: 900 3.4rem/1 var(--display); letter-spacing: -0.04em; }
.price span { color: var(--mute); }
.plan ul { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .6rem; }
.plan li { padding-left: 1.6rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .45rem; border-left: 2px solid var(--caption); border-bottom: 2px solid var(--caption); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.plan .note { margin-top: .9rem; color: var(--mute); font-size: var(--step--1); }

/* Requirements */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.specs dt { color: var(--mute); font-size: var(--step--1); }
.specs dd { margin: .3rem 0 0; font-weight: 700; }

/* FAQ */
.faq { max-width: 46em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2rem 1.2rem 0; position: relative; font-weight: 700; font-size: var(--step-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 1rem; font: 900 1.5rem/1 var(--display); color: var(--violet); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.3rem; color: var(--mute); max-width: 40em; }

/* Closing call */
.closing { text-align: center; }
.closing h2 { font-size: var(--step-4); max-width: 12em; margin-inline: auto; }
.closing .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--mute); font-size: var(--step--1); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--paper); }

/* Legal pages */
.doc { padding: clamp(3rem, 7vw, 5rem) 0 5rem; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: var(--step-3); }
.doc .updated { color: var(--mute); margin-top: .75rem; font-size: var(--step--1); }
.doc h2 { font-size: var(--step-1); font-weight: 800; letter-spacing: -0.01em; margin: 2.4rem 0 .7rem; }
.doc p, .doc li { color: #d9d1e6; }
.doc p + p { margin-top: .9rem; }
.doc ul { padding-left: 1.2rem; }
.doc li + li { margin-top: .4rem; }
.doc a { color: var(--caption); }

/* ---- Small screens ---------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero .wrap, .plans { grid-template-columns: 1fr; }
  .phone { margin-top: 1rem; }
  .steps, .features { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .top nav a:not(.btn) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
