/* ==========================================================================
   Premium Domain Advisors
   One stylesheet, no build step. Order: tokens, base, layout, buttons, header,
   hero, inquiry panel, sections, cards, table, FAQ, closing inquiry, footer,
   print.
   No inline styles in the HTML: the CSP only allows style-src 'self'.
   ========================================================================== */

/* Inter Variable, self-hosted, latin subset. License: fonts/OFL.txt (SIL OFL 1.1) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  color-scheme: light;
  --ground: #ffffff;
  --surface: #f5f8fc;
  --card: #ffffff;
  --ink: #0b1b2b;
  --muted: #5c6b7c;
  --rule: #e3e9f1;
  --accent: #1552f0;
  --accent-soft: #eef3ff;
  --accent-ink: #ffffff;
  --good: #0a7c5a;
  --good-soft: #e9f7f2;
  --bad: #b3261e;
  --bad-soft: #fdecea;
  --shadow-sm: 0 1px 2px rgba(11, 27, 43, 0.06);
  --shadow-md: 0 14px 34px -14px rgba(11, 27, 43, 0.22), 0 2px 6px rgba(11, 27, 43, 0.05);
  --radius: 12px;
  --radius-lg: 16px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --rhythm: clamp(52px, 7vw, 96px);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #0a1017;
    --surface: #0f1722;
    --card: #121c29;
    --ink: #e9eef5;
    --muted: #9aabbe;
    --rule: #22303f;
    --accent: #5b8dff;
    --accent-soft: #15243d;
    --accent-ink: #07121f;
    --good: #46d39f;
    --good-soft: #0e241d;
    --bad: #ff9089;
    --bad-soft: #291513;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 18px 44px -20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.4);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.022em; line-height: 1.14; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.05em; height: 1.05em; flex: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 20;
  padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
  background: var(--accent); color: var(--accent-ink); font-size: 0.875rem;
}
.skip:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.35rem; border: 1px solid var(--accent); border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.005em;
  cursor: pointer; transition: filter 0.15s ease, transform 0.12s ease;
}
.btn:hover, .btn:focus-visible { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; filter: none; }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.875rem; border-radius: 9px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--ground);
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 0.9375rem; letter-spacing: -0.012em; }
.mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent);
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 58%, #00133a));
  color: #fff; box-shadow: var(--shadow-sm);
}
/* The mark is drawn on a 32x32 grid, so a 30px tile scales the P exactly. */
.mark svg { width: 100%; height: 100%; }
.brand-text { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 26px); font-size: 0.875rem; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.nav .btn { color: var(--accent-ink); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }
/* Below 360px the brand text and the Contact button cannot share the row. The
   monogram carries the brand on its own there. */
@media (max-width: 359px) { .brand-text { display: none; } }
/* The header is sticky, so a jump target has to clear it. */
section[id], .panel[id] { scroll-margin-top: 84px; }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 80px);
  border-bottom: 1px solid var(--rule);
  background: var(--ground);
  background:
    radial-gradient(115% 85% at 10% -15%, var(--accent-soft) 0%, transparent 60%),
    var(--ground);
}
/* Single column on purpose: the offer bar needs the full width to read as a
   search bar, and the copy stays inside a comfortable measure. */
.hero-inner { max-width: 800px; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.75rem; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--card); color: var(--muted); font-size: 0.8125rem; font-weight: 500;
}
.pill .ic { color: var(--good); }
.hero h1 { margin-top: 1.1rem; font-size: clamp(2.1rem, 5.2vw, 3.3rem); max-width: 20ch; }
.badges { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin-top: clamp(20px, 3vw, 30px); }
.badges li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9375rem; }
.badges .ic { width: 1.15em; height: 1.15em; color: var(--good); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: clamp(22px, 3vw, 30px); }

/* ---------- Inquiry panel: the offer bar ---------- */
.panel {
  margin-top: clamp(24px, 3vw, 34px);
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  background: var(--card); box-shadow: var(--shadow-md);
}
.panel-title { font-size: 1.0625rem; }
.panel-note { margin-top: 0.35rem; color: var(--muted); font-size: 0.875rem; }
.bar { display: grid; gap: 10px; margin-top: 1.05rem; }
.bar-field {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 0.75rem; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--surface);
}
.bar-icon { width: 1.05rem; height: 1.05rem; color: var(--muted); flex: none; }
.bar-field input, .bar-field textarea {
  width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; outline: none;
  font-size: 0.9375rem;
}
.bar-field input::placeholder, .bar-field textarea::placeholder { color: var(--muted); }
.bar-field textarea { resize: vertical; min-height: 1.5rem; max-height: 9rem; }
/* Optional fields: keep the icon aligned to the first line as the textarea grows. */
.bar-field--plain { align-items: flex-start; }
@media (min-width: 760px) {
  .bar {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    align-items: center; gap: 0;
    padding: 6px; border: 1px solid var(--rule); border-radius: 13px; background: var(--surface);
  }
  .bar .bar-field { padding: 0.55rem 0.7rem; border: 0; border-radius: 0; background: transparent; }
  .bar .bar-field + .bar-field { border-left: 1px solid var(--rule); }
  .bar .bar-btn { border-radius: 9px; }
}
.optional { display: grid; gap: 10px; margin-top: 10px; }
@media (min-width: 760px) { .optional { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } }
.panel-foot { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.9rem; color: var(--muted); font-size: 0.8125rem; }
.panel-foot .ic { width: 1rem; height: 1rem; color: var(--good); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.status {
  margin-top: 0.9rem; padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule); border-radius: 10px;
  background: var(--surface); font-size: 0.875rem;
}
.status[data-state="ok"] { border-color: var(--good); background: var(--good-soft); color: var(--good); }
.status[data-state="error"] { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }

/* ---------- Sections ---------- */
.section { padding-block: var(--rhythm); border-bottom: 1px solid var(--rule); }
.section--alt { background: var(--surface); }
.section-head { max-width: 64ch; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.section h2 { margin-top: 0.55rem; font-size: clamp(1.55rem, 3vw, 2.1rem); }
.section .intro { margin-top: 0.8rem; color: var(--muted); }
.section-body { margin-top: clamp(24px, 3.4vw, 38px); }
.note { margin-top: clamp(20px, 2.6vw, 28px); max-width: 70ch; color: var(--muted); font-size: 0.875rem; }
.note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Cards ---------- */
.card {
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-sm);
}
.card-top { display: flex; align-items: center; gap: 0.7rem; }
.card-num {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 9px; background: var(--accent-soft); color: var(--accent);
  font-size: 0.8125rem; font-weight: 700;
}
.card h3 { font-size: 1rem; }
.card p { margin-top: 0.6rem; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 14px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Protection ---------- */
.protect { display: grid; gap: 14px; }
@media (min-width: 840px) { .protect { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.protect .card { display: flex; gap: 0.85rem; }
.protect .ic { width: 1.3rem; height: 1.3rem; color: var(--accent); margin-top: 0.2rem; }
.protect strong { display: block; font-size: 0.9375rem; font-weight: 600; }
.protect span { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Timelines table ---------- */
.table-wrap {
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-sm); overflow: auto;
}
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; }
.table-wrap caption { padding: 14px 16px; text-align: left; color: var(--muted); font-size: 0.8125rem; border-bottom: 1px solid var(--rule); }
.table-wrap th, .table-wrap td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
.table-wrap thead th {
  border-top: 0; background: var(--surface); color: var(--muted);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.table-wrap tbody th { font-weight: 600; }
.table-wrap .time { white-space: nowrap; color: var(--ink); font-weight: 500; }
/* Narrow screens: stack each row instead of scrolling the table sideways, so
   nothing is ever clipped. The header row is repeated as a label on the value. */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td {
    display: block; width: auto; min-width: 0;
  }
  .table-wrap thead { display: none; }
  /* A table-caption inside a block-level table becomes a shrink-to-fit
     anonymous box, which wraps per word. Force it back to a block. */
  .table-wrap caption { display: block; width: auto; padding: 14px 16px 2px; border-bottom: 0; }
  .table-wrap tr { padding: 14px 16px; border-top: 1px solid var(--rule); }
  .table-wrap tr:first-child { border-top: 0; }
  .table-wrap th, .table-wrap td { padding: 0; border: 0; }
  .table-wrap tbody td { margin-top: 0.35rem; color: var(--muted); }
  .table-wrap .time { margin-top: 0.5rem; color: var(--accent); font-size: 0.8125rem; }
  .table-wrap .time::before { content: "Typical time: "; color: var(--muted); }
}

/* ---------- FAQ ---------- */
.faq {
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq details + details { border-top: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 15px 18px; cursor: pointer;
  font-size: 0.9688rem; font-weight: 550; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--accent); font-weight: 600; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { background: var(--surface); }
.faq .answer { padding: 0 18px 18px; max-width: 68ch; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Closing inquiry section ---------- */
/* The form is the last section on the page; the hero carries a button that
   jumps here. Same 800px column as the hero, so the offer bar still reads as a
   search bar and the copy stays inside a comfortable measure. */
.inquiry-inner { max-width: 800px; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 32px; color: var(--muted); font-size: 0.875rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between; }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--ink); }

/* ---------- Motion preferences and print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root {
    --ground: #ffffff; --surface: #ffffff; --card: #ffffff;
    --ink: #000000; --muted: #333333; --rule: #b3b3b3; --accent: #000000;
    --shadow-sm: none; --shadow-md: none;
  }
  .skip, .nav, .sprite, .hero-actions, .panel { display: none; }
  .hero { background: none; }
  .hero, .section { padding-block: 20px; border-bottom: 1px solid #b3b3b3; }
  .badges { margin-top: 12px; }
  .faq details { break-inside: avoid; }
  /* Closed <details> print collapsed in Chromium. The FAQ answers are the page's
     trust content, so expand them on paper. Older engines ignore this rule. */
  .faq details::details-content { content-visibility: visible; }
}
