/* ==========================================================================
   BookedQuotes — site styles
   Brand: calm, quiet competence. Typographic, restrained, no hype.
   ========================================================================== */

:root {
  --bg:        #FAF9F7;
  --bg-sunk:   #F1EFEB;
  --bg-raise:  #FFFFFF;
  --text:      #0B0D0E;
  --text-mute: #5A6165;
  --text-faint:#8B9195;
  --accent:    #16544A;
  --accent-soft: #16544A14;
  --rule:      #0B0D0E1F;
  --rule-soft: #0B0D0E10;

  --maxw: 1120px;
  --readw: 66ch;
  --r: 4px;
  --step: clamp(4.5rem, 9vw, 7.5rem);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

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

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; }
.prose { max-width: var(--readw); }

section { padding-block: var(--step); }
section.tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.sunk { background: var(--bg-sunk); }
.ruled-top { border-top: 1px solid var(--rule-soft); }

/* ---------------------------------------------------- type scale ------- */

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.4vw, 3.75rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.13rem, 1.7vw, 1.35rem); letter-spacing: -0.016em; line-height: 1.3; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(1.08rem, 1.9vw, 1.32rem); line-height: 1.55; color: var(--text-mute); }
.lede strong { color: var(--text); font-weight: 600; }

.eyebrow {
  display: inline-block;
  margin: 0 0 1.35rem;
  font-size: .745rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker {
  font-size: .78rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--text-faint);
  margin: 0 0 1.5rem;
}

.mute  { color: var(--text-mute); }
.faint { color: var(--text-faint); }
.fine  { font-size: .875rem; line-height: 1.55; color: var(--text-mute); }

.sec-head { max-width: 42ch; margin-bottom: 2.75rem; }
.sec-head p { color: var(--text-mute); font-size: 1.05rem; margin-bottom: 0; }

/* -------------------------------------------------------- header ------- */

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}

.head-in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 66px;
}

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 650; letter-spacing: -0.028em; font-size: 1.06rem;
  text-decoration: none; color: var(--text); margin-right: auto;
  white-space: nowrap;
}
.brand-mark {
  width: 19px; height: 19px; flex: none;
  border: 1.5px solid var(--accent); border-radius: 3px;
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  width: 7px; height: 3.5px; margin: auto;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg) translate(0, -1px);
}

.nav { display: flex; align-items: center; gap: 1.65rem; }
.nav a {
  text-decoration: none; font-size: .935rem; color: var(--text-mute);
  transition: color .16s ease; white-space: nowrap;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 550; }
/* The nav CTA exists only for the mobile drawer — .head-actions owns it on desktop. */
.nav > .btn { display: none; }

.head-actions { display: flex; align-items: center; gap: .6rem; }

.menu-btn { display: none; }

/* --------------------------------------------------------- buttons ----- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .74rem 1.3rem;
  font-size: .95rem; font-weight: 550; letter-spacing: -0.008em;
  text-decoration: none; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer;
  transition: opacity .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { opacity: .9; }
.btn-ghost { border-color: var(--rule); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-faint); background: var(--rule-soft); }
.btn-sm { padding: .52rem 1rem; font-size: .89rem; }
.btn-lg { padding: .9rem 1.7rem; font-size: 1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.txt-link {
  color: var(--accent); text-decoration: none; font-weight: 550;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 1px; transition: border-color .16s ease;
}
.txt-link:hover { border-bottom-color: var(--accent); }
.txt-link::after { content: " \2192"; }

/* ----------------------------------------------------------- hero ------ */

.hero { padding-block: clamp(4rem, 10vw, 8rem) clamp(3.5rem, 7vw, 6rem); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(58rem 30rem at 12% -10%, var(--accent-soft), transparent 70%);
}
.hero h1 { max-width: 17ch; margin-bottom: 1.5rem; }
.hero .lede { max-width: 56ch; }
.hero .btn-row { margin-top: 2.4rem; }

.hero-note {
  margin-top: 1.85rem; padding-top: 1.35rem;
  border-top: 1px solid var(--rule-soft);
  max-width: 60ch; font-size: .885rem; line-height: 1.6; color: var(--text-mute);
}
/* Phones get the hero without the guarantee caveat; it still runs in full on
   the guarantee section further down the page. */
@media (max-width: 640px) {
  .hero-note { display: none; }
}

.page-head { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { max-width: 62ch; }

/* -------------------------------------------------------- statement ---- */

.statement {
  border-left: 2px solid var(--accent);
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  max-width: 34ch;
}
.statement h2 { margin-bottom: 0; }

.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------- cards ----- */

.grid { display: grid; gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--bg); padding: clamp(1.6rem, 3vw, 2.15rem); }
.sunk .card { background: var(--bg-sunk); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--text-mute); font-size: .965rem; margin-bottom: 0; }
.card-n {
  display: block; font-family: var(--mono); font-size: .78rem;
  color: var(--accent); margin-bottom: 1.1rem; letter-spacing: .04em;
}

/* ------------------------------------------------------------ list ----- */

.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative; padding-left: 1.7rem; margin-bottom: .8rem;
  color: var(--text-mute); font-size: .985rem; line-height: 1.55;
}
.checks li:last-child { margin-bottom: 0; }
.checks li strong { color: var(--text); font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 1px; top: .52em;
  width: 8px; height: 4.5px;
  border-left: 1.7px solid var(--accent); border-bottom: 1.7px solid var(--accent);
  transform: rotate(-45deg);
}
.checks.crossed li::before {
  width: 9px; height: 9px; top: .42em; left: 2px; transform: none;
  border: 0;
  background:
    linear-gradient(to bottom right, transparent 44%, var(--text-faint) 44%, var(--text-faint) 56%, transparent 56%),
    linear-gradient(to bottom left,  transparent 44%, var(--text-faint) 44%, var(--text-faint) 56%, transparent 56%);
}

.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li {
  padding: 1rem 0; border-bottom: 1px solid var(--rule-soft);
  color: var(--text-mute); font-size: .985rem;
}
.plain-list li:first-child { border-top: 1px solid var(--rule-soft); }
.plain-list li strong { color: var(--text); font-weight: 600; }

/* ----------------------------------------------------------- steps ----- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps > li {
  position: relative; counter-increment: s;
  padding: 0 0 2.4rem 3.4rem;
  border-left: 1px solid var(--rule);
  margin-left: 12px;
}
.steps > li:last-child { padding-bottom: 0; border-left-color: transparent; }
.steps > li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: -2px; transform: translateX(-50%);
  width: 25px; height: 25px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--rule);
  font-family: var(--mono); font-size: .655rem; color: var(--accent);
  letter-spacing: 0;
}
.sunk .steps > li::before { background: var(--bg-sunk); }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--text-mute); font-size: .975rem; margin-bottom: 0; }
.steps .who {
  display: inline-block; margin-top: .7rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-faint);
}

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

.panel {
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: var(--r);
  padding: clamp(1.8rem, 4vw, 3rem);
  background: var(--bg-raise);
}
.panel h2, .panel h3 { margin-bottom: .85rem; }
.panel-quote {
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  line-height: 1.35; letter-spacing: -0.02em; font-weight: 550;
  margin-bottom: 1.5rem; text-wrap: balance;
}

.note {
  border: 1px solid var(--rule-soft); border-radius: var(--r);
  background: var(--bg-sunk);
  padding: 1.25rem 1.4rem;
  font-size: .9rem; line-height: 1.6; color: var(--text-mute);
}
.sunk .note { background: var(--bg-raise); }
.note strong { color: var(--text); }

/* ------------------------------------------------------------ faq ------ */

.faq { border-top: 1px solid var(--rule-soft); }
.faq details { border-bottom: 1px solid var(--rule-soft); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.35rem 2.5rem 1.35rem 0;
  position: relative; font-weight: 550; font-size: 1.03rem;
  letter-spacing: -0.014em; line-height: 1.4;
  transition: color .16s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after,
.faq summary::before {
  content: ""; position: absolute; right: 4px; top: 50%;
  background: var(--text-faint); transition: transform .2s ease, opacity .2s ease;
}
.faq summary::after  { width: 13px; height: 1.5px; margin-top: -.75px; }
.faq summary::before { width: 1.5px; height: 13px; margin-top: -6.5px; right: 9.75px; }
.faq details[open] summary::before { transform: rotate(90deg); opacity: 0; }
.faq .answer { padding: 0 0 1.6rem; max-width: 68ch; color: var(--text-mute); font-size: .975rem; }
.faq .answer p { margin-bottom: .9rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ cta ------ */

.cta { text-align: center; }
.cta h2 { max-width: 22ch; margin-inline: auto; }
.cta .lede { max-width: 54ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 2.2rem; }

/* ----------------------------------------------------------- form ------ */

.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .875rem; font-weight: 550; letter-spacing: -0.005em; }
.field .hint { font-size: .8rem; color: var(--text-faint); }
.field-row { display: grid; gap: 1.15rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; font: inherit; font-size: .95rem;
  color: var(--text); background: var(--bg-raise);
  border: 1px solid var(--rule); border-radius: var(--r);
  padding: .72rem .85rem;
  transition: border-color .16s ease, box-shadow .16s ease;
  appearance: none;
}
textarea { min-height: 118px; resize: vertical; line-height: 1.55; }
select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: #C0483C;
}
.err { font-size: .8rem; color: #C0483C; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  display: none; border-radius: var(--r); padding: 1rem 1.15rem;
  font-size: .92rem; line-height: 1.55;
  border: 1px solid var(--rule);
}
.form-status.is-on { display: block; }
.form-status.ok  { border-color: var(--accent); background: var(--accent-soft); }
.form-status.bad { border-color: #C0483C; background: #C0483C14; }

button[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------- footer ----- */

.site-foot { border-top: 1px solid var(--rule-soft); padding-block: 3.5rem 2rem; }
.foot-top {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  padding-bottom: 2.75rem;
}
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

.foot-brand p { font-size: .9rem; color: var(--text-mute); max-width: 34ch; margin: .9rem 0 0; }
.foot-col h4 {
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600; margin-bottom: 1rem;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: .6rem; }
.foot-col a {
  text-decoration: none; font-size: .92rem; color: var(--text-mute);
  transition: color .16s ease;
}
.foot-col a:hover { color: var(--text); }

.legal {
  border-top: 1px solid var(--rule-soft);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .35rem 1.15rem;
  font-size: .685rem; line-height: 1.5;
  color: var(--text-faint); opacity: .62;
}
.legal a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.legal a:hover { border-bottom-color: currentColor; }

/* ------------------------------------------------------------ misc ----- */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r);
}
.skip:focus { left: 12px; top: 12px; }

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

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .93rem; }
th, td { text-align: left; padding: .95rem 1rem .95rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
th { font-weight: 600; font-size: .74rem; letter-spacing: .11em; text-transform: uppercase; color: var(--text-faint); }
td { color: var(--text-mute); }
td strong { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------- mobile nav ------- */

@media (max-width: 940px) {
  .menu-btn {
    display: inline-grid; place-items: center;
    width: 34px; height: 34px; padding: 0;
    background: none; border: 1px solid var(--rule); border-radius: var(--r);
    color: var(--text); cursor: pointer;
  }
  .menu-btn svg { width: 15px; height: 15px; }
  .head-actions .btn { display: none; }
  .nav {
    position: fixed; inset: 66px 0 auto; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    padding: .5rem 24px 1.5rem;
    max-height: calc(100dvh - 66px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a {
    padding: .95rem 0; font-size: 1.02rem;
    border-bottom: 1px solid var(--rule-soft);
  }
  .nav > .btn {
    display: inline-flex;
    margin-top: 1.15rem; border-bottom: 0;
    justify-content: center; color: #fff;
  }
}
