/* ---- Tokens ------------------------------------------------------------ */
:root {
  /* Palette */
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --blue-600: #2563eb;
  --green-700: #15803d;
  --green-200: #bbf7d0;
  --green-50: #f0fdf4;
  --red-700: #b91c1c;
  --red-200: #fecaca;
  --red-50: #fef2f2;
  --white: #ffffff;

  /* Roles */
  --bg: var(--slate-50);
  --surface: var(--white);
  --text: var(--slate-900);
  --text-muted: var(--slate-600);
  --border: var(--slate-300);          /* decorative card/section rules */
  --border-subtle: var(--slate-200);
  --border-control: var(--slate-500);  /* form controls: 4.76:1 on white (WCAG 1.4.11 needs 3:1) */
  --accent: #1e293b;
  --accent-hover: var(--slate-900);
  --on-accent: var(--white);
  --focus: var(--blue-600);

  /* Type */
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;

  /* Space (4/8 scale) and radius */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-sm: 6px;
  --radius: 10px;
}

/* ---- Base -------------------------------------------------------------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.container { max-width: 1060px; margin: 0 auto; padding-inline: var(--space-5); }

/* ---- Header ------------------------------------------------------------ */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-4);
}

.header-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }

.brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.header-cta {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  text-underline-offset: 3px;
}

/* ---- Layout ------------------------------------------------------------ */
/* main.container beats .container's shorthand so vertical padding survives. */
main.container { padding-block: var(--space-7) 72px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto 1fr;   /* intro hugs its content; no dead gap above the process box */
  grid-template-areas:
    "intro form"
    "details form";
  column-gap: var(--space-7);
  row-gap: var(--space-6);
  align-items: start;
}

.hero-intro { grid-area: intro; }
.hero-form { grid-area: form; }
.hero-details { grid-area: details; }

@media (max-width: 860px) {
  main.container { padding-block: var(--space-6) 56px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "intro"
      "form"
      "details";
    row-gap: var(--space-5);
  }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }
}

/* ---- Hero -------------------------------------------------------------- */
.status-pill {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: var(--slate-200);
  color: var(--slate-700);
  margin-bottom: var(--space-3);
}

.domain-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.125rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  overflow-wrap: anywhere;
  margin: 0 0 var(--space-3);
}

.lead-copy {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0;
}

.lead-copy strong { color: var(--text); }

/* ---- Cards ------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.hero-form { box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06); }

@media (min-width: 861px) {
  .hero-form { padding: var(--space-6); }
}

.offer-heading {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 var(--space-3);
  overflow-wrap: anywhere;
}

.price-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--space-3);
  row-gap: var(--space-1);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

.price-label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); }

.price-cta {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text);
  text-underline-offset: 3px;
}

.price-cta::after { content: " \2193" / ""; }

.lto-subtext { flex-basis: 100%; font-size: var(--fs-xs); color: var(--text-muted); margin: 0; overflow-wrap: anywhere; }

.fee-note {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.fee-note a,
.process-list a {
  color: inherit;
  text-underline-offset: 2px;
}

/* ---- Form -------------------------------------------------------------- */
.form-group { margin: 0 0 var(--space-4); }
.form-group:empty { display: none; }

label,
legend {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: var(--space-1);
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px var(--space-3);
  font-size: 1rem;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] { border-color: var(--red-700); border-width: 2px; }

.intent { border: 0; padding: 0; min-width: 0; }
.intent legend { padding: 0; }

.choice {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text);
  margin: 0;
  min-height: 32px;
  cursor: pointer;
}

.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

.field-hint,
.field-error { margin: var(--space-1) 0 0; font-size: var(--fs-xs); line-height: 1.45; }
.field-hint { color: var(--text-muted); }
.field-error { color: var(--red-700); font-weight: 600; }

.btn-submit,
.btn-secondary {
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-submit { background: var(--accent); color: var(--on-accent); border: none; }
.btn-submit:hover { background: var(--accent-hover); }
.btn-submit:disabled { background: var(--slate-600); opacity: 1; cursor: not-allowed; }  /* 7.58:1 */

.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border-control); }
.btn-secondary:hover { background: var(--slate-100); }

.form-status {
  display: none;
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}

.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.form-status.success { display: block; background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-200); }
.form-status.error { display: block; background: var(--red-50); color: var(--red-700); border: 1px solid var(--red-200); }

.form-sent {
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  background: var(--green-50);
  border: 1px solid var(--green-200);
}

.form-sent[hidden] { display: none; }
.form-sent:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-sent-title { margin: 0 0 var(--space-2); font-size: var(--fs-lg); color: var(--green-700); }
.form-sent-text { margin: 0 0 var(--space-4); color: var(--text); overflow-wrap: anywhere; }

.fine-print { margin: var(--space-3) 0 0; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.5; }
.fine-print a { color: inherit; }

.gotcha {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Process + specs --------------------------------------------------- */
.process-box h2,
.section-heading { font-size: var(--fs-lg); font-weight: 700; margin: 0 0 var(--space-3); }

.process-list {
  margin: 0;
  padding-left: 1.4em;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.process-list li { padding: var(--space-2) 0; border-bottom: 1px solid var(--slate-100); }
.process-list li:last-child { border-bottom: none; padding-bottom: 0; }
.process-list li::marker { font-weight: 700; color: var(--text); }
.process-list strong { color: var(--text); }

.domain-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin: var(--space-4) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.domain-specs div { display: flex; gap: var(--space-1); }
.domain-specs dt::after { content: ":"; }
.domain-specs dd { margin: 0; color: var(--slate-700); font-weight: 600; }

/* ---- Portfolio grid ---------------------------------------------------- */
.vault-section {
  margin-top: var(--space-8);
  padding-top: var(--space-7);
  border-top: 1px solid var(--border);
}

.vault-section .section-heading { margin-bottom: var(--space-5); }

.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: var(--space-4);
}

.vault-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 0.15s ease;
}

.vault-item:hover { border-color: var(--slate-600); }
.vault-item[aria-current="page"] { background: var(--slate-100); border-color: var(--slate-900); }

/* ---- Footer ------------------------------------------------------------ */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: var(--space-6);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

footer p { margin: 0; line-height: 1.5; }
footer strong { color: var(--slate-700); }

.footer-disclaimer,
.footer-copy {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--slate-100);
}

/* ---- Captcha (Cloudflare Turnstile) ----------------------------------- */
/* Turnstile "flexible" size fills the column (min 300px); reserve its 65px height to avoid layout shift. */
.captcha-slot[hidden] { display: none; }
.captcha-widget { min-height: 65px; max-width: 100%; }
/* Flexible Turnstile needs a 300px column; at 375px that means 16px card padding. Narrower columns get "compact". */
@media (max-width: 480px) {
  .hero-form { padding: var(--space-4); }
}

.form-noscript { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #b45309; border-radius: 6px; background: #fffbeb; color: #78350f; font-size: 0.9rem; }
/* Below 366px the column is under 300px, so the script picks "compact" (150x140): reserve that height instead. */
@media (max-width: 365px) {
  .captcha-widget { min-height: 140px; }
}
