/* ==========================================================================
   Covey homepage styles.
   Editorial, warm, plum & cream. Fraunces + Instrument Sans.
   ========================================================================== */

:root {
  /* Color */
  --cream:        #F5EFE6;
  --cream-deep:   #ECE3D2;
  --cream-warm:   #EEE4D1;
  --paper:        #FAF6EE;
  --plum:         #5D3A5A;
  --plum-deep:    #3E2340;
  --plum-soft:    #7A5677;
  --terracotta:   #C87A5A;
  --sage:         #7A8770;
  --amber:        #C9934F;
  --ink:          #231A27;
  --ink-muted:    #6B5B6B;
  --rule:         rgba(35, 26, 39, 0.14);
  --rule-strong:  rgba(35, 26, 39, 0.28);

  /* Type */
  --font-display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --font-sans:    'Instrument Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Menlo', monospace;

  /* Layout */
  --container-max: 1240px;
  --container-pad: clamp(20px, 4vw, 48px);
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
}

/* ------------------------- Reset / baseline ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

/* Paper grain overlay */
.grain {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 9999;
  opacity: 0.08; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.1 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ------------------------- Eyebrow / small type ------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
  font-weight: 500;
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.eyebrow.small { font-size: 10px; margin-bottom: 6px; color: var(--plum-soft); }
.hero .eyebrow { font-size: 13px; letter-spacing: 0.14em; margin-bottom: 22px; }
.eyebrow.centered { display: block; text-align: center; }
.eyebrow span { color: var(--terracotta); font-weight: 500; }

/* ------------------------- Buttons -------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--plum);
  color: var(--cream);
  border-color: var(--plum);
}
.btn-primary:hover { background: var(--plum-deep); border-color: var(--plum-deep); }

.btn-ghost {
  background: transparent;
  color: var(--plum);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { background: var(--cream-deep); border-color: var(--plum); }

.link-quiet {
  color: var(--ink-muted);
  font-size: 14.5px;
  transition: color .18s;
}
.link-quiet:hover { color: var(--plum); }

/* ------------------------- Nav ------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  background: color-mix(in oklab, var(--cream) 82%, transparent);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--plum);
}
.mark {
  width: 28px; height: 28px;
  fill: var(--plum);
}
.mark.mini { width: 18px; height: 18px; }
.mark.xl { width: 56px; height: 56px; margin: 0 auto 32px; }
.wordmark {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "opsz" 96;
  color: var(--plum);
  line-height: 1;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14.5px;
  color: var(--ink-muted);
  transition: color .15s;
  position: relative;
}
.nav-links a:hover { color: var(--plum); }
.nav-cta { display: flex; align-items: center; gap: 20px; }

/* ------------------------- Hero ----------------------------------------- */
.hero {
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%; right: -15%;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at 30% 30%, rgba(200, 122, 90, 0.18), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -25%; left: -10%;
  width: 55vw; height: 55vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(circle at 60% 40%, rgba(122, 135, 112, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; text-align: center; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 70, "opsz" 144;
  font-size: clamp(46px, 8vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--plum-deep);
  margin-bottom: 22px;
}
.hero-title em {
  font-style: italic;
  color: var(--terracotta);
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 auto 26px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}
.hero-footnote {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
}
.hero-footnote .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--sage);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--sage) 25%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.55; }
}

/* --- Product surface under hero --- */
.hero-surface-wrap {
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.hero-surface {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 30px 60px -30px rgba(61, 35, 64, 0.35),
    0 60px 100px -40px rgba(61, 35, 64, 0.18);
  border: 1px solid var(--rule);
  overflow: hidden;
  transform: perspective(1800px) rotateX(2deg);
  transform-origin: center top;
  animation: floatIn .8s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes floatIn {
  from { opacity: 0; transform: perspective(1800px) rotateX(6deg) translateY(30px); }
  to   { opacity: 1; transform: perspective(1800px) rotateX(2deg) translateY(0); }
}

.surface-chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--cream-warm);
}
.chrome-dots { display: flex; gap: 6px; }
.chrome-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-strong); }
.chrome-dots span:nth-child(1) { background: #D98E7A; }
.chrome-dots span:nth-child(2) { background: #D8B46B; }
.chrome-dots span:nth-child(3) { background: #8FA485; }
.chrome-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  background: var(--cream-deep);
  padding: 5px 14px;
  border-radius: 999px;
  max-width: 320px;
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chrome-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.surface-body { display: grid; grid-template-columns: 220px 1fr; min-height: 440px; }
.surface-side {
  background: var(--cream-warm);
  border-right: 1px solid var(--rule);
  padding: 20px 16px 20px 24px;
  display: flex; flex-direction: column;
}
.side-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--plum);
  padding-bottom: 20px; margin-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.side-nav { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.side-nav a {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  cursor: pointer;
}
.side-nav a.active {
  background: var(--cream-deep);
  color: var(--plum);
  font-weight: 500;
}
.side-foot {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  padding: 10px 8px;
  border-top: 1px dashed var(--rule);
  margin-top: 20px;
}
.ico-sun::before { content: "☀"; margin-right: 4px; color: var(--terracotta); }

.surface-main { padding: 24px 28px; }
.surface-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 20px;
}
.surface-header h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  font-variation-settings: "opsz" 48, "SOFT" 50;
  color: var(--plum-deep);
  letter-spacing: -0.01em;
}
.surface-header h3 .muted { color: var(--ink-muted); font-family: var(--font-sans); font-size: 15px; }

.pill-row { display: flex; gap: 8px; }
.pill {
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-weight: 500;
  letter-spacing: 0.02em;
}
.pill-plum { background: var(--plum); color: var(--cream); }
.pill-outline { border: 1px solid var(--rule-strong); color: var(--ink-muted); }

/* Table */
.table { display: flex; flex-direction: column; }
.table-head, .table-row {
  display: grid;
  grid-template-columns: 2fr 0.9fr 2fr 0.9fr 1fr;
  gap: 16px;
  align-items: center;
}
.table-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  padding: 8px 4px;
  border-bottom: 1px solid var(--rule);
}
.table-row {
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
  transition: background .15s;
}
.table-row:hover { background: var(--cream-deep); }
.table-row:last-child { border-bottom: none; }
.cell-member { display: flex; align-items: center; gap: 10px; }
.cell-member strong { display: block; font-weight: 500; color: var(--ink); }
.cell-member .muted { font-size: 12px; }
.emails { font-size: 13px; line-height: 1.4; }
.emails .muted { font-size: 12px; }
.muted { color: var(--ink-muted); }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  background: color-mix(in oklab, var(--plum) 12%, var(--cream));
  color: var(--plum);
  vertical-align: 2px;
}
.tag-small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--terracotta);
  padding-left: 4px;
}
.chip {
  display: inline-block; font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  font-weight: 500;
}
.chip-sage { background: color-mix(in oklab, var(--sage) 22%, var(--cream)); color: #4E5A44; }
.chip-amber { background: color-mix(in oklab, var(--amber) 28%, var(--cream)); color: #7A5A24; }

/* Avatar */
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--plum);
  color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  flex-shrink: 0;
}
.avatar.small { width: 24px; height: 24px; font-size: 9.5px; }
.avatar[data-avatar="BW"] { background: var(--plum); }
.avatar[data-avatar="JR"] { background: var(--terracotta); }
.avatar[data-avatar="LM"] { background: var(--sage); }
.avatar[data-avatar="AK"] { background: var(--amber); }

/* ------------------------- Stats strip --------------------------------- */
.stats {
  border-block: 1px solid var(--rule);
  background: var(--cream-warm);
  margin-top: 100px;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-block: 48px;
}
.stats-inner > div { padding-inline: 28px; border-right: 1px dashed var(--rule); }
.stats-inner > div:first-child { padding-left: 0; }
.stats-inner > div:last-child { border-right: none; padding-right: 0; }
.stat-n {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.95;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.03em;
  color: var(--plum-deep);
  margin-bottom: 10px;
}
.stat-n span {
  font-size: 0.45em;
  color: var(--ink-muted);
  letter-spacing: 0;
}
.stat-l {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.45;
  margin: 0;
}

/* ------------------------- Section titles ------------------------------ */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--plum-deep);
  margin-bottom: 24px;
  max-width: 22ch;
}
.section-title em {
  font-style: italic;
  color: var(--terracotta);
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.section-lede {
  font-size: 18px;
  max-width: 56ch;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ------------------------- Wedge ---------------------------------------- */
.wedge {
  padding-top: 120px;
  padding-bottom: 56px;
  text-align: left;
}

/* ------------------------- Feature grid --------------------------------- */
.feature-grid { padding-bottom: 100px; }
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.feat {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column;
  min-height: 280px;
  position: relative;
  transition: background .2s;
}
.feat:hover { background: var(--cream-warm); }
.feat-icon {
  margin-bottom: 22px;
  color: var(--plum);
}
.feat-icon svg {
  width: 32px; height: 32px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.feat-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.feat h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  font-variation-settings: "opsz" 48, "SOFT" 50;
  color: var(--plum-deep);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.feat p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.feat-source {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum-soft);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
}

/* ------------------------- Product tour --------------------------------- */
.tour { padding-block: 40px 100px; }
.tour-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  padding-block: 80px;
}
.tour-row-reverse .tour-copy { order: 2; }
.tour-row-reverse .tour-mock { order: 1; }

/* Stacked variant: copy on top (centered), mock below full-width */
.tour-row-stacked {
  grid-template-columns: 1fr;
  gap: 48px;
  padding-block: 72px 48px;
  align-items: start;
  text-align: center;
}
.tour-row-stacked .tour-copy {
  max-width: 720px;
  margin: 0 auto;
}
.tour-row-stacked .eyebrow {
  display: inline-flex;
  justify-content: center;
}
.tour-row-stacked .tour-title {
  max-width: none;
  margin-inline: auto;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .tour-row-stacked .tour-title { white-space: normal; }
}
.tour-row-stacked .tour-body {
  max-width: 58ch;
  margin-inline: auto;
}
.tour-row-stacked .tour-list {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 10px 36px;
  margin: 4px auto 0;
  text-align: left;
}
.tour-row-stacked .tour-mock { width: 100%; }
.tour-row-stacked .mock-window { max-width: none; }
.tour-row-stacked .mock-website .mw-body { min-height: 0; }
.tour-rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 0 auto;
  width: min(1240px, calc(100% - 2 * var(--container-pad)));
}
.tour-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--plum-deep);
  margin-bottom: 20px;
}
.tour-body {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 44ch;
}
.tour-list { display: flex; flex-direction: column; gap: 10px; }
.tour-list li {
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink);
  position: relative;
}
.tour-list li::before {
  content: "◆";
  position: absolute; left: 0; top: 0;
  color: var(--terracotta);
  font-size: 9px;
  line-height: 1.9;
}

/* Shared mock window */
.mock-window {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow:
    0 20px 40px -25px rgba(61, 35, 64, 0.28),
    0 40px 80px -40px rgba(61, 35, 64, 0.14);
  overflow: hidden;
}
.mw-head {
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  background: var(--cream-warm);
  border-bottom: 1px solid var(--rule);
}
.mw-body { padding: 24px; }

/* Cart mock */
.cart-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  gap: 16px;
}
.cart-item:last-of-type { border-bottom: 1px solid var(--rule-strong); }
.ci-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.ci-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--terracotta) 18%, transparent);
  flex-shrink: 0;
}
.ci-left strong { display: block; font-weight: 500; font-size: 14.5px; color: var(--ink); }
.ci-left .muted { font-size: 12px; }
.ci-price {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--plum);
  white-space: nowrap;
  padding-left: 8px;
}
.cart-sum { padding-top: 14px; font-size: 14px; }
.sum-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  color: var(--ink-muted);
}
.sum-row em { font-style: normal; }
.sum-total {
  border-top: 1px solid var(--rule);
  margin-top: 4px; padding-top: 10px;
  font-weight: 500; color: var(--ink); font-size: 15px;
}
.mock-btn {
  margin-top: 18px;
  background: var(--plum);
  color: var(--cream);
  border: none;
  padding: 14px 20px;
  width: 100%;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  transition: background .15s;
}
.mock-btn:hover { background: var(--plum-deep); }
.mock-btn.small { width: auto; padding: 10px 16px; font-size: 13px; margin-top: 0; }

/* Finance mock */
.fin-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi {
  padding: 16px; border: 1px solid var(--rule);
  border-radius: var(--radius-sm); background: var(--cream);
}
.kpi-l { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); display: block; margin-bottom: 6px; }
.kpi-n { font-family: var(--font-display); font-size: 28px; font-weight: 400; font-variation-settings: "opsz" 96, "SOFT" 40; color: var(--plum-deep); letter-spacing: -0.015em; display: block; line-height: 1; margin-bottom: 4px; }
.kpi-d { font-size: 11.5px; color: var(--ink-muted); font-family: var(--font-mono); }
.kpi-d.up { color: var(--sage); }
.kpi-d.down { color: var(--sage); }
.fin-chart { padding: 8px 0 16px; }
.fin-chart svg { width: 100%; height: 100px; }
.fin-rows { display: flex; flex-direction: column; }
.fin-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
}
.fin-row strong { font-weight: 500; display: block; }
.fin-row .muted { font-size: 12px; }
.fin-row .money { font-family: var(--font-mono); font-size: 13px; color: var(--plum); font-weight: 500; }

/* Email mock */
.mw-email { padding: 18px 22px 20px; }
.email-field {
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 12px;
  align-items: center;
}
.ef-l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  width: 70px;
}
.chip-inline {
  background: color-mix(in oklab, var(--plum) 10%, var(--cream));
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--plum);
}
.email-editor {
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--rule);
}
.email-editor h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  font-variation-settings: "opsz" 64, "SOFT" 60;
  color: var(--plum-deep);
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.email-editor p { font-size: 14px; line-height: 1.55; color: var(--ink); margin-bottom: 10px; }
.email-editor p em { color: var(--terracotta); font-style: italic; }
.gadget {
  margin: 14px 0;
  border: 1px dashed var(--rule-strong);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.gadget-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--terracotta);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gadget-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ink);
  border-top: 1px dashed var(--rule);
}
.gadget-row:first-of-type { border-top: none; }
.gadget-row strong { font-weight: 500; }
.gadget-row span { color: var(--ink-muted); font-family: var(--font-mono); font-size: 12px; }
.email-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  font-size: 12px;
  flex-wrap: wrap;
}

/* ------------------------- Website mock ---------------------------------
   A legit professional association site (navy + warm white + gold accents)
   distinct from Covey's own plum/cream palette, to show builder range.
--------------------------------------------------------------------------- */
.mock-website .mw-body {
  padding: 0;
  background: #F7F5EF;
  color: #1A1D24;
  min-height: 640px;
  font-size: 13px;
}

/* Utility topbar (navy) */
.site-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  background: #1D2A44;
  color: rgba(247, 245, 239, 0.82);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
.site-topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-topbar-right > span:first-child {
  cursor: default;
}
.site-topbar .site-join {
  background: #B08B4F;
  color: #1D2A44 !important;
  padding: 4px 11px;
  border-radius: 2px;
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Main nav */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(29, 42, 68, 0.12);
  background: #F7F5EF;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-logomark {
  width: 36px;
  height: 36px;
  background: #1D2A44;
  color: #F7F5EF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 48, "SOFT" 60;
  font-size: 22px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.site-logotext {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1D2A44;
  line-height: 1;
  font-weight: 500;
}
.site-logotext em {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 50;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #1D2A44;
  font-weight: 500;
  margin-top: 4px;
}
.site-links {
  display: flex;
  gap: 22px;
  font-size: 12.5px;
  color: #4D5566;
  font-family: var(--font-sans);
  font-weight: 500;
}
.site-links span { cursor: default; }

/* Hero */
.site-hero {
  position: relative;
  padding: 56px 40px 48px;
  border-bottom: 1px solid rgba(29, 42, 68, 0.1);
  background:
    linear-gradient(180deg, #F7F5EF 0%, #EFECE2 100%);
  text-align: center;
}
.site-hero::before {
  content: "";
  display: block;
  width: 48px; height: 2px;
  background: #B08B4F;
  margin: 0 auto 22px;
}
.site-hero .site-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #B08B4F;
  margin-bottom: 18px;
  display: block;
  font-weight: 500;
}
.site-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #1D2A44;
  margin: 0 auto 18px;
  max-width: 22ch;
}
.site-title em {
  font-style: italic;
  color: #B08B4F;
  font-weight: 400;
}
.site-lede {
  font-size: 13.5px;
  color: #4D5566;
  line-height: 1.55;
  max-width: 58ch;
  margin: 0 auto 22px;
}
.site-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-cta-primary {
  background: #1D2A44;
  color: #F7F5EF;
  padding: 11px 20px;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.site-cta-ghost {
  color: #1D2A44;
  font-size: 12.5px;
  font-weight: 500;
  border-bottom: 1px solid #1D2A44;
  padding-bottom: 2px;
}

/* Two-column events + new members */
.site-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 26px 40px 24px;
  border-bottom: 1px solid rgba(29, 42, 68, 0.1);
}
.site-col-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B08B4F;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1D2A44;
  font-weight: 500;
}
.site-event {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid rgba(29, 42, 68, 0.08);
}
.site-event:first-of-type { border-top: none; padding-top: 6px; }
.site-event .se-date {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 64, "SOFT" 60;
  color: #B08B4F;
  font-size: 16px;
  letter-spacing: -0.005em;
}
.site-event .se-body { display: flex; flex-direction: column; gap: 2px; }
.site-event strong {
  font-weight: 500;
  color: #1A1D24;
  font-size: 13.5px;
  line-height: 1.2;
}
.site-event .se-body span {
  color: #5C6370;
  font-size: 11.5px;
  font-family: var(--font-sans);
}

.site-member {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(29, 42, 68, 0.08);
  align-items: center;
}
.site-member:first-of-type { border-top: none; padding-top: 4px; }
.site-member > div { min-width: 0; }
.site-member strong {
  display: block;
  font-weight: 500;
  color: #1A1D24;
  font-size: 13.5px;
  line-height: 1.2;
}
.site-member > div > span {
  color: #5C6370;
  font-size: 11.5px;
  display: block;
  margin-top: 2px;
}
/* Override avatar inside the professional-site mock */
.mock-website .avatar { background: #1D2A44; color: #F7F5EF; }

/* Sponsor band */
.site-sponsors {
  padding: 20px 40px 28px;
  text-align: center;
}
.site-sponsors-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5C6370;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(29, 42, 68, 0.1);
}
.site-sponsor-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 30px;
}
.site-sponsor-row span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #4D5566;
  font-weight: 500;
}

@media (max-width: 600px) {
  .site-topbar { font-size: 9.5px; padding: 6px 14px; }
  .site-nav { padding: 14px 16px; }
  .site-links { display: none; }
  .site-hero { padding: 32px 20px 28px; }
  .site-columns { grid-template-columns: 1fr; gap: 24px; padding: 20px 20px; }
  .site-sponsors { padding: 18px 20px 24px; }
  .site-sponsor-row { gap: 18px 22px; }
}

/* ------------------------- Audiences ----------------------------------- */
.audiences {
  padding-block: 80px 100px;
  border-top: 1px solid var(--rule);
  background: var(--cream-warm);
  text-align: center;
}
.audience-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 22px;
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 60;
  font-size: clamp(24px, 3.4vw, 42px);
  color: var(--plum-deep);
  letter-spacing: -0.015em;
  margin: 32px 0 24px;
  line-height: 1.3;
}
.audience-row .sep {
  color: var(--terracotta);
  font-size: 0.45em;
  line-height: 1;
  position: relative;
  top: -0.45em;
}
.audience-note {
  color: var(--ink-muted);
  font-size: 15px;
  max-width: 52ch;
  margin: 0 auto;
}

/* ------------------------- Testimonial --------------------------------- */
.testimonial {
  padding-block: 140px;
  position: relative;
}
.pullquote {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  padding-left: 48px;
}
.mark-quote {
  position: absolute;
  left: -10px; top: -60px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: 220px;
  line-height: 1;
  color: color-mix(in oklab, var(--terracotta) 45%, transparent);
}
.pullquote blockquote {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.22;
  color: var(--plum-deep);
  letter-spacing: -0.013em;
}
.pullquote figcaption {
  display: flex; align-items: center; gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.pullquote figcaption strong { display: block; font-weight: 500; }
.pullquote figcaption .muted { font-size: 13px; }

/* ------------------------- Logo wall ----------------------------------- */
.logowall {
  padding-block: 60px 100px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 48px;
  margin-top: 36px;
  text-align: center;
}
.logo-grid span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  opacity: 0.75;
  transition: opacity .18s, color .18s;
}
.logo-grid span:hover { opacity: 1; color: var(--plum); }

/* ------------------------- Pricing ------------------------------------- */
.pricing { padding-block: 120px; }
.pricing .eyebrow { margin-bottom: 28px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}
.price-card {
  padding: 32px 28px 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}
.price-feature {
  background: var(--plum);
  color: var(--cream);
  border-color: var(--plum);
  transform: translateY(-12px);
  box-shadow: 0 40px 60px -40px rgba(61,35,64,0.5);
}
.price-feature .pc-desc,
.price-feature li { color: color-mix(in oklab, var(--cream) 82%, transparent); }
.price-feature .pc-eyebrow { color: var(--cream); }
.pc-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.pc-tag {
  font-size: 9.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--cream);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 500;
}
.pc-price {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  color: inherit;
}
.pc-price span {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink-muted);
  margin-left: 4px;
}
.price-feature .pc-price span { color: color-mix(in oklab, var(--cream) 70%, transparent); }
.pc-desc {
  font-size: 14.5px; color: var(--ink-muted); line-height: 1.55;
  margin-bottom: 22px;
}
.price-card ul {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
  margin-bottom: 28px;
  color: var(--ink);
}
.price-card ul li {
  padding-left: 22px; position: relative;
}
.price-card ul li::before {
  content: "";
  position: absolute; left: 2px; top: 7px;
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--terracotta);
  opacity: 0.9;
}
.price-feature ul li::before { background: var(--cream); opacity: 0.55; }
.price-card .btn { margin-top: auto; }
.price-feature .btn-primary { background: var(--cream); color: var(--plum); border-color: var(--cream); }
.price-feature .btn-primary:hover { background: var(--cream-deep); border-color: var(--cream-deep); }

/* Enterprise panel */
.enterprise-panel {
  margin-top: 48px;
  padding: 44px 48px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--plum);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.enterprise-panel::after {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 80px; height: 3px;
  background: var(--terracotta);
}
.enterprise-eyebrow { margin-bottom: 20px; }
.enterprise-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 60;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--plum-deep);
  margin-bottom: 18px;
  max-width: 26ch;
}
.enterprise-desc {
  font-size: 15.5px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 46ch;
}
.enterprise-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.enterprise-cta-row .link-quiet {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}
.enterprise-list {
  display: flex;
  flex-direction: column;
}
.enterprise-list li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-muted);
  align-items: baseline;
}
.enterprise-list li:first-child { border-top: none; padding-top: 4px; }
.enterprise-list li strong {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--plum);
  letter-spacing: -0.005em;
}

/* ------------------------- Migration ----------------------------------- */
.migration {
  background: var(--plum);
  color: var(--cream);
  padding-block: 100px;
  position: relative;
  overflow: hidden;
}
.migration::before {
  content: "";
  position: absolute;
  bottom: -200px; right: -200px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 122, 90, 0.22), transparent 60%);
  pointer-events: none;
}
.migration-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.migration .eyebrow { color: color-mix(in oklab, var(--cream) 70%, transparent); }
.migration .eyebrow span { color: var(--terracotta); }
.migration-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-bottom: 22px;
}
.migration-title em {
  font-style: italic;
  color: var(--terracotta);
}
.migration-body {
  font-size: 17px;
  line-height: 1.55;
  color: color-mix(in oklab, var(--cream) 82%, transparent);
  margin-bottom: 28px;
  max-width: 46ch;
}
.migration .btn-primary {
  background: var(--cream); color: var(--plum); border-color: var(--cream);
}
.migration .btn-primary:hover { background: var(--cream-deep); border-color: var(--cream-deep); }
.migration-list {
  display: flex; flex-direction: column; gap: 18px;
  padding-left: 0;
  border-left: 1px solid color-mix(in oklab, var(--cream) 24%, transparent);
  padding-left: 28px;
}
.migration-list li {
  font-size: 15.5px;
  line-height: 1.5;
  color: color-mix(in oklab, var(--cream) 92%, transparent);
  display: flex; gap: 16px; align-items: flex-start;
}
.migration-list span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding-top: 3px;
  color: var(--terracotta);
  font-weight: 500;
  flex-shrink: 0;
}

/* ------------------------- Final CTA ----------------------------------- */
.final-cta {
  text-align: center;
  padding: 140px 0 160px;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(200, 122, 90, 0.1), transparent 55%),
    radial-gradient(ellipse at 80% 60%, rgba(122, 135, 112, 0.09), transparent 55%);
  pointer-events: none;
}
.final-cta > .container { position: relative; z-index: 1; }
.final-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 70;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--plum-deep);
  margin-bottom: 24px;
}
.final-title em {
  font-style: italic;
  color: var(--terracotta);
}
.final-sub {
  font-size: 19px;
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.final-foot {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* ------------------------- Footer -------------------------------------- */
.footer {
  background: var(--cream-warm);
  border-top: 1px solid var(--rule);
  padding: 80px 0 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 48px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--plum);
  margin-bottom: 20px;
  max-width: 24ch;
}
.footer-small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer a {
  display: block;
  font-size: 14px;
  color: var(--ink-muted);
  padding: 4px 0;
  transition: color .15s;
}
.footer a:hover { color: var(--plum); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .nav-links { display: none; }

  .surface-body { grid-template-columns: 1fr; min-height: auto; }
  .surface-side { display: none; }
  .surface-main { padding: 20px; }
  .table-head, .table-row { grid-template-columns: 2fr 1fr 1fr; }
  .table-head > div:nth-child(3),
  .table-head > div:nth-child(4),
  .table-row > div:nth-child(3),
  .table-row > div:nth-child(4) { display: none; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .stats-inner > div { padding: 0 16px; }
  .stats-inner > div:nth-child(2) { border-right: none; }
  .stats-inner > div:nth-child(3) { padding-left: 0; }

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

  .tour-row { grid-template-columns: 1fr; gap: 36px; padding-block: 60px; }
  .tour-row-reverse .tour-copy { order: 1; }
  .tour-row-reverse .tour-mock { order: 2; }

  .fin-kpis { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; }
  .price-feature { transform: none; }

  .enterprise-panel { grid-template-columns: 1fr; gap: 36px; padding: 36px 32px; }
  .enterprise-list li { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }

  .migration-inner { grid-template-columns: 1fr; gap: 48px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }

  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { --container-pad: 20px; }

  .nav-cta .link-quiet { display: none; }
  .nav-cta .btn { padding: 10px 16px; font-size: 14px; }

  .hero { padding-top: 56px; }
  .hero-surface { border-radius: 12px; transform: none; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }

  /* Hero footnote: the flex-wrap was stacking the dot on its own line. */
  .hero-footnote {
    display: block;
    text-align: center;
    line-height: 1.7;
    padding-inline: 8px;
  }
  .hero-footnote .dot { display: none; }

  /* Dashboard mock: trim chrome & header to fit narrow screens cleanly */
  .surface-chrome { grid-template-columns: auto 1fr; padding: 10px 14px; gap: 12px; }
  .chrome-meta { display: none; }
  .chrome-url { max-width: 200px; font-size: 10.5px; padding: 4px 10px; }

  .surface-main { padding: 16px; }
  .surface-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .surface-header h3 { font-size: 22px; }
  .pill-outline { display: none; }
  .pill { font-size: 10.5px; padding: 4px 10px; }

  /* Table: at narrow widths the status chip was clipping. Drop to 2 columns. */
  .table-head, .table-row { grid-template-columns: 1.7fr 1fr; gap: 10px; }
  .table-head > div:nth-child(2),
  .table-row > div:nth-child(2) { display: none; }
  .cell-member .muted { font-size: 11.5px; }
  .chip { font-size: 10.5px; padding: 2px 8px; }

  /* Sample-site topbar: the meta line crowds the buttons at 390px */
  .site-topbar > span:first-child { display: none; }
  .site-topbar { justify-content: flex-end; }

  /* Cart mock: stack title + meta above the price at narrow widths */
  .cart-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ci-price { padding-left: 24px; padding-top: 2px; }

  .stats-inner { grid-template-columns: 1fr; gap: 28px; }
  .stats-inner > div { border-right: none; padding: 0; }

  .grid-6 { grid-template-columns: 1fr; }

  .fin-kpis { grid-template-columns: 1fr; }

  .pullquote { padding-left: 0; text-align: left; }
  .mark-quote { font-size: 140px; top: -40px; left: -8px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Beta signup modal
   ========================================================================== */
.beta-modal {
  position: fixed; inset: 0;
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 6vh, 64px) 20px;
  overflow-y: auto;
}
.beta-modal.is-open { display: flex; }
.beta-modal-scrim {
  position: absolute; inset: 0;
  background: rgba(35, 26, 39, 0.58);
  backdrop-filter: blur(2px);
  animation: betaScrimIn .25s ease both;
}
.beta-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(35,26,39,.28), 0 2px 0 rgba(255,255,255,.4) inset;
  padding: clamp(28px, 4vw, 44px);
  animation: betaCardIn .35s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes betaScrimIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes betaCardIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.beta-modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px;
  border: 0;
  background: transparent;
  font-size: 28px; line-height: 1;
  color: var(--ink-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.beta-modal-close:hover { background: rgba(35,26,39,.06); color: var(--ink); }
.beta-modal-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 10px 0 12px;
}
.beta-modal-title em {
  font-style: italic;
  color: var(--plum);
  font-variation-settings: "SOFT" 60;
}
.beta-modal-sub {
  color: var(--ink-muted);
  font-size: 15px;
  margin-bottom: 22px;
  max-width: 42ch;
}
.beta-field {
  display: block;
  margin-bottom: 14px;
}
.beta-field > span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 6px;
}
.beta-field input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.beta-field input:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(93,58,90,.16);
}
.beta-field-error {
  color: #9c3a3a;
  font-size: 13px;
  min-height: 1.2em;
  margin: 4px 0 10px;
}
.beta-form-foot {
  text-align: center;
  color: var(--ink-muted);
  font-size: 13px;
  margin-top: 14px;
}
.btn-full { display: block; width: 100%; text-align: center; }

.beta-modal-success {
  text-align: center;
  padding: 8px 0 4px;
}
.beta-modal-success .mark.xl { margin: 0 auto 14px; }

/* Toast — error surfacing */
#toast-container {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(35,26,39,.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: auto;
  max-width: 360px;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { background: #6b2a2a; }

body.beta-modal-open { overflow: hidden; }
