/* Keel and Ledger — site styles
   Brand: navy + champagne gold, sampled from the logo (assets/kl-mark.png).
   Cinzel (brand lockup, echoes the logo wordmark), Fraunces (headings), Inter (body). */

:root {
  --ink: #0F2233;          /* deep navy — header, footer, dark bands */
  --sea: #16364F;          /* secondary navy */
  --brass: #D4B081;        /* primary accent — logo gold average */
  --brass-dark: #8E6536;   /* accent text on light backgrounds (AA) */
  --brass-light: #E9CFA6;  /* accent on dark backgrounds */
  --glass: #5E8C86;        /* sea-glass green — positive numbers, checks */
  --paper: #F7F4EE;        /* warm off-white page */
  --card: #FFFFFF;
  --text: #1C2530;
  --muted: #56616D;
  --line: #E4DED3;
  --field-line: #8C8478;   /* form field borders: about 3.7:1 on white, 3.3:1 on the page color */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 34, 51, .06), 0 8px 24px rgba(15, 34, 51, .08);
  --max: 1160px;
  --font-brand: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* "hidden" must win over layout classes like .form { display: grid } */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #D8DEE4; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { max-width: 44rem; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block;
  font: 600 .8rem/1 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 14px;
}
.section--ink .eyebrow { color: var(--brass-light); }
.section--ink .lead, .cta-band .lead { color: #B9C4CE; }
.section--ink .card b { color: #fff; }
.cta-band .eyebrow { color: var(--brass-light); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brass); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
/* Focus ring: dark gold on light backgrounds (about 4.7:1 on the page color),
   light gold on the navy areas (about 8:1), so it always clears 3:1. */
:focus-visible { outline: 3px solid var(--brass-dark); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .section--ink :focus-visible,
.cta-band :focus-visible, .site-footer :focus-visible, .skip-link:focus-visible { outline-color: var(--brass); }
.hero .panel :focus-visible, .section--ink .panel :focus-visible { outline-color: var(--brass-dark); }  /* white cards inside dark areas */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font-body);
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brass); color: var(--ink); }
.btn--primary:hover { background: var(--brass-light); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--sea); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--ink .btn--ghost, .hero .btn--ghost { color: #fff; }
.section--ink .btn--ghost:hover, .hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 34, 51, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand__mark { width: 65px; height: 48px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; gap: 5px; }
/* Mirrors the logo wordmark: small-caps serif, "and" set smaller, gold rule-style tagline */
.brand__name { font: 600 1.3rem/1 var(--font-brand); letter-spacing: .02em; white-space: nowrap; color: #F3EDE3; }
.brand__name small { font-size: .7em; }
.brand__tag { font: 500 .62rem/1 var(--font-brand); letter-spacing: .42em; text-transform: uppercase; color: var(--brass); }
.footer__logo { display: inline-block; }
.footer__logo img { width: 220px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav__list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: #C9D2DA; text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav__list a:hover { color: #fff; }
.nav__list a[aria-current="page"] { color: #fff; border-bottom-color: var(--brass); }
.nav__list a.nav__login { color: var(--brass-light); }
.nav__list a.nav__login:hover { color: #fff; }
/* Services drop-down */
.nav__drop { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__caret { background: none; border: 0; padding: 4px; margin-right: -4px; color: #C9D2DA; cursor: pointer; display: flex; border-radius: 4px; }
.nav__caret svg { width: 16px; height: 16px; transition: transform .2s; }
.nav__caret:hover { color: #fff; }
.nav__drop.is-open .nav__caret svg { transform: rotate(180deg); }
.nav__sub { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: calc(100% + 10px); left: -18px; min-width: 260px; z-index: 60;
  background: var(--ink); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }   /* keeps hover alive across the gap */
.nav__drop:hover .nav__sub, .nav__drop.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 9px 20px; border-bottom: 0; font-size: .95rem; }
.nav__sub a:hover { background: rgba(255, 255, 255, .06); }
.nav__sub a[aria-current="page"] { color: var(--brass-light); border-bottom: 0; }
.nav__sub-all { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .1); }
.nav__sub-all a { color: var(--brass-light); }
/* Header "Book your free consultation" button: outside the menu, visible at every width */
.header__book { flex: none; padding: 12px 20px; font-size: .95rem; white-space: nowrap; }
.nav-toggle { display: none; flex: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1180px) {
  /* Just above the menu breakpoint: tighten so logo, links and button all fit */
  .site-header .container { gap: 18px; }
  .nav__list { gap: 18px; }
  .header__book { padding: 12px 16px; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav { max-height: calc(100dvh - 76px); overflow-y: auto; }
  .nav__drop { flex-wrap: wrap; }
  .nav__drop > a { flex: 1; }
  .nav__caret { padding: 10px; margin: 0 -10px 0 0; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
  .nav__caret svg { width: 22px; height: 22px; }
  .nav__sub { position: static; flex-basis: 100%; min-width: 0; padding: 4px 0 8px 14px; background: none; border: 0; box-shadow: none; border-radius: 0;
    display: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav__drop:hover .nav__sub { display: none; }
  .nav__drop.is-open .nav__sub { display: block; }
  .nav__list .nav__sub a { padding: 11px 0; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav__list .nav__sub a:hover { background: none; }
  .nav__sub-all { margin: 0; padding: 0; border: 0; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.05rem; }
  .nav__list a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, .08); color: var(--brass-light); }
  .site-header .container { gap: 12px; }
  .brand { margin-right: auto; min-width: 0; }
  .header__book { padding: 10px 16px; font-size: .9rem; }
}
@media (max-width: 560px) {
  /* Compact two-line button so it fits beside the logo on phones (no sideways scroll at 360px) */
  .site-header .container { gap: 8px; }
  .brand { gap: 8px; }
  .header__book { white-space: normal; max-width: 118px; padding: 7px 12px; font-size: .78rem; line-height: 1.2; text-align: center; }
  .nav-toggle { padding: 6px; margin-right: -6px; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(212, 176, 129, .18), transparent 60%),
    linear-gradient(180deg, var(--ink), var(--sea));
  color: #D8DEE4;
  padding: 88px 0 104px;
  overflow: hidden;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--brass-light); font-weight: 500; }
.hero .lead { color: #B9C4CE; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__assure { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 28px 0 0; font-size: .95rem; color: #B9C4CE; }
.hero__assure li { display: flex; align-items: center; gap: 8px; }
.hero__assure svg { width: 18px; height: 18px; color: var(--brass-light); flex: none; }
.page-hero { padding: 72px 0 80px; }
.page-hero .lead { max-width: 44rem; }
.crumbs { font-size: .9rem; color: #9FAAB5; margin-bottom: 18px; }
.crumbs a { color: var(--brass-light); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Sample report card (hero visual) */
.report {
  background: var(--card);
  color: var(--text);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  padding: 26px 26px 22px;
  position: relative;
}
.report__tag { position: absolute; top: -12px; right: 20px; background: var(--brass); color: var(--ink); font: 600 .72rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.report__head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.report__title { font: 600 1.1rem/1.2 var(--font-head); color: var(--ink); margin: 0; }
.report__period { font-size: .85rem; color: var(--muted); }
.report__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .95rem; border-bottom: 1px dashed var(--line); }
.report__row span:last-child { font-variant-numeric: tabular-nums; font-weight: 500; }
.report__row--sub { padding-left: 14px; color: var(--muted); font-size: .9rem; }
.report__row--total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px; font-weight: 700; color: var(--ink); }
.report__row--total span:last-child { color: var(--glass); font-weight: 700; }
.report__foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .82rem; color: var(--muted); }
.report__foot svg { width: 16px; height: 16px; color: var(--glass); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: #F3EBDC; color: var(--brass-dark);
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; color: var(--brass-dark); text-decoration: none; }
.card__link:hover { text-decoration: underline; }
.card--link { display: block; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.card--link:hover { border-color: var(--brass); transform: translateY(-2px); }
.card--link:hover .card__link { text-decoration: underline; }
.card .checks { margin: 0; font-size: .97rem; }
.more-link { margin: 28px 0 0; text-align: center; }
.checks a, .addon h3 a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.checks a:hover, .addon h3 a:hover { color: var(--brass-dark); }
.section--ink .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.section--ink .card p { color: #B9C4CE; }
.section--ink .card__icon { background: rgba(212, 176, 129, .15); color: var(--brass-light); }

/* Pain points */
.pain { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pain li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.pain svg { width: 22px; height: 22px; color: #B5543C; flex: none; margin-top: 3px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { position: relative; padding-top: 64px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 1.2rem/1 var(--font-head);
  background: var(--brass); color: var(--ink);
}
.steps li:not(:last-child)::after {
  content: ''; position: absolute; top: 23px; left: 58px; right: -12px;
  border-top: 2px dashed rgba(212, 176, 129, .5);
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); font-size: .98rem; }
.section--ink .steps p { color: #B9C4CE; }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: .35em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--glass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }

/* Upload/receipt illustration */
.flow { display: grid; gap: 12px; }
.flow__item { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: .95rem; }
.flow__item b { color: var(--ink); }
.flow__item small { display: block; color: var(--muted); font-size: .82rem; }
.flow__badge { margin-left: auto; font: 600 .75rem/1 var(--font-body); padding: 6px 10px; border-radius: 999px; background: #E3EEEC; color: #2F5E58; white-space: nowrap; }
.flow__icon { width: 38px; height: 38px; border-radius: 10px; background: #F3EBDC; color: var(--brass-dark); display: grid; place-items: center; flex: none; }
.flow__icon svg { width: 20px; height: 20px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px; box-shadow: var(--shadow); position: relative; }
.plans--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plans--4 .plan { padding: 32px 24px; }
.plans--4 .plan__price { font-size: 2.3rem; }
.plan--featured { border: 2px solid var(--brass); }
.plan__flag { position: absolute; top: -13px; left: 30px; background: var(--brass); color: var(--ink); font: 600 .75rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.plan__name { font: 600 1.4rem/1.2 var(--font-head); color: var(--ink); margin: 0 0 6px; }
.plan__for { color: var(--muted); font-size: .95rem; margin-bottom: 20px; min-height: 4.95em; } /* 3 lines, so prices line up */
.plan__price { font: 600 2.6rem/1 var(--font-head); color: var(--ink); margin-bottom: 4px; }
.plan__price small { font: 500 1rem/1 var(--font-body); color: var(--muted); }
.plan__note { font-size: .85rem; color: var(--muted); margin-bottom: 22px; }
.plan .checks { flex: 1; font-size: .97rem; }
.plan .btn { width: 100%; margin-top: 12px; }
.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.addon { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.addon h3 { font-size: 1.1rem; margin-bottom: .3em; }
.addon__price { font-weight: 600; color: var(--brass-dark); margin-bottom: .6em; }
.addon p:last-child { margin-bottom: 0; color: var(--muted); font-size: .95rem; }
.plan .btn { line-height: 1.25; text-align: center; padding-left: 16px; padding-right: 16px; }
.flow__note { margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--font-body); color: var(--brass-dark); }
.faq details[open] summary::after { content: '\2013'; }
.faq details > div { padding: 0 24px 20px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }
.faq details > div a { color: var(--brass-dark); font-weight: 600; }
.help-faq h2 { font-size: 1.6rem; margin: 48px 0 16px; scroll-margin-top: 100px; }
.help-faq h2:first-child { margin-top: 0; }
.help-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.help-jump a { color: #D8DEE4; text-decoration: none; font-size: .92rem; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; }
.help-jump a:hover { border-color: var(--brass); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--ink), var(--sea)); color: #D8DEE4; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #B9C4CE; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1.5px solid var(--field-line); border-radius: 10px; padding: 12px 14px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass-dark); box-shadow: 0 0 0 2px var(--brass-dark); }
.hp { position: absolute; left: -5000px; }
.ref-group { border: 1px solid var(--line, #E4DFD3); border-radius: 10px; padding: 12px 16px 14px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 16px; }
.ref-group legend { font-weight: 600; padding: 0 6px; }
.ref-check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; font-weight: 400; cursor: pointer; }
.ref-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.ref-consent { margin: 4px 0; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-status { display: none; padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.form-status.is-success { background: #E3EEEC; color: #234C47; }
.form-status.is-error { background: #F7E4DE; color: #7A2E1D; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .card__icon { margin: 0; width: 42px; height: 42px; flex: none; }
.contact-list b { display: block; color: var(--ink); }
.contact-list a { color: var(--brass-dark); font-weight: 600; text-decoration: none; }
.booking-frame { display: block; width: 100%; min-height: 760px; border: 0; border-radius: 14px; background: var(--card); }
.booking-fallback { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.booking-frame { display: block; width: 100%; height: 780px; border: 0; border-radius: 14px; background: var(--card); }
@media (max-width: 700px) { .booking-frame { height: 1050px; } }
.booking-fallback { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.booking-embed { min-height: 640px; border: 1px dashed #CFC6B6; border-radius: 14px; display: grid; place-items: center; text-align: center; padding: 32px; background: var(--card); color: var(--muted); }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.notice { background: #FBF3E3; border: 1px solid #EBD6AE; border-radius: 12px; padding: 16px 20px; color: #6B4E1E; font-size: .95rem; margin-bottom: 32px; }
.notice--spaced { margin: 32px 0 0; max-width: 62rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9FAAB5; padding: 72px 0 32px; margin-top: 96px; font-size: .95rem; }
.site-footer--flush { margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { font: 600 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #C9D2DA; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__about { max-width: 22rem; margin-top: 16px; }
.footer__disclaimer { margin: 40px 0 0; max-width: 62rem; font-size: .82rem; line-height: 1.55; color: #8A96A2; }
.footer__disclaimer + .footer__bottom { margin-top: 20px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.footer__bottom ul { display: flex; gap: 20px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4, .steps, .plans--4 { grid-template-columns: repeat(2, 1fr); }
  .plans--4 { row-gap: 32px; }
  .steps li::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .hero__grid, .split, .grid--2, .grid--3, .plans, .plans--4, .addons { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .split > * { min-width: 0; }
  .pain { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .plan__for { min-height: 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid--4, .steps, .footer__grid, .form__row { grid-template-columns: 1fr; }
  .card, .panel { padding: 24px; }
  .brand__name { font-size: 1.08rem; }
  .brand__tag { font-size: .55rem; letter-spacing: .34em; }
  .brand__mark { width: 52px; height: 38px; }
  .btn-row .btn { width: 100%; }
  .flow__item { flex-wrap: wrap; }
  .flow__badge { white-space: normal; }
}
@media (max-width: 400px) {
  .site-header .container, .brand { gap: 6px; }
  .brand__name { font-size: .86rem; }
  .brand__tag { font-size: .46rem; letter-spacing: .28em; }
  .brand__mark { width: 40px; height: 30px; }
  .header__book { max-width: 116px; padding: 6px 10px; font-size: .75rem; }
}

/* ---------- Package comparison (pricing.html) ---------- */
.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; }
.compare-wrap { position: relative; overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--text); }
.compare thead th { font: 600 1.05rem/1.2 var(--font-head); color: var(--ink); padding-top: 22px; padding-bottom: 16px; position: sticky; top: 0; background: var(--card); }
.compare thead th.compare__featured { color: var(--brass-dark); }
.compare td:nth-child(3) { background: #FBF7EF; }
.compare__group th { text-align: left; background: var(--paper); font: 600 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-dark); padding: 12px 16px; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--glass); color: #fff; font-size: .8rem; font-weight: 700; }
.compare .no { color: #B8B0A2; }
.compare td { color: var(--muted); }
.card__link--light { color: var(--brass-light); }

/* Proposal page (proposal.html, js/proposal.js) */
.prop { max-width: 820px; }
.prop__block { margin-bottom: 2.2rem; }
.prop__table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prop__table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prop__table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prop__table tfoot td { font-weight: 700; border-bottom: 0; background: var(--paper); }
.prop__detail { display: block; color: var(--muted); font-size: .92rem; margin-top: 2px; }
.prop__letter { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; max-height: 480px; overflow-y: auto; white-space: pre-line; font-size: .95rem; }
.prop__letter p { margin: 0 0 1em; }
.prop__letter h3 { font-size: 1rem; margin: 1.4em 0 .5em; white-space: normal; }
.prop__letter h3:first-child { margin-top: 0; }
.prop__accept { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 1.5rem; }
.prop__signed { font-weight: 600; }
.prop__decline summary { cursor: pointer; color: var(--muted); }
.prop__decline .btn { margin-top: 10px; }
@media print {
  .site-header, .site-footer, .prop__noprint { display: none !important; }
  .prop__letter { max-height: none; overflow: visible; border: 0; padding: 0; }
  body { background: #fff; }
}

/* Home page: portal screenshots */
.shots { align-items: start; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); }   /* each picture already has its card edge and shadow */
.shot__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); transition: transform .2s; }
.shot__zoom:hover { transform: translateY(-2px); }
.shot__zoom:focus-visible { outline: 3px solid var(--brass, #C9A46A); outline-offset: 4px; }
.shot figcaption { margin-top: 14px; font-size: .95rem; color: var(--muted); }
.shot figcaption b { color: var(--ink); }
.shots__note { text-align: center; margin-top: 24px; }

/* Larger view of a portal picture */
.shot-view { border: 0; padding: 0; background: transparent; max-width: min(1000px, 94vw); width: 100%; overflow: visible; }
.shot-view::backdrop { background: rgba(15, 34, 51, .78); }
.shot-view img { display: block; width: 100%; height: auto; max-height: 88vh; object-fit: contain; border-radius: var(--radius); background: #fff; cursor: zoom-out; }
.shot-view__close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
/* Phones: full screen, shown at its real size; scroll to move around, tap to close. */
@media (max-width: 640px) {
  .shot-view { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; overflow: auto; background: #fff; }
  .shot-view img { width: 760px; max-width: none; max-height: none; border-radius: 0; }
  .shot-view__close { position: fixed; top: 12px; right: 12px; z-index: 1; }
}

.shots--two { max-width: 920px; margin-left: auto; margin-right: auto; }   /* two pictures: keep them from getting too large */

/* Service pages: problems and how we fix them */
.pain--fix li { padding: 20px 22px; }
.pain--fix b { display: block; color: var(--ink); line-height: 1.4; }
.pain__fix { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; color: var(--muted); font-size: .97rem; }
.pain .pain__fix svg { width: 18px; height: 18px; color: var(--glass); margin-top: 4px; }
.pipe__head { margin-top: 88px; }
.pipe { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; }
.pipe__step { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 20px; }
.pipe__step:not(:last-child)::after {   /* arrow to the next step */
  content: ''; position: absolute; top: 50%; right: -22px; width: 11px; height: 11px;
  border-top: 2px solid var(--brass); border-right: 2px solid var(--brass); transform: translateY(-50%) rotate(45deg);
}
.pipe__who { align-self: flex-start; font: 600 .7rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; margin-bottom: 14px; }
.pipe__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px; }
.pipe__icon svg { width: 20px; height: 20px; }
.pipe__step b { display: block; color: var(--ink); font-size: 1rem; line-height: 1.3; margin-bottom: 6px; }
.pipe__step small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.pipe__step--you .pipe__who, .pipe__step--you .pipe__icon { background: #F3EBDC; color: var(--brass-dark); }
.pipe__step--auto .pipe__who, .pipe__step--auto .pipe__icon { background: #E3EEEC; color: #2F5E58; }
.pipe__step--team .pipe__who, .pipe__step--team .pipe__icon { background: var(--ink); color: #fff; }
.pipe__step--portal .pipe__who, .pipe__step--portal .pipe__icon { background: #E3EAF1; color: var(--sea); }
.pipe__step--team { border-top: 3px solid var(--ink); }
.pipe__note { text-align: center; margin: 24px auto 0; max-width: 44rem; }
@media (max-width: 1024px) {
  .pipe { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; gap: 34px; }
  .pipe__step { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; }
  .pipe__who { grid-column: 1 / -1; justify-self: start; }
  .pipe__icon { grid-row: span 2; margin: 0; }
  .pipe__step:not(:last-child)::after { top: auto; bottom: -24px; right: auto; left: 50%; transform: translateX(-50%) rotate(135deg); }
}
