/* ==========================================================================
   DocY Solo — "Snudd Morgendugg" theme
   FLIPPED: Light hero, dark body, light beta CTA, darkest footer
   ========================================================================== */

:root {
  /* --- Light context (hero, beta-panel CTA box) --- */
  --cream:        #FAFAF8;
  --ink:          #3D4A44;
  --muted:        #5C6E62;
  --line:         #E2DDD6;
  --paper:        #ffffff;

  /* --- Dark context (body sections) --- */
  --bg:           #3D4A44;
  --bgAlt:        #4A5C52;
  --cardBg:       #4A5C52;
  --textLight:    #EDF1EE;
  --textMuted:    #C8D4CC;
  --borderDark:   #5C6E62;
  --deepest:      #2E3A34;

  /* --- Accents --- */
  --primary:      #7DB892;
  --primaryHover: #6AA87F;
  --accent:       #A86B62;
  --accentHover:  #965D55;

  /* --- Shared --- */
  --radius:       8px;
  --shadow:       0 24px 70px rgba(46, 58, 52, 0.22);
  --shadow-soft:  0 14px 34px rgba(46, 58, 52, 0.16);

  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--textLight);
  font: 16px/1.6 "DM Sans", system-ui, sans-serif;
}

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

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--deepest);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn:focus-visible,
.btn.primary:focus-visible { outline-color: var(--primary); }

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primaryHover);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Notice banner (terracotta accent)
   ========================================================================== */

.notice {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 18px;
}

.notice a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #fff;
}

/* ==========================================================================
   Site header — sticky, frosted glass, light background
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 11px clamp(18px, 4vw, 58px);
  background: rgba(250, 250, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.3vw, 18px);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--borderDark);
  border-radius: var(--radius);
  background: var(--cardBg);
  color: var(--textLight);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(46, 58, 52, 0.08);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.btn:hover {
  text-decoration: none;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(212, 148, 138, 0.28);
}

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

.btn.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--textLight);
}

.btn.dark:hover {
  background: var(--deepest);
  border-color: var(--deepest);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}

.btn.ghost:hover {
  border-color: var(--ink);
}

/* In hero (light context): buttons revert to light-theme look */
.hero .btn:not(.primary):not(.dark),
.home-hero .btn:not(.primary):not(.dark) {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  color: var(--ink);
}

.hero .btn:not(.primary):not(.dark):hover,
.home-hero .btn:not(.primary):not(.dark):hover {
  border-color: var(--muted);
}

/* In header (light context): buttons use light theme */
.site-header .btn {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.site-header .btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.site-header .btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.site-header .btn.ghost:hover {
  border-color: var(--ink);
}

/* ==========================================================================
   Login menu dropdown
   ========================================================================== */

.login-menu {
  position: relative;
}

.login-menu > summary {
  list-style: none;
  user-select: none;
  cursor: pointer;
}

.login-menu > summary::-webkit-details-marker { display: none; }
.login-menu > summary::marker { content: ""; }

.login-chevron {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

.login-menu[open] > summary .login-chevron {
  transform: rotate(180deg);
  color: var(--ink);
}

.login-menu[open] > summary {
  border-color: var(--ink);
  background: var(--cream);
}

.login-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px -6px rgba(61, 74, 68, 0.16), 0 2px 6px rgba(61, 74, 68, 0.06);
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  animation: login-menu-in 160ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes login-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-menu-panel a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
  transition: background 120ms ease;
}

.login-menu-panel a strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.login-menu-panel a span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.login-menu-panel a:hover {
  background: rgba(125, 184, 146, 0.1);
  text-decoration: none;
}

.login-menu-panel a:hover strong {
  color: var(--primaryHover);
}

/* ==========================================================================
   Version strip (light context)
   ========================================================================== */

.version-strip,
.transcription-value-strip {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.version-strip-inner,
.transcription-value-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.version-strip strong,
.transcription-value-strip strong {
  color: var(--ink);
}

.version-strip a,
.transcription-value-strip a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.transcription-value-strip {
  background: rgba(125, 184, 146, 0.08);
}

/* ==========================================================================
   Hero — LIGHT background (the flip!)
   ========================================================================== */

.hero {
  padding: clamp(42px, 5.4vw, 72px) clamp(18px, 4vw, 58px) clamp(38px, 5vw, 62px);
  background: var(--cream);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.home-hero {
  padding: clamp(38px, 5vw, 68px) clamp(18px, 4vw, 58px) clamp(40px, 5vw, 66px);
  background: var(--cream);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
.hero-blob-1,
.hero-blob-2 {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
}

.hero-blob-1 {
  top: -80px;
  right: -140px;
  width: 500px;
  height: 500px;
}

.hero-blob-2 {
  bottom: -100px;
  left: -120px;
  width: 380px;
  height: 380px;
}

.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(34px, 6vw, 70px);
  align-items: start;
  position: relative;
  z-index: 1;
}

.home-hero .hero-grid {
  max-width: 1260px;
  grid-template-columns: minmax(360px, 0.88fr) minmax(430px, 1.12fr);
  gap: clamp(30px, 4.8vw, 58px);
  align-items: start;
}

.home-hero .hero-grid > :last-child {
  position: sticky;
  top: 100px;
}

/* ==========================================================================
   Eyebrow
   ========================================================================== */

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 13px;
  font-weight: 900;
}

/* On light contexts (hero): use accent for eyebrow */
.hero .eyebrow,
.home-hero .eyebrow {
  color: var(--accent);
}

/* ==========================================================================
   Headings
   ========================================================================== */

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

/* Default: dark-section context -> light text */
h1 { color: var(--textLight); }
h2 { color: var(--textLight); }
h3 { color: var(--textLight); }

h1 {
  margin: 0;
  max-width: 740px;
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 900;
}

.home-hero h1 {
  max-width: 640px;
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

/* Hero (light context) — dark headings */
.hero h1, .hero h2, .hero h3,
.home-hero h1, .home-hero h2, .home-hero h3 {
  color: var(--ink);
}

/* ==========================================================================
   Lead / lead-statement / author-byline (hero — light context)
   ========================================================================== */

.lead {
  margin: 20px 0 0;
  max-width: 660px;
  color: var(--textMuted);
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.6;
  font-weight: 550;
}

.home-hero .lead {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.58;
  font-weight: 600;
}

.hero .lead,
.home-hero .lead {
  color: var(--muted);
}

.lead-statement {
  margin: 22px 0 0;
  max-width: 640px;
  color: var(--ink);
  font-size: clamp(19px, 1.65vw, 22px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-left: 3px solid var(--primary);
  padding: 2px 0 2px 18px;
}

.lead-statement strong {
  font-weight: inherit;
}

.lead-statement + .lead {
  margin-top: 18px;
  font-weight: 400;
}

/* In hero (light context) */
.hero .lead-statement,
.home-hero .lead-statement {
  color: var(--ink);
  border-left-color: var(--primary);
  background: linear-gradient(90deg, rgba(125, 184, 146, 0.06), transparent 70%);
  padding-top: 6px;
  padding-bottom: 6px;
}

.hero .lead-statement strong,
.home-hero .lead-statement strong {
  color: var(--ink);
  font-weight: inherit;
}

.home-hero .lead-statement + .lead,
.hero .lead-statement + .lead {
  color: var(--muted);
  font-weight: 450;
  line-height: 1.7;
  font-size: clamp(15px, 1.25vw, 17px);
}

.home-hero .lead-statement + .lead + .lead,
.hero .lead-statement + .lead + .lead {
  margin-top: 12px;
}

.hero .lead-statement ~ .lead,
.home-hero .lead-statement ~ .lead {
  color: var(--muted);
  font-weight: 450;
}

.author-byline {
  margin: 18px 0 0;
  max-width: 640px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}

.author-byline a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(125, 184, 146, 0.4);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.author-byline a:hover {
  text-decoration-color: var(--primary);
}

.hero .author-byline,
.home-hero .author-byline {
  color: var(--muted);
}

.hero .author-byline a,
.home-hero .author-byline a {
  color: var(--ink);
  text-decoration-color: rgba(125, 184, 146, 0.4);
}

.hero .author-byline a:hover,
.home-hero .author-byline a:hover {
  text-decoration-color: var(--primary);
}

/* ==========================================================================
   Actions / button groups
   ========================================================================== */

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

.home-actions { margin-top: 22px; }

/* ==========================================================================
   Home cost strip (hero, light context)
   ========================================================================== */

.home-cost-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 720px;
  margin-top: 14px;
}

.home-cost-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(61, 74, 68, 0.06);
}

.home-cost-strip strong {
  color: var(--primary);
  font-weight: 900;
}

/* ==========================================================================
   Home track cards (hero, light context)
   ========================================================================== */

.home-track-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 690px;
  margin-top: 24px;
}

.home-track-card {
  display: grid;
  gap: 5px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(61, 74, 68, 0.07);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.home-track-card:hover {
  border-color: var(--primary);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(61, 74, 68, 0.12);
}

.home-track-card span {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.home-track-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.home-track-card small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}

/* ==========================================================================
   Home proof list (hero, light context)
   ========================================================================== */

.home-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.home-proof-list li {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.home-proof-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}

/* ==========================================================================
   Hero note
   ========================================================================== */

.hero-note {
  margin-top: 22px;
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
}

/* ==========================================================================
   Product shot (in hero — light context frame)
   ========================================================================== */

.product-shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  margin-top: clamp(10px, 3vw, 34px);
}

.home-product-shot {
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}

.product-shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.product-shot-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
}

.product-shot-bar strong {
  margin-left: 4px;
  color: var(--ink);
}

.product-shot img {
  border-radius: 10px;
  border: 1px solid var(--line);
}

.home-product-shot img {
  border: 0;
  border-radius: 0;
}

/* ==========================================================================
   Hero asset stack / runware illustrations
   ========================================================================== */

.hero-asset-stack {
  display: grid;
  gap: 14px;
}

.runware-illustration {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.runware-illustration img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.runware-illustration.compact img {
  max-height: 260px;
  object-fit: contain;
  background: var(--cream);
}

.runware-hero-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ==========================================================================
   Container
   ========================================================================== */

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

/* ==========================================================================
   Sections — DARK background by default
   ========================================================================== */

.section {
  padding: clamp(58px, 7.5vw, 92px) 0;
  background: var(--bg);
  color: var(--textLight);
}

.section.soft {
  background: var(--bgAlt);
}

.section.band {
  border-top: 1px solid var(--borderDark);
  border-bottom: 1px solid var(--borderDark);
  background: var(--bg);
}

.section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--textLight);
}

.section h3 {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.3;
  margin: 28px 0 10px;
  color: var(--textLight);
}

.section p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 14px;
  color: var(--textMuted);
}

.section ul:not(.check-list):not(.nav):not(.feature-grid) {
  font-size: 16px;
  line-height: 1.7;
  color: var(--textMuted);
}

/* ==========================================================================
   Section head
   ========================================================================== */

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-head p {
  color: var(--textMuted);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6;
  margin: 12px 0 0;
}

/* ==========================================================================
   Generic table styling (dark context)
   ========================================================================== */

.section table:not(.pricing-table),
.container > table:not(.pricing-table) {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 16px;
}

.section table:not(.pricing-table) th,
.section table:not(.pricing-table) td,
.container > table:not(.pricing-table) th,
.container > table:not(.pricing-table) td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--borderDark);
  vertical-align: top;
  color: var(--textLight);
}

.section table:not(.pricing-table) th,
.container > table:not(.pricing-table) th {
  font-weight: 800;
  color: var(--textLight);
  background: rgba(125, 184, 146, 0.06);
  width: 30%;
}

.section table:not(.pricing-table) tbody tr:last-child th,
.section table:not(.pricing-table) tbody tr:last-child td,
.container > table:not(.pricing-table) tbody tr:last-child th,
.container > table:not(.pricing-table) tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   Choice flow — 3-column step cards (dark context)
   ========================================================================== */

.choice-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.choice-flow > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--borderDark);
  border-radius: 12px;
  background: var(--cardBg);
  box-shadow: 0 10px 28px rgba(46, 58, 52, 0.12);
}

.choice-flow span {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(125, 184, 146, 0.15);
  color: var(--primary);
  font-weight: 900;
}

.choice-flow strong {
  color: var(--textLight);
  font-size: 16px;
  line-height: 1.25;
}

.choice-flow p {
  margin: 5px 0 0;
  color: var(--textMuted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}

/* ==========================================================================
   Version grid / version card (dark context)
   ========================================================================== */

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

.version-card {
  border: 1px solid var(--borderDark);
  border-radius: 14px;
  background: var(--cardBg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.version-card.featured {
  border-color: rgba(212, 148, 138, 0.4);
}

.version-media {
  aspect-ratio: 16 / 9;
  background: var(--bg);
  overflow: hidden;
}

.version-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.version-body {
  padding: clamp(22px, 3vw, 32px);
}

.version-body p {
  color: var(--textMuted);
  margin: 0 0 18px;
}

.version-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

/* ==========================================================================
   Tags
   ========================================================================== */

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(125, 184, 146, 0.15);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.tag.green {
  background: rgba(125, 184, 146, 0.2);
  color: var(--primary);
}

.tag.amber {
  background: rgba(212, 148, 138, 0.2);
  color: var(--accent);
}

/* ==========================================================================
   Check list (dark context)
   ========================================================================== */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--textLight);
  font-weight: 650;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

/* ==========================================================================
   Matrix / comparison table (dark context)
   ========================================================================== */

.matrix {
  border: 1px solid var(--borderDark);
  border-radius: 12px;
  overflow: hidden;
  background: var(--cardBg);
}

.matrix-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  border-top: 1px solid var(--borderDark);
}

.matrix-row:first-child { border-top: 0; }

.matrix-row > div {
  padding: 16px 18px;
  border-left: 1px solid var(--borderDark);
  color: var(--textLight);
}

.matrix-row > div:first-child {
  border-left: 0;
  font-weight: 900;
}

.matrix-head {
  background: var(--deepest);
  color: #fff;
  font-weight: 900;
}

.matrix-head > div {
  color: #fff;
}

.muted { color: var(--textMuted); }

/* ==========================================================================
   Feature grid (dark context)
   ========================================================================== */

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

.feature {
  background: var(--cardBg);
  border: 1px solid var(--borderDark);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(46, 58, 52, 0.2);
}

.feature h3 {
  color: var(--textLight);
}

.feature p {
  margin: 0;
  color: var(--textMuted);
}

/* Feature card icon accent (terracotta tinted backgrounds) */
.feature .icon,
.feature [aria-hidden="true"]:first-child {
  background: rgba(212, 148, 138, 0.15);
  color: var(--accent);
}

/* ==========================================================================
   Cost grid (dark context)
   ========================================================================== */

.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.cost-card {
  border: 1px solid var(--borderDark);
  border-radius: 12px;
  padding: 20px;
  background: var(--cardBg);
  border-top: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.cost-card::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.cost-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 28px;
  line-height: 1;
}

.cost-card span {
  color: var(--textMuted);
  font-size: 14px;
  font-weight: 750;
}

/* ==========================================================================
   Beta panel — LIGHT cream bg (the big visual flip!)
   ========================================================================== */

.beta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  border-radius: 16px;
  padding: clamp(28px, 5vw, 46px);
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(46, 58, 52, 0.18);
}

.beta-panel h2,
.beta-panel h3 {
  color: var(--ink);
}

.beta-panel p {
  color: var(--muted);
}

.beta-panel .eyebrow {
  color: var(--accent) !important;
}

/* Beta panel buttons: light-context style */
.beta-panel .btn:not(.primary):not(.dark) {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.beta-panel .btn:not(.primary):not(.dark):hover {
  border-color: var(--muted);
}

.beta-side {
  display: grid;
  gap: 12px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.stat strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  color: var(--primary);
}

.stat span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

/* ==========================================================================
   Future panel (dark context card)
   ========================================================================== */

.future-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--borderDark);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--cardBg);
  box-shadow: var(--shadow-soft);
}

.future-panel h2 {
  color: var(--textLight);
}

.future-panel p:not(.eyebrow) {
  margin: 14px 0 0;
  max-width: 760px;
  color: var(--textMuted);
  font-size: 18px;
}

/* ==========================================================================
   Contact grid
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

/* ==========================================================================
   Beta cost section
   ========================================================================== */

.beta-cost-section {
  padding-top: clamp(42px, 5vw, 64px);
  padding-bottom: clamp(42px, 5vw, 64px);
  background: var(--bgAlt);
  border-top: 1px solid var(--borderDark);
  border-bottom: 1px solid var(--borderDark);
}

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

.beta-cost-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 235px;
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid var(--borderDark);
  border-radius: 12px;
  background: var(--cardBg);
  box-shadow: var(--shadow-soft);
}

.beta-cost-card.primary {
  border-color: rgba(125, 184, 146, 0.4);
  background: linear-gradient(180deg, rgba(125, 184, 146, 0.12) 0%, var(--cardBg) 100%);
}

.beta-cost-value {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(125, 184, 146, 0.15);
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

.beta-cost-card.primary .beta-cost-value {
  background: var(--primary);
  color: var(--deepest);
}

.beta-cost-card h3 {
  margin: 4px 0 0;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--textLight);
}

.beta-cost-card p {
  margin: 0;
  color: var(--textMuted);
  font-size: 16px;
  line-height: 1.58;
  font-weight: 600;
}

/* ==========================================================================
   Info card (dark context)
   ========================================================================== */

.info-card {
  border: 1px solid var(--borderDark);
  border-radius: 12px;
  padding: 26px;
  background: var(--cardBg);
}

.info-card a {
  color: var(--primary);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   FAQ section
   ========================================================================== */

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--borderDark);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--cardBg);
  box-shadow: var(--shadow-soft);
}

.faq-item h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--textLight);
}

.faq-item p {
  margin: 0;
  color: var(--textMuted);
  font-size: 17px;
}

.faq-item a {
  color: var(--primary);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-section-heading {
  margin: 56px 0 8px;
  padding-top: 24px;
  border-top: 2px solid var(--primary);
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--textLight);
  font-weight: 900;
  grid-column: 1 / -1;
}

.faq-section-intro {
  margin: 0 0 24px;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--textMuted);
  grid-column: 1 / -1;
}

/* ==========================================================================
   Steps
   ========================================================================== */

.steps-list {
  display: grid;
  gap: 14px;
}

.step-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border: 1px solid var(--borderDark);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--cardBg);
  box-shadow: var(--shadow-soft);
}

.step-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--deepest);
  font-weight: 900;
}

.step-card h3 {
  color: var(--textLight);
}

.step-card p {
  margin: 0;
  color: var(--textMuted);
  font-size: 17px;
}

/* ==========================================================================
   Forms (dark context)
   ========================================================================== */

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

.field {
  display: grid;
  gap: 6px;
  color: var(--textMuted);
  font-size: 13px;
  font-weight: 850;
}

.field.full { grid-column: 1 / -1; }
.field label { display: block; color: var(--textLight); }
.muted-inline { font-weight: 400; color: var(--textMuted); font-size: 12px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--borderDark);
  border-radius: var(--radius);
  padding: 12px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--textLight);
  background: var(--bg);
}

/* ==========================================================================
   Pricing table (dark context)
   ========================================================================== */

.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0 32px;
  background: var(--cardBg);
  border: 1px solid var(--borderDark);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 16px;
  line-height: 1.6;
}

.pricing-table caption {
  padding: 14px 18px;
  text-align: left;
  font-weight: 800;
  font-size: 15px;
  background: rgba(125, 184, 146, 0.08);
  color: var(--textLight);
  border-bottom: 1px solid var(--borderDark);
}

.pricing-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--textMuted);
  background: rgba(125, 184, 146, 0.05);
  border-bottom: 1px solid var(--borderDark);
}

.pricing-table tbody th,
.pricing-table tbody td {
  padding: 18px;
  border-bottom: 1px solid var(--borderDark);
  vertical-align: top;
  color: var(--textLight);
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody th {
  font-weight: 800;
  color: var(--textLight);
  width: auto;
  min-width: 130px;
}

.pricing-table tbody td:first-of-type {
  color: var(--textMuted);
  font-size: 16px;
  line-height: 1.55;
}

.pricing-table tbody td:last-child {
  font-weight: 800;
  font-size: 18px;
  color: var(--textLight);
  white-space: nowrap;
  text-align: right;
  width: auto;
  min-width: 160px;
}

.pricing-table tbody td:last-child strong {
  font-size: 22px;
  color: var(--primary);
  display: block;
  line-height: 1.2;
}

.pricing-table tbody tr:hover {
  background: rgba(125, 184, 146, 0.04);
}

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  background: var(--deepest);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  padding: 18px clamp(18px, 3vw, 26px);
  max-width: 980px;
  margin: 0 auto;
}

.cookie-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.cookie-banner-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--textMuted);
}

.cookie-banner-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-btn-decline {
  background: transparent;
  color: var(--textMuted);
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.cookie-btn-decline:hover {
  border-color: #fff;
  color: #fff;
}

.cookie-btn-accept {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: var(--deepest);
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-btn-accept:hover {
  background: var(--primaryHover);
  border-color: var(--primaryHover);
}

/* ==========================================================================
   Footer — darkest shade
   ========================================================================== */

.site-footer {
  padding: 32px clamp(18px, 4vw, 58px);
  background: var(--deepest);
  border-top: 1px solid var(--borderDark);
  color: var(--textMuted);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--textMuted);
  font-size: 14px;
}

.footer-inner strong {
  color: var(--textLight);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 18px;
}

.footer-links a {
  color: var(--textMuted);
  text-decoration: none;
  transition: color 180ms ease;
}

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

.footer-legal {
  flex-basis: 100%;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--borderDark);
  font-size: 13px;
  color: var(--textMuted);
}

/* ==========================================================================
   Responsive: 920px — tablet breakpoint
   ========================================================================== */

@media (max-width: 920px) {
  .nav {
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 14px;
    justify-content: flex-end;
  }

  .nav .login-menu summary { padding: 8px 12px; }

  .hero-grid,
  .home-hero .hero-grid,
  .version-grid,
  .beta-panel,
  .contact-grid,
  .future-panel {
    grid-template-columns: 1fr;
  }

  .home-hero .hero-grid > :last-child {
    position: static;
  }

  .home-product-shot {
    max-width: 760px;
    margin-top: 8px;
  }

  .choice-flow { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .beta-cost-grid { grid-template-columns: 1fr; }
  .cost-grid { grid-template-columns: 1fr; }

  .version-strip-inner,
  .transcription-value-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .matrix-row { grid-template-columns: 1fr; }
  .matrix-row > div { border-left: 0; border-top: 1px solid var(--borderDark); }
  .matrix-row > div:first-child { border-top: 0; }
}

/* ==========================================================================
   Responsive: 760px — mobile nav
   ========================================================================== */

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .home-page .site-header {
    flex-direction: row;
    align-items: center;
  }

  .home-page .nav {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .home-page .nav a:not(.btn),
  .home-page .nav .login-menu {
    display: none;
  }

  .home-page .nav .btn.primary {
    display: inline-flex;
  }

  .home-hero {
    padding-top: 34px;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 13px;
    justify-content: flex-start;
  }

  .nav a:not(.btn):not(summary) {
    padding: 6px 8px;
    border-radius: 6px;
  }

  .nav .btn.primary,
  .nav .btn.ghost { padding: 8px 14px; font-size: 13px; }

  .nav .login-menu { margin-left: auto; }

  .announcement-bar,
  .notice {
    font-size: 13px;
    text-align: center;
  }

  .notice { padding: 8px 18px; }

  .version-strip-inner,
  .transcription-value-inner {
    gap: 8px;
    padding: 10px 0;
    font-size: 13px;
    line-height: 1.45;
  }

  .login-menu-panel {
    right: auto;
    left: 0;
    min-width: 200px;
  }

  .cookie-banner-inner { grid-template-columns: 1fr; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions button { flex: 1; }
}

/* ==========================================================================
   Responsive: 620px — smallest screens
   ========================================================================== */

@media (max-width: 620px) {
  h1 { font-size: 42px; }

  .home-hero h1 { font-size: 36px; }
  .home-hero .lead { font-size: 17px; }

  .home-track-cards { grid-template-columns: 1fr; }
  .home-track-card { min-height: 0; }

  .home-cost-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-cost-strip span {
    justify-content: flex-start;
  }

  .home-proof-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .choice-flow > div {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 15px;
  }

  .choice-flow span {
    width: 34px;
    height: 34px;
  }

  .feature-grid,
  .form { grid-template-columns: 1fr; }

  .step-card { grid-template-columns: 1fr; }

  .footer-inner { display: grid; }

  .footer-links { justify-content: flex-start; }

  .lead-statement {
    font-size: 18px;
    padding-left: 14px;
    border-left-width: 2px;
  }

  .home-hero .lead-statement + .lead,
  .hero .lead-statement + .lead {
    font-size: 15px;
    line-height: 1.65;
  }

  .author-byline {
    font-size: 12.5px;
  }

  /* Mobile pricing table */
  .pricing-table { font-size: 15px; }
  .pricing-table thead { display: none; }
  .pricing-table, .pricing-table tbody, .pricing-table tr { display: block; }
  .pricing-table tbody tr {
    padding: 16px 18px;
    border-bottom: 1px solid var(--borderDark);
  }
  .pricing-table tbody tr:last-child { border-bottom: none; }
  .pricing-table tbody th,
  .pricing-table tbody td {
    display: block;
    padding: 4px 0;
    border: none;
    width: auto;
  }
  .pricing-table tbody th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--textMuted);
    margin-bottom: 4px;
  }
  .pricing-table tbody td:first-of-type {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .pricing-table tbody td:last-child {
    text-align: left;
  }
  .pricing-table tbody td:last-child strong {
    font-size: 24px;
  }
}
