:root {
  color-scheme: light;
  --ink: #13161f;
  --muted: #5d6472;
  --subtle: #8a919d;
  --line: #e4e7ec;
  --paper: #ffffff;
  --wash: #f6f7f9;
  --deep: #182033;
  --blue: #4669ee;
  --blue-wash: #f3f6ff;
  --green: #43a86a;
  --orange: #df8b2f;
  --red: #d85b4a;
  --violet: #855bd9;
  --radius: 8px;
  /* Marketing/commerce sub-page hero h1 scale — shared by pricing, checkout,
     compare and releases so their hero headings stay aligned. The homepage brand
     wordmark (h1), legal/blog (.legal-page h1),
     and utility-card (.simple-card h1) heroes keep their own intentional
     scales. New marketing/landing pages MUST use this token, not a literal. */
  --type-page-hero: clamp(46px, 7vw, 92px);
  /* Hero subtitle / intro paragraph directly under a page hero h1. Shared by
     .hero-subtitle (homepage) and the pricing/compare hero paragraphs so the
     line under the hero stays aligned. Checkout intro copy intentionally uses a
     denser 19px in its two-column card layout (documented exception). */
  --type-hero-subtitle: clamp(18px, 2vw, 23px);
  --type-prose-section: clamp(24px, 2.5vw, 30px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(228, 231, 236, 0.72);
}

.site-header.compact {
  position: sticky;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

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

.nav-download {
  color: #ffffff !important;
  background: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 72px) 80px;
  overflow: hidden;
  background: #f3f5f8;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(243, 245, 248, 0), #ffffff);
}

.hero-background {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 104px clamp(18px, 5vw, 72px) 60px;
  opacity: 0.94;
}

.app-window {
  width: min(700px, 50vw);
  min-height: 480px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(184, 191, 205, 0.7);
  border-radius: 18px;
  box-shadow: 0 42px 120px rgba(25, 35, 57, 0.18);
  overflow: hidden;
  transform: rotate(-2deg) translateX(12px);
}

.window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d7dbe2;
}

.window-bar span:first-child {
  background: #eb6a5f;
}

.window-bar span:nth-child(2) {
  background: #f2be55;
}

.window-bar span:nth-child(3) {
  background: #62c554;
}

.app-shell {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 438px;
}

.sidebar-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 18px;
  background: #f7f8fa;
  border-right: 1px solid var(--line);
}

.sidebar-preview strong {
  font-size: 12px;
  color: var(--subtle);
  letter-spacing: 0.12em;
}

.sidebar-preview span {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #3f4652;
}

.sidebar-preview .active {
  background: var(--blue);
  color: #ffffff;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-content: center;
  gap: 28px;
  padding: 42px;
}

.score-ring {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) 0 72%, #edf0f5 72% 100%);
  font-size: 36px;
  font-weight: 850;
  color: var(--ink);
}

.score-ring::after {
  content: "";
  position: absolute;
}

.preview-copy span,
.signal-grid span,
.release-row span {
  color: var(--subtle);
  font-weight: 750;
  font-size: 12px;
  text-transform: uppercase;
}

.preview-copy strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.preview-copy p {
  max-width: 380px;
  color: var(--muted);
  line-height: 1.55;
}

.signal-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.signal-grid div {
  min-height: 100px;
  padding: 18px;
  border-radius: 8px;
  background: var(--wash);
}

.signal-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 25px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(600px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(64px, 8.5vw, 118px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.hero-tagline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #4669ee;
  margin-bottom: 18px;
}

.hero-subtitle {
  max-width: 100%;
  font-size: var(--type-hero-subtitle);
  line-height: 1.3;
  color: #333a48;
}

.hero-actions,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--ink);
  color: #ffffff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-color: rgba(19, 22, 31, 0.14);
}

.button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0 0;
}

.hero-facts div {
  min-width: 126px;
  padding-top: 14px;
  border-top: 2px solid rgba(19, 22, 31, 0.14);
}

.hero-facts dt {
  font-size: 12px;
  color: var(--subtle);
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 800;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-strip div {
  padding: 30px clamp(20px, 5vw, 72px);
  background: #ffffff;
}

.trust-strip strong {
  display: block;
  margin-bottom: 6px;
}

.trust-strip span,
.feature-card p,
.split-section p:where(:not(.eyebrow)),
.final-cta p,
.release-intro {
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 92px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

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

.feature-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 22px;
  /* Uniform soft tile; branded gradient disk-ring icons carry the color */
  background: linear-gradient(160deg, #f4f7fc, #eaeef7);
  box-shadow: inset 0 0 0 1px rgba(40, 55, 90, 0.05);
}

.feature-icon svg { width: 38px; height: 38px; }

/* Color modifiers retained for markup compatibility; tile stays neutral. */
.feature-icon.green,
.feature-icon.blue,
.feature-icon.orange,
.feature-icon.violet,
.feature-icon.red,
.feature-icon.slate { background: linear-gradient(160deg, #f4f7fc, #eaeef7); }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: 44px;
  align-items: center;
  background: var(--wash);
}

.text-link {
  font-weight: 850;
  color: var(--blue);
  text-decoration: none;
}

.release-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.release-row {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.release-row:last-child {
  border-bottom: 0;
}

.release-row code,
.checksum {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.5;
  color: #2d3441;
}

.final-cta {
  text-align: center;
  padding: 96px 20px 110px;
}

.final-icon,
.release-icon,
.simple-icon {
  width: 82px;
  height: 82px;
  border-radius: 18px;
}

.final-cta h2,
.final-cta p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.owned-product-section {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.owned-product-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px clamp(20px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.owned-product-inner h2 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: 46px;
  line-height: 1.08;
}

.owned-product-copy {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.owned-product-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
}

.release-page,
.legal-page {
  padding: 72px clamp(20px, 5vw, 72px) 100px;
}

.release-hero,
.release-details {
  max-width: 920px;
  margin-inline: auto;
}

.release-hero {
  /* Match the detail cards' content edge: 28px padding plus 1px border. */
  padding: 64px 29px;
}

.release-hero h1 {
  font-size: var(--type-page-hero);
}

.release-details {
  display: grid;
  gap: 20px;
}

.release-details > div,
.legal-page {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.legal-page {
  max-width: 860px;
  margin: 48px auto 100px;
}

/* Standalone legal cards clear the fixed 72px header by 48px. Article cards
   keep their release-page layout; in-flow headers already precede the margin. */
@media (min-width: 981px) {
  main.legal-page {
    margin-top: 120px;
  }
}

.legal-page h1 {
  font-size: clamp(46px, 8vw, 82px);
}

/* Shared prose roles (#440). Direct children preserve nested FAQ/marketing components. */
.legal-page > h2,
.release-details > div > h2 {
  font-size: var(--type-prose-section);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 32px 0 12px;
}

.release-details > div > h2:first-child {
  margin-top: 0;
}

.legal-page > h3 {
  line-height: 1.3;
  margin: 24px 0 10px;
}

.legal-page > p,
.legal-page > ul,
.legal-page > ol,
.release-details > div > p,
.release-details > div > ul,
.release-details > div > ol {
  max-inline-size: 72ch;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 16px;
}

.legal-page > ul,
.legal-page > ol,
.release-details > div > ul,
.release-details > div > ol {
  padding-inline-start: 1.5em;
}

.legal-page > ul > li,
.legal-page > ol > li,
.release-details > div > ul > li,
.release-details > div > ol > li {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.legal-page > ul > li + li,
.legal-page > ol > li + li,
.release-details > div > ul > li + li,
.release-details > div > ol > li + li {
  margin-top: 8px;
}

.simple-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--wash);
}

/* The card lives in the main region between the shared site-header (fixed on
   desktop, sticky below 980px) and site-footer: centered, clearing the fixed
   header with the same 120px top offset the homepage hero uses. */
.simple-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 120px 20px 64px;
}

.simple-card {
  max-width: 480px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

/* The simple card is a narrow utility surface (e.g. /download). Without a
   scoped size its h1 inherits the global hero clamp (min 64px) and overflows
   the 480px card. Scale it down and let long words wrap. (#79) */
.simple-card h1 {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.simple-badges {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Post-download install guidance on /download. Always visible (works without
   JS) so the next step is known before the DMG lands; the CTA click adds
   .is-active to draw the eye at the moment the download starts. */
.install-steps {
  margin-top: 22px;
  padding: 16px 18px;
  text-align: left;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.install-steps.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
  background: var(--blue-wash);
}

.install-steps-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
}

.install-steps ol {
  margin: 0 0 10px 18px;
  padding: 0;
  font-size: 14px;
  color: var(--ink);
}

.install-steps li {
  margin-bottom: 6px;
}

.install-steps li:last-child {
  margin-bottom: 0;
}

.install-steps-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.simple-cross-sell {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.simple-cross-sell p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.simple-cross-sell p:first-child {
  color: var(--ink);
}

/* ── FAQ ── */
.faq-list {
  max-width: 860px;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  font-weight: 750;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  line-height: 1.4;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 400;
  color: var(--subtle);
  transition: transform 0.15s;
}

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

.faq-answer {
  padding: 0 26px 22px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.faq-answer p + p {
  margin-top: 12px;
}

/* ── Compare callout strip ── */
.compare-callout {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compare-callout-inner {
  max-width: 800px;
}

.compare-callout-inner h2 {
  font-size: clamp(28px, 4vw, 52px);
  margin-bottom: 14px;
}

.compare-callout-inner p:where(:not(.eyebrow)) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ── Reviews ── */
/* Equal columns that wrap, so any number of reviews lines up; a lone review keeps a
   readable width under the heading (#364). */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.review-card:only-child {
  max-width: 680px;
}

.review-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-stars {
  color: #b98200; /* 3.36:1 on white; the old #f2be55 was 1.71:1 (WCAG 1.4.11 needs 3:1) */
  font-size: 18px;
  letter-spacing: 2px;
}

.review-card blockquote {
  margin: 0;
  flex: 1;
}

.review-card blockquote p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
  margin: 0;
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.review-author strong {
  font-size: 14px;
  font-weight: 800;
}

.review-author span {
  font-size: 13px;
  color: var(--muted); /* 5.95:1; --subtle was 3.17:1, under AA for 13px text and the source link */
}

/* ── Hero redesign — stacked: copy on top, large product shot below, so the
   in-app content (sidebar, disk ring, numbers) is actually legible instead of
   a half-width thumbnail. ── */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  align-items: start;
  min-height: auto;
  gap: 40px;
  padding-top: 68px;
  padding-bottom: 64px;
}

/* Scoped to the homepage hero so it doesn't re-center the releases page's
   bare .hero-actions (which lives under .release-hero, not .hero). */
.hero .hero-actions,
.hero .hero-badges {
  justify-content: center;
}

.hero-screenshot {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-img {
  width: 100%;
  /* Capped near the screenshot's native 2x resolution (2200px) to stay crisp. */
  max-width: 1120px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 40px 120px rgba(25, 35, 57, 0.24);
  border: 1px solid rgba(184, 191, 205, 0.5);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(70, 105, 238, 0.08);
  color: var(--blue);
  border: 1px solid rgba(70, 105, 238, 0.18);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 750;
}

/* ── Trust Row ── */
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px clamp(16px, 3vw, 40px);
  background: #ffffff;
}

.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Uniform soft tile so the branded gradient disk-ring icons carry the color */
  background: linear-gradient(160deg, #f4f7fc, #eaeef7);
  box-shadow: inset 0 0 0 1px rgba(40, 55, 90, 0.05);
}

.trust-icon svg { width: 38px; height: 38px; }

/* Color modifier classes retained for markup compatibility; the icon itself
   is now a branded gradient ring, so the tile stays neutral across all four. */
.trust-icon-green,
.trust-icon-blue,
.trust-icon-orange,
.trust-icon-violet { background: linear-gradient(160deg, #f4f7fc, #eaeef7); }

.trust-title {
  font-size: 16px;
  margin-bottom: 0;
}

.trust-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* ── Tier Cards ── */
.tier-section {
  background: var(--wash);
  border-top: 1px solid var(--line);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.tier-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.tier-card-featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.tier-header {
  margin-bottom: 12px;
}

.tier-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 6px;
}

.tier-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(133, 91, 217, 0.12);
  color: var(--violet);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 750;
}

.tier-price {
  font-size: 30px;
  font-weight: 800;
  margin: 0;
}

.tier-once {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.tier-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.tier-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
  flex: 1;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.tier-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

.tier-cta {
  width: 100%;
}

.tier-guarantee {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.4;
}

.tier-guarantee a {
  color: var(--muted);
  text-decoration: none;
}

.tier-guarantee a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.tier-compare-link {
  text-align: center;
  margin: 0;
  color: var(--muted);
}

/* ── Safety Section ── */
.safety-section {
  background: var(--deep);
  color: #ffffff;
}

.safety-section .section-heading h2 {
  color: #ffffff;
}

/* Small labels keep the shared type role, with inverse colour on dark panels. */
.safety-section .eyebrow {
  color: rgba(255,255,255,0.7);
}

.safety-section .section-heading p:where(:not(.eyebrow)) {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  line-height: 1.55;
  max-width: 680px;
  margin-top: 14px;
}

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

.safety-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
}

.safety-card h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 8px;
}

.safety-card p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}

.safety-used {
  margin-top: 10px !important;
  font-size: 13px !important;
  color: rgba(255,255,255,0.45) !important;
}

.safety-used strong {
  color: rgba(255,255,255,0.65);
}

.safety-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  /* Translucent tile for the branded gradient ring on the dark section */
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.safety-icon svg { width: 38px; height: 38px; }

/* Color modifiers retained for markup compatibility; tile stays uniform. */
.safety-icon-green,
.safety-icon-orange,
.safety-icon-blue { background: rgba(255, 255, 255, 0.06); }

/* ── Developer Section ── */
.dev-section {
  background: var(--wash);
  border-top: 1px solid var(--line);
}

.dev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Grid items default to min-width:auto, so the terminal column expands to its
   longest command line (min-content) and overflows the page on narrow screens
   instead of letting .terminal-body's own overflow-x:auto scroll. Allow the
   columns to shrink so the internal scroll takes over. (#80) */
.dev-grid > * {
  min-width: 0;
}

.dev-terminal {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.15);
  background: #1a1d27;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #252836;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red    { background: #eb6a5f; }
.dot-yellow { background: #f2be55; }
.dot-green  { background: #62c554; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}

.terminal-body {
  margin: 0;
  padding: 22px 24px;
  font-family: "SF Mono", "Fira Mono", "Cascadia Mono", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #c8d0e7;
  overflow-x: auto;
  white-space: pre;
}

.term-prompt {
  color: #62c554;
  user-select: none;
}

.term-output {
  color: rgba(200,208,231,0.6);
}

.dev-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dev-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* minmax(0,1fr) lets the single column shrink below its content's
     min-content so a nowrap command line inside .copy-line scrolls
     internally instead of widening the page on mobile. (#80) */
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.dev-feature-list li {
  display: block;
  min-width: 0;
  padding-left: 20px;
  border-left: 2px solid var(--line);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.dev-feature-list li strong {
  color: var(--ink);
}

/* Command blocks and inline code in page prose (the security page, blog articles). A long
   command scrolls inside its own box instead of widening the page on a phone, and keeps its
   lines intact for copying; inline code in running text may break anywhere (#399). */
pre {
  max-width: 100%;
  overflow-x: auto;
  /* A swipe that reaches the end of a command must not turn into Safari's back gesture. */
  overscroll-behavior-x: contain;
  /* A visible box, in the .inline-code style, so a clipped command reads as scrollable rather
     than cut off. The terminal illustration (.terminal-body) sets its own colours. */
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.terminal-body {
  background: none;
  border: 0;
  border-radius: 0;
}
p code,
li code {
  overflow-wrap: anywhere;
}

.inline-code {
  font-family: "SF Mono", "Fira Mono", "Cascadia Mono", "Consolas", monospace;
  font-size: 12px;
  background: rgba(0,0,0,0.06);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 6px;
  color: var(--ink);
  word-break: break-all;
}

/* Copy-to-clipboard command row */
.copy-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.copy-line .inline-code {
  flex: 1 1 auto;
  min-width: 0;
  word-break: normal;
  overflow-x: auto;
  white-space: nowrap;
}
.copy-btn {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 12px;
  cursor: pointer;
  min-width: 62px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copy-btn:hover { color: var(--ink); border-color: var(--subtle); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }

/* ── Get Started ── */
.get-started-section {
  border-top: 1px solid var(--line);
}

.get-started-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.get-started-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.get-started-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.get-started-card h3 {
  font-size: 20px;
  margin-bottom: 0;
}

.get-started-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.get-started-card .button {
  align-self: flex-start;
  margin-top: auto;
}

/* ── Structured Footer ── */
.site-footer-structured {
  flex-direction: column;
  gap: 0;
  padding-top: 56px;
  padding-bottom: 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  padding-bottom: 40px;
}

.footer-col-heading {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtle);
}

.footer-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
}

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

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 13px;
  color: var(--subtle);
}

@media (max-width: 980px) {
  .site-header {
    position: sticky;
  }

  /* Header is in-flow once sticky, so the card no longer needs the fixed-header offset. */
  .simple-main {
    padding-top: 48px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
  }

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

  .hero-img {
    max-width: 100%;
  }

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip,
  .feature-grid,
  .split-section,
  .tier-grid,
  .safety-grid,
  .dev-grid,
  .get-started-grid,
  .owned-product-inner {
    grid-template-columns: 1fr;
  }

  .owned-product-actions {
    justify-content: flex-start;
  }

  .owned-product-inner h2 {
    font-size: 34px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .site-header.compact {
    position: static;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: visible;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 4px;
  }

  .nav-download {
    padding: 9px 12px;
  }

  h1 {
    font-size: clamp(46px, 16vw, 64px);
  }

  .app-shell,
  .dashboard-preview,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-preview {
    display: none;
  }

  .dashboard-preview {
    padding: 28px;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .site-footer-structured {
    flex-direction: column;
  }
}
