/* ==========================================================================
   Notebook Studio — Official Website Stylesheet (www.notebook-studio.com)
   Built with Modern Web Guidance best practices:
   - color-scheme & light-dark() with @media (prefers-color-scheme: dark) fallback
   - text-wrap: balance for headings & text-wrap: pretty for body copy
   - Fluid clamp() typography, dvh viewport units, aspect-ratio, and @container queries
   ========================================================================== */

:root {
  /* Light mode raw color tokens */
  --bg-canvas-light: #f8fafc;
  --bg-elevated-light: #ffffff;
  --bg-subtle-light: #f1f5f9;
  --bg-glass-light: rgba(255, 255, 255, 0.84);
  --text-primary-light: #0f172a;
  --text-secondary-light: #334155;
  --text-muted-light: #64748b;
  --border-subtle-light: #e2e8f0;
  --border-strong-light: #cbd5e1;
  --brand-primary-light: #1e4d75;
  --brand-accent-light: #0284c7;
  --brand-accent-soft-light: rgba(2, 132, 199, 0.1);
  --emerald-accent-light: #059669;
  --emerald-soft-light: rgba(5, 150, 105, 0.1);
  --shadow-card-light: 0 16px 40px -12px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);

  /* Dark mode raw color tokens */
  --bg-canvas-dark: #070b12;
  --bg-elevated-dark: #0f1623;
  --bg-subtle-dark: #162032;
  --bg-glass-dark: rgba(11, 17, 29, 0.82);
  --text-primary-dark: #f8fafc;
  --text-secondary-dark: #cbd5e1;
  --text-muted-dark: #94a3b8;
  --border-subtle-dark: #1e293b;
  --border-strong-dark: #334155;
  --brand-primary-dark: #38bdf8;
  --brand-accent-dark: #38bdf8;
  --brand-accent-soft-dark: rgba(56, 189, 248, 0.14);
  --emerald-accent-dark: #34d399;
  --emerald-soft-dark: rgba(52, 211, 153, 0.14);
  --shadow-card-dark: 0 20px 50px -15px rgba(0, 0, 0, 0.6), 0 4px 16px -4px rgba(0, 0, 0, 0.4);

  /* Default fallback assignments (light) */
  --bg-canvas: var(--bg-canvas-light);
  --bg-elevated: var(--bg-elevated-light);
  --bg-subtle: var(--bg-subtle-light);
  --bg-glass: var(--bg-glass-light);
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
  --text-muted: var(--text-muted-light);
  --border-subtle: var(--border-subtle-light);
  --border-strong: var(--border-strong-light);
  --brand-primary: var(--brand-primary-light);
  --brand-accent: var(--brand-accent-light);
  --brand-accent-soft: var(--brand-accent-soft-light);
  --emerald-accent: var(--emerald-accent-light);
  --emerald-soft: var(--emerald-soft-light);
  --shadow-card: var(--shadow-card-light);

  /* Mandatory fallback for browsers without light-dark() support */
  @media (prefers-color-scheme: dark) {
    --bg-canvas: var(--bg-canvas-dark);
    --bg-elevated: var(--bg-elevated-dark);
    --bg-subtle: var(--bg-subtle-dark);
    --bg-glass: var(--bg-glass-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --text-muted: var(--text-muted-dark);
    --border-subtle: var(--border-subtle-dark);
    --border-strong: var(--border-strong-dark);
    --brand-primary: var(--brand-primary-dark);
    --brand-accent: var(--brand-accent-dark);
    --brand-accent-soft: var(--brand-accent-soft-dark);
    --emerald-accent: var(--emerald-accent-dark);
    --emerald-soft: var(--emerald-soft-dark);
    --shadow-card: var(--shadow-card-dark);
  }

  /* Progressive enhancement with native CSS light-dark() */
  @supports (color: light-dark(white, black)) {
    --bg-canvas: light-dark(var(--bg-canvas-light), var(--bg-canvas-dark));
    --bg-elevated: light-dark(var(--bg-elevated-light), var(--bg-elevated-dark));
    --bg-subtle: light-dark(var(--bg-subtle-light), var(--bg-subtle-dark));
    --bg-glass: light-dark(var(--bg-glass-light), var(--bg-glass-dark));
    --text-primary: light-dark(var(--text-primary-light), var(--text-primary-dark));
    --text-secondary: light-dark(var(--text-secondary-light), var(--text-secondary-dark));
    --text-muted: light-dark(var(--text-muted-light), var(--text-muted-dark));
    --border-subtle: light-dark(var(--border-subtle-light), var(--border-subtle-dark));
    --border-strong: light-dark(var(--border-strong-light), var(--border-strong-dark));
    --brand-primary: light-dark(var(--brand-primary-light), var(--brand-primary-dark));
    --brand-accent: light-dark(var(--brand-accent-light), var(--brand-accent-dark));
    --brand-accent-soft: light-dark(var(--brand-accent-soft-light), var(--brand-accent-soft-dark));
    --emerald-accent: light-dark(var(--emerald-accent-light), var(--emerald-accent-dark));
    --emerald-soft: light-dark(var(--emerald-soft-light), var(--emerald-soft-dark));
    --shadow-card: light-dark(var(--shadow-card-light), var(--shadow-card-dark));
  }

  /* Mandatory: Adapt native browser UI (scrollbars, form controls, canvas) */
  color-scheme: light dark;
  accent-color: var(--brand-accent);

  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --container-max: 1240px;
}

/* Explicit theme override support via toggle button */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-canvas: var(--bg-canvas-dark);
  --bg-elevated: var(--bg-elevated-dark);
  --bg-subtle: var(--bg-subtle-dark);
  --bg-glass: var(--bg-glass-dark);
  --text-primary: var(--text-primary-dark);
  --text-secondary: var(--text-secondary-dark);
  --text-muted: var(--text-muted-dark);
  --border-subtle: var(--border-subtle-dark);
  --border-strong: var(--border-strong-dark);
  --brand-primary: var(--brand-primary-dark);
  --brand-accent: var(--brand-accent-dark);
  --brand-accent-soft: var(--brand-accent-soft-dark);
  --emerald-accent: var(--emerald-accent-dark);
  --emerald-soft: var(--emerald-soft-dark);
  --shadow-card: var(--shadow-card-dark);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-canvas: var(--bg-canvas-light);
  --bg-elevated: var(--bg-elevated-light);
  --bg-subtle: var(--bg-subtle-light);
  --bg-glass: var(--bg-glass-light);
  --text-primary: var(--text-primary-light);
  --text-secondary: var(--text-secondary-light);
  --text-muted: var(--text-muted-light);
  --border-subtle: var(--border-subtle-light);
  --border-strong: var(--border-strong-light);
  --brand-primary: var(--brand-primary-light);
  --brand-accent: var(--brand-accent-light);
  --brand-accent-soft: var(--brand-accent-soft-light);
  --emerald-accent: var(--emerald-accent-light);
  --emerald-soft: var(--emerald-soft-light);
  --shadow-card: var(--shadow-card-light);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Typography & Legibility Best Practices */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
}

p, li, dd, blockquote {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(100% - 2.5rem, var(--container-max));
  margin-inline: auto;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--brand-accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus {
  top: 1rem;
}

/* Sticky Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-block: 0.8rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: clamp(0.98rem, 0.85rem + 0.5vw, 1.15rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
  min-width: 0;
}

.brand-logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  box-shadow: 0 4px 12px rgba(17, 45, 70, 0.25);
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .brand-logo {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.brand-badge {
  display: none;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-accent-soft);
  color: var(--brand-accent);
  border: 1px solid currentColor;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .brand-badge {
    display: inline-flex;
    align-items: center;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--brand-accent);
}

@media (min-width: 1080px) {
  .nav-links {
    display: flex;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-actions .btn-primary {
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
}

@media (min-width: 640px) {
  .nav-actions {
    gap: 0.65rem;
  }
  .nav-actions .btn-primary {
    padding: 0.65rem 1.2rem;
    font-size: 0.925rem;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, transform 0.2s, color 0.2s;
}

@media (min-width: 640px) {
  .theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.theme-toggle:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.925rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #1e4d75 100%);
  color: #ffffff;
  box-shadow: 0 10px 25px -6px rgba(2, 132, 199, 0.5);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px -6px rgba(2, 132, 199, 0.65);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

/* Official-Style App Store Badge Button */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: #000000;
  color: #ffffff;
  padding: 0.7rem 1.4rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--brand-accent);
  box-shadow: 0 16px 34px -8px rgba(2, 132, 199, 0.4);
}

.app-store-btn svg {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
}

.app-store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.app-store-btn-sub {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.app-store-btn-main {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Hero Section */
.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 38rem;
  background: radial-gradient(circle at 50% 25%, var(--brand-accent-soft), transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: var(--brand-accent-soft);
  color: var(--brand-accent);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border: 1px solid currentColor;
}

.hero-title {
  font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.1rem);
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--brand-accent) 0%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 60ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-meta-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta-list svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--emerald-accent);
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 0.75rem;
}

.hero-visual-frame {
  border-radius: calc(var(--radius-xl) - 0.5rem);
  overflow: hidden;
  aspect-ratio: 3400 / 2200;
  background: #090d16;
  position: relative;
}

.hero-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3400 / 2200;
}

.hero-floating-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.35rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Section Generic Layout */
.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--border-subtle);
}

.section-subtle {
  background: var(--bg-subtle);
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

.section-title {
  font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.85rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--text-secondary);
}

/* iPhone App Store Interactive Screenshot Carousel */
.screenshot-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.screenshot-tab-btn {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.screenshot-tab-btn:hover,
.screenshot-tab-btn[aria-selected="true"] {
  background: var(--brand-accent);
  color: #ffffff;
  border-color: var(--brand-accent);
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 1100px) {
  .screenshot-strip {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.15rem;
  }
}

.phone-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.phone-card:hover,
.phone-card.is-highlighted {
  transform: translateY(-6px);
  border-color: var(--brand-accent);
}

.phone-screen-wrap {
  border-radius: calc(var(--radius-lg) - 0.35rem);
  overflow: hidden;
  aspect-ratio: 1290 / 2796;
  background: #090d16;
}

.phone-screen-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1290 / 2796;
}

.phone-card-meta {
  padding-inline: 0.25rem;
}

.phone-step-num {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-accent);
}

.phone-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-top: 0.15rem;
}

.phone-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Bento Grid with CSS @container Queries */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .bento-span-7 {
    grid-column: span 7;
  }
  .bento-span-5 {
    grid-column: span 5;
  }
  .bento-span-6 {
    grid-column: span 6;
  }
}

.bento-card-container {
  container-type: inline-size;
  container-name: bento;
}

.bento-card {
  height: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: hidden;
}

@container bento (min-width: 560px) {
  .bento-card-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.bento-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-accent);
  margin-bottom: 0.6rem;
}

.bento-title {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.bento-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.bento-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #090d16;
  aspect-ratio: 16 / 10;
}

.bento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* Interactive Dynamic Date Tag Playground */
.tag-playground {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-card);
  margin-top: 2rem;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 1rem 1.5rem;
}

.tag-pill {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--brand-accent);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag-pill:hover,
.tag-pill.active {
  background: var(--brand-accent);
  color: #ffffff;
  border-color: var(--brand-accent);
}

.tag-preview-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

@media (min-width: 720px) {
  .tag-preview-box {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
}

.tag-io-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.tag-io-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tag-io-code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: var(--brand-accent);
}

/* Hardware Compatibility Grid */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.device-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.device-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-accent);
}

.device-name {
  font-size: 1.15rem;
  font-weight: 800;
}

.device-specs {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.82rem;
  color: var(--brand-accent);
  font-weight: 600;
}

.device-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Real-World Lifestyle Showcase Grid */
.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.lifestyle-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.lifestyle-img-wrap {
  aspect-ratio: 1376 / 768;
  background: #090d16;
  overflow: hidden;
}

.lifestyle-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1376 / 768;
  transition: transform 0.4s ease;
}

.lifestyle-card:hover .lifestyle-img-wrap img {
  transform: scale(1.03);
}

.lifestyle-body {
  padding: 1.25rem;
}

.lifestyle-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.lifestyle-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* FAQ Accordion */
.faq-list {
  max-width: 52rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--brand-accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* Direct Support & Download Banner */
.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.support-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.support-email-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
}

.support-email-link {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-accent);
  word-break: break-all;
}

/* Native <dialog> Lightbox */
dialog.lightbox-dialog {
  margin: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 1rem;
  max-width: min(92vw, 1080px);
  max-height: 90dvh;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}

dialog.lightbox-dialog::backdrop {
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-inner img {
  max-height: 76dvh;
  width: auto;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding-block: 3rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    align-items: flex-start;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  list-style: none;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--brand-accent);
}

/* ==========================================================================
   Audit Additions: Hero Price Callout, Trust Signals, Pricing, Testimonials,
   Founder Block, Scope Honesty, & Comparison Tables
   ========================================================================== */

.hero-price-callout {
  margin-top: -0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  max-width: 56ch;
}

.hero-price-headline {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-accent);
  font-size: 0.85rem;
  font-weight: 800;
}

.hero-trust-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-weight: 600;
}

.hero-recency-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.recency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  font-weight: 700;
}

.todo-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 0.45rem;
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
  border: 1px dashed #d97706;
  font-size: 0.76rem;
  font-weight: 700;
}

:root[data-theme="dark"] .todo-flag-badge {
  color: #fbbf24;
  border-color: #fbbf24;
}

/* Quantity Proof Stats Bar */
.proof-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.proof-stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.proof-stat-num {
  font-size: clamp(1.65rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 900;
  color: var(--brand-accent);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.proof-stat-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.proof-stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Testimonials Grid */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
}

.testimonial-quote {
  font-size: 0.96rem;
  color: var(--text-primary);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
}

.testimonial-name {
  font-weight: 800;
  color: var(--text-primary);
}

.testimonial-device {
  font-size: 0.78rem;
  color: var(--brand-accent);
  font-weight: 700;
}

/* Pricing & Comparison Section */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 920px) {
  .pricing-grid {
    grid-template-columns: 1fr 1.25fr;
  }
}

.pricing-card {
  background: var(--bg-elevated);
  border: 2px solid var(--brand-accent);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.pricing-amount {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-term {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--emerald-accent);
}

.pricing-anchor {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border-left: 3px solid var(--brand-accent);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.pricing-features svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--emerald-accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.comparison-table-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

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

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  font-weight: 800;
  color: var(--text-primary);
  background: var(--bg-subtle);
}

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

.comparison-highlight {
  color: var(--emerald-accent);
  font-weight: 800;
}

/* Scope Honesty Box */
.scope-honesty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .scope-honesty-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.scope-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-card);
}

.scope-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.scope-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Founder Trust Block */
.founder-card {
  margin-top: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .founder-card {
    grid-template-columns: auto 1fr;
  }
}

.founder-avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-primary) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
  border: 3px solid var(--border-strong);
  flex-shrink: 0;
}

.founder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.founder-links a {
  color: var(--brand-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   HeyCatch Blog (/blog & /blog/{slug}) Styles
   ========================================================================== */

.blog-shell {
  max-width: 52rem;
  margin-inline: auto;
}

.blog-loading-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.98rem;
  padding-block: 3rem;
}

.blog-empty-state {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  box-shadow: var(--shadow-card);
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 600;
}

.blog-index-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-index-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.blog-index-item:hover {
  transform: translateY(-2px);
  border-color: var(--brand-accent);
}

.blog-index-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  object-fit: cover;
  max-height: 18rem;
}

.blog-index-link {
  font-size: clamp(1.15rem, 1.02rem + 0.6vw, 1.45rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  text-wrap: balance;
}

.blog-index-link:hover {
  color: var(--brand-accent);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2rem;
}

/* Single Article Page (/blog/{slug}) */
.blog-article {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 3.25rem);
  box-shadow: var(--shadow-card);
}

.blog-back-row {
  margin-bottom: 1.25rem;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-accent);
}

.blog-back-link:hover {
  text-decoration: underline;
}

.blog-article-header {
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-article-title {
  font-size: clamp(1.85rem, 1.35rem + 2.2vw, 2.85rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.blog-article-hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 1.75rem;
  border: 1px solid var(--border-subtle);
}

/* Table of Contents */
.blog-toc {
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-block: 1.75rem;
}

.blog-toc-title {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  margin: 0 0 0.65rem 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--text-primary);
}

.blog-toc-list {
  margin: 0 !important;
  padding-inline-start: 1.25rem !important;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.blog-toc-list a {
  color: var(--brand-accent);
  text-decoration: none;
}

.blog-toc-list a:hover {
  text-decoration: underline;
}

/* Article Prose Content */
.blog-prose {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.blog-prose h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  scroll-margin-top: 6rem;
}

.blog-prose > h2:first-child {
  margin-top: 0;
}

.blog-prose h3 {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
}

.blog-prose p {
  margin-bottom: 1.15rem;
}

.blog-prose ul,
.blog-prose ol {
  margin-bottom: 1.25rem;
  padding-inline-start: 1.5rem;
}

.blog-prose li {
  margin-bottom: 0.45rem;
}

.blog-prose strong {
  color: var(--text-primary);
  font-weight: 700;
}

.blog-prose a {
  color: var(--brand-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-prose blockquote {
  margin-block: 1.5rem;
  padding: 1rem 1.25rem;
  border-inline-start: 4px solid var(--brand-accent);
  background: var(--bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-primary);
}

.blog-prose code {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--brand-accent);
}

.blog-prose pre {
  margin-block: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.blog-prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.5rem;
  font-size: 0.92rem;
}

.blog-prose th,
.blog-prose td {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border-subtle);
  text-align: start;
}

.blog-prose th {
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 800;
}

.blog-404-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  box-shadow: var(--shadow-card);
}
