/* ---------- Self-hosted fonts (no external requests, CSP safe) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

:root {
  --bg: #050c13;
  --card: #141b24;
  --card-soft: #0c141c;
  --border: #212a33;
  --text: #f8f8f8;
  --muted: #8f8f8f;
  --accent: #00c29f;
  --accent-dark: #009d81;
  --radius: 10px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 12, 19, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #05130f;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.float-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #05130f; border: none; }
.btn-outline { background: transparent; color: var(--text); }

.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.04); }

.btn-primary::after {
  content: "→";
  margin-left: 9px;
  transition: transform 0.15s ease;
  display: inline-block;
}
.btn-primary:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 96px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, rgba(0, 194, 159, 0.09), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero .container { position: relative; z-index: 2; }

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Stats bar ---------- */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 70px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(var(--stat-cols, 4), 1fr);
}

.stat {
  text-align: center;
  padding: 32px 16px;
  border-left: 1px solid var(--border);
}

.stat:first-child { border-left: none; }

.stat .num {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
}

.stat .label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-in {
  opacity: 1;
  transform: none;
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }

/* Keep anchor targets clear of the sticky header */
section[id], [id].cs-block { scroll-margin-top: 90px; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Cards / grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; line-height: 1.55; }

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(0, 194, 159, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.05rem;
  font-weight: 700;
}

.card .icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: var(--accent);
  background: var(--card-soft);
}

.badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #05130f;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.pricing-card .tier-name { font-size: 1.1rem; font-weight: 700; }
.pricing-card .tier-sub { color: var(--muted); font-size: 0.85rem; margin: 4px 0 18px; }
.pricing-card .price { font-size: 2.2rem; font-weight: 700; }
.pricing-card .price span { font-size: 0.95rem; color: var(--muted); font-weight: 400; }

.pricing-card .meta-row {
  display: flex;
  gap: 18px;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-card .meta-row div { flex: 1; }
.pricing-card .meta-row .m-label { color: var(--muted); font-size: 0.75rem; }
.pricing-card .meta-row .m-val { font-weight: 600; margin-top: 2px; }

.pricing-card ul { margin: 0 0 24px; flex-grow: 1; }
.pricing-card li {
  padding: 7px 0;
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  gap: 8px;
}
.pricing-card li::before { content: "✓"; color: var(--accent); font-weight: 700; }

.discounts-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 30px;
}

/* ---------- Table (available sites) ---------- */
table.sites-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sites-table th, .sites-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.sites-table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.sites-table tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  background: var(--card);
  transition: border-color 0.15s ease;
}

.faq-item:hover { border-color: var(--accent-dark); }

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); margin: 14px 0 0; line-height: 1.6; }

/* ---------- Blog ---------- */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.blog-card .date { color: var(--accent); font-size: 0.8rem; font-weight: 600; }
.blog-card h3 { margin: 10px 0; font-size: 1.15rem; }
.blog-card h3 a { color: var(--text); text-decoration: none; }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.blog-card .read-more { color: var(--accent); font-size: 0.88rem; font-weight: 600; margin-top: 14px; display: inline-block; }

/* ---------- Form ---------- */
form.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 560px;
  margin: 0 auto;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }

.field input, .field textarea {
  width: 100%;
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(0, 194, 159, 0.16), transparent 70%);
  pointer-events: none;
}

.cta-band > * { position: relative; z-index: 1; }

#cta-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cta-band h2 { margin: 0 0 12px; font-size: 1.8rem; }
.cta-band p { color: var(--muted); max-width: 480px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1.3fr 0.8fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-reach .footer-pitch {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 16px;
}

.footer-reach .btn { margin-bottom: 18px; }

.footer-direct {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.footer-direct li { margin-bottom: 8px; }
.footer-direct a { color: var(--muted); }
.footer-direct a:hover { color: var(--accent); }

.footer-grid h4 { font-size: 0.85rem; color: var(--muted); margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid li a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-top: 10px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Hero stat badges ---------- */
.hero-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.88rem;
}

.hero-badge .num { color: var(--accent); font-weight: 700; }

/* ---------- Testimonial / case study ---------- */
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.testimonial-card p.quote {
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 18px;
}

.testimonial-card .attribution { color: var(--muted); font-size: 0.9rem; }
.testimonial-card .attribution strong { color: var(--text); }

.case-study {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.case-study .cs-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.case-study h3 { font-size: 1.4rem; margin: 0 0 8px; }
.case-study .cs-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 20px; }

.cs-results {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.cs-results .r-num { color: var(--accent); font-size: 1.3rem; font-weight: 700; }
.cs-results .r-label { color: var(--muted); font-size: 0.75rem; margin-top: 4px; line-height: 1.3; }

/* ---------- Problem / solution pairing ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.problem-solution::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}

.problem-solution:hover {
  transform: translateY(-2px);
  border-color: var(--accent-dark);
}

.ps-problem, .ps-solution {
  padding: 26px 28px;
}

.ps-problem {
  background: var(--card-soft);
  border-right: 1px solid var(--border);
}

.ps-solution { background: var(--card); }

.ps-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.ps-problem .ps-tag { color: #ff6b6b; }
.ps-solution .ps-tag { color: var(--accent); }

.ps-problem p, .ps-solution p { margin: 0; line-height: 1.55; font-size: 0.94rem; }
.ps-solution p { color: var(--text); }
.ps-problem p { color: var(--muted); }

/* ---------- How it works steps ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border) 85%);
  opacity: 0.4;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.step:last-child { border-bottom: none; }

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent-dark);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

.step-time {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  padding-top: 8px;
}

.bulk-note {
  margin-top: 24px;
  padding: 18px 22px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
}

.bulk-note strong { color: var(--accent); }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 200;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  box-shadow: 0 0 14px rgba(0, 194, 159, 0.55);
}

/* ---------- Floating actions ---------- */
.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, opacity 0.25s ease, background 0.18s ease;
}

.float-book {
  padding: 0 20px;
  background: var(--accent);
  color: #05130f;
  border-color: transparent;
}

.float-book:hover { transform: translateY(-2px); background: #17d4b1; }

.float-top {
  width: 48px;
  padding: 0;
  background: var(--card);
  color: var(--text);
  font-size: 1.15rem;
  opacity: 0;
  pointer-events: none;
}

.floating-actions.is-visible .float-top {
  opacity: 1;
  pointer-events: auto;
}

.float-top:hover { transform: translateY(-2px); border-color: var(--accent-dark); }

@media (max-width: 640px) {
  .floating-actions { right: 14px; bottom: 14px; }
  .float-book .float-label { display: none; }
  .float-book { width: 48px; padding: 0; font-size: 1.2rem; }
}

/* ---------- FAQ expand all ---------- */
.faq-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.faq-toggle-all {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  min-height: 40px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.faq-toggle-all:hover { color: var(--accent); border-color: var(--accent-dark); }

/* ---------- Form states ---------- */
.field.has-error input,
.field.has-error textarea {
  border-color: #ff6b6b;
}

.field-error {
  display: block;
  margin-top: 6px;
  color: #ff8787;
  font-size: 0.82rem;
}

.form-status {
  margin: 16px 0 0;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.form-status.is-error {
  color: #ff8787;
  border-left: 3px solid #ff6b6b;
  padding: 10px 14px;
  background: rgba(255, 107, 107, 0.08);
  border-radius: 0 6px 6px 0;
}

.form-status.is-success {
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  background: rgba(0, 194, 159, 0.09);
  border-radius: 0 6px 6px 0;
}

.form-status.is-success a { color: var(--accent); font-weight: 600; }

/* ---------- Case study index ---------- */
.cs-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 56px;
}

.cs-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-soft);
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.cs-chip:hover {
  color: var(--text);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}

.cs-chip b {
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* ---------- Case study block ---------- */
.cs-block {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--card) 0%, var(--card-soft) 100%);
  overflow: hidden;
  margin-bottom: 64px;
  scroll-margin-top: 92px;
}

.cs-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 65%);
}

.cs-head {
  padding: 38px 38px 30px;
  border-bottom: 1px solid var(--border);
}

.cs-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.cs-eyebrow .n {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.cs-eyebrow .rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.cs-head h2 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  margin: 0 0 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-chips span {
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 11px;
}

.cs-body { padding: 32px 38px; }
.cs-body > p {
  color: var(--muted);
  line-height: 1.78;
  margin: 0 0 16px;
}
.cs-body > p:last-child { margin-bottom: 0; }

.cs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cs-stats > div {
  background: var(--card-soft);
  padding: 26px 18px;
  text-align: center;
}

.cs-stats .v {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.cs-stats .k {
  font-size: 0.77rem;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.4;
}

.cs-quote {
  padding: 32px 38px;
  background: rgba(0, 194, 159, 0.045);
  border-top: 1px solid var(--border);
}

.cs-quote p {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 12px;
}

.cs-quote .who {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
}

.cs-quote .who strong { color: var(--text); }

/* ---------- Experience timeline ---------- */
.cs-timeline {
  position: relative;
  padding-left: 30px;
}

.cs-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border) 92%);
  opacity: 0.55;
}

.tl-item {
  position: relative;
  padding-bottom: 30px;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.tl-when {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.tl-item h4 {
  margin: 5px 0 6px;
  font-size: 1.04rem;
}

.tl-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

@media (max-width: 860px) {
  .cs-head, .cs-body, .cs-quote { padding-left: 22px; padding-right: 22px; }
}

/* ---------- Founder card ---------- */
.founder-photo {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, var(--accent), rgba(0, 194, 159, 0.15) 55%, var(--border));
  box-shadow: 0 18px 50px rgba(0, 194, 159, 0.14);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  background: var(--card);
  display: block;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.linkedin-link:hover {
  color: var(--accent);
  border-color: var(--accent-dark);
  background: rgba(0, 194, 159, 0.08);
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
}

.legal p { margin: 0 0 16px; }

.legal h2 {
  color: var(--text);
  font-size: 1.25rem;
  margin: 38px 0 12px;
  letter-spacing: -0.01em;
}

.legal h3 {
  color: var(--text);
  font-size: 1.02rem;
  margin: 24px 0 8px;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 0;
}

.legal li {
  position: relative;
  padding: 6px 0 6px 20px;
}

.legal li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--text); }

.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 64px 0 20px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 12px; }
.page-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; border-top: 1px solid var(--border); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: none; }
  .grid-3, .grid-2, .bento-grid { grid-template-columns: 1fr; }
  /* Tablet portrait has room for two across; one column wastes half the screen */
  @media (min-width: 641px) {
    .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .problem-solution { grid-template-columns: 1fr; }
  .ps-problem { border-right: none; border-bottom: 1px solid var(--border); }
  .cs-results { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 40px 1fr; }
  .step-time { grid-column: 2; padding-top: 0; }
}

@media (max-width: 860px) {
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 6px 16px 14px;
    gap: 0;
  }

  /* Full-width rows so each menu item is a comfortable thumb target */
  .nav-links.open a {
    display: block;
    padding: 14px 8px;
    min-height: 44px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open a:last-child { border-bottom: none; }
}

/* ---------- Touch targets ----------
   Applies to phones AND tablets (iPad portrait and landscape both land here),
   plus any coarse-pointer device regardless of width. Sizing only, no layout
   changes, so it is safe well above phone widths. */
@media (max-width: 1024px), (pointer: coarse) {
  .footer-grid li a,
  .footer-grid li {
    display: block;
    min-height: 44px;
    line-height: 1.5;
    padding: 10px 0;
  }

  .footer-grid li { padding: 0; margin-bottom: 0; }

  .faq-item summary { padding: 14px 0; min-height: 44px; }
  .faq-item summary::after { font-size: 1.5rem; }
  .faq-item p { padding-bottom: 12px; }

  .btn { min-height: 46px; }
  .nav-cta { min-height: 44px; display: inline-flex; align-items: center; }

  /* Inline "read more" style links inside cards and lists */
  .blog-card .read-more,
  .linkedin-link { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Desktop nav sits in a row, so padding buys hit area at no visual cost */
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { font-size: 0.82rem; gap: 8px; }
  .faq-item { padding: 6px 18px; }
  .faq-item summary { font-size: 1rem; }

  /* Small labels are hard to read on a phone: lift the smallest ones */
  .eyebrow { font-size: 0.85rem; }
  .cs-eyebrow .n { font-size: 0.8rem; }
  .cs-chips span { font-size: 0.84rem; padding: 6px 12px; }
  .cs-stats .k,
  .cs-results .r-label,
  .stat .label { font-size: 0.82rem; }
  .tl-when { font-size: 0.8rem; }
  .cs-tag { font-size: 0.84rem; }
  .ps-tag { font-size: 0.8rem; }
  .blog-card .date { font-size: 0.85rem; }
  .pricing-card .meta-row .m-label { font-size: 0.82rem; }
  .badge-popular { font-size: 0.82rem; padding: 5px 14px; }
  .sites-table th { font-size: 0.78rem; }
  .sites-table th, .sites-table td { font-size: 0.9rem; padding: 12px 14px; }

  /* Tighter section rhythm so pages are less scroll-heavy */
  section { padding: 56px 0; }
  .page-hero { padding: 44px 0 16px; }
  .container { padding: 0 18px; }

  /* Hero: shorter than full screen, and give the buttons room */
  .hero { padding: 64px 0 56px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-badges { gap: 10px; }
  .hero-badge { font-size: 0.85rem; padding: 10px 16px; }

  /* Buttons are primary actions: make them full-width and thumb-sized */
  .btn { min-height: 48px; padding: 14px 24px; }
  .cta-band { padding: 40px 22px; }
  .cta-band h2 { font-size: 1.45rem; }

  /* Stats read better as two even columns than five cramped ones */
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stat { padding: 22px 12px; }
  .stat .num { font-size: 1.5rem; }
  .cs-results { grid-template-columns: repeat(2, 1fr); }

  /* Founder photo scales down so it does not dominate the screen */
  .founder-photo { width: 150px; height: 150px; }

  /* Tables scroll horizontally: flag it rather than letting it look cut off */
  .table-scroll {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-scroll table.sites-table { min-width: 460px; }
  .table-scroll::after {
    content: "Swipe to see more";
    display: block;
    padding-top: 8px;
    font-size: 0.76rem;
    color: var(--muted);
    text-align: right;
  }
}

/* ---------- Track record band (homepage) ---------- */
.track-record { padding-top: 0; }

.track-record .tr-intro {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  margin: 0 0 22px;
}

.track-record .tr-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 20px 0 0;
}

.track-record .tr-note a { color: var(--accent); }

/* ---------- Client quote grid ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.quote-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-card blockquote {
  margin: 0 0 20px;
  font-size: 1.12rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--text);
}

.quote-card blockquote::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 18px;
}

.quote-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.86rem;
}

.quote-card figcaption strong { color: var(--text); font-weight: 600; }
.quote-card figcaption span { color: var(--muted); }

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

@media (max-width: 640px) {
  .quote-card { padding: 24px 20px; }
  .quote-card blockquote { font-size: 1.02rem; }
}

/* =========================================================
   EDITORIAL PASS
   Type scale, alignment and font pairing. Same brand colours,
   different confidence. Remove this whole block to revert.
   ========================================================= */

:root {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* --- 1. Bigger, tighter headlines --- */
.hero h1 {
  font-size: clamp(2.5rem, 6.6vw, 4.7rem);
  line-height: 1.01;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}

.section-head h2,
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
}

/* --- 2. Stop centring everything --- */
.hero { text-align: left; }
.hero p.lead { margin: 0 0 34px; max-width: 640px; font-size: 1.15rem; }
.hero-actions,
.hero-badges { justify-content: flex-start; }

.section-head {
  text-align: left;
  max-width: 780px;
  margin: 0 0 52px;
}
.section-head p { max-width: 620px; }

.page-hero { text-align: left; }
.page-hero p { margin-left: 0; margin-right: 0; max-width: 640px; }

/* --- 3. Serif numerals: the single biggest "designed" signal --- */
.cs-stats .v,
.cs-results .r-num,
.pricing-card .price {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.cs-stats .v { font-size: 1.85rem; }
.cs-results .r-num { font-size: 1.5rem; }
.pricing-card .price { font-size: 2.7rem; }

/* --- 4. Monospace eyebrow with a rule --- */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

/* --- 5. More air between sections --- */
section { padding: 108px 0; }

/* --- 6. Small type details --- */
.cs-stats .k,
.cs-results .r-label,
.sites-table th,
.pricing-card .meta-row .m-label {
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cs-stats .k { font-size: 0.68rem; }
.cs-results .r-label { font-size: 0.66rem; }

@media (max-width: 860px) {
  section { padding: 72px 0; }
  .section-head { margin-bottom: 38px; }
}

@media (max-width: 640px) {
  .hero h1 { letter-spacing: -0.025em; }
  .cs-stats .v { font-size: 1.6rem; }
}

/* --- Display serif now that it is self-hosted --- */
:root {
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

.cs-stats .v,
.cs-results .r-num,
.pricing-card .price {
  font-weight: 400;
  letter-spacing: -0.01em;
}

.cs-stats .v { font-size: 2.2rem; }
.cs-results .r-num { font-size: 1.75rem; }
.pricing-card .price { font-size: 3.2rem; }
.pricing-card .price span { font-family: "Inter", sans-serif; font-size: 0.9rem; }

/* --- Card variants: stop every card looking identical --- */
.card--accent {
  background: linear-gradient(180deg, rgba(0, 194, 159, 0.09), rgba(0, 194, 159, 0.02));
  border-color: rgba(0, 194, 159, 0.34);
}

.card--lead {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card--lead h3 { font-size: 1.55rem; letter-spacing: -0.02em; }
.card--lead p { font-size: 1.02rem; max-width: 560px; }

@media (max-width: 860px) {
  .card--lead { grid-column: span 1; }
  .card--lead h3 { font-size: 1.25rem; }
}

@media (max-width: 640px) {
  .cs-stats .v { font-size: 1.9rem; }
  .pricing-card .price { font-size: 2.6rem; }
}

/* ---------- Spec table (published standards) ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.92rem;
}

.spec-table td {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

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

.spec-table td:first-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 45%;
  padding-right: 18px;
  padding-top: 16px;
}

.spec-table td:last-child { color: var(--text); font-weight: 500; }

.spec-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ---------- Numbered process list ---------- */
.proc {
  border-top: 1px solid var(--border);
}

.proc-row {
  display: grid;
  grid-template-columns: 64px 1fr 1.2fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.proc-row .n {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 4px;
}

.proc-row h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.proc-row p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.95rem; }

@media (max-width: 860px) {
  .proc-row { grid-template-columns: 44px 1fr; gap: 14px; }
  .proc-row p { grid-column: 2; margin-top: 8px; }
}

/* ---------- Niche index grid ---------- */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.niche-grid > div {
  background: var(--card-soft);
  padding: 22px 20px;
}

.niche-grid .n {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.niche-grid .t { font-size: 0.96rem; font-weight: 500; }

@media (max-width: 860px) { .niche-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Build vs buy comparison ---------- */
.bvb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.bvb-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.bvb-col.is-us { border-color: rgba(0, 194, 159, 0.34); }

.bvb-head {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  background: var(--card-soft);
}

.bvb-col.is-us .bvb-head { color: var(--accent); background: rgba(0, 194, 159, 0.07); }

.bvb-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.bvb-row:last-child { border-bottom: 0; }
.bvb-row .l { color: var(--muted); }
.bvb-row .v { color: var(--text); font-weight: 500; text-align: right; white-space: nowrap; }
.bvb-col.is-us .bvb-row .v { color: var(--accent); }

.bvb-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 24px 0 0;
  max-width: 720px;
}

@media (max-width: 860px) {
  .bvb { grid-template-columns: 1fr; }
  .bvb-row { font-size: 0.88rem; padding: 14px 18px; }
}

.cta-reassure {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 0;
}

/* ---------- Founder / leadership card ---------- */
.founder-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.founder-side {
  background: var(--card-soft);
  padding: 34px 28px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.founder-side .f-role {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 20px 0 8px;
}

.founder-side .f-name { font-size: 1.3rem; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.founder-side .f-meta { color: var(--muted); font-size: 0.84rem; margin: 0; }

.founder-body { padding: 34px 32px; }
.founder-body p { color: var(--muted); line-height: 1.7; margin: 0 0 16px; }
.founder-body .linkedin-link { margin-right: 18px; }

.founder-body .f-more {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.founder-body .f-more:hover { color: var(--accent); }

@media (max-width: 860px) {
  .founder-card { grid-template-columns: 1fr; }
  .founder-side { border-right: 0; border-bottom: 1px solid var(--border); }
  .founder-body { padding: 26px 22px; }
}

/* ---------- Article body (written via the admin editor) ---------- */
.post-body img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 28px 0;
}

.post-body .post-cover {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 0 0 32px;
}

.post-body figure { margin: 28px 0; }
.post-body figcaption {
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
  margin-top: 10px;
}

/* ---------- Cookie / analytics notice ---------- */
.cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 620px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.cookie-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
}

.cookie-notice p a { color: var(--accent); }

.cookie-notice .cookie-notice-ok {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .cookie-notice { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- 404 page ---------- */
.error-page {
  min-height: calc(100vh - 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}

.error-page .container { max-width: 560px; }

.error-icon { margin-bottom: 24px; display: flex; justify-content: center; }

.error-code {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(0, 194, 159, 0.35);
}

.error-page h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 14px;
  text-wrap: balance;
}

.error-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 32px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.error-links a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.error-links a:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 560px) {
  .error-code { font-size: 3.6rem; }
  .error-links { gap: 8px; }
  .error-links a { padding: 7px 14px; font-size: 0.84rem; }
}

/* ---------- Shorts (homepage) ---------- */
.shorts-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.short-card {
  flex: 0 1 210px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.short-thumb {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.short-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.short-play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(5, 12, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.short-play svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }

.short-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.short-card[href]:hover .short-thumb,
.short-card[href]:focus-visible .short-thumb { border-color: var(--accent); }
.short-card[href]:hover .short-thumb img { transform: scale(1.03); }
.short-card[href]:hover .short-play,
.short-card[href]:focus-visible .short-play { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.short-card[href]:hover .short-title { color: var(--accent); }
.short-card:focus-visible { outline: none; }

.short-card.is-upcoming { cursor: default; }
.short-card.is-upcoming .short-thumb img { filter: brightness(0.45) saturate(0.7); }
.short-card.is-upcoming .short-play { display: none; }
.short-card.is-upcoming .short-title { color: var(--muted); }

.short-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(5, 12, 19, 0.85);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.short-modal {
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  max-width: none;
  max-height: none;
  width: min(400px, 92vw, calc((100vh - 120px) * 9 / 16));
  width: min(400px, 92vw, calc((100dvh - 120px) * 9 / 16));
}

.short-modal::backdrop { background: rgba(2, 6, 10, 0.86); }

.short-modal-frame {
  aspect-ratio: 9 / 16;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.short-modal-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.short-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 12, 19, 0.8);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.short-modal-close:hover,
.short-modal-close:focus-visible { border-color: var(--accent); color: var(--accent); }

html.modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .shorts-grid { gap: 14px; }
  .short-card { flex-basis: calc(50% - 7px); }
  .short-title { font-size: 0.86rem; }
}

/* ---------- Footer social icons ---------- */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible { border-color: var(--accent); color: var(--accent); }
.footer-social svg { width: 18px; height: 18px; }

@media (max-width: 1024px), (pointer: coarse) {
  .footer-social a { width: 46px; height: 46px; }
}
