/* img2pdf — Official Stylesheet
   Apple SF Pro design system for img2pdf iOS utility.
   App Brand Identity:
     Primary Accent: #0066FF (Light) / #409CFF (Dark)
     Typography: Apple SF Pro / system-ui (-apple-system, BlinkMacSystemFont)
     Surfaces: Pure white (#ffffff) & Apple snow (#f5f5f7) alternating sections, NO divider lines.
*/

:root {
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Brand Colors — Light Mode (Authoritative from Theme.swift) */
  --accent: #0066FF;
  --accent-pressed: #0052CC;
  --accent-subtle: rgba(0, 102, 255, 0.08);
  --accent-glow: rgba(0, 102, 255, 0.20);
  --accent-tint: #0066FF;
  --on-accent: #FFFFFF;

  --savings: #067647;
  --savings-ink: #05603A;
  --savings-subtle: rgba(6, 118, 71, 0.10);
  --savings-border: rgba(6, 118, 71, 0.24);

  /* Canvases & Surfaces (Paste alternating rhythm) */
  --canvas: #FFFFFF;
  --canvas-alt: #F5F5F7;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --surface-hover: #F8FAFC;
  --surface-muted: #F1F5F9;

  /* Ink Hierarchy (WCAG AAA compliant: #0f172a on white is 16.6:1, #556070 is 6.8:1) */
  --ink-primary: #0F172A;
  --ink-secondary: #556070;
  --ink-tertiary: #8896AB;
  --ink-quaternary: #CBD5E1;

  /* Hairlines & Borders */
  --border-hairline: rgba(15, 23, 42, 0.06);
  --border-subtle: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.18);

  /* Ambient Depth & Shadows (Paste ambient style — no harsh directional shadows) */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 36px -8px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-ambient: 0 24px 48px -12px rgba(16, 16, 16, 0.08), 0 0 1px rgba(16, 16, 16, 0.12);
  --shadow-device: 0 32px 72px -16px rgba(15, 23, 42, 0.20), 0 12px 32px -8px rgba(0, 102, 255, 0.10);

  /* Apple Hardware Frames */
  --device-bezel: #1C2333;
  --device-border: #334155;
  --device-rim: rgba(255, 255, 255, 0.15);
  --device-screen-bg: #FFFFFF;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Layout Widths */
  --container-max: 1160px;
  --text-container-max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #409CFF;
    --accent-pressed: #2A85F2;
    --accent-subtle: rgba(64, 156, 255, 0.16);
    --accent-glow: rgba(64, 156, 255, 0.28);
    --accent-tint: #409CFF;
    --on-accent: #0B0F19;

    --savings: #34D399;
    --savings-ink: #10B981;
    --savings-subtle: rgba(52, 211, 153, 0.16);
    --savings-border: rgba(52, 211, 153, 0.28);

    --canvas: #0B0F19;
    --canvas-alt: #121826;
    --surface: #162032;
    --surface-elevated: #1D2A42;
    --surface-hover: #1F2D47;
    --surface-muted: #1A2438;

    --ink-primary: #F8FAFC;
    --ink-secondary: #94A3B8;
    --ink-tertiary: #64748B;
    --ink-quaternary: #334155;

    --border-hairline: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.22);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
    --shadow-ambient: 0 0 0 1px rgba(255, 255, 255, 0.08);
    --shadow-device: 0 32px 72px -16px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.14);

    --device-bezel: #0F172A;
    --device-border: #475569;
    --device-rim: rgba(255, 255, 255, 0.2);
    --device-screen-bg: #000000;
  }
}

/* Explicit data-theme Overrides (Manual Toggle) */
[data-theme="light"] {
  --accent: #0066FF;
  --accent-pressed: #0052CC;
  --accent-subtle: rgba(0, 102, 255, 0.08);
  --accent-glow: rgba(0, 102, 255, 0.20);
  --accent-tint: #0066FF;
  --on-accent: #FFFFFF;
  --savings: #067647;
  --savings-ink: #05603A;
  --savings-subtle: rgba(6, 118, 71, 0.10);
  --savings-border: rgba(6, 118, 71, 0.24);
  --canvas: #FFFFFF;
  --canvas-alt: #F5F5F7;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --surface-hover: #F8FAFC;
  --surface-muted: #F1F5F9;
  --ink-primary: #0F172A;
  --ink-secondary: #556070;
  --ink-tertiary: #8896AB;
  --ink-quaternary: #CBD5E1;
  --border-hairline: rgba(15, 23, 42, 0.06);
  --border-subtle: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.18);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 36px -8px rgba(15, 23, 42, 0.08);
  --shadow-ambient: 0 24px 48px -12px rgba(16, 16, 16, 0.08), 0 0 1px rgba(16, 16, 16, 0.12);
  --shadow-device: 0 32px 72px -16px rgba(15, 23, 42, 0.20), 0 12px 32px -8px rgba(0, 102, 255, 0.10);
  --device-bezel: #1C2333;
  --device-border: #334155;
  --device-rim: rgba(255, 255, 255, 0.15);
  --device-screen-bg: #FFFFFF;
}

[data-theme="dark"] {
  --accent: #409CFF;
  --accent-pressed: #2A85F2;
  --accent-subtle: rgba(64, 156, 255, 0.16);
  --accent-glow: rgba(64, 156, 255, 0.28);
  --accent-tint: #409CFF;
  --on-accent: #0B0F19;
  --savings: #34D399;
  --savings-ink: #10B981;
  --savings-subtle: rgba(52, 211, 153, 0.16);
  --savings-border: rgba(52, 211, 153, 0.28);
  --canvas: #0B0F19;
  --canvas-alt: #121826;
  --surface: #162032;
  --surface-elevated: #1D2A42;
  --surface-hover: #1F2D47;
  --surface-muted: #1A2438;
  --ink-primary: #F8FAFC;
  --ink-secondary: #94A3B8;
  --ink-tertiary: #64748B;
  --ink-quaternary: #334155;
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
  --shadow-ambient: 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-device: 0 32px 72px -16px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.14);
  --device-bezel: #0F172A;
  --device-border: #475569;
  --device-rim: rgba(255, 255, 255, 0.2);
  --device-screen-bg: #000000;
}

/* ==========================================================================
   Base Reset & Global Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-primary);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink-primary);
  background-color: var(--canvas);
  overflow-x: hidden;
}

img, svg, picture {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-tint);
  text-decoration: none;
  transition: opacity 0.18s ease, color 0.18s ease;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-to-content {
  position: absolute;
  top: -999px;
  left: 20px;
  background: var(--surface);
  color: var(--accent-tint);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 16px;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: var(--text-container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-hairline);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background-color: rgba(11, 15, 25, 0.82);
  }
}

[data-theme="light"] .site-header {
  background-color: rgba(255, 255, 255, 0.82);
}

[data-theme="dark"] .site-header {
  background-color: rgba(11, 15, 25, 0.82);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-primary);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.header-brand:hover {
  opacity: 0.88;
  text-decoration: none;
}

.header-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  flex-shrink: 0;
}

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

.header-nav a {
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--ink-primary);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-secondary);
  background-color: var(--surface-muted);
  border: 1px solid var(--border-hairline);
  transition: all 0.18s ease;
}

.theme-toggle-btn:hover {
  color: var(--ink-primary);
  background-color: var(--surface-hover);
  transform: scale(1.04);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #FFFFFF !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 98, 251, 0.28);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.header-cta-btn:hover {
  background-color: var(--accent-pressed);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 98, 251, 0.38);
}

.header-cta-btn:active {
  transform: translateY(0);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  padding: 8px;
  color: var(--ink-primary);
  border-radius: var(--radius-sm);
}

.mobile-menu {
  display: none;
}

/* ==========================================================================
   Hero Section (Paste & Foodnoms Inspired)
   ========================================================================== */
.hero-section {
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
  background-color: var(--canvas);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  max-width: 840px;
  margin: 0 auto;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--savings-subtle);
  color: var(--savings-ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--savings-border);
  width: fit-content;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--savings);
  box-shadow: 0 0 8px var(--savings);
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink-primary);
  text-wrap: balance;
}

.hero-title .highlight {
  color: var(--accent-tint);
}

.hero-lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 620px;
  text-wrap: pretty;
}

/* Trust Proof Callout in Hero */
.hero-proof-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--surface);
  border: 1px solid var(--border-subtle);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  text-align: left;
}

.proof-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--savings-subtle);
  color: var(--savings-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.proof-icon svg {
  width: 14px;
  height: 14px;
}

.proof-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.proof-text strong {
  color: var(--ink-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.hero-app-store-cta {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
}

.hero-app-store-cta:hover {
  transform: translateY(-2px) scale(1.02);
  opacity: 0.94;
}

.hero-app-store-cta img {
  height: 52px;
  width: auto;
}

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

.hero-web-tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.hero-web-tool-cta:hover {
  background-color: var(--accent-subtle);
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-footnote {
  font-size: 13px;
  color: var(--ink-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-footnote-dot {
  opacity: 0.4;
}

/* Device Mockup Stage */
.hero-visual {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.device-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 660 / 1434;
  background-color: var(--device-bezel);
  border-radius: 54px;
  padding: 10px;
  box-shadow: var(--shadow-device);
  border: 4px solid var(--device-border);
  outline: 1px solid var(--device-rim);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.device-frame:hover {
  transform: translateY(-4px);
}

.device-island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background-color: #000000;
  border-radius: 14px;
  z-index: 10;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
}

.device-screen-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background-color: var(--device-screen-bg);
}

.device-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dual Hardware Showcase Stage (Paste & Apple Gallery) */
.device-showcase-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.device-frame-ipad {
  position: absolute;
  left: 20px;
  bottom: 0;
  width: 480px;
  max-width: 58%;
  aspect-ratio: 900 / 1200;
  background-color: var(--device-bezel);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.35);
  border: 4px solid var(--device-border);
  outline: 1px solid var(--device-rim);
  z-index: 1;
  transform: perspective(1200px) rotateY(6deg) rotateX(2deg) scale(0.96);
  transform-origin: bottom center;
  transition: transform 0.3s ease;
}

.device-frame-ipad .device-screen-wrapper {
  border-radius: 28px;
}

.device-frame-iphone {
  position: relative;
  z-index: 2;
  width: 320px;
  margin-left: 180px;
  margin-bottom: -12px;
  box-shadow: var(--shadow-device);
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
  transition: transform 0.3s ease;
}

.device-showcase-stage:hover .device-frame-ipad {
  transform: perspective(1200px) rotateY(4deg) rotateX(1deg) scale(0.98);
}

.device-showcase-stage:hover .device-frame-iphone {
  transform: perspective(1200px) rotateY(-2deg) rotateX(0deg) translateY(-4px);
}

@media (max-width: 980px) {
  .device-frame-ipad {
    display: none;
  }
  .device-frame-iphone {
    margin-left: 0;
    margin-bottom: 0;
    transform: none;
    max-width: 320px;
  }
  .device-showcase-stage:hover .device-frame-iphone {
    transform: none;
  }
}

/* ==========================================================================
   Section Rhythm (Alternating background, NO divider lines)
   ========================================================================== */
.section {
  padding: 104px 0;
  position: relative;
}

.section-canvas {
  background-color: var(--canvas-alt);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-tint);
  background-color: var(--accent-subtle);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--ink-primary);
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

/* ==========================================================================
   Stats & Trust Bar (Signal / Paste Style)
   ========================================================================== */
.stats-section {
  padding: 72px 0;
  background-color: var(--canvas-alt);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background-color: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink-primary);
  line-height: 1;
}

.stat-number.savings {
  color: var(--savings);
}

.stat-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: -0.2px;
}

.stat-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Alternating Feature Showcase (Signal / Foodnoms Split Rows)
   ========================================================================== */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
  margin-bottom: 104px;
}

.showcase-row:last-child {
  margin-bottom: 0;
}

.showcase-row.reverse {
  direction: rtl;
}

.showcase-row.reverse .showcase-copy {
  direction: ltr;
}

.showcase-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.showcase-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-tint);
}

.showcase-heading {
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.22;
  color: var(--ink-primary);
  text-wrap: balance;
}

.showcase-text {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-primary);
}

.showcase-list li svg {
  width: 20px;
  height: 20px;
  color: var(--savings);
  flex-shrink: 0;
  margin-top: 2px;
}

.showcase-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-frame-sm {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 660 / 1434;
  background-color: var(--device-bezel);
  border-radius: 48px;
  padding: 9px;
  box-shadow: var(--shadow-device);
  border: 4px solid var(--device-border);
  outline: 1px solid var(--device-rim);
  position: relative;
  transition: transform 0.25s ease;
}

.device-frame-sm:hover {
  transform: translateY(-3px);
}

.device-frame-sm .device-island {
  top: 15px;
  width: 84px;
  height: 22px;
  border-radius: 11px;
}

.device-frame-sm .device-screen-wrapper {
  border-radius: 39px;
}

/* ==========================================================================
   Presets Comparison Section (Shuttle / AppTokens Calibrated Cards)
   ========================================================================== */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 24px;
}

.preset-card {
  background: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.preset-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.preset-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.preset-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background-color: var(--accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(0, 98, 251, 0.3);
}

.preset-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.preset-tagline {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-tint);
}

.preset-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.preset-meta span strong {
  color: var(--ink-primary);
}

.preset-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* ==========================================================================
   How It Works (4 Steps with Pill Numbers)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.step-card {
  background-color: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--accent-subtle);
  color: var(--accent-tint);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink-primary);
}

.step-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Guides Grid (Tutorial Cards)
   ========================================================================== */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.guide-card {
  background-color: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.guide-tag {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-tint);
}

.guide-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  line-height: 1.35;
}

.guide-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.guide-link-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-tint);
  margin-top: auto;
  padding-top: 8px;
}

.guide-link-label svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.guide-card:hover .guide-link-label svg {
  transform: translateX(4px);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.faq-summary {
  padding: 22px 26px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

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

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--ink-tertiary);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-tint);
}

.faq-answer {
  padding: 0 26px 24px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.faq-answer p {
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: var(--ink-primary);
}

.faq-more {
  max-width: 820px;
  margin: 24px auto 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  text-align: center;
}

.faq-more a {
  color: var(--accent-tint);
  font-weight: 600;
}

/* ==========================================================================
   Bottom Conversion Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, #0B1120 0%, #132238 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08);
  margin: 40px 0 96px;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 98, 251, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1.15;
  text-wrap: balance;
}

.cta-desc {
  font-size: 17.5px;
  line-height: 1.65;
  color: #CBD5E1;
  text-wrap: pretty;
}

.cta-button-wrap {
  margin-top: 8px;
  transition: transform 0.2s ease;
}

.cta-button-wrap:hover {
  transform: scale(1.02);
}

.cta-button-wrap img {
  height: 52px;
  width: auto;
}

.cta-subtext {
  font-size: 13px;
  color: #94A3B8;
}

.cta-web-line {
  font-size: 14.5px;
  line-height: 1.5;
  color: #CBD5E1;
}

.cta-web-line a {
  color: #93C5FD;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-web-line a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--canvas-alt);
  border-top: 1px solid var(--border-hairline);
  padding: 72px 0 44px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-primary);
  text-decoration: none;
}

.footer-logo-row:hover {
  text-decoration: none;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 340px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-primary);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--ink-primary);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-tertiary);
}

.footer-bottom a {
  color: var(--ink-secondary);
}

.footer-bottom a:hover {
  color: var(--ink-primary);
}

/* ==========================================================================
   Article, Guide & Policy Pages
   ========================================================================== */
.article-page {
  padding: 56px 0 96px;
}

.article-header {
  margin-bottom: 40px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-tertiary);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent-tint);
  text-decoration: underline;
}

.article-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink-primary);
  margin-bottom: 16px;
  text-wrap: balance;
}

.article-meta {
  font-size: 14px;
  color: var(--ink-tertiary);
  margin-bottom: 24px;
}

.article-lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-primary);
  margin-bottom: 28px;
  font-weight: 500;
  text-wrap: pretty;
}

.article-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  margin: 44px 0 16px;
  text-wrap: balance;
}

.article-body h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
  margin: 28px 0 10px;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body strong {
  color: var(--ink-primary);
}

/* Refined Key Takeaways & Callout Boxes (Anti-slop: full background, no ugly stripe) */
.callout-summary {
  background-color: var(--canvas-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}

.callout-summary-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink-primary);
  margin-bottom: 12px;
}

.callout-summary ul {
  margin: 0;
  padding-left: 20px;
}

.callout-summary li {
  margin-bottom: 8px;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.callout-summary li:last-child {
  margin-bottom: 0;
}

.highlight-box {
  background-color: var(--accent-subtle);
  border: 1px solid rgba(0, 98, 251, 0.2);
  padding: 22px 26px;
  border-radius: var(--radius-md);
  margin: 32px 0;
}

.highlight-box p {
  margin-bottom: 0;
  color: var(--ink-primary);
  font-weight: 500;
}

.proof-box {
  background-color: var(--savings-subtle);
  border: 1px solid var(--savings-border);
  padding: 22px 26px;
  border-radius: var(--radius-md);
  margin: 32px 0;
}

.proof-box p {
  margin-bottom: 0;
  color: var(--savings-ink);
  font-weight: 600;
}

.related-box {
  background-color: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 40px 0;
  box-shadow: var(--shadow-sm);
}

.related-box p:last-child {
  margin-bottom: 0;
}

.faq-toc {
  margin-top: 0;
}

.faq-toc ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.faq-toc li {
  margin-bottom: 6px;
}

.faq-entry {
  scroll-margin-top: 96px;
}

.contact-card {
  background-color: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  margin: 36px 0 44px;
  box-shadow: var(--shadow-sm);
}

.contact-card p {
  font-size: 15.5px;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}

.contact-email {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-tint);
}

.article-cta-box {
  background: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  margin: 44px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.article-cta-box h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink-primary);
  margin: 0;
}

/* Comparison Table (Guides) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--ink-secondary);
  line-height: 1.5;
  vertical-align: top;
}

.comparison-table th {
  background-color: var(--canvas-alt);
  color: var(--ink-primary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--ink-primary);
}

.comparison-table tr:hover td {
  background-color: var(--surface-hover);
}

@media (max-width: 640px) {
  .comparison-table {
    display: block;
    overflow-x: auto;
  }
}

/* Step Card for Tutorial Articles */
.step-card-article {
  background: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 20px 0;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.step-num-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent-tint);
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-card-content {
  flex: 1;
}

.step-card-content h3 {
  margin: 0 0 6px !important;
  font-size: 17.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.step-card-content p {
  margin: 0 !important;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* ==========================================================================
   img2pdf Homepage Sections
   ========================================================================== */
.text-center {
  text-align: center;
}

.hero-eyebrow {
  display: flex;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--savings-subtle);
  color: var(--savings-ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--savings-border);
}

.hero-proof-card {
  gap: 20px;
  padding: 14px 24px;
}

.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.proof-number {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.proof-label {
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.proof-divider {
  width: 1px;
  align-self: stretch;
  background-color: var(--border-subtle);
}

.showcase-mockup {
  width: 100%;
  max-width: 320px;
}

.mockup-frame {
  background-color: var(--device-bezel);
  border: 4px solid var(--device-border);
  outline: 1px solid var(--device-rim);
  border-radius: 52px;
  padding: 10px;
  box-shadow: var(--shadow-device);
}

.mockup-screen {
  width: 100%;
  height: auto;
  border-radius: 40px;
  display: block;
}

.trust-strip,
.features-section,
.presets-section,
.how-section,
.guides-section,
.faq-section {
  padding: 104px 0;
}

.trust-strip,
.presets-section,
.guides-section {
  background-color: var(--canvas-alt);
}

.trust-strip {
  padding: 72px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-card {
  background-color: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-icon {
  font-size: 26px;
  line-height: 1;
}

.trust-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink-primary);
}

.trust-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.section-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-tint);
  background-color: var(--accent-subtle);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.feature-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card-header {
  padding: 28px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-card-header h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.feature-card-header p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.feature-pill {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-tint);
  background-color: var(--accent-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.feature-card-media {
  margin-top: auto;
  padding: 0 28px;
  display: flex;
  justify-content: center;
  background-color: var(--canvas-alt);
  height: 320px;
  overflow: hidden;
}

.feature-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  align-self: flex-start;
  margin-top: 28px;
  border-radius: 28px;
  border: 4px solid var(--device-border);
  box-shadow: var(--shadow-md);
}

.presets-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 24px;
}

.preset-card .preset-badge {
  align-self: flex-start;
}

.preset-card-recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.preset-badge-popular {
  background-color: var(--savings);
}

.preset-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.preset-summary {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.preset-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border-hairline);
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.preset-specs strong {
  color: var(--ink-primary);
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink-primary);
}

.step-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.guide-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.guide-card h3 a {
  color: var(--ink-primary);
}

.guide-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.guide-read-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-tint);
  margin-top: auto;
  padding-top: 8px;
}

.chevron {
  color: var(--ink-tertiary);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.faq-item[open] .chevron {
  transform: rotate(180deg);
  color: var(--accent-tint);
}

.faq-footer-link {
  margin-top: 36px;
  font-size: 15px;
  color: var(--ink-secondary);
}

.faq-footer-link a {
  font-weight: 600;
}

.cta-banner > * {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 17.5px;
  line-height: 1.65;
  color: #CBD5E1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  margin: 28px 0 16px;
}

.cta-store-badge {
  transition: transform 0.2s ease;
}

.cta-store-badge:hover {
  transform: scale(1.02);
}

.cta-store-badge img {
  height: 52px;
  width: auto;
}

.cta-note {
  display: block;
  font-size: 13px;
  color: #94A3B8;
}

/* Footer (img2pdf markup) */
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-primary);
  text-decoration: none;
}

.footer-logo:hover {
  text-decoration: none;
}

.footer-logo img {
  border-radius: 7px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--ink-tertiary);
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.footer-nav-col a {
  font-size: 14px;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav-col a:hover,
.footer-nav-col a.active {
  color: var(--ink-primary);
}

/* Article callouts & support page */
.callout {
  background-color: var(--accent-subtle);
  border: 1px solid var(--border-subtle);
  padding: 22px 26px;
  border-radius: var(--radius-md);
  margin: 32px 0;
}

.callout p {
  margin-bottom: 0;
  color: var(--ink-primary);
}

.callout-info {
  border-color: rgba(0, 98, 251, 0.2);
}

.support-intro-card {
  background-color: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 36px 0;
  box-shadow: var(--shadow-sm);
}

.support-intro-card h2 {
  margin-top: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
  .hero-section {
    padding: 64px 0 80px;
  }

  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 48px;
    direction: ltr;
  }

  .showcase-copy {
    order: 1;
    text-align: center;
    align-items: center;
  }

  .showcase-list {
    text-align: left;
  }

  .showcase-visual {
    order: 2;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .presets-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .trust-grid,
  .feature-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .presets-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .header-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .mobile-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-hairline);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-lg);
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu a {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-primary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-hairline);
  }

  .mobile-menu a:last-child {
    border-bottom: none;
  }

  .hero-section {
    padding: 48px 0 64px;
  }

  .hero-copy {
    gap: 18px;
  }

  .hero-proof-card {
    border-radius: var(--radius-md);
    flex-direction: column;
    text-align: center;
    padding: 14px 18px;
  }

  .proof-icon {
    margin: 0 auto;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .device-frame {
    max-width: 290px;
    border-radius: 46px;
    padding: 8px;
  }

  .device-frame .device-screen-wrapper {
    border-radius: 38px;
  }

  .device-island {
    top: 14px;
    width: 80px;
    height: 22px;
  }

  .section {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 44px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guides-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta-banner {
    padding: 48px 24px;
    margin: 32px 0 64px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .trust-strip,
  .features-section,
  .presets-section,
  .how-section,
  .guides-section,
  .faq-section {
    padding: 72px 0;
  }

  .trust-grid,
  .feature-showcase-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .proof-divider {
    width: 100%;
    height: 1px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .article-page {
    padding: 40px 0 72px;
  }
}
