/* =========================================================================
   Model Railway Manager — design system
   Editorial, considered, high-contrast. A single typeface — Source Serif 4 —
   throughout, on a deep ink-navy primary with a forest-green accent. One box
   radius + one pill radius. Colour tokens at WCAG AA/AAA for an older audience.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&display=swap");

:root {
  --bg: #ffffff;
  --bg-muted: #f3f6fa;
  --surface: #ffffff;
  --surface-2: #e9eef5;

  /* Text — all AA/AAA on white */
  --ink: #0f2030;        /* headings ~14:1 */
  --ink-soft: #283746;   /* body copy ~9.5:1 (AAA) */
  --muted: #45566a;      /* secondary ~6.3:1 (AA) */

  --line: #dde4ee;
  --line-strong: #c2cdda;

  --primary: #11476f;    /* on white ~8.6:1; white-on-primary ~8.6:1 */
  --primary-strong: #0c3554;
  --primary-tint: #e7eff7;
  --primary-tint-2: #d7e4f0;

  --accent: #1c6a45;     /* forest green; white-on-accent ~5.4:1 (AA) */
  --accent-tint: #e3efe8;

  --warn: #9c3420;       /* ~6.4:1 */

  --font: "Source Serif 4", Georgia, "Times New Roman", serif;

  --radius: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 32, 48, 0.07), 0 1px 1px rgba(15, 32, 48, 0.05);
  --shadow-md: 0 14px 32px -16px rgba(15, 32, 48, 0.26);
  --shadow-lg: 0 30px 64px -28px rgba(15, 32, 48, 0.36);

  --maxw: 1150px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-soft);
  background: var(--bg);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 4.6vw, 3.55rem);
  line-height: 1.1;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.85rem, 2.8vw, 2.4rem);
  line-height: 1.18;
}

h3 {
  margin-bottom: 0.4em;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.18rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 700;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--primary-tint);
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Layout helpers ---------------------------------------------------------- */

.container {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 40px, 780px);
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 60px 0;
}

.section-muted {
  background: var(--bg-muted);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 40px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--primary);
  flex: 0 0 auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(12px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 226px;
  max-width: 44vw;
  height: auto;
  background: transparent;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.84rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  padding: 9px 14px;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  background: var(--surface-2);
  color: var(--primary);
}

.nav a[aria-current="page"] {
  color: var(--primary-strong);
  background: var(--primary-tint);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--muted);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-block {
  width: 100%;
}

.btn-disabled,
.btn:disabled {
  color: var(--muted);
  background: var(--surface-2);
  border-color: var(--line);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

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

.hero-section {
  padding: 76px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-muted) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  padding: 6px 0 72px;
}

.hero-subtitle {
  max-width: 56ch;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.hero-support {
  max-width: 52ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 600;
}

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

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.station-sign {
  position: absolute;
  bottom: -24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.station-sign-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius);
}

.station-sign-icon svg {
  width: 22px;
  height: 22px;
}

.station-sign strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
}

.station-sign span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.track-strip {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 44px;
  background: transparent;
}

.track-strip span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.track-strip span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Split layout ------------------------------------------------------------ */

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: start;
}

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

.problem-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  font-weight: 600;
}

.problem-list li span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  background: var(--warn);
  border-radius: 50%;
}

/* Cards & grids ----------------------------------------------------------- */

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

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

.card,
.pricing-card {
  padding: 26px;
}

.feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.card p {
  margin-bottom: 0;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  color: var(--primary);
  background: var(--primary-tint);
  border-radius: var(--radius);
}

.card-icon svg {
  width: 27px;
  height: 27px;
}

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

.step-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1rem;
}

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

.step-card p {
  color: var(--muted);
  margin-bottom: 0;
}

/* Callouts ---------------------------------------------------------------- */

.callout-grid,
.pricing-teaser,
.final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.callout-grid p:last-child,
.pricing-teaser p:last-child {
  margin-bottom: 0;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.1em;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--accent-tint);
  border-radius: 50%;
}

.check-list li::after {
  content: "";
  position: absolute;
  top: 0.36em;
  left: 7px;
  width: 6px;
  height: 10px;
  border: 2px solid var(--accent);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.final-cta {
  background: var(--ink);
}

.final-cta .final-cta-inner {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.final-cta h2 {
  color: #fff;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.74);
}

.final-cta .btn-primary {
  color: var(--ink);
  background: #fff;
}

.final-cta .btn-primary:hover {
  background: var(--surface-2);
}

/* Page heroes ------------------------------------------------------------- */

.example-hero,
.page-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-muted) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero {
  padding: 76px 0 56px;
}

.example-hero {
  padding: 64px 0 46px;
}

.example-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 48px;
}

.example-hero-copy h1 {
  margin-bottom: 14px;
}

.example-hero-media img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Chips & meta ------------------------------------------------------------ */

.event-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.event-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.meta-icon {
  width: 17px;
  height: 17px;
  margin-right: 8px;
  color: var(--primary);
}

.inline-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.stats-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.stats-strip span {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  color: var(--primary-strong);
  background: var(--primary-tint);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 6px 12px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

/* Ticket panel ------------------------------------------------------------ */

.ticket-panel {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.ticket-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.ticket-panel-head h2 {
  margin-bottom: 6px;
  font-size: 1.4rem;
}

.ticket-panel-head p {
  margin: 0;
  font-size: 0.92rem;
}

.ticket-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.ticket-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ticket-card span {
  color: var(--ink-soft);
  font-weight: 600;
}

.ticket-card strong {
  color: var(--ink);
  white-space: nowrap;
}

.ticket-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 0;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
}

.ticket-demo-note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

/* Best in Show voting ----------------------------------------------------- */

.vote-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 30px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.vote-banner h2 {
  margin-bottom: 8px;
}

.vote-banner p {
  margin: 0;
}

.vote-trophy {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: var(--primary);
  background: var(--primary-tint);
  border-radius: 50%;
}

.vote-trophy .inline-icon {
  width: 34px;
  height: 34px;
}

/* Listing cards (layouts & traders) -------------------------------------- */

.listing-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.listing-card h3 {
  color: var(--ink);
}

.layout-card {
  padding: 0;
  overflow: hidden;
}

.listing-media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--surface-2);
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stand-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  color: #fff;
  background: rgba(20, 35, 59, 0.82);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.best-badge[hidden] {
  display: none;
}

.best-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: 0.76rem;
  font-weight: 700;
}

.listing-body {
  padding: 20px 22px 22px;
}

.listing-topline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.listing-topline span {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
}

.listing-topline span:first-child {
  color: var(--primary-strong);
  background: var(--primary-tint);
  border-color: transparent;
}

.listing-meta {
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 700;
}

.listing-card p {
  margin-bottom: 0;
}

.vote-bar {
  height: 7px;
  margin: 16px 0 14px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
}

.vote-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-pill);
  transition: width 0.35s ease;
}

.vote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  transition:
    transform 0.14s ease,
    background 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease;
}

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

.vote-btn:active {
  transform: scale(0.97);
}

.vote-btn.is-voted {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.vote-btn.is-voted .inline-icon {
  fill: #fff;
  stroke: #fff;
}

.vote-count {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.vote-count strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.compact-card h3 {
  color: var(--ink);
}

.compact-card p {
  margin-bottom: 0;
}

/* Hall plan --------------------------------------------------------------- */

.hall-section {
  align-items: stretch;
}

.hall-plan {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(76px, auto);
  gap: 8px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hall-zone {
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.hall-entrance,
.hall-exit {
  color: #fff;
  background: var(--primary);
  border-color: transparent;
}

.hall-layouts {
  background: var(--surface);
}

.hall-traders {
  color: var(--primary-strong);
  background: var(--primary-tint);
  border-color: transparent;
}

.hall-demo,
.hall-clubs {
  color: #fff;
  background: var(--accent);
  border-color: transparent;
}

.hall-refreshments,
.hall-facilities {
  color: var(--accent);
  background: var(--accent-tint);
  border-color: transparent;
}

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

.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
}

.pricing-card.featured {
  border: 1.5px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-card h2 {
  font-size: 1.45rem;
  margin-bottom: 0;
}

.plan-badge {
  align-self: flex-start;
  padding: 5px 12px;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.plan-price strong {
  color: var(--ink);
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan-price span {
  color: var(--muted);
  font-weight: 600;
}

.pricing-card > p {
  margin-bottom: 0;
  color: var(--muted);
}

.plan-meta {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.plan-meta div {
  display: grid;
  gap: 3px;
}

.plan-meta dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-meta dd {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
}

.pricing-card .check-list {
  margin-top: 4px;
}

.pricing-card .btn {
  margin-top: auto;
}

/* Notes & tables ---------------------------------------------------------- */

.note-box {
  margin-top: 22px;
  padding: 20px;
  background: var(--bg-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note-box h3 {
  color: var(--ink);
}

.note-box p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  color: var(--ink);
  background: var(--bg-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

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

/* Forms ------------------------------------------------------------------- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: 28px;
  align-items: start;
}

.setup-panel,
.lead-form {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.setup-panel {
  position: sticky;
  top: 96px;
}

.setup-panel h2 {
  font-size: 1.4rem;
}

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

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

label span {
  color: var(--warn);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #9aa7b8;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

[aria-invalid="true"] {
  border-color: var(--warn);
}

.field-error,
.form-error {
  min-height: 1.25em;
  margin: 0;
  color: var(--warn);
  font-size: 0.86rem;
  font-weight: 600;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.form-actions p {
  max-width: 340px;
  margin: 0;
  font-size: 0.88rem;
}

/* Thank you & legal ------------------------------------------------------- */

.thank-you-hero {
  min-height: 54vh;
  display: grid;
  align-items: center;
}

.legal-content {
  padding: 56px 0 84px;
}

.legal-section {
  max-width: 760px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  font-size: 1.4rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

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

.site-footer {
  padding: 58px 0 48px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.7fr) minmax(220px, 0.7fr);
  gap: 40px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

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

.site-footer h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 18px;
}

.footer-brand .brand-logo {
  width: 236px;
  max-width: 100%;
  padding: 12px 16px;
  background: #fff;
  border-radius: var(--radius);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.small-print {
  margin-top: 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.66);
}

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

@media (max-width: 1040px) {
  .hero-grid,
  .example-hero-grid,
  .split-grid,
  .vote-banner,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .example-hero-media {
    order: -1;
  }

  .vote-trophy {
    display: none;
  }

  .feature-grid,
  .listing-grid,
  .pricing-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-panel {
    position: static;
  }
}

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

  .container,
  .narrow {
    width: min(100% - 28px, var(--maxw));
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: 14px 0;
    gap: 10px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav a {
    padding: 8px 12px;
  }

  .hero-section {
    padding-top: 44px;
  }

  .section {
    padding: 56px 0;
  }

  .section-tight {
    padding: 44px 0;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-media img {
    height: 300px;
  }

  .example-hero-media img {
    height: 260px;
  }

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

  .callout-grid,
  .pricing-teaser,
  .final-cta-inner {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .vote-banner {
    padding: 24px;
  }

  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

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

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