/* Since — app page on vapetlics.hu. Uses the site's own fonts, in the app's dark, warm mood. */

@font-face { font-family: "Mona Sans"; src: url("/assets/fonts/mona-latin.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mona Sans"; src: url("/assets/fonts/mona-latin-ext.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/serif-italic-latin.woff2") format("woff2"); font-style: italic; font-display: swap; }

:root {
  --bg: #0b0708;
  --fg: #f4efec;
  --dim: rgba(244, 239, 236, 0.62);
  --faint: rgba(244, 239, 236, 0.4);
  --line: rgba(244, 239, 236, 0.12);
  --card: rgba(255, 255, 255, 0.045);
  --rose: #f44a61;
  --rose-2: #ff8a96;
  --amber: #ffb35c;
  --sans: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Slow, breathing light behind everything */
.glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; will-change: opacity; }
/* Soft light made from gradients only: looks blurred, costs nothing to scroll over. */
.glow i { position: absolute; border-radius: 50%; }
.glow i:nth-child(1) { width: 130vmax; height: 130vmax; left: -55vmax; top: -70vmax; background: radial-gradient(closest-side, rgba(244, 74, 97, 0.42), rgba(244, 74, 97, 0.16) 50%, rgba(244, 74, 97, 0) 100%); }
.glow i:nth-child(2) { width: 100vmax; height: 100vmax; right: -45vmax; top: -45vmax; background: radial-gradient(closest-side, rgba(255, 122, 46, 0.26), rgba(255, 122, 46, 0.08) 55%, rgba(255, 122, 46, 0) 100%); }
.glow i:nth-child(3) { width: 110vmax; height: 110vmax; left: -10vmax; bottom: -80vmax; background: radial-gradient(closest-side, rgba(109, 43, 217, 0.2), rgba(109, 43, 217, 0) 100%); }

/* Top bar */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1160px; margin: 0 auto; padding: 20px var(--gut);
  font-size: 14px; color: var(--dim);
}
.top a { text-decoration: none; transition: color 0.2s; }
.top a:hover { color: var(--fg); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 420px) { .top nav { gap: 14px; } .brand span { display: none; } }
.top nav a[aria-current="page"] { color: var(--fg); }

/* Hero */
.hero { max-width: 1160px; margin: 0 auto; padding: clamp(40px, 9vh, 110px) var(--gut) 40px; text-align: center; }
.rings { width: 132px; height: 132px; margin: 0 auto 30px; position: relative; }
.rings svg { width: 100%; height: 100%; overflow: visible; }
.rings circle { fill: none; stroke-width: 10; }
.rings .l { animation: ring-l 1.9s cubic-bezier(0.45, 0, 0.2, 1) both 0.25s; }
.rings .r { animation: ring-r 1.9s cubic-bezier(0.45, 0, 0.2, 1) both 0.25s; }

/* Glide in, a touch past the lock point, then back into place — like the app. */
@keyframes ring-l { 0% { transform: translateX(-46px); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateX(5px); } 85% { transform: translateX(-1.5px); } 100% { transform: none; } }
@keyframes ring-r { 0% { transform: translateX(46px); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateX(-5px); } 85% { transform: translateX(1.5px); } 100% { transform: none; } }

h1 { margin: 0; font-size: clamp(64px, 13vw, 132px); font-weight: 650; letter-spacing: -0.045em; line-height: 0.95; }
.tag { margin: 18px 0 0; font: italic 400 clamp(24px, 3.6vw, 36px)/1.2 var(--serif); color: var(--fg); }
.lede { max-width: 560px; margin: 22px auto 0; color: var(--dim); font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
}
.pill.white { background: #fff; color: #000; }
.pill.ghost { border: 1px solid var(--line); color: var(--dim); }
.pill svg { width: 18px; height: 18px; }

/* Phones */
.phones {
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2.5vw, 28px);
  max-width: 1160px; margin: 50px auto 0; padding: 0 var(--gut);
}
.phone {
  flex: 0 1 280px; border-radius: 13% / 6%; padding: 2.6%;
  background: linear-gradient(145deg, #3a3236, #141012 40%, #2a2326);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img { width: 100%; height: auto; border-radius: 11% / 5.2%; }
.phone.side { flex-basis: 240px; opacity: 0.92; }
@media (max-width: 640px) { .phone.side { display: none; } .phone { flex-basis: 74%; } }

/* Sections */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gut); }
.section { padding: clamp(70px, 12vh, 130px) 0 0; }
.kicker { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose-2); margin: 0 0 14px; }
h2 { margin: 0; font-size: clamp(34px, 5.4vw, 58px); font-weight: 620; letter-spacing: -0.035em; line-height: 1.04; }
h2 em { font: italic 400 1.05em var(--serif); letter-spacing: -0.01em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 26px; }
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(150deg, var(--rose-2), var(--rose));
}
.feature .ic svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--dim); font-size: 16px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.duo .phone { max-width: 300px; justify-self: center; }
.duo p { color: var(--dim); font-size: 18px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .duo .phone { order: 2; } }

.promise { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.promise span { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); font-size: 15px; }

/* Long-form pages (privacy, support) */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(40px, 8vh, 90px) var(--gut) 0; }
.doc h1 { font-size: clamp(44px, 8vw, 76px); }
.doc .updated { color: var(--faint); font-size: 15px; margin-top: 14px; }
.doc .summary { margin: 34px 0 10px; padding: 22px 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); color: var(--fg); }
.doc h2 { font-size: 26px; letter-spacing: -0.02em; margin: 46px 0 10px; }
.doc p, .doc li { color: var(--dim); }
.doc strong { color: var(--fg); font-weight: 600; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--rose-2); }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--rose-2); font-weight: 400; font-size: 22px; line-height: 1; transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; }
.contact { margin-top: 40px; padding: 26px; border-radius: 24px; background: linear-gradient(150deg, rgba(244, 74, 97, 0.18), rgba(255, 138, 60, 0.08)); border: 1px solid rgba(244, 74, 97, 0.3); }
.contact p { margin: 6px 0 0; }
.contact a.mail { font-size: 22px; font-weight: 600; color: var(--fg); text-decoration: none; }

/* Footer */
footer { max-width: 1160px; margin: clamp(80px, 14vh, 140px) auto 0; padding: 28px var(--gut) 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: var(--faint); font-size: 14px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  .rings .l, .rings .r { animation: none !important; }
}

.lede-left { margin-left: 0; }
.faq { margin-top: 28px; }
.mail-row { margin-top: 14px; }

.pill { white-space: nowrap; }
@media (max-width: 420px) { .pill { padding: 13px 18px; font-size: 15px; } }

/* =====================================================================
   Landing: Apple-style scroll scenes.
   Everything below works as a plain page; the motion only switches on
   when since.js adds .motion to <html> (and never with reduced motion).
   ===================================================================== */
.apple { --p: 0; }
.apple h2 { font-size: clamp(40px, 6.4vw, 80px); }
.sticky { position: relative; }

/* Hero */
.s-hero .sticky { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 90px var(--gut) 60px; }
.rings-wrap { position: relative; width: min(420px, 78vw); margin-bottom: 18px; }
.big-rings { display: block; width: 100%; height: auto; overflow: visible; }
.halo { position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(244, 74, 97, 0.55), rgba(255, 140, 60, 0.18) 55%, transparent); opacity: 0.35; transition: opacity 0.8s var(--ease); pointer-events: none; }
.big-rings circle { fill: none; stroke-width: 16; }
.hero-title { font-size: clamp(84px, 17vw, 200px); }
.hint { margin-top: 46px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); display: none; }

/* Story: a pinned iPhone, screens change as you scroll */
.s-story { padding: 60px 0; }
.s-story .sticky { max-width: 1160px; margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: 1fr minmax(240px, 340px); gap: clamp(30px, 6vw, 90px); align-items: center; }
.step { padding: 50px 0; }
.step .kicker { font-variant-numeric: tabular-nums; }
.step p:last-child { color: var(--dim); font-size: clamp(18px, 1.6vw, 22px); max-width: 480px; }
.story-phone { position: relative; }
.device {
  position: relative; border-radius: 16% / 7.4%; padding: 3.2%;
  background: linear-gradient(140deg, #4a4146, #17131a 30%, #0d0a0c 60%, #3b3337);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 0 80px -10px rgba(244, 74, 97, 0.25);
}
.screen { position: relative; border-radius: 13.6% / 6.3%; overflow: hidden; aspect-ratio: 720 / 1565; background: #000; }
.screen .scr { width: 100%; height: 100%; object-fit: cover; }
.island { display: none; }
.story-dots { display: none; }

/* Count */
.s-count .sticky { min-height: 80svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gut); }
.big-num {
  margin: 10px 0 0; font-size: clamp(84px, 26vw, 280px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; padding: 0 0.04em;
  background: linear-gradient(100deg, #ff9aa5 0%, #f44a61 35%, #ff8a3c 70%, #ffd08a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.count-cap { max-width: 560px; margin: 22px auto 0; color: var(--dim); font-size: clamp(18px, 1.8vw, 24px); }

/* Bento */
.s-bento { padding-top: clamp(80px, 14vh, 160px); }

/* Words */
.s-words .sticky { min-height: 90svh; display: flex; align-items: center; max-width: 1060px; margin: 0 auto; padding: 0 var(--gut); }
.words { margin: 0; font-size: clamp(36px, 5.6vw, 72px); font-weight: 620; letter-spacing: -0.035em; line-height: 1.12; }

/* End */
.s-end { text-align: center; padding: clamp(100px, 18vh, 200px) var(--gut) 0; }
.end-title { margin: 10px 0 0; font-size: clamp(64px, 12vw, 150px); }
.s-end .rings { width: 132px; height: 132px; }

/* ---------- motion (only with .motion) ---------- */
.motion .hint { display: block; }
.motion .hint span { display: block; width: 1px; height: 40px; margin: 12px auto 0; background: linear-gradient(var(--faint), transparent); animation: hint 2s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.motion .s-hero { height: 230svh; }
.motion .s-hero .sticky { position: sticky; top: 0; height: 100svh; min-height: 0; padding-top: 70px; }
.motion .s-hero.locked .halo { opacity: 1; }
.motion .s-hero .sticky, .motion .story-phone, .motion .big-num, .motion .big-rings circle { will-change: transform; }

.motion .s-story { height: 560svh; padding: 0; }
.motion .s-story .sticky { position: sticky; top: 0; height: 100svh; }
.motion .story-text { position: relative; height: 60svh; }
.motion .step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0; opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); pointer-events: none; }
.motion .s-story .sticky { grid-template-columns: 1fr auto; }
.motion .story-phone { width: min(340px, calc((100svh - 150px) * 0.46)); justify-self: center; }
.motion .screen .scr { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 0.7s var(--ease), transform 1.1s var(--ease); }
.motion .island { display: block; position: absolute; top: 4.6%; left: 50%; width: 30%; height: 3.6%; margin-left: -15%; border-radius: 99px; background: #000; z-index: 2; }
.motion .story-dots { display: flex; flex-direction: column; gap: 10px; position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%); }
.motion .story-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); transition: height 0.5s var(--ease), background 0.5s; }

.motion .s-story[data-step="0"] .step[data-i="0"] { opacity: 1; transform: none; pointer-events: auto; }
.motion .s-story[data-step="0"] .scr[data-i="0"] { opacity: 1; transform: none; }
.motion .s-story[data-step="0"] .story-dots i[data-i="0"] { height: 22px; border-radius: 3px; background: var(--rose-2); }
.motion .s-story[data-step="1"] .step[data-i="1"] { opacity: 1; transform: none; pointer-events: auto; }
.motion .s-story[data-step="1"] .scr[data-i="1"] { opacity: 1; transform: none; }
.motion .s-story[data-step="1"] .story-dots i[data-i="1"] { height: 22px; border-radius: 3px; background: var(--rose-2); }
.motion .s-story[data-step="2"] .step[data-i="2"] { opacity: 1; transform: none; pointer-events: auto; }
.motion .s-story[data-step="2"] .scr[data-i="2"] { opacity: 1; transform: none; }
.motion .s-story[data-step="2"] .story-dots i[data-i="2"] { height: 22px; border-radius: 3px; background: var(--rose-2); }
.motion .s-story[data-step="3"] .step[data-i="3"] { opacity: 1; transform: none; pointer-events: auto; }
.motion .s-story[data-step="3"] .scr[data-i="3"] { opacity: 1; transform: none; }
.motion .s-story[data-step="3"] .story-dots i[data-i="3"] { height: 22px; border-radius: 3px; background: var(--rose-2); }
.motion .s-story[data-step="4"] .step[data-i="4"] { opacity: 1; transform: none; pointer-events: auto; }
.motion .s-story[data-step="4"] .scr[data-i="4"] { opacity: 1; transform: none; }
.motion .s-story[data-step="4"] .story-dots i[data-i="4"] { height: 22px; border-radius: 3px; background: var(--rose-2); }

.motion .s-count { height: 200svh; }
.motion .s-count .sticky { position: sticky; top: 0; height: 100svh; min-height: 0; }

.motion .s-words { height: 220svh; }
.motion .s-words .sticky { position: sticky; top: 0; height: 100svh; min-height: 0; }
.motion .words span { opacity: 0.16; transition: opacity 0.35s ease, color 0.35s; }
.motion .words span.on { opacity: 1; }

.motion .reveal { opacity: 0; transform: translateY(46px) scale(0.98); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .features .reveal:nth-child(3n+2) { transition-delay: 0.08s; }
.motion .features .reveal:nth-child(3n+3) { transition-delay: 0.16s; }

/* Phone: the iPhone pins in the middle, the words sit on a soft panel below it */
@media (max-width: 760px) {
  .s-story .sticky { grid-template-columns: 1fr; }
  .story-phone { max-width: 280px; margin: 0 auto; }
  /* Phone on top, words underneath it — no panel, nothing overlapping. */
  .motion .s-story .sticky { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding-top: 64px; }
  .motion .story-phone { width: min(56vw, calc(52svh * 0.46)); max-width: none; order: -1; }
  .motion .story-text { position: relative; width: 100%; height: 30svh; padding: 0; background: none; }
  .motion .step { padding: 0; justify-content: flex-start; text-align: center; align-items: center; }
  .motion .step h2 { font-size: clamp(28px, 8vw, 36px); }
  .motion .step p:last-child { font-size: 16px; margin: 10px auto 0; }
  .motion .story-dots { display: none; }
}
