/* ============================================================
   PDF Bank Statement Converter — pdfbankstatementconverter.app
   Editorial × Native Apple · dark ink + cream · teal/coral
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap");

/* ---------- Tokens ---------- */
:root {
  /* Ink (dark surfaces) */
  --ink-900: #051A1B;
  --ink-800: #07252A;
  --ink-700: #0A3237;
  --ink-600: #0F4147;
  --ink-line: rgba(255, 255, 255, 0.08);
  --ink-line-strong: rgba(255, 255, 255, 0.14);

  /* Cream / paper (light surfaces) */
  --cream: #F5F1E8;
  --cream-warm: #EDE6D6;
  --cream-soft: #FBF8F1;
  --paper: #FFFFFF;
  --paper-line: rgba(5, 26, 27, 0.08);
  --paper-line-strong: rgba(5, 26, 27, 0.14);

  /* Text */
  --text-on-dark: rgba(255, 255, 255, 0.94);
  --text-on-dark-2: rgba(255, 255, 255, 0.68);
  --text-on-dark-3: rgba(255, 255, 255, 0.45);
  --text-on-light: #061D1F;
  --text-on-light-2: #315457;
  --text-on-light-3: #6A8384;

  /* Accent — teal (primary, from app icon) → coral (conversion/PDF) */
  --teal: #14B5B0;
  --teal-deep: #0D8A8A;
  --teal-soft: #4FD6CE;
  --teal-ink: #0A6C6C;
  --coral: #FF6B4A;
  --coral-soft: #FF8F6E;
  --amber: #F6A24B;
  --green: #2BA84A;
  --green-soft: #4FC972;

  --grad-accent: linear-gradient(135deg, #14B5B0 0%, #1ED2C4 45%, #FF6B4A 100%);
  --grad-accent-alt: linear-gradient(135deg, #0D8A8A 0%, #14B5B0 50%, #FF8F6E 100%);
  --grad-accent-soft: linear-gradient(135deg, rgba(20, 181, 176, 0.18) 0%, rgba(255, 107, 74, 0.14) 100%);
  --grad-teal-only: linear-gradient(135deg, #14B5B0 0%, #0D8A8A 100%);

  /* Radii / shadow */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;

  --shadow-1: 0 1px 2px rgba(5, 26, 27, 0.06), 0 2px 6px rgba(5, 26, 27, 0.04);
  --shadow-2: 0 2px 6px rgba(5, 26, 27, 0.06), 0 12px 30px rgba(5, 26, 27, 0.08);
  --shadow-3: 0 12px 40px rgba(5, 26, 27, 0.14), 0 2px 10px rgba(5, 26, 27, 0.08);
  --shadow-glow: 0 30px 100px -20px rgba(20, 181, 176, 0.55), 0 20px 60px -30px rgba(255, 107, 74, 0.3);

  /* Type */
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino", Georgia, serif;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-on-light);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; }

/* Grain texture — used on dark surfaces */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='300' height='300' filter='url(%23n)' opacity='0.55'/></svg>");
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

.narrow { max-width: 860px; }

/* ---------- Type utilities ---------- */
.serif { font-family: var(--font-serif); font-weight: 400; }
.mono  { font-family: var(--font-mono); }
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-on-light-3);
}
.kicker--dark { color: var(--text-on-dark-3); }
.kicker-accent { color: var(--teal-deep); }

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.display em {
  font-style: italic;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.site-header > .container {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 16px 10px 20px;
  background: rgba(5, 26, 27, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  max-width: 980px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding-right: 6px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.brand .tld { color: rgba(255, 255, 255, 0.5); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.nav-cta {
  color: var(--ink-900) !important;
  background: #fff;
  padding: 8px 16px !important;
  border-radius: 999px;
  font-weight: 500;
  margin-left: 6px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;
  transition: transform 0.15s ease, background 0.15s;
}

.nav-cta:hover { background: #fff !important; transform: translateY(-0.5px); }

@media (max-width: 820px) {
  .site-header > .container { padding: 8px 10px 8px 16px; }
  .nav a:not(.nav-cta) { display: none; }
}

/* ============================================================
   HERO (dark, editorial)
   ============================================================ */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--text-on-dark);
  padding: 180px 0 120px;
  overflow: hidden;
  isolation: isolate;
}

.hero-aura {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 900px;
  background:
    radial-gradient(620px 320px at 28% 18%, rgba(20, 181, 176, 0.55), transparent 60%),
    radial-gradient(520px 280px at 78% 30%, rgba(255, 107, 74, 0.42), transparent 60%),
    radial-gradient(700px 360px at 50% 60%, rgba(13, 138, 138, 0.35), transparent 60%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 45%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 45%, #000 40%, transparent 85%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 72px;
  align-items: center;
  text-align: left;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 480px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(20, 181, 176, 0.45), transparent 55%),
    radial-gradient(circle at 70% 35%, rgba(255, 107, 74, 0.35), transparent 55%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 0;
  pointer-events: none;
  animation: spin-slow 60s linear infinite;
}

@keyframes spin-slow { to { transform: rotate(360deg); } }

.hero-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}

.hero-flow .tag {
  padding: 4px 10px;
  border: 1px solid var(--ink-line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-2);
  background: rgba(255, 255, 255, 0.03);
}

.hero-flow .arrow {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
  font-weight: 700;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--ink-line-strong);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-on-dark-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 28px;
}

.hero-eyebrow .dot {
  width: 7px; height: 7px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

.hero-icon {
  position: relative;
  z-index: 1;
  width: 260px;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(20, 181, 176, 0.45)) drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  border-radius: 56px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 7.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: #fff;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(110deg, #7FF3EC 0%, #FF9B74 65%, #FFC88A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.hero-sub {
  font-size: clamp(16.5px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-on-dark-2);
  max-width: 540px;
  margin: 0 0 36px;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-text { align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual { min-height: 300px; }
  .hero-visual::before { width: 340px; height: 340px; }
  .hero-visual::after { width: 240px; height: 240px; }
  .hero-icon { width: 170px; }
  .hero-flow { font-size: 14px; }
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--ink-900);
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: relative;
}

.btn-appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-appstore svg { width: 22px; height: 22px; }

.btn-appstore .lines { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn-appstore .lines .small {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-light-3);
  margin-bottom: 1px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ink-line);
  color: var(--text-on-dark);
  border-radius: 14px;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--ink-line-strong); }
.btn-ghost .arr { transition: transform 0.2s; }
.btn-ghost:hover .arr { transform: translateX(3px); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 28px;
  justify-content: flex-start;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-3);
}

@media (max-width: 860px) {
  .hero-meta { justify-content: center; }
}

.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--teal-soft); }

/* Dark → cream transition & device screenshot */
.hero-device {
  position: relative;
  z-index: 3;
  margin-top: 96px;
  padding: 0 28px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.device-chrome {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #051A1B;
  border: 1px solid var(--ink-line-strong);
  box-shadow:
    0 80px 120px -30px rgba(20, 181, 176, 0.45),
    0 40px 80px -20px rgba(255, 107, 74, 0.25),
    0 2px 0 rgba(255, 255, 255, 0.06) inset,
    0 -1px 0 rgba(0, 0, 0, 0.4) inset;
}

.device-chrome img { width: 100%; display: block; }

.device-ring {
  position: absolute;
  inset: -1px;
  border-radius: var(--r-xl);
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(20, 181, 176, 0.5), rgba(255, 107, 74, 0.35)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  opacity: 0.9;
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section {
  padding: 120px 0;
  position: relative;
}

.section--dark {
  background: var(--ink-900);
  color: var(--text-on-dark);
}

.section--cream { background: var(--cream); }
.section--cream-warm { background: var(--cream-warm); }
.section--paper { background: var(--paper); }

.section-head {
  max-width: 760px;
  margin: 0 auto 72px;
  text-align: center;
}

.section-head .kicker { margin-bottom: 18px; display: inline-block; }

.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}

.section-head h2 em {
  font-style: italic;
  color: var(--teal-deep);
}

.section--dark .section-head h2 em {
  background: linear-gradient(110deg, #7FF3EC, #FF9B74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-on-light-2);
  margin: 0;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section--dark .section-head p { color: var(--text-on-dark-2); }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--ink-900);
  border-top: 1px solid var(--ink-line);
  color: var(--text-on-dark-3);
  padding: 36px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
}

.trust-strip .row {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.trust-strip .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-on-dark-3);
  opacity: 0.5;
}

@media (max-width: 640px) {
  .trust-strip .row { gap: 20px; }
}

/* ============================================================
   FEATURES GRID (uniform 3×3)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.feat {
  position: relative;
  padding: 40px 36px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.25s ease;
  min-height: 240px;
}

.feat:hover { background: var(--cream-soft); }

.feat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-accent-soft);
  color: var(--teal-deep);
  border: 1px solid rgba(20, 181, 176, 0.25);
  flex-shrink: 0;
}

.feat-icon svg { width: 22px; height: 22px; }

.feat h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-on-light);
}

.feat p {
  margin: 0;
  color: var(--text-on-light-2);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .feat { min-height: auto; padding: 32px 28px; }
}

/* ============================================================
   PLATFORM SPLIT (macOS + iOS side-by-side)
   ============================================================ */
.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.platform-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-xl);
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.platform-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 220px at 80% -10%, rgba(20, 181, 176, 0.08), transparent 60%);
  pointer-events: none;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 181, 176, 0.4);
  box-shadow: var(--shadow-2);
}

.platform-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--paper-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-light-2);
}

.platform-badge svg { width: 12px; height: 12px; }

.platform-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 4px 0 0;
}

.platform-card h3 em {
  font-style: italic;
  color: var(--teal-deep);
}

.platform-card p {
  font-size: 16px;
  color: var(--text-on-light-2);
  line-height: 1.6;
  margin: 0;
}

.platform-card ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 12px;
  display: grid;
  gap: 10px;
}

.platform-card ul li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--text-on-light-2);
  line-height: 1.5;
}

.platform-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad-teal-only);
  box-shadow: inset 0 0 0 4px var(--paper);
}

.platform-shot {
  margin: 8px -36px -36px;
  padding: 0;
  background: linear-gradient(180deg, var(--cream-soft), var(--cream));
  border-top: 1px solid var(--paper-line);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.platform-shot img {
  width: 94%;
  max-width: 460px;
  transform: translateY(16%);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.platform-card:hover .platform-shot img {
  transform: translateY(12%) scale(1.01);
}

.platform-shot.ios img {
  width: 52%;
  max-width: 240px;
  transform: translateY(8%);
  filter: drop-shadow(0 20px 40px rgba(5, 26, 27, 0.25));
}

.platform-card .store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--ink-900);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  align-self: flex-start;
  transition: transform 0.2s, background 0.2s;
}

.platform-card .store-btn svg { width: 18px; height: 18px; }

.platform-card .store-btn:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .platforms { grid-template-columns: 1fr; }
}

/* ============================================================
   CAROUSEL
   ============================================================ */
.carousel {
  position: relative;
  outline: none;
}

.carousel-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 12px 0 8px;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 88%;
  max-width: 980px;
  scroll-snap-align: center;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.carousel-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink-700);
  border: 1px solid var(--paper-line);
  box-shadow: var(--shadow-3);
}

.carousel-frame img { width: 100%; display: block; }

.carousel-slide figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  row-gap: 4px;
  align-items: baseline;
  padding: 0 8px;
}

.carousel-slide .slide-num {
  grid-row: 1 / 3;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  align-self: start;
}

.carousel-slide .slide-title {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text-on-light);
}

.carousel-slide .slide-desc {
  font-size: 15px;
  color: var(--text-on-light-2);
  line-height: 1.55;
  max-width: 640px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--paper-line-strong);
  background: var(--paper);
  color: var(--text-on-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, border-color 0.2s, color 0.2s;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  border-color: var(--teal-deep);
  color: var(--teal-deep);
}

.carousel-btn svg { width: 20px; height: 20px; }

.carousel-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--paper-line-strong);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, width 0.25s;
}

.carousel-dot:hover { background: var(--text-on-light-3); }

.carousel-dot.active {
  background: var(--teal-deep);
  width: 24px;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .carousel-slide { flex: 0 0 92%; }
  .carousel-slide .slide-num { font-size: 34px; }
}

/* ============================================================
   HOW IT WORKS — editorial stepper
   ============================================================ */
.flow {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.flow-step {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--paper-line);
  align-items: flex-start;
}

.flow-step:last-child { border-bottom: 1px solid var(--paper-line); }

.flow-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 96px;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.flow-body h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.flow-body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-on-light-2);
  margin: 0;
  max-width: 560px;
}

@media (max-width: 640px) {
  .flow-step { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; }
  .flow-num { font-size: 64px; }
}

/* ============================================================
   USE CASES (dark)
   ============================================================ */
.use-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.use-card {
  padding: 36px 32px 40px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ink-line);
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.use-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--ink-line-strong);
}

.use-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-on-dark-3);
  margin-bottom: 24px;
}

.use-card .tag::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--grad-accent);
  border-radius: 50%;
}

.use-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: #fff;
}

.use-card h3 em { font-style: italic; color: #FFB58B; }

.use-card p {
  color: var(--text-on-dark-2);
  line-height: 1.6;
  margin: 0;
  font-size: 15.5px;
}

@media (max-width: 860px) { .use-cases { grid-template-columns: 1fr; } }

/* ============================================================
   FORMAT SUPPORT GRID
   ============================================================ */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
}

.format {
  padding: 28px 20px;
  border-right: 1px solid var(--paper-line);
  text-align: center;
  transition: background 0.2s;
}

.format:hover { background: var(--cream-soft); }
.format:last-child { border-right: none; }

.format .fmt-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--teal-deep);
  margin-bottom: 4px;
  display: block;
}

.format .fmt-desc {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-light-3);
}

@media (max-width: 820px) {
  .formats-grid { grid-template-columns: repeat(3, 1fr); }
  .format:nth-child(3n) { border-right: none; }
  .format:nth-child(-n+3) { border-bottom: 1px solid var(--paper-line); }
}

@media (max-width: 480px) {
  .formats-grid { grid-template-columns: repeat(2, 1fr); }
  .format { border-right: 1px solid var(--paper-line) !important; border-bottom: 1px solid var(--paper-line); }
  .format:nth-child(2n) { border-right: none !important; }
}

/* ============================================================
   PRIVACY STATEMENT
   ============================================================ */
.privacy-statement {
  position: relative;
  padding: 140px 28px;
  text-align: center;
  background: var(--ink-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.privacy-statement::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(700px 400px at 30% 20%, rgba(20, 181, 176, 0.45), transparent 60%),
    radial-gradient(600px 360px at 70% 90%, rgba(255, 107, 74, 0.3), transparent 60%);
  filter: blur(4px);
  z-index: -1;
}

.privacy-statement h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 880px;
  margin: 32px auto 42px;
}

.privacy-statement h2 em {
  font-style: italic;
  background: linear-gradient(110deg, #7FF3EC, #FFB58B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.privacy-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 56px auto 0;
  text-align: left;
}

.privacy-points .pt {
  padding: 20px 20px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-md);
}

.privacy-points .pt .head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7FF3EC;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}

.privacy-points .pt strong {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 4px;
}

.privacy-points .pt span {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-on-dark-2);
}

@media (max-width: 820px) { .privacy-points { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .privacy-points { grid-template-columns: 1fr; } }

/* ============================================================
   RESOURCES (guides / comparisons)
   ============================================================ */
.resources {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.res {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  min-height: 280px;
  justify-content: space-between;
}

.res:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 181, 176, 0.4);
  box-shadow: var(--shadow-2);
}

.res .label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 16px;
}

.res h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: 90%;
}

.res p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-on-light-2);
  margin: 0 0 28px;
}

.res-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-light);
}

.res-arrow::after {
  content: "→";
  font-family: var(--font-sans);
  font-size: 16px;
  transition: transform 0.2s;
}

.res:hover .res-arrow::after { transform: translateX(4px); }

.res-soon {
  background: transparent;
  border: 1px dashed var(--paper-line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-on-light-3);
  font-size: 14px;
}

@media (max-width: 860px) { .resources { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--paper-line);
}

.faq details {
  border-bottom: 1px solid var(--paper-line);
  padding: 22px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text-on-light);
  transition: color 0.2s;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary:hover { color: var(--teal-deep); }

.faq summary .toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-on-light);
  transition: transform 0.3s, background 0.3s, color 0.3s;
}

.faq details[open] .toggle { transform: rotate(45deg); background: var(--teal-deep); color: #fff; }

.faq-body {
  padding: 18px 52px 4px 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-on-light-2);
}

.faq-body p { margin: 0; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final {
  position: relative;
  background: var(--ink-900);
  color: #fff;
  padding: 140px 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.final::before {
  content: "";
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(700px 400px at 50% 30%, rgba(20, 181, 176, 0.5), transparent 60%),
    radial-gradient(600px 320px at 50% 120%, rgba(255, 107, 74, 0.4), transparent 60%);
  z-index: -1;
  filter: blur(4px);
}

.final h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.final h2 em {
  font-style: italic;
  background: linear-gradient(110deg, #7FF3EC, #FFB58B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.final p {
  font-size: 19px;
  color: var(--text-on-dark-2);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.5;
}

.final .cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #041516;
  color: rgba(255, 255, 255, 0.55);
  padding: 72px 0 36px;
  font-size: 14px;
  border-top: 1px solid var(--ink-line);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--ink-line);
}

.footer-col { min-width: 0; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
}

.footer-brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer-brand .tld { color: rgba(255, 255, 255, 0.45); }

.footer-tag {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  max-width: 300px;
  font-style: italic;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 16px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
  font-size: 14px;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.footer-bottom a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand-col { grid-column: 1 / -1; }
}

/* ============================================================
   SUB-PAGE HEADER (guides, compare, articles)
   ============================================================ */
.page-head {
  padding: 180px 0 80px;
  background: var(--ink-900);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(500px 280px at 30% 20%, rgba(20, 181, 176, 0.4), transparent 60%),
    radial-gradient(450px 260px at 75% 30%, rgba(255, 107, 74, 0.3), transparent 60%);
  filter: blur(4px);
  z-index: -1;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark-3);
  margin-bottom: 28px;
  transition: color 0.2s;
}

.page-back:hover { color: #fff; }
.page-back::before { content: "←"; font-family: var(--font-sans); }

.page-head h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: #fff;
}

.page-head h1 em {
  font-style: italic;
  background: linear-gradient(110deg, #7FF3EC, #FFB58B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-head p {
  font-size: 19px;
  color: var(--text-on-dark-2);
  max-width: 640px;
  margin: 0 auto;
  font-weight: 300;
}

/* ============================================================
   PROSE (articles)
   ============================================================ */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 28px;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--text-on-light);
}

.prose > .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-light-3);
  margin: 0 0 40px;
}

.prose h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 56px 0 20px;
}

.prose h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 40px 0 14px;
}

.prose p { margin: 0 0 22px; color: var(--text-on-light-2); }
.prose ul { padding-left: 24px; margin: 0 0 22px; }
.prose ul li { margin-bottom: 10px; color: var(--text-on-light-2); }
.prose a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--coral); }
.prose strong { color: var(--text-on-light); font-weight: 600; }
.prose code {
  font-family: var(--font-mono);
  font-size: 14.5px;
  background: var(--cream);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--paper-line);
}

.prose blockquote {
  border-left: 2px solid var(--teal-deep);
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--text-on-light);
}

/* ============================================================
   COMPARE TABLE (comparison pages)
   ============================================================ */
.cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 32px 0;
  font-size: 14.5px;
}

.cmp-table th {
  background: var(--ink-900);
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cmp-table td {
  padding: 14px 18px;
  border-top: 1px solid var(--paper-line);
  vertical-align: top;
  line-height: 1.5;
}

.cmp-table tr.pick { background: rgba(20, 181, 176, 0.06); }
.cmp-table tr.pick td { font-weight: 500; }
.cmp-table .badge {
  display: inline-block;
  background: var(--teal-deep);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 8px;
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  padding: 32px;
  margin: 0 0 20px;
}

.product-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.product-card .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-light-3);
  margin: 0 0 18px;
}

.product-card .meta a { color: var(--teal-deep); text-transform: none; letter-spacing: 0; font-family: var(--font-sans); font-size: 13px; }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 20px;
}

.pros-cons h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--text-on-light-3);
}

.pros-cons ul { list-style: none; padding: 0; margin: 0; }

.pros-cons li {
  font-size: 15px;
  line-height: 1.55;
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text-on-light);
}

.pros li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--green);
  font-weight: 700;
}

.cons li::before {
  content: "✕";
  position: absolute; left: 0;
  color: var(--coral);
  font-weight: 700;
}

@media (max-width: 560px) { .pros-cons { grid-template-columns: 1fr; gap: 20px; } }

/* ============================================================
   STAGGER ANIMATIONS (page load)
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text > *,
.hero-visual {
  opacity: 0;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-text > *:nth-child(1) { animation-delay: 0.05s; }
.hero-text > *:nth-child(2) { animation-delay: 0.18s; }
.hero-text > *:nth-child(3) { animation-delay: 0.3s; }
.hero-text > *:nth-child(4) { animation-delay: 0.42s; }
.hero-text > *:nth-child(5) { animation-delay: 0.54s; }
.hero-visual { animation-delay: 0.3s; }

.hero-device {
  opacity: 0;
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.7s forwards;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
