@font-face {
  font-family: "Inter";
  src: url("Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #FAFAF7;
  --surface: #F2F1EC;
  --surface-elevated: #FFFFFF;
  --ink: #111110;
  --muted: #6B6B66;
  --hairline: #E2E1DB;
  --signal: #C23B22;
  --signal-soft: rgba(194, 59, 34, 0.12);
  --glow: #EC6A3D;
  --glow-halo: rgba(139, 92, 246, 0.58);
  --shadow-sm: 0 4px 14px rgba(17, 17, 16, 0.05);
  --shadow-md: 0 18px 48px rgba(17, 17, 16, 0.08);
  --shadow-lg: 0 32px 88px rgba(17, 17, 16, 0.14);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

[data-theme="dark"] {
  --paper: #0E0E0C;
  --surface: #1A1A17;
  --surface-elevated: #22221E;
  --ink: #F2F1EC;
  --muted: #8A8A82;
  --hairline: #2A2A26;
  --signal: #D9533A;
  --signal-soft: rgba(217, 83, 58, 0.16);
  --glow: #EC6A3D;
  --glow-halo: rgba(139, 92, 246, 0.65);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 32px 88px rgba(0, 0, 0, 0.62);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

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

button, input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

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

h1, h2, h3, h4, p, figure {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

h1 {
  font-size: clamp(44px, 5.1vw, 74px);
}

h2 {
  font-size: clamp(32px, 3.7vw, 54px);
}

h3 {
  font-size: clamp(20px, 2vw, 27px);
  letter-spacing: -0.03em;
}

em {
  font-style: normal;
  color: var(--signal);
}

.mono, .eyebrow {
  font-family: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  display: inline-block;
  flex-shrink: 0;
}

.lede {
  font-size: clamp(16.5px, 1.3vw, 19.5px);
  line-height: 1.62;
  color: var(--muted);
  font-weight: 450;
}

.shell {
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 999px;
  z-index: 999;
  font-size: 13px;
  font-weight: 600;
}
.skip:focus {
  top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--signal);
  outline-offset: 4px;
}

/* ============================================================================
   SITE HEADER
   ============================================================================ */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}

.site-header {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--muted);
}

.site-header nav a:hover {
  color: var(--ink);
}

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

.icon-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.icon-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.button:hover {
  background: var(--signal);
  color: #FAFAF7;
  transform: translateY(-1.5px);
  box-shadow: 0 12px 28px rgba(194, 59, 34, 0.24);
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--surface-elevated);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.button.small {
  padding: 9px 17px;
  font-size: 13px;
}

/* ============================================================================
   HERO SECTION (Live Search + Ask Glean + Organic Atlas)
   ============================================================================ */
.h-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 64px;
  align-items: start;
}

.h-left,
.h-Right-Atlas-Card {
  min-width: 0;
}

.h-hero h1 {
  margin: 16px 0 18px;
}

.h-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.h-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.h-search-box {
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}

.h-cue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font: 600 10.5px ui-monospace, "SF Mono", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}

.h-Right-Atlas-Card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 22px 24px 18px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 94px;
}

.map-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.map-coordinate {
  font: 600 11px ui-monospace, "SF Mono", Consolas, monospace;
  color: var(--signal);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.map-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================================
   GLEAN GENERATED TEXT GLOW ENGINE (GleanMotion.Glow + GleanPalette.glow)
   ============================================================================ */
.glow-char {
  display: inline;
  transition: none;
}

.glow-char.unborn {
  opacity: 0;
}

.glow-char.warm {
  color: var(--glow);
  text-shadow: 0 0 9px var(--glow-halo), 0 0 3px rgba(236, 106, 61, 0.45);
}

.glow-char.cooling {
  color: color-mix(in srgb, var(--glow) var(--warmth, 50%), var(--ink));
  text-shadow: 0 0 calc(8px * var(--warmth-num, 0.5)) rgba(139, 92, 246, calc(0.55 * var(--warmth-num, 0.5)));
}

/* Citation Chip Pop-in (GleanMotion.Glow.chipPop: spring 0.42s, 60ms stagger) */
.cite-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--signal);
  cursor: pointer;
  transform-origin: left center;
  opacity: 0;
  transform: scale(0.84);
  transition: opacity 0.36s ease, transform 0.42s cubic-bezier(0.28, 1.45, 0.45, 1), background 0.18s, border-color 0.18s;
}

.cite-chip.popped {
  opacity: 1;
  transform: scale(1);
}

.cite-chip:hover {
  background: var(--signal-soft);
  border-color: var(--signal);
}

.cite-chip .cite-num {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

/* ============================================================================
   TICKER BAR
   ============================================================================ */
.a-ticker {
  border-block: 1px solid var(--hairline);
  padding-block: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font: 600 11px ui-monospace, "SF Mono", Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.a-ticker i {
  font-style: normal;
  color: var(--signal);
}

/* ============================================================================
   SECTIONS & HEADERS
   ============================================================================ */
.section {
  padding-block: 96px;
  border-bottom: 1px solid var(--hairline);
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-top: 12px;
}

/* ============================================================================
   LIVE INTERACTIVE EXPLORE SHELVES + COMPOSED PAGE READER + IMAGE PLAYGROUND
   ============================================================================ */
.pages-studio {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 36px;
  align-items: start;
}

.shelf-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shelf-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Authentic PageCard Mirroring Features/Pages/Sources/PageCard.swift */
.page-card {
  position: relative;
  border-radius: 20px;
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  display: flex;
  flex-direction: column;
  min-height: 268px;
}

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

.page-card[aria-selected="true"] {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft), var(--shadow-md);
}

.page-card-art-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  overflow: hidden;
  pointer-events: none;
}

.page-card-canvas {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.8s ease, filter 0.8s ease;
}

/* PageCard.textScrim */
.page-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(242, 241, 236, 0) 24%,
    rgba(242, 241, 236, 0.84) 54%,
    rgba(242, 241, 236, 0.97) 76%,
    var(--surface) 100%
  );
}

[data-theme="dark"] .page-card-scrim {
  background: linear-gradient(
    180deg,
    rgba(26, 26, 23, 0) 24%,
    rgba(26, 26, 23, 0.84) 54%,
    rgba(26, 26, 23, 0.97) 76%,
    var(--surface) 100%
  );
}

/* PageArtDrawingOverlay (AngularGradient + Diagonal Light Sweep + Sparkle) */
.page-art-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.45s ease, transform 0.9s ease, filter 0.9s ease;
}

.page-art-overlay.is-drawing {
  opacity: 1;
}

.page-art-overlay.letting-go {
  opacity: 0;
  transform: scale(1.14);
  filter: blur(14px) brightness(1.22);
  transition: opacity 1.1s ease-out, transform 1.1s ease-out, filter 1.1s ease-out;
}

.page-art-overlay::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 0deg,
    hsl(280, 65%, 65%),
    hsl(208, 75%, 62%),
    hsl(335, 65%, 65%),
    hsl(28, 80%, 62%),
    hsl(280, 65%, 65%)
  );
  animation: art-spin 3.2s linear infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  padding: 6px;
  filter: blur(6px);
  opacity: 0.85;
}

.page-art-overlay::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 55%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: rotate(20deg);
  animation: art-sweep 1.8s ease-in-out infinite;
}

.page-art-sparkle {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFFFFF;
  font-size: 24px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
  animation: sparkle-breathe 1.4s ease-in-out infinite;
}

@keyframes art-spin {
  to { transform: rotate(360deg); }
}
@keyframes art-sweep {
  0% { left: -65%; }
  100% { left: 125%; }
}
@keyframes sparkle-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.85; }
  50% { transform: translate(-50%, -50%) scale(1.16); opacity: 1; }
}

.page-card-sparkle-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(17, 17, 16, 0.52);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: transform 0.2s, background 0.2s;
}

.page-card-sparkle-btn:hover {
  background: var(--signal);
  transform: scale(1.08);
}

.page-card-status {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  background: rgba(17, 17, 16, 0.62);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font: 600 9.5px ui-monospace, "SF Mono", Consolas, monospace;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.page-card-body {
  position: relative;
  z-index: 2;
  margin-top: 108px;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.page-card-kicker {
  font: 550 11px ui-monospace, "SF Mono", Consolas, monospace;
  color: var(--muted);
}

.page-card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--ink);
}

.page-card-glance {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-card-thumbs {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

.mini-thumb {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Live ComposedPageView Reader Panel */
.composed-reader {
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.composed-reader-header-art {
  position: relative;
  height: 168px;
  overflow: hidden;
}

.composed-reader-header-art canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.composed-reader-header-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, var(--surface) 100%);
}

.composed-reader-toolbar {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 3;
}

.reader-pill-btn {
  background: rgba(17, 17, 16, 0.68);
  backdrop-filter: blur(10px);
  color: #FAFAF7;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 13px;
  font: 600 11.5px ui-monospace, "SF Mono", Consolas, monospace;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s, transform 0.18s;
}

.reader-pill-btn:hover {
  background: var(--signal);
  transform: translateY(-1px);
}

.composed-reader-content {
  padding: 8px 30px 30px;
}

.composed-provenance {
  font: 600 11px ui-monospace, "SF Mono", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 8px 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.composed-meta {
  font: 500 12.5px ui-monospace, "SF Mono", Consolas, monospace;
  color: var(--muted);
  margin-bottom: 18px;
}

.composed-block-heading {
  font-size: 19px;
  font-weight: 700;
  margin: 20px 0 8px;
}

.composed-block-para {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  margin-bottom: 10px;
}

.composed-cites-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.composed-fixed-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.composed-fixed-section.arrived {
  opacity: 1;
  transform: translateY(0);
}

/* Interactive Copenhagen Map Block inside ComposedPageView */
.page-map-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #DCE6DF;
  height: 210px;
  margin-bottom: 16px;
}

[data-theme="dark"] .page-map-card {
  background: #1B2420;
}

/* ============================================================================
   INTERACTIVE PRODUCT TOUR
   ============================================================================ */
.showcase-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.stage-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-tab {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: transparent;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.stage-tab:hover {
  background: var(--surface);
}

.stage-tab[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--signal);
  box-shadow: var(--shadow-sm);
  transform: translateX(5px);
}

.stage-num {
  font: 600 12px ui-monospace, "SF Mono", Consolas, monospace;
  color: var(--signal);
  padding-top: 3px;
}

.stage-tab h3 {
  font-size: 19px;
  margin-bottom: 5px;
}

.stage-tab p {
  font-size: 13.8px;
  line-height: 1.55;
  color: var(--muted);
}

.stage-badge {
  font: 600 10px ui-monospace, "SF Mono", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  color: var(--muted);
}

.stage-tab[aria-selected="true"] .stage-badge {
  background: var(--signal-soft);
  color: var(--signal);
  border-color: transparent;
}

.stage-viewer {
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 60%, var(--hairline)) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 650px;
}

.phone-bezel {
  width: min(300px, 100%);
  background: #111110;
  padding: 9px;
  border-radius: 42px;
  box-shadow: 0 0 0 2px #D8D6CD, var(--shadow-lg);
}

[data-theme="dark"] .phone-bezel {
  box-shadow: 0 0 0 2px #3A3A35, var(--shadow-lg);
}

.phone-bezel img {
  width: 100%;
  height: auto;
  border-radius: 34px;
  display: block;
}

.stage-viewer.swap .phone-bezel {
  animation: phone-pop 0.36s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes phone-pop {
  from { opacity: 0.45; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.stage-caption-bar {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 12px ui-monospace, "SF Mono", Consolas, monospace;
  color: var(--muted);
}

/* ============================================================================
   MULTI-PLATFORM & COMPARISON TABLE (SEO / ASO POWERHOUSE)
   ============================================================================ */
.platform-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.platform-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.platform-card h3 {
  font-size: 24px;
  margin: 8px 0;
}

.platform-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

.media-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-md);
  background: #111110;
}

/* Comparison Table */
.compare-wrap {
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

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

.compare-table th,
.compare-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--hairline);
}

.compare-table th {
  font: 600 11px ui-monospace, "SF Mono", Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: color-mix(in srgb, var(--paper) 50%, var(--surface));
}

.compare-table th.glean-col,
.compare-table td.glean-col {
  background: var(--signal-soft);
  font-weight: 600;
  color: var(--ink);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

/* ============================================================================
   CALM RETENTION & PRICING
   ============================================================================ */
.steps-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}

.step-card > span {
  font: 600 11.5px ui-monospace, "SF Mono", Consolas, monospace;
  color: var(--signal);
  display: block;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13.8px;
  line-height: 1.62;
  color: var(--muted);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 52px;
  align-items: start;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card.featured {
  border: 1.5px solid var(--signal);
  box-shadow: var(--shadow-sm);
}

.plan-list li strong {
  color: var(--ink);
  font-weight: 600;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 26px;
  font-size: 13.8px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.plan-list li::before {
  content: "✓";
  color: var(--signal);
  font-weight: 700;
  margin-right: 8px;
}

.faq-list {
  margin-top: 36px;
  border-top: 1px solid var(--hairline);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

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

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

.faq-item summary span {
  font-size: 20px;
  color: var(--signal);
  transition: transform 0.2s ease;
}

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

.faq-item p {
  padding: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ============================================================================
   FOOTER & MODAL
   ============================================================================ */
.footer {
  padding: 40px 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer p {
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

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

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(14, 14, 12, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-inner {
  width: min(1080px, 100%);
  background: #0E0E0C;
  border: 1px solid #2A2A26;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #2A2A26;
  color: #F2F1EC;
  font-size: 13px;
}

.video-modal-close {
  color: #F2F1EC;
  background: #22221E;
  border: 1px solid #3A3A34;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
}

/* Official-style Apple App Store Badge + Desktop QR Handoff + Mid-page CTAs */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  text-align: left;
  line-height: 1.1;
}

.app-store-badge:hover {
  background: var(--signal);
  color: #FAFAF7;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(194, 59, 34, 0.24);
}

.app-store-badge svg {
  width: 22px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}

.app-store-badge-copy {
  display: flex;
  flex-direction: column;
}

.app-store-badge-copy small {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0.86;
}

.app-store-badge-copy strong {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.desktop-handoff {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  max-width: 520px;
}

.desktop-qr {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #FFFFFF;
  padding: 4px;
  border: 1px solid var(--hairline);
  flex-shrink: 0;
}

.desktop-handoff-copy {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.desktop-handoff-copy strong {
  color: var(--ink);
  display: block;
  font-size: 13px;
}

.desktop-handoff-copy a {
  color: var(--signal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mid-cta-strip {
  margin-top: 32px;
  padding: 22px 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.mid-cta-strip p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 4px;
}

.hw-note {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.hw-note strong {
  color: var(--ink);
}

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

.maker-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.maker-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.maker-card p {
  font-size: 14px;
  line-height: 1.58;
  color: var(--muted);
}

.plan-price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 4px;
}

.plan-price-tag strong {
  font-size: 40px;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan-price-tag span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.plan-subcap {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

@media (max-width: 1060px) {
  .h-hero,
  .section-header,
  .pages-studio,
  .showcase-grid,
  .platform-showcase,
  .trust-grid,
  .maker-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .h-Right-Atlas-Card {
    position: static;
  }
  .steps-four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .shell {
    width: calc(100% - 32px);
  }
  .site-header {
    height: 64px;
  }
  .site-header nav,
  #theme-toggle,
  .desktop-handoff {
    display: none;
  }
  .shelf-cards,
  .steps-four,
  .plans,
  .maker-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding-block: 56px;
  }
  /* Responsive stacked comparison cards on mobile so zero columns clip */
  .compare-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
    width: 100%;
  }
  .compare-table thead {
    display: none;
  }
  .compare-table tr {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    margin-bottom: 14px;
    overflow: hidden;
  }
  .compare-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline);
  }
  .compare-table td:last-child {
    border-bottom: 0;
  }
  .compare-table td::before {
    content: attr(data-col);
    display: block;
    font: 600 10px ui-monospace, "SF Mono", Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .compare-table td:first-child::before {
    display: none;
  }
  .compare-table td:first-child {
    background: var(--paper-deep);
    font-size: 15px;
  }
}

.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
  transition-duration: 0s !important;
}
