:root {
  --bg: #FAF9F6;
  --header-bg: rgba(250, 249, 246, 0.84);
  --surface: #F2F1EC;
  --stage-bg: #E9E7E0;
  --art-plate: transparent;
  --art-border: transparent;
  --card: #FFFFFF;
  --ink: #111318;
  --body-ink: #2C313A;
  --btn-ink: #FFFFFF;
  --btn-hover: #252935;
  --muted: #5A6270;
  --subtle: #7B8392;
  --accent: #0D7A72;
  --accent-soft: rgba(13, 122, 114, 0.11);
  --code-bg: rgba(17, 19, 24, 0.06);
  --line: rgba(17, 19, 24, 0.09);
  --line-strong: rgba(17, 19, 24, 0.16);
  --window-shadow: 0 28px 70px rgba(17, 19, 24, 0.18), 0 4px 12px rgba(17, 19, 24, 0.09);
  --radius: 14px;
  --cat-agents: #4697FE;
  --cat-worktrees: #D050EF;
  --cat-mobile: #F4556B;
  --cat-cli: #F7A052;
  --cat-llms: #8E8CF8;
  --cat-apps: #34D3B4;
}

[data-theme="dark"] {
  --bg: #0E1014;
  --header-bg: rgba(14, 16, 20, 0.82);
  --surface: #14171E;
  --stage-bg: #181C25;
  --art-plate: #161A22;
  --art-border: rgba(255, 255, 255, 0.08);
  --card: #191D26;
  --ink: #F3F5F8;
  --body-ink: #CDD4E0;
  --btn-ink: #0E1014;
  --btn-hover: #DDE2EC;
  --muted: #9BA4B5;
  --subtle: #6E7788;
  --accent: #2DD4BF;
  --accent-soft: rgba(45, 212, 191, 0.13);
  --code-bg: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --window-shadow: 0 32px 84px rgba(0, 0, 0, 0.65), 0 2px 10px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  padding: 0.12em 0.38em;
  border-radius: 5px;
  background: var(--code-bg);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--ink);
  color: var(--btn-ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.shell {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.theme-toggle:hover {
  color: var(--ink);
  background: var(--code-bg);
}

.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.nav-cta {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--btn-ink);
  background: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  transition: opacity 0.15s ease;
}

.nav-cta:hover {
  opacity: 0.86;
}

/* Modern Display Typography */
h1, h2, h3 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.75rem, 5.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.028em;
}

h1 span {
  color: var(--muted);
}

h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h3 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.018em;
}

.kicker {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
}

/* Centered Mac-App Hero */
.hero {
  /* The screenshot glow extends past the content; never let it cause sideways scrolling. */
  overflow-x: clip;
  padding: 52px 0 80px;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
}

.hero-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .hero-app-icon {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-center h1 {
  font-size: clamp(2.6rem, 5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-center .lead {
  margin: 18px 0 26px;
  font-size: 1.14rem;
  line-height: 1.56;
  color: var(--muted);
  max-width: 52ch;
}

.hero-center .actions {
  justify-content: center;
}

.lead {
  margin: 20px 0 28px;
  font-size: 1.08rem;
  line-height: 1.58;
  color: var(--muted);
  max-width: 48ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

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

.btn-primary {
  background: var(--ink);
  color: var(--btn-ink);
}

.btn-primary:hover {
  background: var(--btn-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--muted);
  background: var(--surface);
}

.fine-print {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--subtle);
}

/* Integrated Hero App Window Stage */
.hero-stage {
  position: relative;
  max-width: 1048px;
  margin-top: 40px;
  scroll-margin-top: 84px;
  isolation: isolate;
}

/* Soft glow behind the screenshot, in the app's category colors. Local to the
   screenshot only; the page background stays plain. */
.stage-glow {
  position: absolute;
  z-index: -1;
  /* Larger than the screenshot so the glow shows around its edges. */
  left: -6%;
  right: -6%;
  top: -70px;
  height: 760px;
  max-height: 85%;
  pointer-events: none;
  background:
    radial-gradient(40% 55% at 22% 40%, rgba(70, 151, 254, 0.55), transparent 70%),
    radial-gradient(38% 50% at 55% 30%, rgba(208, 80, 239, 0.42), transparent 70%),
    radial-gradient(35% 50% at 82% 55%, rgba(52, 211, 180, 0.40), transparent 70%);
  filter: blur(80px) saturate(125%);
  opacity: 0.7;
  animation: glow-drift 24s ease-in-out infinite alternate;
}

[data-theme="light"] .stage-glow {
  opacity: 0.6;
}

@keyframes glow-drift {
  0%   { transform: translate3d(-2%, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.04); }
  100% { transform: translate3d(0, 2%, 0) scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .stage-glow { animation: none; }
}

/* Thin frosted-glass bezel around product screenshots. */
.glass-frame {
  position: relative;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 30px 80px rgba(17, 19, 24, 0.16);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
}

[data-theme="dark"] .glass-frame {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 30px 90px rgba(0, 0, 0, 0.55);
}

/* Screenshot tabs */
.chapter-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.chapter {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  background: none;
  font: inherit;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
}

.chapter::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.chapter.is-active::before {
  transform: scaleX(1);
}

.chapter strong {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--muted);
  transition: color 0.15s ease;
}

.chapter span {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--subtle);
}

.chapter:hover strong,
.chapter.is-active strong {
  color: var(--ink);
}

.chapter.is-active span {
  color: var(--muted);
}

.chapter:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.stage-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--subtle);
}

@media (prefers-reduced-motion: reduce) {
  .chapter::before {
    transition: none;
  }
}

/* Sections */
.section {
  padding: 88px 0;
}

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

.section-head {
  max-width: 600px;
  margin-bottom: 48px;
}

.section-head p:last-child {
  margin: 14px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Feature stories: text beside a real crop of the app */
.story-list {
  display: grid;
  gap: 64px;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}

.story:nth-child(even) .story-text {
  order: 2;
}

/* Storage bar: the app's own category colors, with real numbers */
.seg-agents { background: var(--cat-agents); }
.seg-worktrees { background: var(--cat-worktrees); }
.seg-mobile { background: var(--cat-mobile); }
.seg-cli { background: var(--cat-cli); }
.seg-llms { background: var(--cat-llms); }
.seg-apps { background: var(--cat-apps); }

.storage-figure {
  margin: 0 0 56px;
}

.storage-figure figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.storage-figure figcaption strong {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.storage-bar {
  display: flex;
  gap: 3px;
  height: 10px;
}

.storage-bar .seg {
  flex-basis: 0;
  min-width: 6px;
  border-radius: 999px;
}

.storage-legend {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.84rem;
  color: var(--muted);
}

.storage-legend b {
  color: var(--ink);
  font-weight: 600;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 0.05em;
}

.story-text .story-tag {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.story-text h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.story-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 44ch;
}

/* "Knows where your tools keep their files": monochrome logos in two groups */
.toolbelt {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.toolbelt-title {
  margin: 0 0 22px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.toolbelt-note {
  margin: 22px 0 0;
  text-align: center;
  font-size: 0.74rem;
  color: var(--subtle);
}

/* Tabs that advance on their own: the bar above the active tab fills as the timer. */
.chapter-rail.is-autoplay .chapter.is-active::before {
  transform: scaleX(0);
  transition: none;
  animation: chapter-progress 6.5s linear forwards;
}

.chapter-rail.is-autoplay.is-paused .chapter.is-active::before {
  animation-play-state: paused;
}

@keyframes chapter-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Illustrations drawn in HTML (Disk Usage, automatic cleanup), styled like the app's dark UI. */
.seg-disk { background: #8C93A3; }
.seg-auto { background: var(--accent); }

/* Safety Spec List */
.safety-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.safety-intro > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.spec-list {
  margin: 0;
}

.spec-row {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.spec-row:last-child {
  border-bottom: 1px solid var(--line);
}

.spec-row dt {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 6px;
}

.spec-row dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Pricing: comparison table */
.pill {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 999px;
  vertical-align: 0.15em;
  margin-left: 6px;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.plan-table thead th {
  padding: 0 20px 22px;
  text-align: left;
  vertical-align: bottom;
  border-top: 2px solid transparent;
}

.plan-table thead th.is-featured {
  border-top-color: var(--ink);
}

.plan-table thead td {
  width: 34%;
}

.plan-name {
  display: block;
  padding-top: 18px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.plan-price {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.plan-meta {
  display: block;
  margin-top: 2px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--subtle);
}

.plan-table tbody th,
.plan-table tbody td {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.plan-table tbody tr:last-child th,
.plan-table tbody tr:last-child td {
  border-bottom: 1px solid var(--line);
}

.plan-table tbody th {
  padding-left: 0;
  text-align: left;
  font-weight: 500;
  color: var(--body-ink);
}

.mark {
  font-weight: 700;
}

.mark.yes {
  color: var(--accent);
}

.mark.no {
  color: var(--subtle);
}

.plan-table tfoot td {
  padding: 24px 20px 0;
}

.plan-table tfoot .btn {
  width: 100%;
}

.plan-actions-compact {
  display: none;
}

.plan-footnote {
  margin: 28px 0 0;
  font-size: 0.82rem;
  color: var(--subtle);
  max-width: 70ch;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.faq-list summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--subtle);
}

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

.faq-list p {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 64ch;
}

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

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

.footer-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--subtle);
}

.footer-link {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

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

@media (max-width: 980px) {
  .chapter span {
    display: none;
  }
  .chapter-rail {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .feature-grid,
  .safety-layout {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 48px 0 36px;
  }
  .site-header nav {
    display: none;
  }
}

@media (max-width: 900px) {
  .story {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .story:nth-child(even) .story-text {
    order: 0;
  }
  .section {
    padding: 80px 0;
  }
  .story-list {
    gap: 48px;
  }
}

@media (max-width: 700px) {
  /* Tabs scroll sideways; the line marks the active one. */
  .chapter-rail {
    display: flex;
    overflow-x: auto;
    gap: 22px;
    margin-left: -24px;
    margin-right: -24px;
    padding: 0 24px;
    scrollbar-width: none;
  }
  .chapter-rail::-webkit-scrollbar {
    display: none;
  }
  .chapter {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  /* Pricing: compact table (plan names and checkmarks), buttons stacked below. */
  .plan-table thead td {
    width: 34%;
  }
  .plan-prefix {
    display: none;
  }
  .plan-table thead th,
  .plan-table tbody td {
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
  }
  .plan-name {
    font-size: 0.82rem;
  }
  .plan-name .pill {
    display: block;
    width: max-content;
    margin: 6px auto 0;
  }
  .plan-price {
    font-size: 1.05rem;
    letter-spacing: -0.01em;
  }
  .plan-meta {
    font-size: 0.74rem;
  }
  .plan-table tbody th {
    font-size: 0.86rem;
  }
  .plan-table tfoot {
    display: none;
  }
  .plan-actions-compact {
    display: grid;
    gap: 10px;
    margin-top: 24px;
  }
}

/* Footer links group */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.site-header nav a.is-current {
  color: var(--ink);
  font-weight: 600;
}

/* Subpages (Privacy, Terms, Blog, Article) */
.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-hero .lead {
  margin: 16px 0 0;
  max-width: 56ch;
}

.meta-sep {
  color: var(--line-strong);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb:hover {
  color: var(--ink);
}

/* Two-Column Swiss Legal / Documentation Layout */
.doc-section {
  padding: 56px 0 96px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 680px);
  gap: 48px 72px;
  align-items: start;
}

.doc-rail {
  position: sticky;
  top: 92px;
}

.doc-facts {
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.doc-fact dt {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subtle);
  margin-bottom: 3px;
}

.doc-fact dd {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink);
}

.doc-toc-label {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subtle);
}

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

.doc-toc a {
  display: inline-flex;
  gap: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.doc-toc a span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  color: var(--subtle);
}

.doc-toc a:hover {
  color: var(--ink);
}

.doc-summary {
  margin: 0 0 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Centered Editorial Article Layout */
.article-wrap {
  padding: 64px 0 96px;
}

.article-col {
  width: min(700px, calc(100% - 48px));
  margin: 0 auto;
}

.article-header {
  padding-bottom: 36px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--subtle);
}

.article-kicker strong {
  color: var(--accent);
  font-weight: 600;
}

.article-header h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.05rem);
  line-height: 1.09;
  letter-spacing: -0.036em;
  text-wrap: balance;
}

.article-deck {
  margin: 20px 0 0;
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Shared Editorial Reading Prose */
.prose h2 {
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 48px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  font-size: 1.08rem;
  margin: 28px 0 8px;
}

.prose p {
  margin: 0 0 18px;
  font-size: 1.03rem;
  line-height: 1.74;
  color: var(--body-ink);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.prose a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.prose ul,
.prose ol {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--body-ink);
}

.prose li {
  margin-bottom: 10px;
  font-size: 1.01rem;
  line-height: 1.7;
  padding-left: 4px;
}

.prose li::marker {
  color: var(--subtle);
}

/* Clean Editorial Note (no colored box) */
.editorial-note {
  margin: 28px 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--line-strong);
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--muted);
}

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

/* Minimal Code Block */
.prose pre {
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--ink);
}

.prose pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
}

/* Swiss Horizontal-Rule Table (zero card wrapper) */
.prose-table-wrap {
  margin: 28px 0;
  overflow-x: auto;
}

.prose-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.91rem;
}

.prose-table th,
.prose-table td {
  text-align: left;
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose-table th {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--subtle);
  border-bottom: 1px solid var(--line-strong);
}

.prose-table td {
  color: var(--body-ink);
  line-height: 1.55;
}

.prose-table td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

/* Wide Breakout Figure for Retina App Screenshots */
.article-figure-wide {
  width: min(960px, calc(100% - 48px));
  margin: 40px auto;
}

.article-figure-wide img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--window-shadow);
  outline: 1px solid rgba(255, 255, 255, 0.09);
}

.article-figure-wide figcaption {
  max-width: 700px;
  margin: 14px auto 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--subtle);
}

/* Quiet Editorial End-of-Article Footer */
.article-end {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
}

.article-end p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 48ch;
}

.article-end strong {
  color: var(--ink);
}

.text-action {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.text-action:hover {
  color: var(--accent);
}

/* Blog Index */
.prose-section {
  padding: 56px 0 88px;
}

.blog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.filter-chip {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-chip:hover {
  color: var(--ink);
  border-color: var(--muted);
}

.filter-chip.is-active {
  background: var(--ink);
  color: var(--btn-ink);
  border-color: var(--ink);
}

.featured-post {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 48px;
  text-decoration: none;
  color: inherit;
}

.featured-media {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  overflow: hidden;
}

[data-theme="dark"] .featured-media {
  background: var(--art-plate);
  border-color: var(--art-border);
}

.featured-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.featured-meta {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--subtle);
  margin-bottom: 12px;
}

.featured-meta strong {
  color: var(--accent);
  font-weight: 600;
}

.featured-copy h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 12px;
  transition: color 0.15s ease;
}

.featured-post:hover .featured-copy h2 {
  color: var(--accent);
}

.featured-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

/* Editorial Post List */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: baseline;
  gap: 16px 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.post-row:last-child {
  border-bottom: 1px solid var(--line);
}

.post-row[hidden] {
  display: none;
}

.post-row-date {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--subtle);
}

.post-row-body h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
  transition: color 0.15s ease;
}

.post-row:hover .post-row-body h3 {
  color: var(--accent);
}

.post-row-body p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
  max-width: 60ch;
}

.post-row-meta {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--subtle);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .doc-rail {
    position: static;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
  .doc-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
  .featured-post {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .post-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Help (generated by scripts/build-help-site.py) */
.help-group {
  margin: 48px 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.help-group:first-child {
  margin-top: 8px;
}

.help-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 500;
}

.help-pager a {
  color: var(--ink);
  text-decoration: none;
}

.help-pager a:hover {
  color: var(--accent);
}

.help-pager span:last-child {
  text-align: right;
}

.help-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
}

.help-list .post-row {
  grid-template-columns: 1fr;
  padding: 20px 0;
}

.help-list .post-row:last-child {
  border-bottom: 0;
}

@media (max-width: 760px) {
  .help-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Landing page, rebuilt around the interactive demo ---------- */

/* Interactive demo inside the glass frame */
.glass-frame .atd-frame {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.stage-note {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: var(--subtle);
}

@media (max-width: 700px) {
  .stage-note::after {
    content: " The demo is easier to use on a larger screen.";
  }
}

/* App category colors, shared by the storage figure */
.cat-blue { background: #0A84FF; } .cat-purple { background: #BF5AF2; } .cat-pink { background: #FF375F; }
.cat-teal { background: #40C8E0; } .cat-orange { background: #FF9F0A; } .cat-indigo { background: #5E5CE6; }
.cat-mint { background: #63E6E2; } .cat-cyan { background: #64D2FF; }
[data-theme="light"] .cat-blue { background: #007AFF; } [data-theme="light"] .cat-purple { background: #AF52DE; }
[data-theme="light"] .cat-pink { background: #FF2D55; } [data-theme="light"] .cat-teal { background: #30B0C7; }
[data-theme="light"] .cat-orange { background: #FF9500; } [data-theme="light"] .cat-indigo { background: #5856D6; }
[data-theme="light"] .cat-mint { background: #00C7BE; } [data-theme="light"] .cat-cyan { background: #32ADE6; }

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.steps li {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.steps h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.t-safe { color: #1F9D55; }
.t-review { color: #D97706; }
.t-locked { color: var(--ink); }
[data-theme="dark"] .t-safe { color: #30D158; }
[data-theme="dark"] .t-review { color: #FF9F0A; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 22px 0; }
  .step-num { margin-bottom: 10px; }
}

/* Stories: same layout every time — text in the narrow column, the app beside it */
.story-visual {
  min-width: 0;
}

.story-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.story-link:hover {
  text-decoration: underline;
}

/* Safety: the real Active & Protected page under the intro */
.safety-intro .story-visual {
  margin-top: 32px;
}

/* FAQ in the same two-column grid as Safety */
.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.faq-intro p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.faq-intro a {
  color: var(--accent);
}

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
}

/* Grid children with app excerpts must be allowed to shrink below the excerpt's text width. */
.safety-intro, .faq-intro, .story-text { min-width: 0; }

/* ---------- Card-based layout (2026-11-28) ---------- */
:root { --panel: #FFFFFF; --panel-inner: #F4F3EF; --radius-card: 22px; }
[data-theme="dark"] { --panel: #13161C; --panel-inner: #0F1217; }

/* Floating pill header */
.site-header {
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-top: 12px;
  pointer-events: none;
}
.header-inner {
  pointer-events: auto;
  height: 54px;
  width: min(1100px, calc(100% - 32px));
  padding: 0 8px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.nav-cta { padding: 9px 16px; }

/* Centered section titles */
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* How it works: one card per step, text left, the app right */
.step-list { display: grid; gap: 16px; }
.step-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px;
  padding: 8px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--panel);
}
.step-text {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
}
.step-card .step-num {
  width: auto;
  height: auto;
  padding: 3px 9px;
  border-radius: 8px;
  align-self: flex-start;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--code-bg);
  border: 0;
  margin-bottom: 18px;
}
.step-card h3 { font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.step-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.checks { list-style: none; margin: auto 0 0; padding: 28px 0 0; display: grid; gap: 9px; }
.checks li { position: relative; padding-left: 24px; font-size: 0.9rem; color: var(--body-ink); }
.checks li::before {
  content: "";
  position: absolute; left: 2px; top: 0.42em;
  width: 10px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.step-visual {
  background: var(--panel-inner);
  border-radius: 16px;
  display: grid;
  place-items: center;
  padding: 36px 32px;
  overflow: hidden;
  min-height: 340px;
}
.step-shot { width: 100%; max-width: 520px; }

/* Where the space goes: bento cards, picture on top */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bento-card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--panel);
  min-width: 0;
}
.bento-visual {
  background: var(--panel-inner);
  position: relative;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  padding: 28px 24px 0;
}
.bento-visual::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--panel-inner));
  pointer-events: none;
}
.bento-shot { width: 100%; }
.bento-text { padding: 22px 20px 18px; }
.bento-text .story-tag { margin: 0 0 8px; }
.bento-text h3 { font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -0.015em; }
.bento-text p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.bento-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } /* 32 = 2 × (grid gap 16) keeps the picture under the right card above */
.bento-wide .bento-visual { order: 2; height: 340px; }
.bento-wide .bento-text { align-self: center; padding: 28px; }

/* Safety rules as small cards */
.spec-list { display: grid; gap: 10px; }
.spec-row, .spec-row:last-child {
  padding: 18px 20px;
  border: 0;
  border-radius: 16px;
  background: var(--panel);
}
.safety-intro .story-visual { padding: 8px; border: 0; border-radius: var(--radius-card); background: var(--panel); }

/* FAQ: separate cards with a round toggle */
.faq-list { display: grid; gap: 10px; }
.faq-list details, .faq-list details:last-child {
  padding: 18px 20px;
  border: 0;
  border-radius: 16px;
  background: var(--panel);
}
.faq-list summary::after {
  content: "+";
  display: grid; place-items: center;
  flex: none;
  width: 28px; height: 28px; margin-left: 16px;
  border-radius: 50%;
  background: var(--code-bg);
  font-size: 1.05rem; line-height: 1;
}
.faq-list details[open] summary::after { content: "×"; background: var(--ink); color: var(--bg); }
.faq-contact { font-size: 0.9rem; }
.faq-contact a { color: var(--muted); }

/* Pricing table: soft alternating rows */
.plan-table { border-collapse: separate; border-spacing: 0; }
.plan-table tbody tr:nth-child(odd) th, .plan-table tbody tr:nth-child(odd) td { background: var(--panel); }
.plan-table tbody tr th, .plan-table tbody tr td, .plan-table tbody tr:last-child th, .plan-table tbody tr:last-child td { border-bottom: 0; }
.plan-table tbody tr th { border-radius: 10px 0 0 10px; padding-left: 14px; }
.plan-table tbody tr td:last-child { border-radius: 0 10px 10px 0; }

/* Closing call to action */
.cta-section { padding-top: 24px; }
.cta-card {
  background: var(--panel);
  text-align: center;
  padding: 72px 24px;
  border: 0;
  border-radius: 28px;
}
.cta-card h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -0.03em; }
.cta-card p { max-width: 52ch; margin: 14px auto 28px; color: var(--muted); }
.cta-card .actions { justify-content: center; }

/* Footer in columns */
.site-footer { padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.footer-brand .footer-note { margin-top: 12px; max-width: 30ch; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { margin: 4px 0 4px; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--subtle); }
.footer-col a { color: var(--muted); font-size: 0.88rem; text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--subtle); }

@media (max-width: 900px) {
  .step-card, .bento, .bento-wide { grid-template-columns: 1fr; }
  .bento-wide .bento-visual { order: 0; }
  .step-visual { min-height: 0; padding: 24px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
.step-visual { position: relative; height: 440px; min-height: 0; align-items: start; padding-top: 40px; }
.step-visual::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--panel-inner)); pointer-events: none;
}
.step-shot { max-width: 600px; }
@media (max-width: 900px) { .step-visual { height: 340px; } }

/* Tool logos: bigger, no pills, two centered rows */
.toolbelt-title { font-size: 1.05rem; margin-bottom: 30px; }
.logo-row {
  list-style: none; margin: 0 auto; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 44px;
}
.logo-row + .logo-row { margin-top: 26px; }
.logo-row li {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--muted); transition: color 0.15s ease;
}
.logo-row li:hover { color: var(--ink); }
.logo-row svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.toolbelt-more { margin: 30px 0 0; text-align: center; font-size: 0.9rem; color: var(--muted); }
.toolbelt-more + .toolbelt-note { margin-top: 8px; }
@media (max-width: 700px) {
  .logo-row { gap: 16px 26px; }
  .logo-row li { font-size: 0.98rem; }
  .logo-row svg { width: 22px; height: 22px; }
}

/* ASCII fields (assets/ascii-field.js): clutter on the left turning tidy on the right */
.stage-wrap { position: relative; isolation: isolate; }
.ascii-field {
  position: absolute;
  z-index: -1;
  top: -10px;
  left: -24%;
  width: 148%;
  height: calc(100% + 40px);
  pointer-events: none;
  /* Only beside the window: fade toward the middle and toward the top and bottom. */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 9%, #000 15%, transparent 22%, transparent 78%, #000 85%, #000 91%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 9%, #000 15%, transparent 22%, transparent 78%, #000 85%, #000 91%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 80%, transparent 100%);
  mask-composite: intersect;
}
.cta-card { position: relative; overflow: hidden; isolation: isolate; }
.cta-card > :not(canvas) { position: relative; z-index: 1; }
.cta-ascii {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  /* Clear behind the text, visible toward the card's edges. */
  -webkit-mask-image: radial-gradient(ellipse 40% 58% at 50% 50%, transparent 50%, #000 100%);
  mask-image: radial-gradient(ellipse 40% 58% at 50% 50%, transparent 50%, #000 100%);
}
@media (max-width: 900px) { .ascii-field { display: none; } }
.hero-stage .stage-glow { opacity: 0.35; }
[data-theme="light"] .hero-stage .stage-glow { opacity: 0.3; }
.cta-ascii { opacity: 0.75; }

/* Automatic cleanup gets its own heading; its picture lines up with the right column above. */
.auto-block { margin-top: 96px; }
.auto-block .kicker { margin: 0 0 10px; }
.bento-wide .bento-text { display: flex; flex-direction: column; justify-content: center; padding: 32px 28px; }
.bento-wide .checks { margin-top: 0; padding-top: 20px; }
.bento-wide .story-link { margin-top: 20px; }

/* Pricing comparison groups */
.plan-table tbody tr.plan-group th {
  background: none !important;
  padding: 26px 0 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subtle);
  border-radius: 0;
}
.plan-table tbody tr.plan-group:first-child th { padding-top: 8px; }
.plan-table tbody tr:nth-child(odd) th, .plan-table tbody tr:nth-child(odd) td { background: none; }
.plan-table tbody tr:not(.plan-group):nth-child(even of :not(.plan-group)) th,
.plan-table tbody tr:not(.plan-group):nth-child(even of :not(.plan-group)) td { background: var(--panel); }
.mark.text { font-size: 0.85rem; font-weight: 500; color: var(--body-ink); }

/* Step pictures run down to the bottom edge of the card, like the cards below. */
.step-visual { display: block; height: 440px; padding: 40px 32px 0; }
.step-shot.atd-snippet { height: 100%; max-width: 600px; margin: 0 auto; border-radius: 12px 12px 0 0; overflow: hidden; }

/* Second headline line: light weight, a little less tight, for contrast with the bold first line. */
.hero-center h1 span {
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* Safety: centered heading; Active & Protected beside a 2 × 3 grid of rules, same height */
.safety-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
/* Same build as the other picture cards: outer card, inner panel, picture running out at the bottom. */
.safety-visual { display: flex; padding: 8px; min-width: 0; border-radius: var(--radius-card); background: var(--panel); }
.safety-visual .safety-pic { flex: 1; height: auto; min-height: 420px; }
.safety-pic .story-visual.atd-snippet { height: 100%; border-radius: 12px 12px 0 0; }
.spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.spec-grid .spec-row { display: flex; flex-direction: column; }
@media (max-width: 900px) {
  .safety-grid, .spec-grid { grid-template-columns: 1fr; }
}

/* FAQ: centered heading, one centered column of questions */
#faq .section-head a { color: var(--accent); }
#faq .faq-list { max-width: 800px; margin: 0 auto; }
#faq .faq-contact { max-width: 800px; margin: 24px auto 0; text-align: center; color: var(--muted); }
#faq .faq-contact a { color: var(--ink); }
#faq .faq-list p { max-width: none; }

/* ---------- Subpages in the refined style (2026-11-28) ---------- */

/* Page headers: centered, no rule underneath */
.page-hero { border-bottom: 0; padding: 72px 0 24px; text-align: center; }
.page-hero .shell > * { margin-left: auto; margin-right: auto; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); letter-spacing: -0.035em; max-width: 18ch; }
.page-hero .lead { margin: 16px auto 0; }

/* Article headers (Help and Blog articles): centered, no rule */
.article-header { border-bottom: 0; text-align: center; margin-bottom: 24px; }
.article-header .article-kicker { justify-content: center; }
.article-header .article-deck { max-width: 56ch; margin-left: auto; margin-right: auto; }

/* Reading text: sections separated by space, not lines */
.prose h2 { border-top: 0; padding-top: 0; margin-top: 44px; }
.prose pre { border: 0; background: var(--panel); border-radius: 14px; padding: 18px 22px; }
.editorial-note {
  border-left: 0;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--panel);
}
.prose-table { border-collapse: separate; border-spacing: 0; }
.prose-table th, .prose-table td { border-bottom: 0; padding: 12px 14px; }
.prose-table tbody tr:nth-child(odd) td { background: var(--panel); }
.prose-table tbody tr td:first-child { border-radius: 10px 0 0 10px; }
.prose-table tbody tr td:last-child { border-radius: 0 10px 10px 0; }
.article-figure-wide img { outline: 0; }

/* Previous / next article as two cards */
.help-pager { border-top: 0; padding-top: 0; gap: 12px; }
.help-pager span { flex: 1; }
.help-pager a {
  display: block; padding: 18px 20px; border-radius: 16px; background: var(--panel);
}
.help-pager a:hover { color: var(--ink); background: var(--code-bg); }

/* Help index: topics as cards */
.help-group { text-align: left; }
.help-list { gap: 12px; }
.help-list .post-row, .help-list .post-row:last-child {
  border: 0; padding: 20px 22px; border-radius: 16px; background: var(--panel);
}
.help-list .post-row:hover { background: var(--code-bg); }

/* Blog: featured post as a card */
.featured-post { padding: 8px; border-radius: var(--radius-card); background: var(--panel); gap: 32px; }
.featured-media, [data-theme="dark"] .featured-media { border: 0; border-radius: 16px; background: var(--panel-inner); }
.featured-copy { padding: 16px 24px 16px 0; }

/* Privacy and Terms: the text in one card, details and contents beside it */
.doc-section { padding-top: 32px; }
.doc-facts { border-bottom: 0; padding: 18px 20px; border-radius: 16px; background: var(--panel); }
.doc-layout > .prose { padding: 40px 44px; border-radius: var(--radius-card); background: var(--panel); }
.doc-summary { border-bottom: 0 !important; }

@media (max-width: 860px) {
  .doc-layout > .prose { padding: 28px 22px; }
  .featured-copy { padding: 8px 16px 16px; }
}
.footer-copy { margin: 18px 0 0; font-size: 0.82rem; color: var(--subtle); }
.site-footer { padding-bottom: 56px; }

/* Soft light from the top center onto the app icon and headline */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -260px;
  width: min(1500px, 140vw);
  height: 760px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 50% at 50% 28%, rgba(255, 255, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 38% 44% at 40% 36%, rgba(70, 120, 255, 0.30), transparent 72%),
    radial-gradient(ellipse 38% 44% at 60% 36%, rgba(170, 90, 240, 0.24), transparent 72%),
    radial-gradient(ellipse 60% 55% at 50% 40%, rgba(45, 212, 191, 0.10), transparent 75%);
  filter: blur(28px);
}
[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 46% 50% at 50% 28%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(ellipse 38% 44% at 40% 36%, rgba(70, 120, 255, 0.26), transparent 72%),
    radial-gradient(ellipse 38% 44% at 60% 36%, rgba(170, 90, 240, 0.22), transparent 72%),
    radial-gradient(ellipse 60% 55% at 50% 40%, rgba(45, 212, 191, 0.14), transparent 75%);
}
