
/* ==========================================================================
   Kos Manager — design system v2
   Brand tokens sampled from assets/logo/KosLogo-192.png
   (purple gradient #8B45F2 → #3A14AB, check green #17A83C → #35C455)
   ========================================================================== */

:root {
  /* --- brand purple ramp --- */
  --p-50:  #F6F2FF;
  --p-100: #EDE5FF;
  --p-200: #DCCCFE;
  --p-300: #C2A6FC;
  --p-400: #A277F8;
  --p-500: #8B45F2;
  --p-600: #7226E0;
  --p-700: #5A18BC;
  --p-800: #451292;
  --p-900: #2E1560;

  /* --- brand green ramp (the logo check) --- */
  --g-50:  #EAFBEF;
  --g-100: #D0F5DB;
  --g-200: #A5EBB9;
  --g-400: #4ADE80;
  --g-500: #17A83C;
  --g-icon: #128A32;
  --g-700: #0A6B26;

  /* --- neutrals (violet-tinted) --- */
  --ink:    #1B0B3B;
  --ink-2:  #2A1257;
  --n-25:   #FBFAFF;
  --n-50:   #F7F5FD;
  --n-100:  #F1EEFA;
  --n-200:  #E6E2F3;
  --n-300:  #D2CCE6;
  --n-400:  #A49DBE;

  /* --- semantic --- */
  --bg: #FFFFFF;
  --bg-soft: #F7F5FD;
  --surface: #FFFFFF;
  --text: #1B0B3B;
  --muted: #5A5473;
  --muted-soft: #6B6488;
  --border: #E6E2F3;
  --border-strong: #D2CCE6;
  --primary: #7226E0;
  --primary-strong: #5A18BC;
  --on-primary: #FFFFFF;
  --accent: #17A83C;
  --accent-icon: #128A32;
  --accent-ink: #0A6B26;
  --accent-soft: #EAFBEF;
  --warn-soft: #FFF6E5;
  --warn-ink: #8A5A00;
  --danger-soft: #FFF0F3;
  --danger-ink: #9F1239;

  /* on dark bands */
  --on-dark: #FFFFFF;
  --on-dark-muted: #C9BEE8;
  --on-dark-label: #D9CBFF;
  --glass: rgba(255, 255, 255, 0.075);
  --glass-line: rgba(255, 255, 255, 0.16);

  /* --- gradients --- */
  --grad-brand: linear-gradient(135deg, #7226E0 0%, #4A139C 100%);
  --grad-brand-soft: linear-gradient(135deg, #8B45F2 0%, #5A18BC 100%);
  --grad-band: linear-gradient(168deg, #2E1560 0%, #1B0B3B 100%);
  --grad-check: linear-gradient(140deg, #35C455 0%, #0E8A30 100%);

  /* --- shape & depth --- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --sh-1: 0 1px 2px rgba(27, 11, 59, .06), 0 2px 8px rgba(27, 11, 59, .04);
  --sh-2: 0 2px 4px rgba(27, 11, 59, .05), 0 12px 28px rgba(27, 11, 59, .07);
  --sh-3: 0 8px 20px rgba(27, 11, 59, .08), 0 28px 60px rgba(27, 11, 59, .10);
  --sh-brand: 0 6px 16px rgba(90, 24, 188, .26), 0 16px 40px rgba(90, 24, 188, .18);

  /* --- rhythm --- */
  --gutter: 20px;
  --maxw: 1180px;
  --nav-h: 68px;

  /* --- motion --- */
  --ease: cubic-bezier(.22, .68, .36, 1);
  --t-fast: 140ms var(--ease);
  --t: 220ms var(--ease);

  --font-sans: "Plus Jakarta Sans", "Segoe UI Variable Text", "Segoe UI",
    system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --font-doc: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* ==========================================================================
   base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 26px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img, video { height: auto; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.028em;
  color: var(--text);
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary-strong); }

strong, b { font-weight: 700; }

ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin: 0 0 .5em; }
li:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

::selection { background: var(--p-200); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform var(--t);
}
.skip-link:focus-visible { transform: translateY(0); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-caption {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   reading progress (JS-enhanced, invisible without JS)
   ========================================================================== */

.read-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 100%;
  z-index: 120;
  background: var(--grad-check);
  border-radius: 0 3px 3px 0;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 90ms linear;
}

/* ==========================================================================
   buttons
   ========================================================================== */

.btn {
  --btn-bg: var(--grad-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t), background-color var(--t), color var(--t), border-color var(--t);
}

.btn-primary {
  background: var(--grad-brand);
  color: var(--on-primary);
  box-shadow: var(--sh-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(90,24,188,.32), 0 22px 52px rgba(90,24,188,.22); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface);
  color: var(--primary-strong);
  border-color: var(--border-strong);
  box-shadow: var(--sh-1);
}
.btn-secondary:hover { border-color: var(--p-400); background: var(--p-50); transform: translateY(-2px); }

.btn-quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-quiet:hover { background: var(--n-50); border-color: var(--p-300); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

/* ==========================================================================
   navigation
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0 0;
  margin-bottom: calc(-1 * (var(--nav-h) + 14px));
  background: transparent;
  border: 0;
  pointer-events: none;
}

/* --- floating pill --- */
.nav-inner {
  pointer-events: auto;
  width: calc(100% - (var(--gutter) * 2));
  max-width: 1132px;
  margin: 0 auto;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(27, 11, 59, .09);
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 1px 2px rgba(27, 11, 59, .05), 0 10px 32px rgba(27, 11, 59, .09);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  transition: background-color var(--t), box-shadow var(--t), min-height var(--t);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-inner { background: rgba(255, 255, 255, .97); }
}
.site-nav.is-scrolled .nav-inner {
  min-height: 54px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 6px rgba(27, 11, 59, .07), 0 18px 44px rgba(27, 11, 59, .14);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

/* --- the logo mark: tight-cropped app-icon art, container matches exactly --- */
.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  background: var(--p-700);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 2px 6px rgba(90, 24, 188, .24);
  transition: transform var(--t-fast), box-shadow var(--t);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.brand-mark:hover { transform: translateY(-1px) scale(1.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 6px 14px rgba(90,24,188,.32); }

.brand-name {
  display: block;
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.15;
}
.brand-name:hover { color: var(--primary-strong); }

.brand-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted-soft);
  line-height: 1.3;
}
.brand-sub a { color: inherit; text-decoration: none; }
.brand-sub a:hover { color: var(--primary-strong); }

.nav-links { display: none; align-items: center; gap: 2px; }
.nav-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-links > a:hover { color: var(--primary-strong); background: var(--p-50); }
.nav-links > a.is-here:not(.btn) { color: var(--p-800); background: var(--p-100); }
.nav-links > a.btn {
  min-height: 42px;
  padding: 9px 20px;
  margin-left: 8px;
  font-size: 14.5px;
  color: var(--on-primary);
}
.nav-links > a.btn:hover { color: var(--on-primary); background: var(--grad-brand); }

/* --- mobile menu --- */
.mobile-menu { position: relative; }
.mobile-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu > summary::marker { content: ""; }
.mobile-menu > summary:hover { background: var(--p-50); border-color: var(--p-200); }

.burger-icon { position: relative; display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--text); }
.burger-icon::before, .burger-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--t), top var(--t);
}
.burger-icon::before { top: -6px; }
.burger-icon::after { top: 6px; }
.mobile-menu[open] .burger-icon { background: transparent; }
.mobile-menu[open] .burger-icon::before { top: 0; transform: rotate(45deg); }
.mobile-menu[open] .burger-icon::after { top: 0; transform: rotate(-45deg); }

.mobile-menu-panel {
  position: absolute;
  right: -2px;
  top: calc(100% + 16px);
  z-index: 110;
  display: flex;
  flex-direction: column;
  min-width: 248px;
  padding: 10px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--sh-3);
  animation: menu-in 200ms var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

.mobile-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.mobile-menu-panel a:hover { background: var(--p-50); color: var(--primary-strong); }
.mobile-menu-panel a.is-here { background: var(--p-100); color: var(--p-800); }

/* --- clear the floating pill on every hero type --- */
.site-nav ~ main .hero,
.site-nav ~ main .article-hero,
.site-nav ~ main .legal-hero,
.site-nav ~ .hero,
.site-nav ~ .article-hero,
.site-nav ~ .legal-hero {
  padding-top: calc(clamp(36px, 4.6vw, 62px) + var(--nav-h) + 14px);
}

/* ==========================================================================
   section scaffolding
   ========================================================================== */

.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section.tight { padding: clamp(44px, 6vw, 76px) 0; }

.section-header { max-width: 760px; margin: 0 0 clamp(28px, 4vw, 48px); }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header h2 { font-size: clamp(27px, 3.4vw, 40px); margin: 14px 0 0; }
.section-header p { margin: 16px 0 0; font-size: 17.5px; color: var(--muted); line-height: 1.68; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--p-100);
  color: var(--primary-strong);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1.4;
}
.label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-check);
  flex: 0 0 6px;
}

/* --- dark band --- */
.why-band {
  background: var(--grad-band);
  color: var(--on-dark);
  overflow: hidden;
}
.why-band::before {
  content: "";
  position: absolute;
  inset: -30% 45% auto -10%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(139, 69, 242, .45), transparent 72%);
  pointer-events: none;
}
.why-band::after {
  content: "";
  position: absolute;
  inset: auto -12% -25% 50%;
  height: 60%;
  background: radial-gradient(closest-side, rgba(23, 168, 60, .22), transparent 70%);
  pointer-events: none;
}
.why-band > .container { position: relative; z-index: 1; }
.why-band h2, .why-band h3, .why-band .fact-title { color: var(--on-dark); }
.why-band .section-header p { color: var(--on-dark-muted); }
.why-band .label { background: rgba(255,255,255,.11); color: var(--on-dark-label); }

.seo-band { background: var(--bg-soft); }

/* ==========================================================================
   landing — hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(32px, 5vw, 72px) 0 clamp(48px, 6vw, 84px);
  background:
    radial-gradient(1100px 520px at 12% -6%, rgba(139, 69, 242, .20), transparent 62%),
    radial-gradient(900px 480px at 96% 8%, rgba(23, 168, 60, .13), transparent 60%),
    linear-gradient(180deg, var(--p-50) 0%, #FFFFFF 78%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(90, 24, 188, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 24, 188, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(700px 420px at 50% 0%, #000, transparent 76%);
  mask-image: radial-gradient(700px 420px at 50% 0%, #000, transparent 76%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-layout { display: grid; gap: clamp(28px, 4vw, 52px); align-items: center; }

.hero-copy-col { min-width: 0; }

.hero h1 {
  font-size: clamp(31px, 5.6vw, 57px);
  line-height: 1.08;
  letter-spacing: -.038em;
  margin: 0;
}

.hero-copy {
  margin: 20px 0 0;
  max-width: 56ch;
  font-size: clamp(16.5px, 1.4vw, 19px);
  line-height: 1.66;
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

.mobile-title-row { display: block; }

/* --- video --- */
.hero-video-card { position: relative; min-width: 0; }
.hero-video-frame {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 20px 44px rgba(46, 21, 96, .22), 0 44px 90px rgba(46, 21, 96, .16);
  aspect-ratio: 9 / 16;
  isolation: isolate;
}
.hero-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.desktop-hero-video { display: none; }
.mobile-title-video {
  width: 122px;
  flex: 0 0 122px;
  margin: 4px 0 0;
}
.mobile-title-video .hero-video-frame { border-radius: var(--r-lg); box-shadow: var(--sh-2); }

/* --- store buttons --- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px 10px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--sh-2);
  transition: transform var(--t-fast), box-shadow var(--t), background-color var(--t);
}
.store-btn:hover { transform: translateY(-2px); background: var(--ink-2); box-shadow: var(--sh-3); }
.store-icon { display: flex; color: #fff; }
.store-icon svg { width: 24px; height: 24px; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-text small { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.store-text strong { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }

/* --- mobile store + proof tiles --- */
.mobile-store-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}
.mobile-store-tile, .mobile-proof-tile {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 68px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh-1);
  text-decoration: none;
  color: var(--text);
}
.mobile-store-tile svg { width: 20px; height: 20px; margin-bottom: 4px; color: var(--primary-strong); }
.mobile-store-tile small, .mobile-proof-tile small {
  font-size: 11px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted);
}
.mobile-store-tile strong, .mobile-proof-tile strong { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.mobile-store-tile:hover { border-color: var(--p-300); background: var(--p-50); }
.mobile-proof-tile {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  background: var(--accent-soft);
  border-color: var(--g-200);
}
.mobile-proof-tile strong { font-size: 19px; color: var(--accent-ink); font-variant-numeric: tabular-nums; }

/* --- trust strip --- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}
.trust-pill {
  position: relative;
  padding: 14px 14px 14px 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.trust-pill::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 16px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px 12px no-repeat,
    var(--grad-check);
}
.trust-pill strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.015em; }
.trust-pill span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ==========================================================================
   landing — split / panels
   ========================================================================== */

.split { display: grid; gap: clamp(16px, 2.4vw, 26px); }

.panel {
  padding: clamp(24px, 3.2vw, 38px);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh-1);
}
.panel:first-child {
  background: linear-gradient(160deg, var(--p-50), #fff 62%);
  border-color: var(--p-200);
}
.panel h2 { font-size: clamp(23px, 2.8vw, 31px); margin: 14px 0 0; }
.panel h3 { font-size: clamp(19px, 2.1vw, 23px); }
.panel p { margin: 16px 0 0; color: var(--muted); line-height: 1.72; }

.check-list { list-style: none; margin: 20px 0 0; padding: 0; }
.check-list li {
  position: relative;
  margin: 0 0 13px;
  padding-left: 32px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 13px 13px no-repeat,
    var(--grad-check);
}

/* ==========================================================================
   landing — why cards (on dark band)
   ========================================================================== */

.why-grid { display: grid; gap: 16px; }

.why-card {
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--r-xl);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--t), background-color var(--t), border-color var(--t);
}
.why-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.115); border-color: rgba(255,255,255,.28); }
.why-card h3 { font-size: 19px; margin: 18px 0 0; color: var(--on-dark); letter-spacing: -.022em; }
.why-card p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.62; color: var(--on-dark-muted); }

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(139,69,242,.55), rgba(23,168,60,.4));
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
}
.why-icon svg { width: 22px; height: 22px; }

/* ==========================================================================
   landing — screenshot showcase
   ========================================================================== */

.showcase { background: var(--bg-soft); }

.shot-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(228px, 74vw);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 20px;
  margin: 0 calc(var(--gutter) * -1);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--p-300) transparent;
  overscroll-behavior-x: contain;
}
.shot-grid::-webkit-scrollbar { height: 8px; }
.shot-grid::-webkit-scrollbar-thumb { background: var(--p-300); border-radius: 4px; }
.shot-grid::-webkit-scrollbar-track { background: transparent; }
.shot-grid:focus-visible { outline: 3px solid var(--primary); outline-offset: 6px; border-radius: var(--r-md); }

.shot-card { scroll-snap-align: start; min-width: 0; }
.shot-card h3 { font-size: 17.5px; margin: 18px 0 0; letter-spacing: -.022em; }
.shot-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

.shot-frame {
  position: relative;
  padding: 9px;
  border-radius: 30px;
  background: linear-gradient(160deg, #3B1E76, #170833);
  box-shadow: 0 12px 28px rgba(46,21,96,.20), 0 28px 60px rgba(46,21,96,.16);
}
.shot-frame::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,.28);
  z-index: 2;
}
.shot-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  background: #fff;
}

.shot-note {
  margin: 20px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 78ch;
}

/* ==========================================================================
   landing — feature grid
   ========================================================================== */

.feature-grid { display: grid; gap: 16px; }

/* ==========================================================================
   landing — workflow stepper
   ========================================================================== */

.workflow {
  counter-reset: kmstep;
  display: grid;
  gap: 14px;
  position: relative;
}

.workflow-step {
  position: relative;
  padding: 22px 22px 22px 68px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh-1);
}
.workflow-step::before {
  counter-increment: kmstep;
  content: counter(kmstep);
  position: absolute;
  left: 20px;
  top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 10px rgba(90,24,188,.28);
}
.workflow-step h3 { font-size: 18px; letter-spacing: -.022em; }
.workflow-step p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ==========================================================================
   landing — audience
   ========================================================================== */

.audience-grid { display: grid; gap: 16px; }

.audience-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.8vw, 32px);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: linear-gradient(170deg, var(--n-25), #fff 55%);
  box-shadow: var(--sh-1);
  transition: transform var(--t), box-shadow var(--t);
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.audience-card h3 { font-size: 20px; letter-spacing: -.024em; }
.audience-card p { margin: 12px 0 20px; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.audience-card strong {
  margin-top: auto;
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}

/* ==========================================================================
   landing — proof / testimonials (on dark band)
   ========================================================================== */

.proof-grid { display: grid; gap: 16px; }

.proof-card {
  margin: 0;
  padding: clamp(22px, 2.6vw, 28px);
  border-radius: var(--r-xl);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  transition: transform var(--t), background-color var(--t);
}
.proof-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.115); }

.stars { display: flex; align-items: center; gap: 3px; color: var(--g-400); }
.stars svg { width: 17px; height: 17px; }
.stars b {
  margin-left: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.proof-card blockquote {
  margin: 16px 0 0;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--on-dark);
  letter-spacing: -.012em;
}
.proof-card figcaption {
  margin: 18px 0 0;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--glass-line);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--on-dark-muted);
}
.proof-card figcaption strong { color: var(--on-dark); font-size: 15px; }

.fact-title { margin: clamp(36px, 4.4vw, 56px) 0 18px; font-size: clamp(20px, 2.3vw, 25px); }

.fact-strip { display: grid; gap: 12px; }
.fact-tile {
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--glass-line);
}
.fact-tile strong { display: block; font-size: 15.5px; font-weight: 700; color: var(--on-dark); letter-spacing: -.018em; }
.fact-tile span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--on-dark-muted); }

/* ==========================================================================
   landing — pricing
   ========================================================================== */

.price-grid { display: grid; gap: 18px; align-items: start; }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 34px);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh-1);
}
.price-name { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.price-amount b {
  font-size: clamp(32px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.price-amount span { font-size: 14px; color: var(--muted); }
.price-note { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.price-card .check-list { margin: 20px 0 0; }
.price-card .check-list li { font-size: 15px; }
.price-cta { margin-top: auto; padding-top: 26px; }
.price-cta .btn { width: 100%; }

.price-flag {
  align-self: flex-start;
  margin: 0 0 14px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--g-100);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.price-card.is-featured {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-brand);
}
.price-card.is-featured .price-name { color: var(--on-dark-label); }
.price-card.is-featured .price-amount b { color: #fff; }
.price-card.is-featured .price-amount span,
.price-card.is-featured .price-note { color: #E9DDFF; }
.price-card.is-featured h3 { color: #fff; }
.price-card.is-featured .check-list li { color: #E9DDFF; }
.price-card.is-featured .check-list li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A18BC' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 13px 13px no-repeat,
    #fff;
}
.price-card.is-featured .btn-primary {
  background: #fff;
  color: var(--primary-strong);
  box-shadow: 0 6px 16px rgba(23,7,53,.24);
}
.price-card.is-featured .btn-primary:hover { background: var(--p-50); }

.price-foot {
  margin: 26px 0 0;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--n-50);
  border: 1px solid var(--border);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ==========================================================================
   landing — seo band cards
   ========================================================================== */

.article-grid { display: grid; gap: 16px; }
.article-grid .article-card {
  padding: clamp(24px, 2.8vw, 32px);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh-1);
}
.article-grid .article-card h3 { font-size: 19px; letter-spacing: -.024em; }
.article-grid .article-card p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.68; color: var(--muted); }

/* ==========================================================================
   landing — download panel
   ========================================================================== */

.download-panel {
  position: relative;
  display: grid;
  gap: 26px;
  padding: clamp(30px, 4vw, 56px);
  border-radius: var(--r-2xl);
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--sh-brand);
  overflow: hidden;
}
.download-panel::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(74, 222, 128, .30), transparent 70%);
  pointer-events: none;
}
.download-panel > * { position: relative; z-index: 1; }
.download-panel h2 { color: #fff; font-size: clamp(25px, 3.2vw, 37px); }
.download-panel p { margin: 16px 0 0; font-size: 17px; line-height: 1.65; color: #E9DDFF; max-width: 58ch; }
.download-panel .store-buttons { margin: 0; }
.download-panel .store-btn {
  background: #fff;
  color: var(--ink);
  border-color: transparent;
}
.download-panel .store-btn:hover { background: var(--p-50); }
.download-panel .store-icon { color: var(--ink); }
.download-panel .store-text small { color: var(--muted); }

/* ==========================================================================
   FAQ accordions
   ========================================================================== */

.faq-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }

.faq-card, .faq-section .faq-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.faq-card + .faq-card { margin-top: 0; }
.faq-section .faq-card + .faq-card { margin-top: 12px; }

.faq-card > summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 17px 60px 17px 22px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.018em;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq-card > summary::-webkit-details-marker { display: none; }
.faq-card > summary::marker { content: ""; }
.faq-card > summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 9px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A18BC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 15px 15px no-repeat,
    var(--p-100);
  transition: transform var(--t), background-color var(--t);
}
.faq-card > summary:hover { background: var(--n-25); }
.faq-card[open] { border-color: var(--p-300); box-shadow: var(--sh-2); }
.faq-card[open] > summary::after { transform: rotate(180deg); }
.faq-card > p, .faq-card > div {
  margin: 0;
  padding: 0 22px 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

/* ==========================================================================
   footer
   ========================================================================== */

.footer {
  position: relative;
  padding: clamp(48px, 6vw, 76px) 0 0;
  background: var(--grad-band);
  color: var(--on-dark-muted);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: -50% 55% auto -15%;
  height: 130%;
  background: radial-gradient(closest-side, rgba(139,69,242,.34), transparent 70%);
  pointer-events: none;
}
.footer::after {
  content: "";
  position: absolute;
  inset: auto -15% -55% 60%;
  height: 110%;
  background: radial-gradient(closest-side, rgba(23,168,60,.14), transparent 70%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px 28px;
  grid-template-columns: 1fr;
}

.footer-brand { max-width: 340px; }
.footer-brand-row { display: flex; align-items: center; gap: 11px; margin: 0 0 14px; }
.footer-brand-row img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 4px 12px rgba(0,0,0,.35);
}
.footer-brand-row strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--on-dark);
}
.footer-tagline { font-size: 14.5px; line-height: 1.65; margin: 0 0 20px; }

.footer-stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.footer-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 18px 8px 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  color: var(--on-dark);
  text-decoration: none;
  transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.footer-store:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.32); transform: translateY(-1px); }
.footer-store svg { width: 19px; height: 19px; flex: 0 0 19px; }
.footer-store span { display: flex; flex-direction: column; line-height: 1.25; }
.footer-store small { font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); }
.footer-store strong { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; color: var(--on-dark); }

.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.social-links > a:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.social-links svg { width: 15px; height: 15px; flex: 0 0 15px; }

.footer-col-title {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--on-dark-label);
}
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.footer-list li { margin: 0; }
.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: clamp(36px, 5vw, 56px);
  padding: 20px 0 22px;
  border-top: 1px solid var(--glass-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13.5px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .footer-grid { grid-template-columns: 1.45fr .95fr 1.05fr .95fr; gap: 40px 32px; }
  .footer-brand { grid-column: auto; max-width: 320px; }
  .footer-col.is-split { display: grid; grid-template-rows: min-content 1fr; }
}

/* ==========================================================================
   sticky app bar + floating download
   ========================================================================== */

.app-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(23, 8, 51, .93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.12);
  transform: translateY(0);
  transition: transform var(--t), opacity var(--t);
}
