/* =========================================================================
   Extract for Fathom — marketing + app site
   Design system: evergreen brand, soft surfaces, calm + trustworthy.
   ========================================================================= */

:root {
  color-scheme: light;

  /* Brand */
  --brand-900: #0a3d33;
  --brand-800: #0f5d4d;
  --brand-700: #10705c;
  --brand-600: #178068;
  --brand-500: #1f9a7d;
  --mint-300: #7fe3c4;
  --mint-100: #d9f5ec;
  --gold: #b06a2c;

  /* Neutrals */
  --ink: #14201b;
  --ink-soft: #3d4942;
  --muted: #66726a;
  --line: #e3e8e3;
  --line-soft: #eef1ee;
  --bg: #f7f9f6;
  --panel: #ffffff;
  --panel-tint: #f3f7f4;

  /* States */
  --danger: #9d2d28;

  /* Effects */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 40, 32, 0.05);
  --shadow: 0 6px 24px -10px rgba(16, 40, 32, 0.18);
  --shadow-lg: 0 24px 60px -28px rgba(11, 50, 40, 0.35);
  --ring: 0 0 0 3px rgba(31, 154, 125, 0.25);

  --content: 1120px;
  --prose: 720px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand-500);
}

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-tint);
  padding: 1px 6px;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

button,
input {
  font: inherit;
}

img,
svg {
  display: block;
}

/* -------------------------------------------------------------------------
   Layout primitives
   ------------------------------------------------------------------------- */

.wrap {
  width: min(var(--content), calc(100vw - 48px));
  margin-inline: auto;
}

.site-main {
  padding: 56px 0 88px;
}

.site-shell {
  width: min(var(--content), calc(100vw - 48px));
  margin: 0 auto;
  padding: 48px 0 88px;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 246, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  font-size: 18px;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

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

.site-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--panel-tint);
}

.site-nav .button {
  margin-left: 4px;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  padding: 0 20px;
  font-weight: 650;
  font-size: 15.5px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.button:hover,
input[type="submit"]:hover {
  border-color: var(--line);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button:focus-visible,
input[type="submit"]:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.button.primary,
input[type="submit"].primary {
  border-color: transparent;
  background: linear-gradient(180deg, var(--brand-600), var(--brand-800));
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(15, 93, 77, 0.6);
}

.button.primary:hover,
input[type="submit"].primary:hover {
  background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 12px 26px -8px rgba(15, 93, 77, 0.66);
}

.button.secondary,
input[type="submit"].secondary {
  border-color: #cbd8d0;
  background: #fff;
  color: var(--brand-800);
  box-shadow: none;
}

.button.secondary:hover,
input[type="submit"].secondary:hover {
  border-color: #b7c9bf;
  background: var(--panel-tint);
  box-shadow: var(--shadow-sm);
}

.button.ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.button.ghost:hover {
  background: var(--panel-tint);
  box-shadow: none;
}

.button.lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 17px;
  border-radius: 13px;
}

.button.block {
  width: 100%;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, #f4f8f5);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(32px, 5vw, 64px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero--centered {
  text-align: center;
}

.hero--centered .hero__copy {
  max-width: var(--prose);
  margin-inline: auto;
}

.hero__copy,
.hero__visual,
.export-card {
  min-width: 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--brand-800);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0;
}

.eyebrow.gold {
  background: #f6ecdf;
  color: var(--gold);
}

.hero h1 {
  font-size: 58px;
  letter-spacing: 0;
}

.hero .lede {
  margin-top: 18px;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 19px;
}

.hero--centered .lede {
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions form {
  margin: 0;
}

.hero-action-note {
  max-width: 480px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 550;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust svg {
  color: var(--brand-600);
  flex-shrink: 0;
}

/* Hero side visual: a faux export card */
.export-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.export-card__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel-tint);
}

.export-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d7ddd8;
}

.export-card__title {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.export-card__body {
  padding: 16px;
  display: grid;
  gap: 9px;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel-tint);
  font-size: 14px;
}

.file-row svg {
  color: var(--brand-600);
  flex-shrink: 0;
}

.file-row .name {
  min-width: 0;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-row .size {
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.export-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--muted);
}

.export-card__foot span {
  min-width: 0;
}

.export-card__foot span:last-child {
  text-align: right;
}

.export-card__foot strong {
  color: var(--brand-700);
}

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */

.section {
  margin-top: 72px;
}

.section__head {
  max-width: var(--prose);
  margin-bottom: 28px;
}

.section--centered .section__head {
  margin-inline: auto;
  text-align: center;
}

.section__kicker {
  margin: 0 0 10px;
  color: var(--brand-600);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section h2 {
  font-size: 34px;
  letter-spacing: 0;
}

.section__head p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 18px;
}

/* -------------------------------------------------------------------------
   Cards / feature grid
   ------------------------------------------------------------------------- */

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

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d2ddd6;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--mint-100);
  color: var(--brand-700);
}

.card h3 {
  font-size: 18.5px;
  letter-spacing: 0;
}

.card p {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* -------------------------------------------------------------------------
   Guide cards / guide pages
   ------------------------------------------------------------------------- */

.guide-hero {
  max-width: 780px;
}

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

.guide-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card {
  display: block;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: #d2ddd6;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.guide-card span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--brand-600);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.guide-card h3 {
  font-size: 22px;
}

.guide-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.guide-steps li {
  min-height: 150px;
}

/* -------------------------------------------------------------------------
   Steps (numbered)
   ------------------------------------------------------------------------- */

.steps-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps-flow li {
  position: relative;
  padding: 22px 22px 22px 64px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  font-size: 15.5px;
  counter-increment: step;
}

.steps-flow li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand-800);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.steps-flow strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 2px;
}

.steps-flow.guide-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Simple ordered list fallback */
.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--ink-soft);
}

.steps li::marker {
  color: var(--brand-600);
  font-weight: 700;
}

/* -------------------------------------------------------------------------
   Demo flow / comparison / FAQ
   ------------------------------------------------------------------------- */

.demo-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  box-shadow: var(--shadow-sm);
}

.demo-step {
  min-height: 220px;
  padding: 24px;
  background: var(--panel);
}

.demo-step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 34px;
  border-radius: 10px;
  background: var(--mint-100);
  color: var(--brand-800);
  font-size: 13px;
  font-weight: 800;
}

.demo-step h3 {
  font-size: 21px;
}

.demo-step p {
  margin: 10px 0 0;
  font-size: 15.5px;
}

.video-note {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #d4e7dc;
  border-radius: var(--radius-lg);
  background: #f3fbf7;
}

.video-note h3 {
  font-size: 24px;
}

.video-note p {
  margin: 0;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  box-shadow: var(--shadow-sm);
}

.comparison > div {
  padding: 30px;
  background: var(--panel);
}

.comparison__highlight {
  background: linear-gradient(180deg, #f4fbf7, #eef8f2) !important;
}

.comparison h3 {
  font-size: 23px;
}

.comparison ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--ink-soft);
}

.comparison li::marker {
  color: var(--brand-600);
}

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

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 750;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  max-width: 800px;
  font-size: 15.5px;
}

/* -------------------------------------------------------------------------
   Pricing
   ------------------------------------------------------------------------- */

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border-color: transparent;
  background: linear-gradient(180deg, #0f5d4d, #0a3d33);
  color: #eafff7;
  box-shadow: var(--shadow-lg);
}

.price-card.featured h3,
.price-card.featured .price,
.price-card.featured li {
  color: #fff;
}

.price-card__tag {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
}

.price-card.featured .price-card__tag {
  color: var(--mint-300);
}

.price-card h3 {
  margin-top: 8px;
  font-size: 22px;
}

.price {
  margin: 14px 0 4px;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.price small {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

.price-card.featured .price small {
  color: var(--mint-300);
}

.price-card .sub {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 18px;
}

.price-card.featured .sub {
  color: rgba(234, 255, 247, 0.78);
}

.feature-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 15.5px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
}

.feature-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand-600);
}

.price-card.featured .feature-list svg {
  color: var(--mint-300);
}

.price-card .cta {
  margin-top: auto;
}

.price-card.featured input[type="submit"],
.price-card.featured .button.primary {
  background: #fff;
  color: var(--brand-800);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}

.price-card.featured input[type="submit"]:hover {
  background: var(--mint-100);
}

/* -------------------------------------------------------------------------
   CTA band
   ------------------------------------------------------------------------- */

.cta-band {
  margin-top: 72px;
  padding: clamp(36px, 5vw, 56px);
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(180deg, #0f5d4d, #0a3d33);
  color: #eafff7;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: #fff;
  font-size: 38px;
  letter-spacing: 0;
}

.cta-band p {
  margin: 14px auto 0;
  max-width: 540px;
  color: rgba(234, 255, 247, 0.85);
  font-size: 18px;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-top: 26px;
}

.cta-band .button:not(.primary) {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: none;
}

.cta-band .button:not(.primary):hover {
  background: rgba(255, 255, 255, 0.1);
}

.cta-band .button.primary {
  background: #fff;
  color: var(--brand-800);
}

.cta-band .button.primary:hover {
  background: var(--mint-100);
}

.cta-band .note {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(234, 255, 247, 0.7);
}

.cta-band .note a {
  color: #fff;
  font-weight: 700;
}

/* -------------------------------------------------------------------------
   Trust / privacy callout
   ------------------------------------------------------------------------- */

.privacy-callout {
  margin-top: 72px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid #cfe6da;
  background: linear-gradient(180deg, #f4fbf7, #eef8f2);
}

.privacy-callout__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: #fff;
  color: var(--brand-700);
  box-shadow: var(--shadow-sm);
}

.privacy-callout h2 {
  font-size: 23px;
  letter-spacing: 0;
}

.privacy-callout p {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------
   Prose pages (privacy)
   ------------------------------------------------------------------------- */

.prose-section {
  max-width: var(--prose);
}

.prose-section h2 {
  font-size: 22px;
  letter-spacing: 0;
}

.prose-section h2:not(:first-child) {
  margin-top: 32px;
}

.prose-section p,
.prose-section ul {
  color: var(--ink-soft);
}

.prose-section ul {
  padding-left: 22px;
}

.prose-section li {
  margin-bottom: 6px;
}

/* -------------------------------------------------------------------------
   Misc text
   ------------------------------------------------------------------------- */

p {
  color: var(--ink-soft);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.12;
}

.small-copy {
  color: var(--muted);
  font-size: 14.5px;
}

.lede {
  font-size: 19px;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------
   License key box / forms (success + admin)
   ------------------------------------------------------------------------- */

.license-key-box {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin-top: 26px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-tint);
}

.license-key-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
}

.license-key-box code {
  display: block;
  overflow-wrap: anywhere;
  padding: 14px;
  font-size: 18px;
  background: #fff;
}

.license-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.license-form label {
  display: grid;
  gap: 6px;
}

.license-form span {
  color: #36433b;
  font-size: 13px;
  font-weight: 700;
}

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

input[type="email"],
input[type="number"],
input[type="text"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="email"]:focus,
input[type="number"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: var(--ring);
}

/* -------------------------------------------------------------------------
   Tables (admin)
   ------------------------------------------------------------------------- */

.table-wrap {
  overflow: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--panel-tint);
  color: #334038;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

td {
  overflow-wrap: anywhere;
}

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

.text-button {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  padding: 0;
  font-weight: 700;
}

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

.metric-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
}

/* -------------------------------------------------------------------------
   Flash
   ------------------------------------------------------------------------- */

.flash {
  margin-bottom: 22px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.flash.notice {
  border-color: #9cc5ae;
  background: #eff8f2;
  color: #1f5440;
}

.flash.alert {
  border-color: #e1aaa7;
  background: #fff0ee;
  color: #8a2f2a;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0;
}

.site-footer .brand-link {
  font-size: 16px;
}

.site-footer__meta {
  color: var(--muted);
  font-size: 14px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer__links a {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 550;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--brand-700);
}

/* -------------------------------------------------------------------------
   Admin / legacy compatibility (internal pages)
   ------------------------------------------------------------------------- */

.page-section {
  margin-top: 20px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.page-section .eyebrow {
  margin-bottom: 12px;
}

.page-section h1 {
  font-size: 32px;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
    width: 100%;
    max-width: 460px;
  }

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

  .guide-grid,
  .guide-grid.compact,
  .steps-flow.guide-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .wrap,
  .site-shell {
    width: min(100vw - 32px, 720px);
  }

  .site-main {
    padding: 32px 0 64px;
  }

  .site-nav a:not(.button) {
    display: none;
  }

  .brand-suffix {
    display: none;
  }

  .site-header .button.primary {
    white-space: nowrap;
    padding: 0 14px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .card-grid,
  .card-grid.two,
  .guide-grid,
  .guide-grid.compact,
  .guide-steps,
  .steps-flow,
  .demo-flow,
  .video-note,
  .comparison,
  .metric-grid,
  .license-form,
  .stripe-fields {
    grid-template-columns: 1fr;
  }

  .section {
    margin-top: 56px;
  }

  .privacy-callout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }
}
