/* ==========================================================================
   PicPilot Landing Page — Design Tokens & Responsive Styles
   ==========================================================================
   Fully responsive architecture across mobile, tablet, laptop, and desktop.
   Uses CSS custom properties for cohesive theming.
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Color Palette */
  --paper:        #FAF9F6;
  --ink:          #19181C;
  --fog:          #EAE7E1;
  --slate:        #6E6D72;
  --flash:        #3657FF;
  --flash-hover:  #2a46d4;
  --flash-subtle: rgba(54, 87, 255, 0.08);

  /* Typography */
  --font: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
          Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;

  /* Responsive Fluid Type Scale */
  --fs-hero:     clamp(2rem, 5.2vw, 5.25rem);
  --fs-section:  clamp(1.625rem, 3.2vw, 3.25rem);
  --fs-subtitle: clamp(1rem, 1.35vw, 1.25rem);
  --fs-body:     clamp(0.9375rem, 1.05vw, 1.125rem);
  --fs-small:    0.875rem;
  --fs-tiny:     0.75rem;

  /* Font Weights */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* Spacing Rhythm */
  --gap-section: clamp(3.5rem, 7vw, 8.5rem);
  --gap-inner:   clamp(1.5rem, 3.5vw, 3.25rem);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;

  /* Layout */
  --max-w: 1200px;
  --gutter: clamp(1rem, 3.5vw, 2.5rem);
  --nav-h: 70px;

  /* Motion & Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.35s;
}

/* Responsive spacing tokens */
@media (max-width: 768px) {
  :root {
    --gap-section: clamp(2.75rem, 6vw, 4.5rem);
    --gap-inner: 1.5rem;
    --nav-h: 62px;
  }
}

/* ---------- 2. RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--flash);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Section scroll margins for fixed navbar offset */
section[id],
header[id] {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

/* ---------- 3. UTILITY ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-gap {
  padding-top: var(--gap-section);
  padding-bottom: var(--gap-section);
}

.text-slate { color: var(--slate); }
.text-center { text-align: center; }

/* Scroll-reveal base */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 4. BUTTONS ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: #fff;
  background: var(--flash);
  border-radius: 50px;
  transition: background var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  letter-spacing: -0.01em;
  white-space: nowrap;
  min-height: 48px;
  text-align: center;
}
.btn-primary:hover {
  background: var(--flash-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(54, 87, 255, 0.25);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--ink);
  transition: color var(--duration) var(--ease);
  border-bottom: 1px solid transparent;
  min-height: 44px;
}
.btn-secondary:hover {
  color: var(--flash);
}
.btn-secondary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
}
.btn-secondary:hover svg {
  transform: translateY(2px);
}

/* ---------- 5. NAVIGATION ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.875rem 0;
  transition: background var(--duration) var(--ease),
              backdrop-filter var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              padding var(--duration) var(--ease);
}
.site-nav.scrolled {
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  padding: 0.625rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav-logo {
  font-size: 1.375rem;
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  color: var(--ink);
  z-index: 1002;
}
.nav-logo span {
  color: var(--flash);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--slate);
  transition: color var(--duration) var(--ease);
  letter-spacing: 0.01em;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  padding: 0.625rem 1.375rem !important;
  font-size: var(--fs-small) !important;
  min-height: 40px !important;
}

/* Mobile nav toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1002;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
  z-index: 999;
}
.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Navigation Breakpoint (Tablets portrait & Mobile) */
@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--nav-h) + 1.5rem) 1.75rem 2.5rem;
    background: var(--paper);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.1);
    transition: right var(--duration) var(--ease);
    z-index: 1001;
    overflow-y: auto;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links li > a:not(.btn-primary) {
    display: flex;
    align-items: center;
    padding: 1.125rem 0;
    font-size: 1.0625rem;
    color: var(--ink);
    border-bottom: 1px solid var(--fog);
  }
  .nav-links .nav-cta-wrapper {
    margin-top: 1.5rem;
    border-bottom: none;
  }
  .nav-links .nav-cta-wrapper .btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem !important;
    min-height: 48px !important;
    color: #fff !important;
    border-bottom: none !important;
  }
}

/* ---------- 6. HERO ---------- */
.hero {
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 3.5rem;
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-text {
  max-width: 560px;
}
.hero-headline {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  color: var(--ink);
  word-break: break-word;
}
.hero-sub {
  font-size: var(--fs-subtitle);
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 2.25rem;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  width: 100%;
}
.hero-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.hero-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  background: var(--fog);
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.hero-card-main {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}
.hero-card-small {
  aspect-ratio: 1;
}
.hero-card-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 6px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.hero-card-raw::after {
  content: 'Your photo';
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  background: rgba(25, 24, 28, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 6px;
  color: #fff;
  letter-spacing: 0.02em;
}

/* Tablet & Mobile Hero Layout */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .hero-text {
    max-width: 100%;
    text-align: left;
  }
  .hero-sub {
    max-width: 600px;
  }
  .hero-visual {
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 1.25rem);
    padding-bottom: 2.5rem;
  }
  .hero-headline {
    margin-bottom: 1rem;
  }
  .hero-sub {
    margin-bottom: 1.75rem;
  }
  .hero-actions {
    gap: 0.875rem;
  }
  .hero-visual-grid {
    gap: 8px;
  }
  .hero-card-label,
  .hero-card-raw::after {
    padding: 3px 8px;
    font-size: 0.625rem;
    border-radius: 4px;
  }
}

@media (max-width: 440px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn-primary {
    width: 100%;
  }
  .hero-actions .btn-secondary {
    justify-content: center;
  }
}

/* ---------- 7. TRUST STRIP ---------- */
.trust-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--fog);
  border-bottom: 1px solid var(--fog);
  background: rgba(255, 255, 255, 0.4);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}
.trust-label {
  font-size: var(--fs-small);
  color: var(--slate);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  flex-wrap: wrap;
  justify-content: center;
}
.trust-logo {
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  color: var(--slate);
  opacity: 0.48;
  letter-spacing: -0.02em;
  transition: opacity var(--duration) var(--ease);
  user-select: none;
}
.trust-logo:hover {
  opacity: 0.8;
}

@media (max-width: 600px) {
  .trust-strip {
    padding: 1.75rem 0;
  }
  .trust-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .trust-label {
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
  }
  .trust-logos {
    gap: 1.25rem 1.75rem;
  }
  .trust-logo {
    font-size: 1rem;
  }
}

/* ---------- 8. HOW IT WORKS ---------- */
.how-it-works {
  background: var(--paper);
}
.how-header {
  text-align: center;
  margin-bottom: var(--gap-inner);
}
.how-header h2 {
  font-size: var(--fs-section);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.how-header p {
  font-size: var(--fs-subtitle);
  color: var(--slate);
  max-width: 480px;
  margin: 0 auto;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.how-step {
  position: relative;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 1px solid var(--fog);
  border-radius: var(--radius-lg);
  counter-increment: step;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.how-step:hover {
  border-color: rgba(54, 87, 255, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
.how-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: var(--flash);
  background: var(--flash-subtle);
  border-radius: 10px;
  margin-bottom: 1.25rem;
}
.how-step h3 {
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.how-step p {
  font-size: var(--fs-small);
  color: var(--slate);
  line-height: 1.55;
}

/* Connector lines between steps (desktop only) */
.how-step::after {
  content: '';
  position: absolute;
  top: 2.75rem;
  right: -0.75rem;
  width: 1.5rem;
  height: 1px;
  background: var(--fog);
}
.how-step:last-child::after { display: none; }

/* Responsive Steps: Tablet (2x2) and Mobile (1 col) */
@media (max-width: 1024px) {
  .how-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .how-step::after { display: none; }
}

@media (max-width: 600px) {
  .how-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .how-step {
    padding: 1.5rem 1.25rem;
  }
}

/* ---------- 9. BEFORE & AFTER ---------- */
.before-after {
  background: #fff;
  border-top: 1px solid var(--fog);
  border-bottom: 1px solid var(--fog);
}
.ba-header {
  text-align: center;
  margin-bottom: var(--gap-inner);
}
.ba-header h2 {
  font-size: var(--fs-section);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.ba-header p {
  font-size: var(--fs-subtitle);
  color: var(--slate);
  max-width: 520px;
  margin: 0 auto;
}

/* Category Tabs */
.ba-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}
.ba-tab {
  padding: 0.6rem 1.25rem;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--slate);
  background: transparent;
  border: 1px solid var(--fog);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  min-height: 40px;
}
.ba-tab:hover {
  border-color: var(--slate);
  color: var(--ink);
}
.ba-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Slider Wrap */
.ba-slider-wrap {
  max-width: 780px;
  width: 100%;
  margin: 0 auto 2.25rem;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  background: var(--fog);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
  touch-action: pan-y;
}
.ba-slider-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-img-after {
  z-index: 1;
}
.ba-img-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--flash);
  border: 3px solid #fff;
  border-radius: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(54, 87, 255, 0.4);
  transition: box-shadow var(--duration) var(--ease),
              transform 0.1s var(--ease);
  touch-action: none;
}
.ba-handle:hover,
.ba-handle:focus-visible {
  box-shadow: 0 4px 24px rgba(54, 87, 255, 0.55);
  outline: none;
}
.ba-handle svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.ba-labels {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  z-index: 5;
  pointer-events: none;
}
.ba-label {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  border-radius: 6px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ba-label-before {
  background: rgba(25, 24, 28, 0.7);
  color: #fff;
}
.ba-label-after {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

/* Generated 5 Results Strip */
.ba-results {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}
.ba-result {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--fog);
  transition: border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  background: #fff;
}
.ba-result:hover {
  border-color: rgba(54, 87, 255, 0.25);
  transform: translateY(-2px);
}
.ba-result img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.ba-result-label {
  padding: 0.5rem;
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  text-align: center;
  color: var(--slate);
  background: #fff;
  letter-spacing: 0.02em;
  border-top: 1px solid var(--fog);
}

.ba-caption {
  text-align: center;
  margin-top: 1.75rem;
  font-size: var(--fs-small);
  color: var(--slate);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile & Tablet Slider Adaptations */
@media (max-width: 640px) {
  .ba-tabs {
    margin-bottom: 1.5rem;
    gap: 0.375rem;
  }
  .ba-tab {
    padding: 0.5rem 1rem;
    font-size: var(--fs-tiny);
  }
  .ba-slider-wrap {
    margin-bottom: 1.5rem;
  }
  .ba-label {
    padding: 4px 8px;
    font-size: 0.6875rem;
  }

  /* Result strip turns into swipeable carousel on mobile */
  .ba-results {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.625rem;
    padding: 0.25rem 0.25rem 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--fog) transparent;
  }
  .ba-results::-webkit-scrollbar {
    height: 4px;
  }
  .ba-results::-webkit-scrollbar-track {
    background: transparent;
  }
  .ba-results::-webkit-scrollbar-thumb {
    background: var(--fog);
    border-radius: 4px;
  }
  .ba-result {
    flex: 0 0 120px;
    scroll-snap-align: start;
  }
  .ba-caption {
    margin-top: 1.25rem;
  }
}

/* ---------- 10. FEATURE DEEP-DIVES ---------- */
.feature-section {
  border-bottom: 1px solid var(--fog);
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-media { order: 1; }

.feature-text h2 {
  font-size: var(--fs-section);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.feature-text p {
  font-size: var(--fs-subtitle);
  color: var(--slate);
  line-height: 1.55;
  max-width: 440px;
}
.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 35px rgba(0, 0, 0, 0.06);
  background: var(--fog);
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 880px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-media { order: 2; }
  .feature-text {
    max-width: 100%;
  }
  .feature-text p {
    max-width: 100%;
  }
  .feature-media {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .feature-media {
    max-height: 340px;
  }
}

/* ---------- 11. CATEGORY GRID ---------- */
.categories {
  background: #fff;
  border-top: 1px solid var(--fog);
  border-bottom: 1px solid var(--fog);
}
.cat-header {
  text-align: center;
  margin-bottom: var(--gap-inner);
}
.cat-header h2 {
  font-size: var(--fs-section);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.cat-header p {
  font-size: var(--fs-subtitle);
  color: var(--slate);
  max-width: 440px;
  margin: 0 auto;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.cat-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--fog);
}
.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.cat-tile:hover img {
  transform: scale(1.04);
}
.cat-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(25, 24, 28, 0.65), transparent 60%);
  transition: background var(--duration) var(--ease);
}
.cat-tile:hover .cat-tile-overlay {
  background: linear-gradient(to top, rgba(25, 24, 28, 0.75), transparent 70%);
}
.cat-tile-label {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: #fff;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }
  .cat-tile {
    border-radius: var(--radius);
  }
  .cat-tile-label {
    bottom: 0.875rem;
    left: 0.875rem;
    font-size: 0.9375rem;
  }
}

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

/* ---------- 12. PRICING TEASER ---------- */
.pricing {
  background: var(--paper);
}
.pricing-header {
  text-align: center;
  margin-bottom: var(--gap-inner);
}
.pricing-header h2 {
  font-size: var(--fs-section);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.pricing-header p {
  font-size: var(--fs-subtitle);
  color: var(--slate);
  max-width: 480px;
  margin: 0 auto;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 980px;
  margin: 0 auto;
  align-items: stretch;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--fog);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.pricing-card:hover {
  border-color: rgba(54, 87, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}
.pricing-card.featured {
  border-color: var(--flash);
  box-shadow: 0 10px 40px rgba(54, 87, 255, 0.12);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  color: #fff;
  background: var(--flash);
  border-radius: 50px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pricing-name {
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 0.5rem;
}
.pricing-desc {
  font-size: var(--fs-small);
  color: var(--slate);
  margin-bottom: 1.5rem;
  min-height: 2.4em;
}
.pricing-price {
  margin-bottom: 1.5rem;
}
.pricing-amount {
  font-size: 2.25rem;
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: 1;
}
.pricing-period {
  font-size: var(--fs-small);
  color: var(--slate);
}
.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  flex: 1;
}
.pricing-features li {
  font-size: var(--fs-small);
  color: var(--slate);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--fog);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li svg {
  width: 16px;
  height: 16px;
  color: var(--flash);
  flex-shrink: 0;
}
.pricing-card .btn-primary {
  width: 100%;
}
.pricing-card .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 2rem;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--fog);
  border-radius: 50px;
  transition: all var(--duration) var(--ease);
  min-height: 48px;
}
.pricing-card .btn-outline:hover {
  border-color: var(--ink);
}

/* Tablet Pricing Adjustments */
@media (max-width: 960px) and (min-width: 769px) {
  .pricing-cards {
    gap: 0.875rem;
  }
  .pricing-card {
    padding: 1.875rem 1.25rem;
  }
  .pricing-amount {
    font-size: 2rem;
  }
}

/* Mobile Pricing Cards */
@media (max-width: 768px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 1.5rem;
  }
  .pricing-desc {
    min-height: auto;
  }
  .pricing-card {
    padding: 2rem 1.5rem;
  }
}

/* ---------- 13. FAQ ---------- */
.faq {
  background: #fff;
  border-top: 1px solid var(--fog);
}
.faq-header {
  text-align: center;
  margin-bottom: var(--gap-inner);
}
.faq-header h2 {
  font-size: var(--fs-section);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--fog);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.375rem 0;
  font-size: 1.0625rem;
  font-weight: var(--fw-semibold);
  color: var(--ink);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--duration) var(--ease);
  letter-spacing: -0.01em;
  min-height: 48px;
}
.faq-question:hover { color: var(--flash); }
.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--duration) var(--ease);
}
.faq-icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}
.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-answer-inner {
  padding: 0 0 1.5rem;
  font-size: var(--fs-body);
  color: var(--slate);
  line-height: 1.65;
  max-width: 640px;
}

@media (max-width: 600px) {
  .faq-question {
    padding: 1.125rem 0;
    font-size: 0.975rem;
  }
}

/* ---------- 14. FINAL CTA ---------- */
.final-cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.final-cta h2 {
  font-size: var(--fs-section);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1rem;
  color: #fff;
}
.final-cta p {
  font-size: var(--fs-subtitle);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2.25rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta .btn-primary {
  font-size: 1.0625rem;
  padding: 1rem 2.5rem;
  min-height: 52px;
}
.final-reassure {
  margin-top: 1.25rem;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 480px) {
  .final-cta .btn-primary {
    width: 100%;
    max-width: 320px;
  }
}

/* ---------- 15. FOOTER ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.45);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 1rem;
  display: block;
}
.footer-brand p {
  font-size: var(--fs-small);
  line-height: 1.6;
  max-width: 260px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-col h4 {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.625rem;
}
.footer-col a {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--duration) var(--ease);
  display: inline-block;
  padding: 2px 0;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-copy {
  font-size: var(--fs-tiny);
}
.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.footer-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--duration) var(--ease);
}
.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-2px);
}
.footer-socials svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 0 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand p {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
