/* BrightDoor — Nordic Sage & Hearth Design System */
:root {
  --canvas: #F7F1E8;
  --canvas-elev: #EFE6D9;
  --card: #FFFBF5;
  --card-glass: rgba(255, 251, 245, 0.82);
  --nav-glass: rgba(247, 241, 232, 0.84);
  --ink: #2B2622;
  --muted: #6E6359;
  --sage: #7A9E7E;
  --sage-text: #3E6344;
  --sage-soft: rgba(122, 158, 126, 0.16);
  --sage-hero-start: #587B5D;
  --sage-hero-end: #4E7058;
  --terracotta: #C8553D;
  --terracotta-soft: rgba(200, 85, 61, 0.14);
  --amber: #DE9B4C;
  --amber-text: #8F5818;
  --amber-soft: rgba(222, 155, 76, 0.16);
  --ochre: #C9A04A;
  --dusty-blue: #6F8FA6;
  --dusty-blue-soft: rgba(111, 143, 166, 0.16);
  --plum: #8C6A7E;
  --plum-soft: rgba(140, 106, 126, 0.16);
  --clay: #B9786A;
  --moss: #8A8F5A;
  --line: rgba(43, 38, 34, 0.10);
  --card-stroke: rgba(43, 38, 34, 0.06);
  --shadow-sm: 0 2px 6px rgba(43, 38, 34, 0.05);
  --shadow-card: 0 12px 32px rgba(43, 38, 34, 0.07), 0 2px 6px rgba(43, 38, 34, 0.04);
  --shadow-hero: 0 16px 34px rgba(88, 123, 93, 0.28);
  --shadow-phone: 0 32px 64px -16px rgba(43, 38, 34, 0.24), 0 8px 20px -6px rgba(43, 38, 34, 0.12);
  --phone-canvas: #F7F1E8;
  --phone-card: #FFFBF5;
  --phone-ink: #2B2622;
  --phone-muted: #6E6359;
  --phone-stroke: rgba(43, 38, 34, 0.06);
  --phone-tab-bg: rgba(255, 251, 245, 0.88);
  --serif: "New York", ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-card: 24px;
  --radius-tile: 18px;
  --max-w: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #1C1F1B;
    --canvas-elev: #252924;
    --card: #32362F;
    --card-glass: rgba(50, 54, 47, 0.86);
    --nav-glass: rgba(28, 31, 27, 0.86);
    --ink: #ECE8E1;
    --muted: #C9C0B2;
    --sage: #7E9580;
    --sage-text: #A5C4A6;
    --sage-soft: rgba(126, 149, 128, 0.22);
    --sage-hero-start: #3C5744;
    --sage-hero-end: #2E4536;
    --terracotta: #AF6B5B;
    --terracotta-soft: rgba(175, 107, 91, 0.22);
    --amber: #B59064;
    --amber-text: #DFB57C;
    --amber-soft: rgba(181, 144, 100, 0.22);
    --ochre: #AC945F;
    --dusty-blue: #788C99;
    --dusty-blue-soft: rgba(120, 140, 153, 0.22);
    --plum: #8C7582;
    --plum-soft: rgba(140, 117, 130, 0.22);
    --clay: #A57F76;
    --moss: #888B67;
    --line: rgba(236, 232, 225, 0.14);
    --card-stroke: rgba(236, 232, 225, 0.20);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.22);
    --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.25);
    --shadow-hero: 0 16px 34px rgba(0, 0, 0, 0.36);
    --shadow-phone: 0 32px 68px -12px rgba(0, 0, 0, 0.58);
    --phone-canvas: #1C1F1B;
    --phone-card: #32362F;
    --phone-ink: #ECE8E1;
    --phone-muted: #C9C0B2;
    --phone-stroke: rgba(236, 232, 225, 0.22);
    --phone-tab-bg: rgba(42, 46, 40, 0.90);
  }
}

:root[data-theme="dark"] {
  --canvas: #1C1F1B;
  --canvas-elev: #252924;
  --card: #32362F;
  --card-glass: rgba(50, 54, 47, 0.86);
  --nav-glass: rgba(28, 31, 27, 0.86);
  --ink: #ECE8E1;
  --muted: #C9C0B2;
  --sage: #7E9580;
  --sage-text: #A5C4A6;
  --sage-soft: rgba(126, 149, 128, 0.22);
  --sage-hero-start: #3C5744;
  --sage-hero-end: #2E4536;
  --terracotta: #AF6B5B;
  --terracotta-soft: rgba(175, 107, 91, 0.22);
  --amber: #B59064;
  --amber-text: #DFB57C;
  --amber-soft: rgba(181, 144, 100, 0.22);
  --ochre: #AC945F;
  --dusty-blue: #788C99;
  --dusty-blue-soft: rgba(120, 140, 153, 0.22);
  --plum: #8C7582;
  --plum-soft: rgba(140, 117, 130, 0.22);
  --clay: #A57F76;
  --moss: #888B67;
  --line: rgba(236, 232, 225, 0.14);
  --card-stroke: rgba(236, 232, 225, 0.20);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.22);
  --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.25);
  --shadow-hero: 0 16px 34px rgba(0, 0, 0, 0.36);
  --shadow-phone: 0 32px 68px -12px rgba(0, 0, 0, 0.58);
  --phone-canvas: #1C1F1B;
  --phone-card: #32362F;
  --phone-ink: #ECE8E1;
  --phone-muted: #C9C0B2;
  --phone-stroke: rgba(236, 232, 225, 0.22);
  --phone-tab-bg: rgba(42, 46, 40, 0.90);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--sage-text);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.85;
}

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

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

/* Sticky Glass Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.brand-wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.theme-toggle:hover {
  transform: scale(1.05);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sage-hero-start), var(--sage-hero-end));
  color: #FFFFFF !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(88, 123, 93, 0.25);
}

.nav-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  padding: 12px 18px 18px;
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 6px 0;
}

@media (max-width: 820px) {
  .nav-links,
  .nav-pill {
    display: none;
  }
  .nav-menu-btn {
    display: inline-flex;
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero-hills-bg {
  position: absolute;
  inset: auto 0 0 0;
  height: 440px;
  width: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

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

@media (max-width: 960px) {
  .hero {
    padding: 28px 0 48px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-lead {
    margin-bottom: 20px;
  }
  .cta-row {
    gap: 10px;
    margin-bottom: 18px;
  }
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-stroke);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--sage-text);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--ink);
}

.hero-title .accent {
  color: var(--sage-text);
}

.hero-lead {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 560px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.btn-appstore-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--canvas);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(43, 38, 34, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-appstore-soon:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.btn-appstore-soon .sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.8;
  line-height: 1.1;
}

.btn-appstore-soon .main {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, background 0.18s ease;
}

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

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-item svg {
  color: var(--sage-text);
  flex-shrink: 0;
}

/* Interactive Hero Phone Stage */
.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.screen-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-stroke);
  box-shadow: var(--shadow-sm);
}

.screen-tab-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.screen-tab-btn.active {
  background: var(--sage-soft);
  color: var(--ink);
}

/* Quick Tab Overview Strip */
.overview-strip {
  padding: 12px 0 40px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 980px) {
  .overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.overview-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--card-stroke);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.overview-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  opacity: 1;
}

.overview-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.overview-card strong {
  font-size: 14.5px;
  line-height: 1.25;
}

.overview-card span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

/* Sections & Headings */
.section {
  padding: 72px 0;
}

.section-elev {
  background: var(--canvas-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 720px) {
  .section {
    padding: 52px 0;
  }
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-text);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
}

.section-sub {
  font-size: 17.5px;
  color: var(--muted);
  margin: 0;
}

/* Alternating Feature Rows */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding: 44px 0;
}

.feature-row + .feature-row {
  border-top: 1px solid var(--line);
}

.feature-row.reverse .feature-media {
  order: -1;
}

@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0;
  }
  .feature-row.reverse .feature-media {
    order: 0;
  }
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

.badge-sage { background: var(--sage-soft); color: var(--sage-text); }
.badge-amber { background: var(--amber-soft); color: var(--amber-text); }
.badge-blue { background: var(--dusty-blue-soft); color: var(--dusty-blue); }
.badge-plum { background: var(--plum-soft); color: var(--plum); }
.badge-terracotta { background: var(--terracotta-soft); color: var(--terracotta); }

.feature-copy h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
}

.feature-copy p {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 22px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  color: var(--ink);
}

.feature-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--sage-text);
}

.feature-media {
  display: flex;
  justify-content: center;
  position: relative;
}

/* ==========================================================================
   Realistic iPhone 16 Pro Frame & In-App UI
   ========================================================================== */
.iphone-frame {
  width: 320px;
  max-width: 100%;
  background: #1B1917;
  border-radius: 50px;
  padding: 11px;
  box-shadow: var(--shadow-phone), inset 0 0 0 2px rgba(255,255,255,0.12);
  position: relative;
  flex-shrink: 0;
}

.iphone-screen {
  background: var(--phone-canvas);
  color: var(--phone-ink);
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
}

.iphone-screen.feature-screen {
  min-height: 540px;
}

.iphone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--phone-ink);
  position: relative;
}

.dynamic-island {
  position: absolute;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
  width: 88px;
  height: 24px;
  border-radius: 999px;
  background: #0F0E0D;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 8px;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.app-brand img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.app-brand span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--phone-ink);
}

.app-toolbar-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sage-icon-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-body {
  flex: 1;
  padding: 4px 14px 78px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-body.no-tabbar {
  padding-bottom: 22px;
}

/* In-app cards & components */
.app-greeting-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 0 2px;
}

.app-greeting {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
  color: var(--phone-ink);
}

.app-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--phone-muted);
  margin-top: 2px;
}

.app-weather {
  text-align: right;
  flex-shrink: 0;
}

.app-weather-temp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--phone-ink);
}

.app-weather-hl {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--phone-muted);
}

.app-card {
  background: var(--phone-card);
  border: 1px solid var(--phone-stroke);
  border-radius: 18px;
  padding: 11px 12px;
  box-shadow: 0 4px 14px rgba(43, 38, 34, 0.05);
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--phone-ink);
  margin-bottom: 8px;
}

.app-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.app-stat-tile {
  padding: 8px 7px;
  border-radius: 13px;
  border: 1px solid var(--phone-stroke);
  background: var(--phone-canvas);
}

.app-stat-tile .num {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-top: 4px;
}

.app-stat-tile .lbl {
  font-size: 9px;
  font-weight: 600;
  color: var(--phone-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-preview-line {
  font-size: 10px;
  color: var(--phone-muted);
  margin-top: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-hero-card {
  background: linear-gradient(135deg, var(--sage-hero-start), var(--sage-hero-end));
  color: #FFFFFF;
  border-radius: 20px;
  padding: 13px 14px;
  box-shadow: 0 8px 18px rgba(88, 123, 93, 0.28);
}

.app-hero-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 4px;
}

.app-hero-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
}

.app-hero-title.serif {
  font-family: var(--serif);
}

.app-hero-sub {
  font-size: 11px;
  opacity: 0.88;
  margin-top: 2px;
}

.app-status-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  margin: 4px 0;
}

.app-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 8px;
}

.app-sage-tile {
  border-radius: 14px;
  padding: 9px 8px;
  border: 1px solid var(--phone-stroke);
}

.app-sage-tile.amber { background: var(--amber-soft); }
.app-sage-tile.sage { background: var(--sage-soft); }
.app-sage-tile.plum { background: var(--plum-soft); }

.app-sage-tile .tile-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}

.app-sage-tile .tile-name {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--phone-muted);
}

.app-sage-tile .tile-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--phone-ink);
}

/* Segmented Bar & Aisle Chips */
.app-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(110, 99, 89, 0.14);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.app-segment span {
  padding: 4px 6px;
  border-radius: 8px;
  color: var(--phone-muted);
}

.app-segment span.active {
  background: var(--phone-card);
  color: var(--phone-ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.app-progress-track {
  height: 5px;
  border-radius: 999px;
  background: var(--sage-soft);
  overflow: hidden;
  margin: 6px 0 4px;
}

.app-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--sage);
}

.aisle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.aisle-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  background: var(--phone-canvas);
  border: 1px solid var(--phone-stroke);
}

.aisle-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.app-row-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 13px;
  background: var(--phone-card);
  border: 1px solid var(--phone-stroke);
  font-size: 11.5px;
  font-weight: 600;
}

.app-check-circle {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  flex-shrink: 0;
}

.app-check-circle.done {
  background: var(--sage);
  border-color: var(--sage);
}

.pill-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

/* 7-day Week Strip */
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
  padding: 4px 0;
}

.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.week-day .wd-letter {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--phone-muted);
}

.week-day .wd-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
}

.week-day.selected .wd-num {
  background: var(--sage);
  color: #FFFFFF;
}

.week-day.today .wd-num {
  box-shadow: inset 0 0 0 1.5px var(--sage);
}

.week-day .wd-bar {
  width: 7px;
  border-radius: 999px;
  background: var(--sage);
}

.week-day .wd-bar.empty {
  background: var(--sage-soft);
  height: 5px;
}

.event-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 15px;
  background: var(--phone-card);
  border: 1px solid var(--phone-stroke);
}

.event-stripe {
  width: 3.5px;
  height: 30px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Kids Hills + Countdown Ring */
.kids-hills-box {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 98px;
  background: var(--phone-canvas);
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
}

.kids-hills-box svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kids-avatar-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
}

.kids-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage-hero-start);
  color: #FFFFFF;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--phone-card);
}

.countdown-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(var(--amber) 0 72%, rgba(255,255,255,0.25) 72% 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.countdown-ring-inner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage-hero-end);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
  line-height: 1.05;
}

/* Ask Chat Sheet inside Phone */
.ask-bubble-user {
  align-self: flex-end;
  max-width: 84%;
  padding: 8px 11px;
  border-radius: 16px 16px 4px 16px;
  background: var(--sage-hero-start);
  color: #FFFFFF;
  font-size: 11.5px;
  line-height: 1.4;
}

.ask-bubble-ai {
  align-self: flex-start;
  max-width: 92%;
  padding: 9px 11px;
  border-radius: 16px 16px 16px 4px;
  background: var(--phone-card);
  border: 1px solid var(--phone-stroke);
  color: var(--phone-ink);
  font-size: 11.5px;
  line-height: 1.4;
}

.ask-action-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--sage-soft);
  color: var(--sage-text);
  font-size: 10.5px;
  font-weight: 700;
}

.ask-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ask-chip {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--phone-card);
  border: 1px solid var(--phone-stroke);
  font-size: 10px;
  font-weight: 600;
  color: var(--phone-ink);
}

/* Floating Frosted SageTabBar */
.sage-tabbar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 14px;
  padding: 5px 6px;
  border-radius: 26px;
  background: var(--phone-tab-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--phone-stroke);
  box-shadow: 0 8px 20px rgba(43, 38, 34, 0.14);
  display: flex;
  align-items: center;
  gap: 2px;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 5px 2px;
  border-radius: 18px;
  font-size: 8px;
  font-weight: 600;
  color: var(--phone-muted);
  position: relative;
}

.tab-item.active {
  background: var(--sage-soft);
  color: var(--phone-ink);
  font-weight: 700;
}

.tab-badge {
  position: absolute;
  top: 2px;
  right: 6px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--terracotta);
  color: #FFFFFF;
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1.3;
}

.tab-ask-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sage);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 2px;
  box-shadow: 0 3px 8px rgba(122, 158, 126, 0.35);
}

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: rgba(110, 99, 89, 0.35);
}

/* Tabbed Hero Screen Visibility */
.hero-pane {
  display: none;
}

.hero-pane.active {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   Widgets, Live Activities & Apple Watch Showcase
   ========================================================================== */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

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

.eco-card {
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.eco-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 8px;
}

.eco-card p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.widget-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ios-widget {
  background: var(--canvas);
  border: 1px solid var(--card-stroke);
  border-radius: 22px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.ios-widget-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.widget-btn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.widget-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 12px;
  background: var(--sage-soft);
  color: var(--sage-text);
  font-size: 10.5px;
  font-weight: 700;
}

.live-activity-pill {
  background: #1C1F1B;
  color: #ECE8E1;
  border-radius: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(236, 232, 225, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.watch-stage {
  display: flex;
  justify-content: center;
  padding: 6px 0;
}

.watch-frame {
  width: 214px;
  background: #1E1D1B;
  border-radius: 44px;
  padding: 13px;
  position: relative;
  box-shadow: 0 18px 38px rgba(43, 38, 34, 0.25), inset 0 0 0 2px rgba(255,255,255,0.10);
}

.watch-crown {
  position: absolute;
  right: -7px;
  top: 46px;
  width: 7px;
  height: 28px;
  border-radius: 0 4px 4px 0;
  background: #3B3936;
}

.watch-screen {
  background: #141714;
  color: #ECE8E1;
  border-radius: 32px;
  padding: 14px 12px;
  font-size: 11px;
}

.watch-btn-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 6px;
}

.watch-btn {
  padding: 6px 3px;
  border-radius: 9px;
  text-align: center;
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(126, 149, 128, 0.26);
  color: #ECE8E1;
}

.watch-btn.amber {
  background: rgba(222, 155, 76, 0.25);
  color: #F4C78D;
}

/* ==========================================================================
   Privacy & Architecture Grid
   ========================================================================== */
.privacy-hero-banner {
  background: linear-gradient(135deg, var(--sage-hero-start), var(--sage-hero-end));
  color: #FFFFFF;
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow-hero);
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 840px) {
  .privacy-hero-banner {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }
}

.privacy-hero-banner h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.18;
  margin: 0 0 12px;
}

.privacy-hero-banner p {
  margin: 0;
  opacity: 0.92;
  font-size: 16.5px;
}

.privacy-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.privacy-stat {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 14px;
}

.privacy-stat strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.privacy-stat span {
  font-size: 12.5px;
  opacity: 0.88;
}

.privacy-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .privacy-cards {
    grid-template-columns: 1fr;
  }
}

.privacy-card {
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.privacy-card h4 {
  font-size: 17px;
  margin: 12px 0 8px;
}

.privacy-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

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

.price-card {
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.price-card.premium {
  border: 2px solid var(--sage);
  position: relative;
}

.price-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.price-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 0 0 8px;
}

.price-card .price-desc {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0 0 22px;
}

.plan-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

@media (max-width: 520px) {
  .plan-tiers {
    grid-template-columns: 1fr;
  }
}

.plan-pill {
  border-radius: 16px;
  padding: 12px 10px;
  background: var(--canvas);
  border: 1px solid var(--card-stroke);
  text-align: center;
}

.plan-pill.best {
  background: var(--sage-soft);
  border-color: var(--sage);
}

.plan-pill .plan-name {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}

.plan-pill .plan-cost {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 2px 0;
}

.plan-pill .plan-note {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--sage-text);
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}

.price-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--sage-text);
}

.price-card.premium .price-list li svg {
  color: var(--amber-text);
}

.price-footnote {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin: 0;
}

/* ==========================================================================
   FAQ & Final CTA
   ========================================================================== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: 20px;
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  font-size: 16.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--sage-text);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15.5px;
}

.closing-cta {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: 32px;
  padding: 52px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.closing-cta h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.8vw, 42px);
  margin: 14px 0 12px;
}

.closing-cta p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 26px;
}

/* ==========================================================================
   Legal & Support Pages (.doc-shell)
   ========================================================================== */
.doc-wrap {
  padding: 48px 0 72px;
}

.doc-shell {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: 28px;
  padding: 42px 44px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 640px) {
  .doc-shell {
    padding: 26px 20px;
    border-radius: 22px;
  }
}

.doc-shell h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  margin: 0 0 16px;
}

.doc-shell h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  margin: 32px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.doc-shell p,
.doc-shell li {
  font-size: 16.5px;
  color: var(--ink);
}

.doc-shell ul {
  padding-left: 22px;
}

.doc-shell table {
  border-collapse: collapse;
  width: 100%;
  margin: 18px 0;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}

.doc-shell th,
.doc-shell td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.doc-shell th {
  background: var(--canvas);
  font-weight: 700;
}

/* Support cards */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

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

.support-tile {
  background: var(--canvas);
  border: 1px solid var(--card-stroke);
  border-radius: 20px;
  padding: 20px;
}

.support-tile h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.support-tile p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

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

.footer-legal {
  margin-top: 18px;
  font-size: 12.5px;
  opacity: 0.85;
}

/* Subtle Scroll Reveal */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js-anim .reveal:not(.in-view) {
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal:not(.in-view) {
    opacity: 1;
    transform: none;
  }
  .reveal {
    transition: none;
  }
}

@media (max-width: 440px) {
  .eyebrow-pill {
    font-size: 11.5px;
    padding: 5px 11px;
    gap: 6px;
  }
  .screen-switcher {
    gap: 2px;
    padding: 4px;
  }
  .screen-tab-btn {
    padding: 5px 9px;
    font-size: 11.5px;
  }
  .btn-appstore-soon {
    padding: 10px 15px;
    gap: 9px;
  }
  .btn-appstore-soon .main {
    font-size: 15px;
  }
  .btn-secondary {
    padding: 11px 15px;
    font-size: 14.5px;
  }
}
