/* Tervel marketing site — Pillo template structure, the Tervel app visual system */

:root {
  /* Surfaces (from the app design file / Theme.swift) */
  --cream: #f6f3ec;
  --canvas: #efebe0;
  --note: #ede9dc;
  --white: #ffffff;
  --bg: var(--cream);
  --bg-rgb: 246, 243, 236;

  /* Ink */
  --ink: #17150f;
  --body: #3d392e;
  --body-2: #5c5748;
  --muted: #7a7462;
  --muted-2: #8c8672;
  --faint: #a39e8e;

  /* Lines */
  --border: #e0dac8;
  --border-2: #e7e1d1;
  --border-3: #ddd7c5;
  --hairline: #f0ebde;

  /* Brand */
  --lime: #c9f158;
  --lime-2: #8fe45a;
  --leaf: #8fcb3b;
  --teal: #17b9a2;
  --mint: #5ee0b8;
  --sky: #7c9cff;
  --violet: #b14cf0;
  --amber: #ffc46b;
  --coral: #e96a4c;
  --green: #0e8a50;
  --forest: #0a3d2c;
  --forest-deep: #122b1f;
  --forest-light: #0f4b37;

  /* The app's Tasks header: forest gradient with a lime glow top-right and a teal glow bottom-left */
  --header-grad:
    radial-gradient(60% 55% at 95% 5%, rgba(201, 241, 88, .32), rgba(201, 241, 88, 0) 70%),
    radial-gradient(55% 50% at 5% 105%, rgba(23, 185, 162, .22), rgba(23, 185, 162, 0) 70%),
    linear-gradient(135deg, var(--forest-light), var(--forest-deep));
  --surface-shadow: 0 1px 2px rgba(23, 21, 15, .04), 0 2px 10px rgba(23, 21, 15, .05);
  --lift-shadow: 0 8px 22px rgba(23, 21, 15, .12);
  --lime-glow: 0 8px 26px rgba(201, 241, 88, .35);

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body-font: "Instrument Sans", "Inter", system-ui, sans-serif;

  --container: 1160px;
  --gutter: 20px;
  --r-card: 20px;
  --r-panel: 28px;
  --r-btn: 16px;
  --r-pill: 999px;

  --nav-h: 60px;
  --nav-top: 20px;

  --phone-w: 330px;
  --phone-h: 688px;
  --screen-inset-x: 4.33%;
  --screen-inset-y: 2.3%;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
::selection { background: var(--lime); color: var(--forest-deep); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Type ---------- */
h1, h2, h3, .display { font-family: var(--display); font-weight: 700; color: var(--ink); }
.h-display { font-size: 72px; line-height: 80px; letter-spacing: -1.8px; }
h2, .h2 { font-size: 48px; line-height: 56px; letter-spacing: -1.2px; }
.eyebrow {
  font-family: var(--body-font); font-size: 11px; line-height: 16px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2);
}
.eyebrow--orb { display: inline-flex; align-items: center; gap: 8px; }
.sub { color: var(--body); font-size: 16px; line-height: 24px; }
.section-head { display: grid; gap: 14px; }
.section-head--center { text-align: center; justify-items: center; }
.section-head--center h2 { max-width: 672px; }
.section-head--center .sub { max-width: 560px; }

/* ---------- Orbs: the app's metallic orb, one still per task kind ---------- */
.orb { position: relative; display: inline-block; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: url(assets/orbs/orb-brand-64.png) center / cover no-repeat; box-shadow: 0 1px 3px rgba(23, 21, 15, .2); }
.orb--voice { background-image: url(assets/orbs/orb-voice-64.png); }
.orb--photo { background-image: url(assets/orbs/orb-photo-64.png); }
.orb--text { background-image: url(assets/orbs/orb-text-64.png); }
.orb--video { background-image: url(assets/orbs/orb-video-64.png); }
.orb--brand { background-image: url(assets/orbs/orb-brand-64.png); }
.orb--lg { width: 30px; height: 30px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Buttons (PrimaryCTA: lime, forest text, radius 16) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r-btn);
  font-family: var(--display); font-size: 16px; line-height: 24px; font-weight: 700; letter-spacing: -0.2px;
  white-space: nowrap; transition: transform .25s var(--ease-out), background-color .25s, box-shadow .25s, border-color .25s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--lime); color: var(--forest-deep); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, var(--lime-glow); }
.btn--primary:hover { background: #d4f56e; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 12px 32px rgba(201, 241, 88, .45); }
.btn--ghost { background: rgba(255, 255, 255, .14); color: var(--white); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(20px) saturate(170%); }
.btn--ghost:hover { background: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.btn--outline { background: var(--white); color: var(--ink); border: 1.5px solid var(--border); }
.btn--outline:hover { border-color: var(--forest); transform: translateY(-1px); }
.btn--forest { background: var(--forest); color: var(--lime); }
.btn--forest:hover { background: var(--forest-deep); transform: translateY(-1px); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.link-underline { position: relative; display: inline-block; }
.link-underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.link-underline:hover::after { transform: scaleX(1); }

/* ---------- Nav (on image over the hero, on page after it) ---------- */
.nav { position: fixed; inset: var(--nav-top) 0 auto 0; z-index: 60; pointer-events: none; }
.nav__inner {
  display: flex; align-items: center; height: var(--nav-h); pointer-events: auto;
  padding: 0; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: background-color .35s, border-color .35s, box-shadow .35s, padding .35s;
}
/* On the page the bar becomes one of the app's frosted pills so it reads over cream and forest alike */
.nav.is-page .nav__inner {
  padding: 0 8px 0 24px; background: rgba(246, 243, 236, .78); border-color: rgba(224, 218, 200, .9);
  backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 2px 10px rgba(23, 21, 15, .06);
}
/* Scrolling over the hero: a dark frosted pill keeps the white links readable over the photos */
.nav.is-scrolled:not(.is-page) .nav__inner {
  padding: 0 8px 0 24px; background: rgba(12, 44, 31, .55); border-color: rgba(255, 255, 255, .16);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 8px 24px rgba(4, 24, 15, .25);
}
.nav.is-page .nav__cta:hover { transform: translateY(-1px) scale(1.04); }
.logo { display: inline-flex; align-items: center; gap: 8px; margin-right: 32px; }
.logo__text { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.3px; color: var(--white); transition: color .3s; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link { position: relative; font-size: 15px; line-height: 22px; font-weight: 600; color: rgba(255, 255, 255, .72); transition: color .25s; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.nav__link:hover, .nav__link.is-active { color: var(--white); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav.is-page .logo__text { color: var(--ink); }
.nav.is-page .nav__link { color: var(--muted); }
.nav.is-page .nav__link:hover, .nav.is-page .nav__link.is-active { color: var(--ink); }
.nav.is-page .nav__link::after { background: var(--forest); }
.nav__cta {
  margin-left: auto; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--forest-deep);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, var(--lime-glow);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.nav__cta:hover { transform: translateY(-1px) scale(1.04); }
.nav__cta svg { width: 18px; height: 18px; }
.hamburger {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(20px) saturate(170%);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px; transition: background .3s, border-color .3s;
}
.hamburger span { display: block; width: 18px; height: 1.5px; background: var(--white); transition: transform .3s var(--ease-out), background .3s; }
.nav.is-page .hamburger { background: var(--white); border-color: var(--border); }
.nav.is-page .hamburger span { background: var(--ink); }
body.menu-open .hamburger { background: var(--white); border-color: var(--border); }
body.menu-open .hamburger span { background: var(--ink); }
body.menu-open .hamburger span:first-child { transform: translateY(3.25px) rotate(45deg); }
body.menu-open .hamburger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
body.menu-open .logo__text { color: var(--ink); }

.menu {
  position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: center;
  padding: 100px 20px 40px; background: rgba(var(--bg-rgb), .94); backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
body.menu-open .menu { opacity: 1; visibility: visible; }
.menu a { font-family: var(--display); font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -1.2px; padding: 8px 0; color: var(--ink); opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
body.menu-open .menu a { opacity: 1; transform: none; }
body.menu-open .menu a:nth-child(2) { transition-delay: .05s }
body.menu-open .menu a:nth-child(3) { transition-delay: .1s }
body.menu-open .menu a:nth-child(4) { transition-delay: .15s }
.menu .btn { font-size: 16px; line-height: 24px; letter-spacing: -0.2px; margin-top: 24px; align-self: flex-start; padding: 0 22px; }

/* ---------- Device mockup ---------- */
.device { position: relative; width: var(--phone-w); height: var(--phone-h); flex-shrink: 0; }
.device__screen { position: absolute; inset: var(--screen-inset-y) var(--screen-inset-x); overflow: hidden; border-radius: 12.5% / 6.1%; background: var(--cream); }
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Travelling phone screens, as in the Pillo template: stacked, and each new screen slides up over the last one */
/* Travelling phone screens: the next screen slides up over the current one as a card (compositor-driven transition);
   the one underneath sinks back and dims against the dark track. main.js decides which screen is in, with hysteresis. */
.device__track { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #0c1f16; }
.device__track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  transform: translate3d(0, 102%, 0); opacity: 1; border-radius: 26px 26px 0 0; box-shadow: 0 -16px 40px rgba(4, 18, 12, .38);
  transform-origin: 50% 0; will-change: transform, opacity; backface-visibility: hidden;
  transition: transform .75s cubic-bezier(.22, 1, .36, 1), opacity .75s cubic-bezier(.22, 1, .36, 1); }
.device__track img.is-in { transform: translate3d(0, 0, 0); }
.device__track img.is-under { transform: translate3d(0, -2%, 0) scale(.93); opacity: .38; }
.device__track.is-instant img { transition: none; }
@media (prefers-reduced-motion: reduce) { .device__track img { transition: opacity .2s linear; } }
.device__frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.device::after { content: ""; position: absolute; inset: 8% 10% -4% 10%; z-index: -1; border-radius: 40%; background: rgba(23, 21, 15, .28); filter: blur(36px); }

/* ---------- Stage: hero + 3 features share one travelling phone ---------- */
.stage { position: relative; }
.phone-layer { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.phone-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; }
.phone-travel { position: absolute; top: 0; left: 0; will-change: transform; transform-origin: 0 0; backface-visibility: hidden; }
/* A soft gradient instead of the blur() shadow: same look, nothing expensive to repaint while the phone scales */
.phone-travel .device::after { filter: none; inset: 4% 2% -7% 2%; background: radial-gradient(closest-side, rgba(10, 32, 22, .34), rgba(10, 32, 22, 0)); }
/* As in Pillo, the hero phone is larger and scales to 82% as it lands beside the features */
.phone-travel .device { width: calc(var(--phone-w) / .82); height: calc(var(--phone-h) / .82); }
.phone-static { display: none; }

/* ---------- Hero: the app's header, full bleed ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; isolation: isolate; background: var(--header-grad);
  border-radius: 0 0 var(--r-panel) var(--r-panel);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg > img { width: 100%; height: 100%; object-fit: cover; opacity: .38; mix-blend-mode: screen; transform: scale(1.04); }
.hero__liquid { position: absolute; inset: -20%; mix-blend-mode: screen; pointer-events: none; }
.hero__liquid::before, .hero__liquid::after { content: ""; position: absolute; width: 55vw; height: 55vw; max-width: 900px; max-height: 900px; border-radius: 50%; filter: blur(80px); opacity: .5; }
.hero__liquid::before { left: 42%; top: 10%; background: radial-gradient(circle, rgba(201, 241, 88, .55), rgba(201, 241, 88, 0) 65%); animation: blob 14s ease-in-out infinite; }
.hero__liquid::after { left: 8%; top: 50%; background: radial-gradient(circle, rgba(94, 224, 184, .45), rgba(23, 185, 162, 0) 65%); animation: blob2 18s ease-in-out infinite; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 43, 31, .55) 0%, rgba(18, 43, 31, .25) 35%, rgba(18, 43, 31, 0) 60%),
    linear-gradient(180deg, rgba(18, 43, 31, .3) 0%, rgba(18, 43, 31, 0) 30%);
}
@keyframes blob { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6%, -8%) scale(1.15); } }
@keyframes blob2 { 0%, 100% { transform: translate(0, 0) scale(1.1); } 50% { transform: translate(-8%, 6%) scale(0.95); } }

.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; padding: 120px 0 80px; }
.hero__text { display: grid; gap: 24px; max-width: 604px; }
.hero__title { color: var(--white); }
.hero__title .tw { display: inline-block; white-space: nowrap; color: var(--lime); }
.tw__cursor { display: inline-block; width: 4px; height: .9em; margin-left: 4px; vertical-align: -0.08em; background: var(--lime); border-radius: 2px; animation: blink 1.05s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.hero__desc { color: rgba(255, 255, 255, .8); max-width: 440px; font-size: 17px; line-height: 26px; }
.hero__text .btn-row { margin-top: 8px; }

.proof { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.avatars { display: flex; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--forest-deep); object-fit: cover; margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }
.proof__meta { display: grid; gap: 2px; }
.stars { display: flex; gap: 2px; color: var(--lime); }
.stars svg { width: 14px; height: 14px; }
.proof__text { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .78); }
.proof--light .avatars img { border-color: var(--white); }
.proof--light .stars { color: var(--leaf); }
.proof--light .proof__text { color: var(--muted); }

/* ---------- Features (cream, the app's content area) ---------- */
.feature { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; position: relative; }
.feature__inner { display: grid; grid-template-columns: 1fr; }
.feature__text { display: grid; gap: 16px; max-width: 560px; justify-self: end; margin-right: 20px; will-change: transform, opacity; }
.feature__text h2 { color: var(--ink); }
.feature__text p { color: var(--body); font-size: 17px; line-height: 26px; }

/* ---------- How it works: a briefing-hero panel with white step cards ---------- */
.how { padding: 120px 0 40px; }
.how .section-head { margin-bottom: 56px; }
.how__stage {
  position: relative; height: 760px; border-radius: var(--r-panel); overflow: hidden; isolation: isolate;
  background: var(--header-grad); box-shadow: var(--lift-shadow);
}
.how__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; mix-blend-mode: screen; transform: scale(1.02); }
.how__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(201, 241, 88, .22), rgba(201, 241, 88, 0) 70%),
    linear-gradient(90deg, rgba(7, 42, 31, .7) 0%, rgba(7, 42, 31, .35) 45%, rgba(7, 42, 31, 0) 75%),
    linear-gradient(0deg, rgba(7, 42, 31, .75) 0%, rgba(7, 42, 31, 0) 35%);
}
.how__mockup { position: absolute; right: 8%; top: 8%; transform: rotate(-9deg); filter: drop-shadow(0 40px 60px rgba(4, 24, 15, .55)); animation: floaty 9s ease-in-out infinite; }
.how__mockup .device { --phone-w: 420px; --phone-h: 876px; }
.how__mockup .device::after { display: none; }
@keyframes floaty { 0%, 100% { transform: rotate(-9deg) translateY(0); } 50% { transform: rotate(-9deg) translateY(-14px); } }

.how__deck { position: absolute; left: 60px; top: 50%; width: 400px; height: 200px; transform: translateY(-58%); }
.step-card {
  position: absolute; inset: 0 auto auto 0; width: 400px; padding: 22px 24px 24px; border-radius: var(--r-card);
  background: var(--white); border: 1px solid var(--border-2); box-shadow: var(--surface-shadow), 0 24px 48px rgba(4, 24, 15, .35);
  display: grid; gap: 8px; cursor: pointer; overflow: hidden;
  transition: transform .7s var(--ease-out), opacity .7s var(--ease-out);
}
.step-card::before { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--glow, rgba(201, 241, 88, .5)) 0%, rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.step-card--voice { --glow: rgba(233, 106, 76, .35); }
.step-card--photo { --glow: rgba(94, 224, 184, .4); }
.step-card--lime { --glow: rgba(201, 241, 88, .5); }
.step-card h3 { font-size: 24px; line-height: 30px; letter-spacing: -0.4px; color: var(--ink); }
.step-card p { font-size: 14px; line-height: 20px; color: var(--body); }
.step-card.is-leaving { transition: transform .5s var(--ease-out), opacity .35s; opacity: 0 !important; transform: translateY(-40px) scale(1.02) !important; }
.how__fade { display: none; }

/* ---------- Metrics ticker ---------- */
.metrics { padding: 120px 0; overflow: hidden; }
.ticker { display: flex; width: max-content; }
.ticker__track { display: flex; align-items: center; gap: 48px; padding-right: 48px; animation: ticker 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: 48px; white-space: nowrap; }
.ticker__text { font-family: var(--display); font-size: 48px; line-height: 56px; font-weight: 700; letter-spacing: -1.2px; color: var(--ink); }
.ticker__pill { display: block; width: 155px; height: 78px; border-radius: var(--r-pill); overflow: hidden; flex-shrink: 0; box-shadow: var(--surface-shadow); border: 2px solid var(--white); }
.ticker__pill img { width: 100%; height: 100%; object-fit: cover; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Testimonials ---------- */
.testimonials { padding: 60px 0 0; }
.testimonials .section-head { margin-bottom: 40px; }
.testi-pin { position: relative; }
.testi-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.testi-track { display: flex; gap: 80px; will-change: transform; padding-left: max(20px, (100vw - var(--container)) / 2); }
.testi-card { display: flex; align-items: center; gap: 56px; width: 1000px; flex-shrink: 0; }
.testi-card__img { width: 406px; height: 406px; border-radius: var(--r-panel); overflow: hidden; flex-shrink: 0; border: 3px solid var(--white); box-shadow: var(--lift-shadow); }
.testi-card__img img { width: 100%; height: 100%; object-fit: cover; }
.testi-card__body { display: grid; gap: 20px; }
.testi-card blockquote { font-family: var(--display); font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.7px; color: var(--ink); }
.testi-card__name { font-size: 14px; line-height: 20px; color: var(--muted); }
.testi-card__name strong { color: var(--ink); font-weight: 700; }

/* ---------- Earnings tiers (pricing) ---------- */
.pricing { position: relative; }
.pricing-pin { height: 220vh; }
.pricing-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.pricing__inner { display: grid; gap: 40px; width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.pricing__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.pricing__title { display: flex; gap: 12px; flex-wrap: wrap; }
.pricing__title span { display: inline-block; will-change: transform; }
.pricing__t2 { color: var(--forest); }
.pricing__compare { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); padding-bottom: 8px; }
.pricing__compare:hover { color: var(--ink); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; will-change: transform; transform-origin: center; }
.plan { display: grid; gap: 24px; }
.plan__card { position: relative; border-radius: var(--r-panel); padding: 32px; display: grid; gap: 20px; overflow: hidden; }
.plan__card--free { background: var(--white); color: var(--ink); border: 1px solid var(--border-2); box-shadow: var(--surface-shadow), 0 24px 60px rgba(23, 21, 15, .08); }
.plan__card--free::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(94, 224, 184, .35), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.plan__card--plus { background: var(--header-grad); color: var(--white); box-shadow: 0 24px 60px rgba(10, 61, 44, .35); }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__name { font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.plan__card--plus .plan__name { color: rgba(255, 255, 255, .7); }
.plan__tag { display: inline-flex; align-items: center; height: 28px; padding: 4px 14px; border-radius: var(--r-pill); background: var(--lime); color: var(--forest-deep); font-size: 13px; line-height: 20px; font-weight: 700; }
.plan__desc { font-family: var(--display); font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.4px; }
.plan__price { display: flex; align-items: flex-end; gap: 6px; }
.plan__amount { font-family: var(--display); font-size: 48px; line-height: 56px; font-weight: 700; letter-spacing: -1.2px; }
.plan__card--plus .plan__amount { color: var(--lime); }
.plan__per { font-size: 16px; line-height: 24px; padding-bottom: 6px; color: var(--muted); }
.plan__card--plus .plan__per { color: rgba(255, 255, 255, .7); }
.btn--plan { width: 100%; height: 54px; }
.plan__card--free .btn--plan { background: var(--forest); color: var(--lime); }
.plan__card--free .btn--plan:hover { background: var(--forest-deep); transform: translateY(-1px); }
.plan__card--plus .btn--plan { background: var(--lime); color: var(--forest-deep); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, var(--lime-glow); }
.plan__card--plus .btn--plan:hover { background: #d4f56e; transform: translateY(-1px); }
.plan__features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; padding: 0 8px; }
.plan__features li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; color: var(--body); }
.plan__features svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--green); }

/* ---------- FAQ ---------- */
.faq { padding: 80px 0 128px; }
.faq__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.faq .section-head h2 { max-width: 560px; }
.faq .section-head .sub { max-width: 524px; }
.accordion { background: var(--white); border: 1px solid var(--border-2); border-radius: var(--r-card); box-shadow: var(--surface-shadow); overflow: hidden; }
.acc { border-bottom: 1px solid var(--hairline); }
.acc:last-child { border-bottom: 0; }
.acc__btn { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 22px 24px; text-align: left; }
.acc__q { font-family: var(--display); font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -0.3px; color: var(--ink); max-width: 472px; }
.acc__icon { position: relative; width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px; background: var(--note); transition: background .3s; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .3s var(--ease-out); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc.is-open .acc__icon { background: var(--lime); }
.acc.is-open .acc__icon::after { transform: translate(-50%, -50%) rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 24px 22px; color: var(--body); max-width: 512px; }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }

/* ---------- CTA: a forest panel like the app's cash-out card ---------- */
.cta { padding: 40px 0 120px; }
.cta__box {
  position: relative; display: grid; justify-items: center; text-align: center; gap: 32px;
  padding: 80px 40px; border-radius: var(--r-panel); background: var(--header-grad); color: var(--white);
  overflow: hidden; isolation: isolate; box-shadow: 0 24px 60px rgba(10, 61, 44, .28);
}
.cta__box::before { content: ""; position: absolute; inset: -20% -10%; z-index: -1; background: radial-gradient(40% 50% at 70% 20%, rgba(201, 241, 88, .28), transparent 70%), radial-gradient(35% 45% at 15% 90%, rgba(124, 156, 255, .25), transparent 70%); }
.cta__text { display: grid; gap: 16px; justify-items: center; }
.cta__text h2 { max-width: 640px; color: var(--white); }
.cta__text .sub { max-width: 480px; color: rgba(255, 255, 255, .8); }
.cta .proof { margin: 0; }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 120px 0 0; overflow: hidden; isolation: isolate; background: var(--canvas); }
.footer__bg { position: absolute; inset: 0; z-index: -1; }
.footer__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: multiply; }
.footer__fade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--cream) 0%, rgba(239, 235, 224, .7) 40%, rgba(239, 235, 224, 0) 100%), radial-gradient(900px 600px at 100% 110%, #dce9d2, transparent 55%); }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 16px 24px; flex-wrap: wrap; }
.footer__links a { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); }
.footer__links a:hover { color: var(--ink); }
.footer__copy { font-size: 14px; line-height: 20px; color: var(--muted); }
.footer__copy a { color: var(--ink); }
.wordmark {
  margin-top: 72px; text-align: center; font-family: var(--display); font-weight: 800;
  font-size: clamp(96px, 20.5vw, 300px); line-height: .82; letter-spacing: -0.05em; white-space: nowrap;
  background: linear-gradient(180deg, var(--forest-light) 0%, var(--forest) 45%, #2a7a4a 72%, var(--leaf) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(14%);
}

/* ---------- Floating badge (surface pill) ---------- */
.badge {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 9px;
  border-radius: var(--r-pill); background: var(--white); color: var(--ink); border: 1px solid var(--border-2);
  font-size: 13px; line-height: 16px; font-weight: 700; box-shadow: var(--lift-shadow);
  transition: transform .25s var(--ease-out);
}
.badge:hover { transform: translateY(-2px); }
.badge .orb { width: 20px; height: 20px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s }
.reveal[data-delay="2"] { transition-delay: .2s }

/* ---------- Tablet (810–1199) ---------- */
@media (max-width: 1199.98px) {
  :root { --phone-w: 264px; --phone-h: 551px; }
  .h-display { font-size: 56px; line-height: 64px; letter-spacing: -1.4px; }
  .nav__links { gap: 20px; }
  .how__stage { height: 640px; }
  .how__mockup { right: 4%; top: 10%; }
  .how__mockup .device { --phone-w: 330px; --phone-h: 688px; }
  .how__deck { left: 32px; width: 360px; }
  .step-card { width: 360px; }
  .testi-card { width: 760px; gap: 40px; }
  .testi-card__img { width: 300px; height: 300px; }
  .testi-card blockquote { font-size: 28px; line-height: 36px; }
  .feature__text { max-width: 440px; margin-right: 0; }
  .faq__inner { gap: 32px; }
  .acc__q { font-size: 19px; line-height: 26px; }
}

/* ---------- Mobile (≤809) ---------- */
@media (max-width: 809.98px) {
  :root { --phone-w: 280px; --phone-h: 584px; --nav-top: 16px; --r-panel: 24px; }
  .h-display { font-size: 44px; line-height: 48px; letter-spacing: -1.2px; }
  h2, .h2 { font-size: 36px; line-height: 40px; letter-spacing: -1px; }
  .nav__links, .nav__cta { display: none; }
  .hamburger { display: inline-flex; }

  .phone-layer { display: none; }
  .phone-static { display: block; }
  .hero { min-height: 0; }
  .hero__inner { padding: 120px 0 0; gap: 40px; }
  .hero__shade { background: linear-gradient(180deg, rgba(18, 43, 31, .45) 0%, rgba(18, 43, 31, .15) 40%, rgba(18, 43, 31, 0) 100%); }
  .hero__phone { justify-self: center; margin-bottom: -200px; }
  .hero__phone .device::after { display: none; }
  .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(18, 43, 31, 0), var(--forest-deep)); }

  .feature { min-height: 0; padding: 64px 0 0; }
  .feature__inner { gap: 32px; justify-items: center; }
  .feature__text { justify-self: stretch; margin: 0; opacity: 1 !important; transform: none !important; }

  .how { padding: 96px 0 0; }
  .how .section-head { margin-bottom: 32px; }
  .how__stage { height: auto; padding: 24px 16px 24px; }
  .how__mockup { position: relative; right: auto; top: auto; margin: 0 auto 16px; width: max-content; animation: none; transform: rotate(-6deg); }
  .how__mockup .device { --phone-w: 220px; --phone-h: 459px; }
  .how__deck { position: relative; left: auto; top: auto; transform: none; width: 100%; height: 190px; }
  .step-card { width: 100%; }

  .metrics { padding: 80px 0; }
  .ticker__track { gap: 24px; padding-right: 24px; }
  .ticker__item { gap: 24px; }
  .ticker__text { font-size: 32px; line-height: 40px; }
  .ticker__pill { width: 110px; height: 56px; }

  .testimonials { padding: 40px 0 0; }
  .testi-pin { height: auto !important; }
  .testi-sticky { position: static; height: auto; display: block; overflow: visible; }
  .testi-track { flex-direction: column; gap: 40px; padding: 0 20px; transform: none !important; }
  .testi-card { width: 100%; flex-direction: column; align-items: stretch; gap: 20px; }
  .testi-card__body { order: 1; }
  .testi-card__img { order: 2; width: 100%; height: auto; aspect-ratio: 1; }
  .testi-card blockquote { font-size: 24px; line-height: 32px; }

  .pricing { padding: 96px 0 0; }
  .pricing-pin { height: auto; }
  .pricing-sticky { position: static; height: auto; display: block; overflow: visible; }
  .pricing__head { flex-direction: column; align-items: flex-start; }
  .pricing__title span { transform: none !important; }
  .plans { grid-template-columns: 1fr; transform: none !important; }
  .plan__card { padding: 24px; }
  .plan__features { grid-template-columns: 1fr; }
  .plan__features, .pricing__compare { opacity: 1 !important; }

  .faq { padding: 96px 0 80px; }
  .faq__inner { grid-template-columns: 1fr; gap: 32px; }
  .acc__btn { padding: 18px 18px; }
  .acc__q { font-size: 18px; line-height: 26px; }
  .acc__panel p { padding: 0 18px 18px; }

  .cta { padding: 20px 0 96px; }
  .cta__box { padding: 48px 20px; }
  .cta__box .btn-row { justify-content: center; }
  .footer { padding-top: 80px; }
  .footer__row { flex-direction: column; align-items: flex-start; }
  .wordmark { margin-top: 48px; font-size: 25vw; }
  .badge { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__liquid::before, .hero__liquid::after, .how__mockup, .ticker__track { animation: none; }
  .tw__cursor { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav__cta, .badge { transition: none; }
}

/* ---------- Story hero (the app's sign-in: who earned what, for what) ---------- */
.logo .orb { width: 28px; height: 28px; }
.story-who { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .86); font-size: 15px; }
.story-who b { color: var(--white); font-weight: 700; }
.story-dot { opacity: .5; }
.story-avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); object-fit: cover; }
.story-amount { background: linear-gradient(90deg, var(--lime), var(--mint), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.story-line { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 38px; letter-spacing: -0.6px; color: var(--white); min-height: 38px; margin-top: -8px; }
.hero__title { transition: opacity .35s var(--ease-out); }
.hero.is-swapping .hero__title, .hero.is-swapping .story-who { opacity: 0; }
.story-who { transition: opacity .35s var(--ease-out); }
.hero__stories { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.story-card { position: absolute; margin: 0; border-radius: 26px; overflow: hidden; border: 4px solid rgba(255, 255, 255, .95); box-shadow: 0 24px 60px rgba(4, 24, 15, .45); background: #1d3a2e; }
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease-out); }
.story-card--a { width: 230px; height: 300px; right: calc(50% - 560px + 420px); top: 50%; transform: translateY(-40%) rotate(-7deg); animation: floatA 9s ease-in-out infinite; }
.story-card--b { width: 150px; height: 196px; right: calc(50% - 560px - 20px); top: 14%; transform: rotate(7deg); animation: floatB 11s ease-in-out infinite; }
.story-card--c { width: 136px; height: 176px; right: calc(50% - 560px - 10px); bottom: 10%; transform: rotate(-4deg); animation: floatB 10s ease-in-out -3s infinite; }
.story-chip { position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(12px); border: .5px solid rgba(255, 255, 255, .35); color: var(--white); font-weight: 700; font-size: 13px; }
.story-card--a .story-chip { background: var(--lime); color: var(--forest-deep); border: 0; font-size: 15px; padding: 6px 13px; }
@keyframes floatA { 0%, 100% { transform: translateY(-40%) rotate(-7deg); } 50% { transform: translateY(calc(-40% - 12px)) rotate(-6deg); } }
@keyframes floatB { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.ticker__orb { display: block; width: 78px; height: 78px; border-radius: 50%; overflow: hidden; flex-shrink: 0; box-shadow: 0 10px 26px rgba(23, 21, 15, .16); }
.ticker__orb img { width: 100%; height: 100%; }
.badge .orb { width: 22px; height: 22px; }
@media (max-width: 1199.98px) {
  .story-card--a { width: 180px; height: 236px; right: calc(50% - 400px + 250px); }
  .story-card--b, .story-card--c { display: none; }
  .story-line { font-size: 26px; line-height: 32px; }
}
@media (max-width: 809.98px) {
  .hero__stories { display: none; }
  .story-line { font-size: 22px; line-height: 28px; margin-top: -4px; }
  .ticker__orb { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .story-card { animation: none !important; } }
.hero__title { font-family: var(--display); font-weight: 700; }

/* ---------- Previous logo lockup (kept for reference; replaced by the Tervel logo below) ---------- */
.logo { gap: 10px; }
.logo__mark { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; box-shadow: 0 2px 10px rgba(4, 24, 15, .22); }
.logo__word { display: inline-flex; align-items: center; gap: 4px; font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1; letter-spacing: .05em; }
.logo__data { color: var(--white); transition: color .3s; }
.logo__gru { padding: 5px 7px 4px; border-radius: 7px; background: var(--lime); color: var(--forest); }
.nav.is-page .logo__data, body.menu-open .logo__data, .logo--ink .logo__data { color: var(--ink); }
.logo--ink { margin-right: 0; }
.logo--ink .logo__mark { box-shadow: none; }
.badge__mark { width: 22px; height: 22px; border-radius: 6px; }

/* ---------- App Store + Google Play badges (official artwork, unmodified) ---------- */
.store-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.store-badge { display: inline-flex; border-radius: 10px; transition: transform .25s var(--ease-out); }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { display: block; height: 48px; width: auto; }
/* Google's PNG carries its own transparent margin: scale it so the badge body matches Apple's height */
.store-badge--play img { height: 71px; margin: -11.5px -11px; }
@media (max-width: 809.98px) { .store-badge img { height: 44px; } .store-badge--play img { height: 65px; margin: -10.5px -10px; } }

/* ---------- Tervel logo: white lockup over the hero, deep-forest lockup on the page (assets/brand/tervel-logo-*.svg) ---------- */
.logo { position: relative; }
.logo__img { display: block; height: 28px; width: auto; transition: opacity .3s var(--ease-out); }
.logo__img--dark { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.nav.is-page .logo__img--light, body.menu-open .logo__img--light, .logo--ink .logo__img--light { opacity: 0; }
.nav.is-page .logo__img--dark, body.menu-open .logo__img--dark, .logo--ink .logo__img--dark { opacity: 1; }
.badge__mark { border-radius: 6px; }
.wordmark { letter-spacing: -0.06em; }
@media (max-width: 809.98px) { .logo__img { height: 24px; } }
