/* ==========================================================================
   Google Photos Frame — V2 Stylesheet
   Palette aligned with GooglePhotosFrame/Utilities/AppColors.swift
   ========================================================================== */

:root {
  /* Core App Palette */
  --parchment: #F5F2E9;
  --parchment-deep: #ECE7DA;
  --card-bg: #FFFFFF;
  --card-border: rgba(217, 214, 204, 0.85);
  --navy: #1B2342;
  --dark-navy: #162653;
  --dark-card: #242C4C;
  --dark-border: rgba(190, 206, 242, 0.16);
  --oled-black: #08090D;

  /* Text */
  --ink: #1B2342;
  --ink-secondary: #4D5366;
  --ink-muted: #7C7A71;
  --ink-on-dark: #F3F4F8;
  --ink-on-dark-muted: #9BA2B8;

  /* Pastel Accents */
  --pastel-blue: #4780D9;
  --pastel-blue-soft: #E3ECF9;
  --design-blue: #A7C7E7;
  --pastel-green: #73B373;
  --pastel-green-soft: #E5F2E5;
  --pastel-orange: #F2A74D;
  --warm-peach: #FFD1B5;
  --soft-peach: #FFE8D9;
  --pastel-purple: #BECEF2;
  --pastel-coral: #FF9999;

  /* Layout & Motion */
  --max-w: 1160px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 50px rgba(27, 35, 66, 0.08);
  --shadow-card: 0 10px 30px rgba(27, 35, 66, 0.06);
  --shadow-frame: 0 28px 70px rgba(10, 14, 28, 0.28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background-color: var(--parchment);
  color: var(--ink);
  line-height: 1.62;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

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

/* ==========================================================================
   Scroll Progress Bar
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pastel-blue), var(--pastel-orange), var(--pastel-green));
  transition: width 60ms linear;
}

/* ==========================================================================
   Navigation — Minimal
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(245, 242, 233, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 214, 204, 0.65);
  transition: box-shadow 0.3s var(--ease-out);
}

.nav.is-scrolled {
  box-shadow: 0 6px 24px rgba(27, 35, 66, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 10px rgba(27, 35, 66, 0.14);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav__link {
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--navy);
}

/* ==========================================================================
   Buttons & Pills
   ========================================================================== */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-row--center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out), background-color 0.2s ease;
}

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

.btn--primary {
  background: var(--navy);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(27, 35, 66, 0.22);
}

.btn--primary:hover {
  background: var(--pastel-blue);
  box-shadow: 0 14px 28px rgba(71, 128, 217, 0.28);
}

.btn--secondary {
  background: var(--card-bg);
  color: var(--navy);
  border-color: var(--card-border);
}

.btn--secondary:hover {
  border-color: var(--pastel-blue);
}

.btn__badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(242, 167, 77, 0.22);
  color: var(--warm-peach);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 18px;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pastel-green);
  box-shadow: 0 0 0 4px rgba(115, 179, 115, 0.2);
}

/* ==========================================================================
   Hero Section — Full-Bleed Living Room Background
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(540px, 68vh, 680px);
  display: flex;
  align-items: center;
  padding: 72px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, #D8D1C4 0%, #E7E0D3 58%, #EFE9DD 100%);
  border-bottom: 1px solid rgba(217, 214, 204, 0.75);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    #EAE3D6 0%,
    #E6DFD2 32%,
    rgba(230, 223, 210, 0.85) 39%,
    rgba(230, 223, 210, 0) 49%
  );
}

.hero__bg-img {
  width: 65%;
  min-width: 620px;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 10%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 10%, #000 22%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 480px) 1fr;
  align-items: center;
  gap: 48px;
}

.hero__content {
  position: relative;
  padding: 6px 0;
}

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(1.95rem, 3.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--navy);
}

.hero__lead {
  margin: 0 0 28px;
  font-size: 1.06rem;
  color: #363C50;
  max-width: 46ch;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(27, 35, 66, 0.14);
  font-size: 0.88rem;
  color: #484E62;
}

.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.hero__visual {
  display: none;
  position: relative;
}

.hero__photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.hero__photo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.floating-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(217, 214, 204, 0.9);
  box-shadow: 0 12px 28px rgba(27, 35, 66, 0.14);
  font-size: 0.82rem;
  color: var(--navy);
  will-change: transform;
}

.floating-pill--top {
  top: 16px;
  right: 16px;
}

.floating-pill__title {
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.floating-pill__sub {
  font-size: 0.74rem;
  color: var(--ink-muted);
  display: block;
}

/* ==========================================================================
   Section Headers & Selling Points Grid
   ========================================================================== */
.section {
  padding: 88px 0;
  position: relative;
}

.section__header {
  max-width: 660px;
  margin: 0 auto 52px;
  text-align: center;
}

.section__kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pastel-blue);
  margin-bottom: 10px;
}

.section__title {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--navy);
}

.section__subtitle {
  margin: 0;
  font-size: 1.03rem;
  color: var(--ink-secondary);
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.point-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

.point-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.point-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.point-card__icon--blue { background: var(--pastel-blue-soft); color: var(--pastel-blue); }
.point-card__icon--green { background: var(--pastel-green-soft); color: #4A8B4A; }
.point-card__icon--peach { background: var(--soft-peach); color: #C97622; }
.point-card__icon--purple { background: rgba(190, 206, 242, 0.45); color: var(--dark-navy); }

.point-card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.point-card__desc {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Sticky Scroll Choreography Section (Dark Navy Showcase)
   ========================================================================== */
.showcase {
  background: var(--navy);
  color: var(--ink-on-dark);
  padding: 104px 0;
  position: relative;
}

.showcase .section__header {
  margin-bottom: 64px;
}

.showcase .section__kicker {
  color: var(--pastel-orange);
}

.showcase .section__title {
  color: #FFFFFF;
}

.showcase .section__subtitle {
  color: var(--ink-on-dark-muted);
}

.showcase__layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: start;
}

.showcase__chapters {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.chapter {
  padding: 28px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(190, 206, 242, 0.12);
  opacity: 0.48;
  transform: translateX(0);
  cursor: pointer;
  transition: opacity 0.35s var(--ease-out), background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.chapter.is-active {
  opacity: 1;
  background: var(--dark-card);
  border-color: rgba(242, 167, 77, 0.55);
  transform: translateX(6px);
}

.chapter__step {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pastel-orange);
  margin-bottom: 8px;
  display: block;
}

.chapter__title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
}

.chapter__desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-on-dark-muted);
}

/* Sticky Stage & iPad Frame */
.showcase__stage-wrap {
  position: sticky;
  top: 108px;
}

.ipad-bezel {
  background: #141720;
  border-radius: 30px;
  padding: 18px 22px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-frame);
  position: relative;
}

.ipad-bezel__camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2C3347;
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.ipad-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--oled-black);
}

.stage-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stage-panel.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Stage 0: Live Cross-Dissolve */
.kb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}

.kb-slide.is-visible {
  opacity: 1;
}

.kb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 14s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1.5%, -1%); }
}

/* Stage 1: Streaming — Simplified Visual */
.diagram-panel {
  padding: 26px;
  background: radial-gradient(circle at top right, rgba(71, 128, 217, 0.22), #0F1426 65%);
  width: 100%;
  height: 100%;
  text-align: center;
}

.stream-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 16px;
  margin-bottom: 24px;
}

.stream-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
}

.stream-node__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stream-node--cloud .stream-node__icon {
  background: rgba(71, 128, 217, 0.18);
  border: 1px solid rgba(71, 128, 217, 0.35);
}

.stream-node--ipad .stream-node__icon {
  background: rgba(115, 179, 115, 0.18);
  border: 1px solid rgba(115, 179, 115, 0.35);
}

.stream-node__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.3;
  text-align: center;
}

.stream-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  min-width: 100px;
}

.stream-flow__line {
  width: 80px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pastel-blue), var(--pastel-green));
  position: relative;
  overflow: hidden;
}

.stream-flow__line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40px;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -40px; }
  100% { left: 120px; }
}

.stream-flow__tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-on-dark-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.stream-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.stream-benefit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(115, 179, 115, 0.1);
  border: 1px solid rgba(115, 179, 115, 0.2);
  font-size: 0.76rem;
  font-weight: 500;
  color: #AEE2AE;
}

/* Stage 2: Interactive 24-Hour Schedule Dial */
.schedule-panel {
  padding: 22px 26px;
  background: radial-gradient(circle at center, rgba(242, 167, 77, 0.14), #0E1322 70%);
  width: 100%;
  height: 100%;
}

.schedule-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.dial-wrap {
  position: relative;
  width: 214px;
  height: 214px;
  flex-shrink: 0;
}

.dial-center-label {
  position: absolute;
  inset: 0;
  padding: 0 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  pointer-events: none;
}

.dial-center-label strong {
  font-size: 0.86rem;
  line-height: 1.2;
  color: #FFFFFF;
}

.dial-center-label span {
  font-size: 0.7rem;
  line-height: 1.25;
  color: var(--ink-on-dark-muted);
}

.schedule-presets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 210px;
}

.preset-btn {
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 13px;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.preset-btn.is-selected {
  background: rgba(71, 128, 217, 0.25);
  border-color: var(--pastel-orange);
}

.preset-btn strong {
  display: block;
  font-size: 0.84rem;
}

.preset-btn span {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-on-dark-muted);
}

/* Stage 3: Place It and Forget It — Reliability */
.reliability-panel {
  padding: 26px 20px;
  background: radial-gradient(circle at bottom left, rgba(115, 179, 115, 0.18), #0E1322 70%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reliability-visual {
  width: 100%;
}

.reliability-icon-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reliability-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.stage-panel.is-active .reliability-badge {
  opacity: 1;
  transform: translateY(0);
}

.stage-panel.is-active .reliability-badge:nth-child(1) { transition-delay: 60ms; }
.stage-panel.is-active .reliability-badge:nth-child(2) { transition-delay: 150ms; }
.stage-panel.is-active .reliability-badge:nth-child(3) { transition-delay: 240ms; }

.reliability-badge__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reliability-badge__icon--green {
  background: rgba(115, 179, 115, 0.18);
  color: var(--pastel-green);
}

.reliability-badge__icon--blue {
  background: rgba(71, 128, 217, 0.18);
  color: var(--pastel-blue);
}

.reliability-badge__icon--orange {
  background: rgba(242, 167, 77, 0.18);
  color: var(--pastel-orange);
}

.reliability-badge strong {
  display: block;
  font-size: 0.84rem;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.reliability-badge span {
  font-size: 0.76rem;
  color: var(--ink-on-dark-muted);
  line-height: 1.4;
}

.stage-tabs-mobile {
  display: none;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.stage-tab-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink-on-dark-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.stage-tab-pill.is-active {
  background: var(--pastel-orange);
  color: var(--navy);
  border-color: var(--pastel-orange);
}

/* ==========================================================================
   Pricing & Trial Card
   ========================================================================== */
.trial-section {
  background: var(--parchment-deep);
}

.trial-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.trial-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.trial-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  color: var(--ink-secondary);
}

.trial-box {
  background: var(--navy);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
}

.trial-box__tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(115, 179, 115, 0.22);
  color: #AEE2AE;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.trial-box__headline {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
}

.trial-box__desc {
  margin: 0 0 22px;
  font-size: 0.92rem;
  color: var(--ink-on-dark-muted);
}

/* ==========================================================================
   Privacy Policy Page Layout
   ========================================================================== */
.policy-hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid rgba(217, 214, 204, 0.8);
}

.policy-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.policy-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.policy-badge-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px 20px;
}

.policy-badge-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.policy-badge-card span {
  font-size: 0.86rem;
  color: var(--ink-secondary);
}

.policy-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 44px;
  padding: 48px 0 84px;
  align-items: start;
}

.policy-toc {
  position: sticky;
  top: 96px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.policy-toc__title {
  margin: 0 0 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.policy-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.policy-toc a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  font-weight: 500;
}

.policy-toc a:hover {
  color: var(--pastel-blue);
}

.policy-article {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-card);
}

.policy-article section {
  margin-bottom: 34px;
  scroll-margin-top: 96px;
}

.policy-article section:last-child {
  margin-bottom: 0;
}

.policy-article h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--navy);
}

.policy-article p,
.policy-article li {
  color: var(--ink-secondary);
  font-size: 0.97rem;
}

.policy-article ul {
  padding-left: 20px;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--navy);
  color: var(--ink-on-dark-muted);
  padding: 52px 0 40px;
  font-size: 0.88rem;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(190, 206, 242, 0.14);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer__links a {
  color: var(--ink-on-dark);
  text-decoration: none;
  font-weight: 500;
}

.footer__links a:hover {
  color: var(--pastel-orange);
}

.footer__bottom {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  line-height: 1.55;
}

/* ==========================================================================
   Scroll Reveal Utility
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1180px) and (min-width: 961px) {
  .hero {
    min-height: 460px;
    padding: 52px 0 56px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 410px) 1fr;
  }

  .hero__bg-img {
    width: 66%;
    min-width: 640px;
    object-position: 62% center;
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    display: block;
    padding: 48px 0 68px;
    background: var(--parchment);
    border-bottom: none;
  }

  .hero__bg {
    display: none;
  }

  .hero__visual {
    display: block;
  }

  .hero__grid,
  .showcase__layout,
  .trial-card,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .points-grid,
  .policy-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase__stage-wrap {
    position: relative;
    top: 0;
    order: -1;
  }

  .stage-tabs-mobile {
    display: flex;
  }

  .policy-toc {
    position: relative;
    top: 0;
  }
}

@media (max-width: 680px) {
  .nav__inner {
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand {
    font-size: 0.94rem;
    gap: 9px;
    white-space: nowrap;
  }

  .brand__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .nav__right {
    gap: 12px;
    flex-shrink: 0;
  }

  .nav__link {
    font-size: 0.84rem;
  }

  .points-grid,
  .policy-summary-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 0 64px;
  }

  .floating-pill {
    position: static;
    margin-top: 12px;
    width: fit-content;
  }

  .schedule-ui {
    flex-direction: column;
    gap: 14px;
  }

  .trial-card,
  .policy-article {
    padding: 26px 22px;
  }

  /* Ensure hero image is visible on mobile */
  .hero__visual {
    display: block;
  }

  /* Make iPad screen taller on mobile so stage content fits */
  .ipad-screen {
    aspect-ratio: 3 / 4;
  }

  .stream-visual {
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
    margin-bottom: 16px;
  }

  .stream-node {
    padding: 8px 14px;
  }

  .stream-node__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .stream-node__icon svg {
    width: 28px;
    height: 28px;
  }

  .stream-node__label {
    font-size: 0.72rem;
  }

  .stream-flow {
    transform: none;
    padding: 6px 0;
    min-width: auto;
    flex-direction: row;
    gap: 8px;
  }

  .stream-flow__line {
    width: 40px;
    height: 3px;
  }

  .stream-flow__tag {
    font-size: 0.62rem;
  }

  .stream-benefit {
    padding: 4px 10px;
    font-size: 0.68rem;
    gap: 5px;
  }

  .stream-benefit svg {
    width: 12px;
    height: 12px;
  }

  .diagram-panel {
    padding: 16px 14px;
  }

  /* Reliability badges — compact for mobile */
  .reliability-panel {
    padding: 16px 14px;
  }

  .reliability-icon-row {
    gap: 8px;
  }

  .reliability-badge {
    padding: 10px 12px;
    gap: 10px;
  }

  .reliability-badge__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .reliability-badge__icon svg {
    width: 20px;
    height: 20px;
  }

  .reliability-badge strong {
    font-size: 0.78rem;
  }

  .reliability-badge span {
    font-size: 0.7rem;
  }

  /* Schedule dial smaller on mobile */
  .dial-wrap {
    width: 170px;
    height: 170px;
  }

  .dial-wrap svg {
    width: 170px;
    height: 170px;
  }

  .dial-center-label {
    padding: 0 34px;
  }

  .dial-center-label strong {
    font-size: 0.78rem;
  }

  .dial-center-label span {
    font-size: 0.64rem;
  }

  .schedule-panel {
    padding: 14px 16px;
  }

  .preset-btn {
    padding: 8px 10px;
  }

  .preset-btn strong {
    font-size: 0.76rem;
  }

  .preset-btn span {
    font-size: 0.68rem;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }

  .brand {
    font-size: 0.84rem;
    gap: 7px;
  }

  .brand__icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }

  .nav__right {
    gap: 10px;
  }

  .nav__link {
    font-size: 0.78rem;
  }

  .ipad-bezel {
    padding: 12px 14px;
    border-radius: 22px;
  }

  .ipad-screen {
    aspect-ratio: auto;
    min-height: 415px;
  }
}

/* Respect accessibility setting for reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal],
  .reliability-badge {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .kb-slide img,
  .stream-flow__line::after {
    animation: none;
  }
}
