/* ============================================================
   Godara Labs — Shared Design System v2
   Light "CozyPaws" theme: cream-green bg, deep-green headings,
   light-green panels, orange CTAs, white cards, playful motion.
   TaxVerse keeps its own separate light theme.
   ============================================================ */

:root {
  /* Backgrounds */
  --bg: #F6F9EE;
  --bg-2: #EDF4E2;
  --bg-3: #FFFFFF;
  --panel: #CDE7BC;
  --surface: #FFFFFF;
  --surface-hover: #FBFDF7;
  --border: rgba(23, 71, 43, 0.12);
  --border-strong: rgba(242, 116, 13, 0.45);

  /* Greens */
  --green-950: #10331F;
  --green-900: #17472B;
  --green-700: #1F5C38;
  --green-600: #2C7A4B;

  /* Orange accent */
  --orange: #F2740D;
  --orange-600: #E0650A;

  /* Aliases kept for v1 class compatibility */
  --blue-900: #17472B;
  --blue-600: #1F5C38;
  --blue-500: #2C7A4B;
  --blue-400: #2C7A4B;
  --cyan-400: #F2740D;

  /* Text */
  --text: #16321F;
  --text-soft: #3F5A49;
  --muted: #6B7F70;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #F2740D 0%, #F99B3D 100%);
  --grad-text: linear-gradient(100deg, #17472B 30%, #2C7A4B 75%);
  --grad-border: linear-gradient(135deg, rgba(242,116,13,.5), rgba(44,122,75,.2), transparent 70%);

  /* Glows / shadows */
  --glow-blue: 0 8px 28px rgba(242, 116, 13, 0.35);
  --glow-orange: 0 8px 28px rgba(242, 116, 13, 0.35);
  --glow-soft: 0 14px 36px rgba(23, 71, 43, 0.12);
  --shadow-card: 0 10px 30px rgba(23, 71, 43, 0.08);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1180px;
  --nav-h: 68px;
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Soft page glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(800px 480px at 85% -5%, rgba(242, 116, 13, .06), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(44, 122, 75, .07), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(242, 116, 13, .3); color: var(--green-950); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; color: var(--green-900); }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { color: var(--text-soft); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text-brand {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { position: relative; z-index: 1; padding: 96px 0; }
.section-sm { padding: 64px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.05rem; }
@media (max-width: 768px) { .section-head { margin-bottom: 40px; } }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-700);
  border: 1px solid rgba(23, 71, 43, .22);
  background: #fff;
  padding: 7px 14px;
  border-radius: var(--r-pill);
}
.badge-soon { color: var(--orange-600); border-color: rgba(242, 116, 13, .35); background: rgba(242, 116, 13, .08); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, background .3s, border-color .3s;
  white-space: nowrap;
}
.btn .arrow { transition: transform .3s; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 0 0 4px #fff, var(--glow-orange);
}
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 0 0 4px #fff, 0 12px 34px rgba(242,116,13,.45); }

.btn-ghost {
  background: #fff;
  color: var(--green-900);
  border-color: rgba(23, 71, 43, .25);
}
.btn-ghost:hover { border-color: var(--green-700); background: var(--surface-hover); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* button shine sweep */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content:""; position:absolute; top:0; left:-120%; width:60%; height:100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); transition: left .6s ease; }
.btn-primary:hover::after { left: 130%; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transition: transform .35s cubic-bezier(.4,0,.2,1), border-color .35s, box-shadow .35s;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: rgba(242,116,13,.35); box-shadow: 0 18px 44px rgba(23,71,43,.14); }

.card-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(242,116,13,.1), transparent 45%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.card-glow:hover::after { opacity: 1; }

/* Gradient-border panel */
.glow-border {
  position: relative;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.glow-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--grad-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(246, 249, 238, .82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(246, 249, 238, .95); border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(23,71,43,.07); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

.nav-brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--green-900); flex-shrink: 0; }
.nav-brand svg { width: 30px; height: 30px; flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; }
.nav-links a {
  position: relative;
  flex: 1 1 0;
  min-width: max-content;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  text-align: center;
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--green-900); background: #fff; }

/* Dropdown */
.nav-dd { position: relative; }
.nav-dd-toggle { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px;
  box-shadow: var(--glow-soft);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.nav-dd:hover .nav-dd-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dd-panel a { display: block; padding: 10px 14px; border-radius: var(--r-sm); }
.nav-dd-panel a span { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 400; }

.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--green-900); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(246, 249, 238, .98);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 80px 32px 40px;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-900);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
}
.mobile-menu.open a { animation: menuIn .5s forwards; }
.mobile-menu .mm-eyebrow { font-family: var(--font-body); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border: none; padding: 18px 0 4px; }
@keyframes menuIn { to { opacity: 1; transform: translateY(0); } }
.mobile-menu .btn { margin-top: 24px; opacity: 0; }

/* Mobile: single-line bar (logo + inline scrollable links), matching sub-pages */
@media (max-width: 980px) {
  .nav .container { gap: 8px; }
  /* links grow to fill the whole bar — no dead gaps, bigger tap targets */
  .nav-links { display: flex; flex: 1 1 auto; min-width: 0; gap: 5px; margin: 0; overflow: hidden; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 1 1 auto; min-width: 0; text-align: center; font-size: clamp(0.7rem, 2vw, 0.98rem); padding: 9px 5px; white-space: nowrap; }
  .nav-right .btn, .nav-burger { display: none; }
}
/* Very small phones: shrink brand so the four links keep room to grow */
@media (max-width: 560px) {
  .nav .container { padding: 0 10px; }
  .nav-brand { font-size: .82rem; gap: 6px; }
  .nav-brand svg { width: 22px; height: 22px; }
  .nav-links { gap: 2px; }
  .nav-links a { font-size: clamp(.6rem, 2.4vw, .8rem); padding: 8px 3px; }
}

@media (max-width: 360px) {
  .nav .container { gap: 6px; }
  .nav-links { flex: 0 1 auto; }
  .nav-links > a { display: none; }
  .nav-right { margin-left: auto; gap: 0; }
  .nav-right .btn {
    display: inline-flex;
    max-width: 100%;
    padding: 8px 10px;
    font-size: .72rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }
  .nav-right .btn .arrow { display: none; }
  .btn { max-width: 100%; white-space: normal; text-align: center; }
  .btn-row .btn { flex: 1 1 100%; width: 100%; }
}

/* Secondary tab bar fully retired — single nav bar everywhere */
.tabbar { display: none !important; }

/* ---------- Horizontal category rail ---------- */
.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.rail-head h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
.rail-head .rail-cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-600); font-weight: 700; }
.rail-head a { font-size: .85rem; font-weight: 700; color: var(--green-700); white-space: nowrap; }
.rail-head a:hover { color: var(--orange-600); }
.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { height: 7px; }
.rail::-webkit-scrollbar-thumb { background: rgba(23,71,43,.18); border-radius: 10px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail + .rail { margin-top: 10px; }

/* Auto-flowing rails: snapping fights the JS scrollLeft loop and stops the
   marquee, so disable snap + hide the scrollbar on these rails only. */
.rail[data-autoscroll] { scroll-snap-type: none; scrollbar-width: none; }
.rail[data-autoscroll]::-webkit-scrollbar { display: none; }
.rail[data-autoscroll] .mview { scroll-snap-align: none; }

/* mobile-view card — fixed height, auto width, NEVER crops the image */
.mview {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.rails { --rail-media-height: 300px; }
.mview { width: auto; min-width: 142px; }
.mview .screen {
  width: 142px;
  height: var(--rail-media-height);
  aspect-ratio: auto;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(23,71,43,.12);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
}
.mview .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.mview:hover .screen { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(23,71,43,.2); }
.mview .cap { text-align: center; max-width: 100%; }
.mview .cap b { display: block; font-family: var(--font-display); font-size: .92rem; color: var(--green-900); }
.mview .cap span { font-size: .76rem; color: var(--muted); }
.mview .soon-tag { display: inline-block; margin-top: 2px; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--orange-600); }

/* iPhone-frame variant (real app screenshots — cropped to fill, no background gaps) */
.mview.phone .screen { border: 3px solid var(--green-900); border-radius: 18px; padding: 6px; background: #fff; position: relative; }
.mview.phone .screen::before { display: none; }
.mview.phone .screen img { border-radius: 9px; object-fit: cover; object-position: center top; }
.mview.phone.no-pad .screen { padding: 0; background: transparent; }
.paperlens-card .screen { overflow: visible; }
.mview.free.paperlens-card .screen img { width: auto; max-width: 100%; height: 100%; margin: 0; transform: none; object-fit: contain; }

/* Height-matched free-width variant (posters / mixed ratios — never cropped) */
.mview.free { width: auto; }
.mview.free .screen { display: inline-block; height: var(--rail-media-height); width: auto; max-width: calc(100vw - 42px); aspect-ratio: auto; border-radius: 18px; padding: 0; }
.mview.free .screen img { display: block; height: 100%; width: 100%; object-fit: contain; }
.mview.device-art .screen { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.mview.device-art .screen img { object-fit: contain; }
.mview.desktop-shot .screen { width: min(435px, calc(100vw - 42px)); }
.mview.video-pair .screen { display: flex; width: 284px; gap: 4px; padding: 4px; background: #111813; }
.mview.video-pair video { display: block; width: calc(50% - 2px); height: 100%; min-width: 0; object-fit: cover; border-radius: 14px; }
.mview.love-video-card { width: auto; }
.mview.love-video-card .screen { width: auto; height: var(--rail-media-height); aspect-ratio: 478 / 850; padding: 4px; overflow: hidden; background: #fff7f9; border: 1px solid rgba(226, 92, 132, .6); border-radius: 8px; box-shadow: 0 0 22px rgba(226, 92, 132, .34); }
.mview.love-video-card video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.mview.landscape { width: min(500px, calc(100vw - 42px)); }
.mview.landscape .screen { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.mview.landscape .screen img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 560px) {
  .rails { --rail-media-height: 240px; }
  .mview { min-width: 114px; }
  .mview .screen { width: 114px; }
  .mview.free .screen { height: var(--rail-media-height); }
  .mview.video-pair .screen { width: 228px; }
  .mview.desktop-shot .screen { width: min(348px, calc(100vw - 42px)); }
  .mview.landscape .screen { height: auto; }
}


/* ---------- Footer (deep green block, cozy frame feel) ---------- */
.footer { position: relative; z-index: 1; background: var(--green-950); border-top: none; padding: 72px 0 32px; border-radius: 28px 28px 0 0; }
.footer, .footer p { color: #D7E8D2; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo-chip { display: inline-block; background: #fff; border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 18px; }
.footer-brand .logo-chip img { height: 38px; width: auto; }
.footer-logo { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 16px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #fff; }
.footer-logo svg { width: 34px; height: 34px; }
.footer-brand p { font-size: 0.92rem; max-width: 320px; color: #B9D2B4; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: .14em; text-transform: uppercase; color: #8FB08A; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.92rem; color: #D7E8D2; padding: 6px 0; transition: color .25s; }
.footer-col a:hover { color: #F9A658; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); font-size: 0.85rem; color: #8FB08A; }
.footer-bottom .pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-bottom .pill { font-size: 0.72rem; padding: 5px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-pill); color: #D7E8D2; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; } }

/* ---------- Reveal animations (gated by html.js — active on mobile too) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1); }

/* Tap micro-interaction (mobile, since there's no hover) */
.tapped { transform: translateY(-5px) scale(.99) !important; transition: transform .18s ease !important; }
.mview.tapped .screen { box-shadow: 0 18px 38px rgba(23,71,43,.22); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; background: #fff; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--green-700); padding: 0 28px; white-space: nowrap; }
.marquee-item::after { content: "·"; margin-left: 28px; color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Aurora background (soft light blobs) ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .3; will-change: transform; }
.blob-1 { width: 520px; height: 520px; background: radial-gradient(circle, #BFE3A8, transparent 70%); top: -120px; left: -80px; animation: drift1 26s ease-in-out infinite; }
.blob-2 { width: 460px; height: 460px; background: radial-gradient(circle, #FAD3AC, transparent 70%); top: 10%; right: -100px; animation: drift2 30s ease-in-out infinite; }
.blob-3 { width: 400px; height: 400px; background: radial-gradient(circle, #D9EFC8, transparent 70%); bottom: -120px; left: 35%; animation: drift3 24s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate(80px, 60px) scale(1.1); } }
@keyframes drift2 { 50% { transform: translate(-70px, 50px) scale(1.15); } }
@keyframes drift3 { 50% { transform: translate(40px, -60px) scale(.95); } }

/* ---------- Infinite float animations ---------- */
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes bob-r { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes sway { 0%,100% { transform: translateX(0) rotate(2deg); } 50% { transform: translateX(10px) rotate(-3deg); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes pop-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.float-1 { animation: bob 5s ease-in-out infinite; }
.float-2 { animation: bob-r 6.5s ease-in-out infinite; }
.float-3 { animation: sway 7s ease-in-out infinite; }
.spin { animation: spin-slow 24s linear infinite; }
.pulse { animation: pop-pulse 3.2s ease-in-out infinite; }

/* ---------- Device / phone frames ---------- */
.device { border-radius: 28px; border: 1px solid var(--border); background: #fff; padding: 8px; box-shadow: var(--shadow-card); overflow: hidden; }
.device img { border-radius: 20px; width: 100%; }
.phone-frame { aspect-ratio: 9/16; max-width: 340px; width: 100%; border-radius: 36px; border: 3px solid var(--green-900); background: #fff; box-shadow: 0 18px 44px rgba(23,71,43,.18); overflow: hidden; position: relative; }
.phone-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* iPhone-style screenshot frame */
.iphone {
  position: relative;
  border-radius: 30px;
  border: 3px solid var(--green-900);
  background: #fff;
  padding: 10px 7px 8px;
  box-shadow: 0 12px 28px rgba(23, 71, 43, .14);
  overflow: hidden;
}
.iphone::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 12px;
  background: var(--green-900);
  border-radius: 8px;
  z-index: 2;
}
.iphone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 18px; }

/* ---------- Generic sub-page hero ---------- */
.subhero { position: relative; padding: calc(var(--nav-h) + 80px) 0 80px; overflow: hidden; text-align: center; }
.subhero .blob { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(100px); opacity: .3; background: radial-gradient(circle, #BFE3A8, transparent 70%); top: -200px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.subhero .container { position: relative; z-index: 1; }
.subhero h1 { margin: 22px 0 18px; }
.subhero p { max-width: 640px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Step cards ---------- */
.steps { display: grid; gap: 20px; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.step { padding: 28px; }
.step .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--orange); margin-bottom: 12px; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.92rem; }
@media (max-width: 880px) { .steps-4, .steps-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps-4, .steps-3 { grid-template-columns: 1fr; } }

/* ---------- Feature checklist ---------- */
.checklist { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-soft); font-size: 0.98rem; }
.checklist li::before { content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(242,116,13,.14); color: var(--orange-600); display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; margin-top: 2px; }

/* ---------- CTA panel (text left, person right) ---------- */
.cta-panel { position: relative; text-align: left; padding: 48px 330px 48px 44px; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; justify-content: center; }
.cta-panel h2 { margin-bottom: 14px; }
.cta-panel p { max-width: 460px; margin: 0 0 28px; }
.cta-panel .btn-row.center { justify-content: flex-start; }
.cta-person { position: absolute; right: 12px; bottom: 0; height: 320px; max-height: 100%; width: auto; pointer-events: none; filter: drop-shadow(0 10px 24px rgba(23,71,43,.18)); }
@media (max-width: 700px) {
  .cta-panel { padding: 22px 150px 22px 20px; min-height: 280px; }
  .cta-panel h2 { font-size: 1.25rem; }
  .cta-panel p { font-size: .82rem; margin-bottom: 16px; }
  .cta-person { height: 76%; max-height: 250px; right: -12px; bottom: 0; }
}
@media (max-width: 420px) {
  .cta-panel { padding: 20px 128px 20px 18px; }
  .cta-person { right: -16px; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .blob { animation: none !important; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
