/* =========================================================================
   Filemorph site — shared stylesheet
   ========================================================================= */

/* ---- Tokens ----------------------------------------------------------- */
:root {
  --bg: #F8FAFC;
  --bg-soft: #F1F5FD;
  --bg-elev: #FFFFFF;
  --fg: #0F172A;
  --fg-soft: #475569;
  --fg-muted: #64748B;
  --border: #E4ECFC;
  --border-strong: #CFDDF7;

  --primary: #2563EB;
  --primary-600: #1D4FD8;
  --primary-tint: rgba(37, 99, 235, 0.10);
  --accent: #D97706;
  --accent-tint: rgba(217, 119, 6, 0.12);
  --success: #10B981;

  --grad-hero: radial-gradient(1200px 800px at 80% -10%, rgba(37,99,235,0.18), transparent 60%),
               radial-gradient(900px 600px at 0% 20%, rgba(217,119,6,0.10), transparent 60%);
  --grad-brand: linear-gradient(120deg, var(--primary), var(--accent) 80%);

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 8px 24px rgba(15,23,42,0.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,0.14);
  --shadow-glow: 0 30px 80px rgba(37,99,235,0.25);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container: 1180px;
  --container-narrow: 920px;
  --pad: clamp(20px, 4vw, 40px);

  --t-fast: 160ms ease;
  --t: 240ms cubic-bezier(.4,0,.2,1);
  --t-slow: 480ms cubic-bezier(.4,0,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220;
    --bg-soft: #111A2E;
    --bg-elev: #131D34;
    --fg: #F8FAFC;
    --fg-soft: #CBD5E1;
    --fg-muted: #94A3B8;
    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.16);
    --primary: #60A5FA;
    --primary-600: #3B82F6;
    --primary-tint: rgba(96,165,250,0.16);
    --accent: #FBBF24;
    --accent-tint: rgba(251,191,36,0.16);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);
    --shadow-glow: 0 30px 80px rgba(96,165,250,0.25);
  }
}

/* ---- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--primary-tint); color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---- Layout primitives ------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.container--narrow { max-width: var(--container-narrow); }
section.s { padding: clamp(72px, 10vw, 120px) 0; }
.s--soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 18px;
}
.s-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.s-head h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.1; letter-spacing: -0.025em;
  font-weight: 800; margin: 0 0 16px;
}
.s-head p { color: var(--fg-soft); font-size: clamp(16px, 1.4vw, 19px); margin: 0; }

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

/* ---- Nav -------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-icon { width: 32px; height: 32px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a { color: var(--fg-soft); font-weight: 500; font-size: 15px; transition: color var(--t-fast); }
.nav-links > a:hover { color: var(--fg); }

/* Dropdown */
.nav-drop { position: relative; }
.nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0;
  color: var(--fg-soft); font-weight: 500; font-size: 15px;
  transition: color var(--t-fast);
}
.nav-drop > button:hover { color: var(--fg); }
.nav-drop > button svg { width: 14px; height: 14px; transition: transform var(--t); }
.nav-drop:hover > button svg, .nav-drop:focus-within > button svg { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 280px;
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  color: var(--fg-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-drop-menu a:hover { background: var(--primary-tint); color: var(--primary); }
.nav-drop-menu a .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); opacity: 0.6;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  background: var(--fg); color: var(--bg);
  border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: transform var(--t), box-shadow var(--t);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

@media (max-width: 880px) {
  .nav-links > a:not(.nav-cta) { display: none; }
  .nav-drop { display: none; }
}

/* ---- Buttons ---------------------------------------------------------- */
.btn-app-store {
  display: inline-flex; align-items: center; gap: 14px;
  height: 60px; padding: 0 24px;
  background: var(--fg); color: var(--bg);
  border-radius: 16px;
  transition: transform var(--t), box-shadow var(--t);
  box-shadow: var(--shadow-md);
  font-family: inherit;
}
.btn-app-store:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-app-store svg { width: 28px; height: 28px; }
.btn-app-store .lab { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-app-store .lab small { font-size: 11px; font-weight: 500; opacity: 0.7; }
.btn-app-store .lab span { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  height: 60px; padding: 0 22px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  font-weight: 600; font-size: 15px; color: var(--fg-soft);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(8px);
  transition: background var(--t), color var(--t), transform var(--t);
}
.btn-ghost:hover { color: var(--fg); transform: translateY(-2px); background: var(--bg); }

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; padding: 80px 0 60px; background: var(--grad-hero); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(800px 500px at 50% 30%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(800px 500px at 50% 30%, black, transparent 80%);
  opacity: 0.4;
}
.hero-inner { position: relative; display: grid; gap: 56px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 64px; } }

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero p.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--fg-soft);
  max-width: 56ch;
  margin: 0 0 32px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta { display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap; color: var(--fg-muted); font-size: 14px; }
.hero-meta div { display: flex; align-items: center; gap: 8px; }
.check { width: 16px; height: 16px; color: var(--primary); }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--fg-soft);
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
}

/* Device mockup */
.device-wrap { position: relative; display: flex; justify-content: center; align-items: center; padding: 20px; }
.device {
  position: relative;
  width: 100%; max-width: 360px;
  aspect-ratio: 9 / 19.5;
  background: var(--fg);
  border-radius: 48px;
  padding: 14px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transform: rotate(-3deg);
  transition: transform var(--t-slow);
}
.device:hover { transform: rotate(-1deg) translateY(-6px); }
.device::after {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px; background: #000; border-radius: 999px;
  z-index: 2;
}
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.device-glow {
  position: absolute; inset: -40px; border-radius: 100px;
  background: radial-gradient(closest-side, rgba(37,99,235,0.35), transparent 70%);
  filter: blur(40px); z-index: -1;
}
@media (max-width: 600px) { .device { transform: rotate(-2deg); max-width: 280px; } }

/* ---- Stats strip ------------------------------------------------------ */
.stats { padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat-num {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800; letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-lab { font-size: 13px; color: var(--fg-muted); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }

/* ---- Privacy card ----------------------------------------------------- */
.privacy-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.privacy-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 400px at 0% 0%, rgba(255,255,255,0.18), transparent 60%),
              radial-gradient(500px 400px at 100% 100%, rgba(217,119,6,0.30), transparent 60%);
  pointer-events: none;
}
.privacy-card > * { position: relative; }
.privacy-card .eyebrow { background: rgba(255,255,255,0.16); color: white; }
.privacy-card h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 20px; letter-spacing: -0.025em; line-height: 1.1; }
.privacy-card p { font-size: clamp(16px, 1.4vw, 18px); opacity: 0.92; max-width: 60ch; margin: 0 0 40px; }
.privacy-points {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.pp {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 22px;
  backdrop-filter: blur(12px);
  transition: transform var(--t), background var(--t);
}
.pp:hover { transform: translateY(-4px); background: rgba(255,255,255,0.16); }
.pp svg { width: 28px; height: 28px; margin-bottom: 12px; opacity: 0.9; }
.pp h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.pp p { font-size: 14px; margin: 0; opacity: 0.85; line-height: 1.5; }

/* ---- Category cards (landing "What you can do") ----------------------- */
.cats {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.cat-card {
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative; overflow: hidden;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.cat-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: var(--primary-tint); color: var(--primary);
  border-radius: 14px;
}
.cat-icon.amber { background: var(--accent-tint); color: var(--accent); }
.cat-icon svg { width: 26px; height: 26px; }
.cat-count {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--fg-muted);
  padding: 4px 10px;
  background: var(--bg-soft);
  border-radius: 999px;
}
.cat-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.cat-card p { margin: 0 0 18px; color: var(--fg-soft); font-size: 15px; line-height: 1.55; }
.cat-card ul {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.cat-card li {
  font-size: 12px; font-weight: 600;
  padding: 5px 11px;
  background: var(--bg-soft);
  border-radius: 999px;
  color: var(--fg-soft);
}
.cat-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--primary);
  transition: gap var(--t);
}
.cat-card:hover .cat-link { gap: 10px; }

/* ---- Conversion matrix on landing ------------------------------------- */
.matrix-tabs {
  display: inline-flex; gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin: 0 auto 36px;
}
.matrix-tab {
  padding: 8px 18px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--fg-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.matrix-tab.is-active {
  background: var(--bg-elev);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.matrix-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.matrix-panel { display: none; }
.matrix-panel.is-active { display: grid; }
.conv-tile {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.conv-tile:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: var(--primary-tint);
}
.conv-tile .from, .conv-tile .to {
  font-size: 13px;
  padding: 4px 10px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-weight: 700; letter-spacing: 0.02em;
}
.conv-tile:hover .from, .conv-tile:hover .to {
  background: rgba(255,255,255,0.6);
}
.conv-tile .arr { color: var(--fg-muted); flex-shrink: 0; }
.conv-tile .arr svg { width: 14px; height: 14px; display: block; }
.conv-tile .name { font-size: 13px; color: var(--fg-soft); margin-left: auto; font-weight: 500; }

/* ---- Screenshots gallery --------------------------------------------- */
.gallery {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.shot {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
  margin: 0;
}
.shot:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.shot img { aspect-ratio: 9 / 19.5; object-fit: cover; width: 100%; }
.shot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 35%;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
}
.shot-cap {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  color: white;
  font-size: 13px; font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  z-index: 2;
}

/* ---- Power user grid ------------------------------------------------- */
.power { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.power-card {
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: background var(--t), border-color var(--t);
}
.power-card:hover { background: var(--primary-tint); border-color: var(--border-strong); }
.power-card .ic { color: var(--primary); margin-bottom: 12px; }
.power-card .ic svg { width: 24px; height: 24px; }
.power-card h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.power-card p { margin: 0; color: var(--fg-soft); font-size: 14px; line-height: 1.5; }

/* ---- Pricing (redesigned) -------------------------------------------- */
.pricing-wrap {
  display: grid;
  gap: 24px;
  max-width: 580px;
  margin: 0 auto;
}
.pro-card {
  position: relative;
  background: linear-gradient(160deg, #0F172A 0%, #1E293B 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 48px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.pro-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(37,99,235,0.35), transparent 60%),
    radial-gradient(400px 300px at 0% 100%, rgba(217,119,6,0.25), transparent 60%);
  pointer-events: none;
}
.pro-card > * { position: relative; }

.pro-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.pro-head h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.pro-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(217,119,6,0.18);
  color: #FBBF24;
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.pro-pill::before { content: ""; width: 6px; height: 6px; background: #FBBF24; border-radius: 50%; }

.tier-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  margin-bottom: 28px;
}
.tier-tab {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  padding: 14px 8px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: rgba(255,255,255,0.75);
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t), color var(--t);
  position: relative;
}
.tier-tab:hover { color: white; background: rgba(255,255,255,0.04); }
.tier-tab.is-active {
  background: rgba(255,255,255,0.12);
  color: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.tier-tab .lab { font-size: 12px; font-weight: 600; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.06em; }
.tier-tab.is-active .lab { opacity: 0.9; }
.tier-tab .val { font-size: 16px; font-weight: 700; }
.tier-tab .save {
  position: absolute; top: -8px; right: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--accent); color: white;
  padding: 2px 8px;
  border-radius: 999px;
}

.tier-detail { min-height: 60px; margin-bottom: 28px; }
.tier-price {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 4px;
}
.tier-price .amount { font-size: clamp(40px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.tier-price .period { font-size: 17px; font-weight: 500; color: rgba(255,255,255,0.7); }
.tier-savings { font-size: 14px; font-weight: 600; color: #FBBF24; }
.tier-detail-panel { display: none; }
.tier-detail-panel.is-active { display: block; }

.pro-features { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.pro-features li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,0.92); }
.pro-features li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }

.pro-cta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  height: 56px;
  background: white;
  color: #0F172A;
  border-radius: 14px;
  font-weight: 700; font-size: 16px;
  transition: transform var(--t), box-shadow var(--t);
}
.pro-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,255,255,0.18); }
.pro-cta svg { width: 22px; height: 22px; }

.pro-note { margin: 16px 0 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.55); }

.free-strip {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.free-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--success); color: white;
  border-radius: 12px;
  flex-shrink: 0;
}
.free-badge svg { width: 22px; height: 22px; }
.free-strip-body { flex: 1; min-width: 240px; }
.free-strip-body h4 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.free-strip-body p { margin: 0; color: var(--fg-soft); font-size: 14px; line-height: 1.5; }
.free-strip a {
  font-size: 14px; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
}

/* ---- FAQ -------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq details[open] { padding-bottom: 28px; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 17px; font-weight: 600;
  transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--primary); }
.faq summary .plus {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--fg-soft);
  transition: transform var(--t), background var(--t);
  flex-shrink: 0; margin-left: 16px;
}
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--primary); color: white; }
.faq details p { margin: 12px 0 0; color: var(--fg-soft); font-size: 15px; line-height: 1.65; }

/* ---- Final CTA -------------------------------------------------------- */
.final-cta { text-align: center; background: var(--grad-hero); border-top: 1px solid var(--border); }
.final-cta h2 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 18px; font-weight: 800; }
.final-cta p { color: var(--fg-soft); font-size: clamp(16px, 1.5vw, 19px); max-width: 56ch; margin: 0 auto 36px; }

/* ---- Footer ----------------------------------------------------------- */
footer.site-footer {
  padding: 56px 0 32px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 14px;
}
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-col h5 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--fg); text-transform: uppercase; letter-spacing: 0.06em; }
.foot-col a { display: block; padding: 4px 0; color: var(--fg-soft); transition: color var(--t-fast); }
.foot-col a:hover { color: var(--fg); }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--fg); font-weight: 700; margin-bottom: 12px; }
.foot-brand img { width: 28px; height: 28px; border-radius: 6px; }
.foot-blurb { color: var(--fg-soft); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.foot-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* =========================================================================
   Category page styles (/features/X/)
   ========================================================================= */

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--fg-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--fg-soft); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { width: 14px; height: 14px; flex-shrink: 0; }
.breadcrumb .current { color: var(--fg); font-weight: 600; }

.cat-hero {
  position: relative;
  padding: 64px 0 48px;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.cat-hero-inner { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 880px) { .cat-hero-inner { grid-template-columns: 1.4fr 1fr; } }
.cat-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 800;
}
.cat-hero p.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--fg-soft);
  max-width: 60ch;
  margin: 0 0 24px;
}
.cat-hero-stats { display: flex; flex-wrap: wrap; gap: 14px; }
.cat-stat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: var(--fg-soft);
  display: inline-flex; align-items: center; gap: 8px;
}
.cat-stat strong { color: var(--fg); }
.cat-stat .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.cat-stat .dot.amber { background: var(--accent); }
.cat-stat .dot.green { background: var(--success); }

.cat-hero-mock {
  display: flex; justify-content: center; align-items: flex-end;
}
.cat-hero-mock .device { transform: rotate(2deg); max-width: 280px; }

/* Operation groups */
.op-group { margin-bottom: 56px; }
.op-group:last-child { margin-bottom: 0; }
.op-group-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.op-group-head h2 {
  margin: 0; font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700; letter-spacing: -0.02em;
}
.op-group-head .count {
  font-size: 13px; font-weight: 600; color: var(--fg-muted);
  background: var(--bg-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.op-group-head .desc {
  font-size: 14px; color: var(--fg-muted);
  margin-left: auto; font-weight: 500;
}
@media (max-width: 600px) { .op-group-head { flex-wrap: wrap; } .op-group-head .desc { margin-left: 0; width: 100%; } }

.op-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.op {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.op:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.op-name {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 6px;
}
.op-name h3 {
  margin: 0; font-size: 15px; font-weight: 700;
  letter-spacing: -0.005em;
}
.tier {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.tier.free { background: rgba(16,185,129,0.12); color: #059669; }
.tier.pro { background: var(--accent-tint); color: var(--accent); }
@media (prefers-color-scheme: dark) {
  .tier.free { background: rgba(16,185,129,0.18); color: #34D399; }
  .tier.pro { background: var(--accent-tint); color: #FBBF24; }
}
.op-desc { margin: 0; font-size: 13px; color: var(--fg-soft); line-height: 1.5; }

/* Quick conversions section on category pages */
.quick-conv {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  margin-top: 48px;
}
.quick-conv h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.quick-conv p { margin: 0 0 24px; color: var(--fg-soft); font-size: 14px; }
.quick-conv-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Features hub grid */
.hub-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.hub-card {
  display: flex; flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.hub-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.hub-card .cat-icon { margin-bottom: 20px; }
.hub-card h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.hub-card p { margin: 0 0 24px; color: var(--fg-soft); font-size: 15px; line-height: 1.55; flex: 1; }
.hub-card .hub-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.hub-card .hub-meta .count { font-size: 13px; color: var(--fg-muted); font-weight: 600; }
.hub-card .hub-meta .arrow {
  color: var(--primary);
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--t);
}
.hub-card:hover .hub-meta .arrow { gap: 12px; }
