:root {
  --navy: #12304a;
  --navy-2: #1b3d5c;
  --teal: #0e7b75;
  --teal-dark: #0a615c;
  --teal-soft: #e3f2ef;
  --mint: #f4faf8;
  --peach: #fdb38b;
  --peach-soft: #fde6d8;
  --peach-ink: #8a4a26;
  --ink: #12304a;
  --body: #3d5163;
  --muted: #61717f;
  --line: #d9e7e3;
  --white: #fff;
  --danger: #b4232c;
  --radius: 16px;
  --font-head: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  background: var(--white);
}
img, svg { max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.1; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 8vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.3rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.12rem; font-weight: 700; font-family: var(--font-body); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header { background: var(--mint); }
.site-header.on-white { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand-word { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--navy); }
.brand-word b { color: var(--teal); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a.link { color: var(--navy); text-decoration: none; font-size: 0.95rem; font-weight: 500; display: none; }
@media (min-width: 760px) { .nav a.link { display: inline; } }
.steps-pills { display: flex; gap: 8px; }
.steps-pills span { padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--teal-soft); color: var(--muted); }
.steps-pills span.on { background: var(--teal); color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--teal);
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  background: var(--teal); color: var(--white); transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: #9cc3bf; border-color: #9cc3bf; cursor: not-allowed; transform: none; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }
.btn-xs { min-height: 34px; padding: 0 14px; font-size: 0.85rem; border-width: 1.5px; }
.btn-block { width: 100%; }
.btn-white { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-white:hover { background: var(--mint); border-color: var(--line); color: var(--navy); }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
@media (min-width: 720px) { section { padding: 80px 0; } }
.bg-mint { background: var(--mint); }
.bg-teal-soft { background: var(--teal-soft); }
.bg-navy { background: var(--navy); }
.bg-white { background: var(--white); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700; color: var(--teal); margin: 0 0 8px; }
.lede { font-size: 1.12rem; color: var(--body); }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-mint { background: var(--mint); border-color: transparent; }

/* ---------- Hero ---------- */
.hero { background: var(--mint); padding: 28px 0 64px; }
@media (min-width: 900px) { .hero { padding: 48px 0 88px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--peach-soft); color: var(--peach-ink); font-weight: 700; font-size: 0.85rem; margin-bottom: 18px; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.phone {
  background: var(--navy); border-radius: 28px; padding: 20px 18px 22px; color: var(--white);
  max-width: 420px; width: 100%; margin: 0 auto; box-shadow: 0 18px 40px rgba(18, 48, 74, 0.18);
}
.phone .label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: #b9c6d1; margin: 0 0 12px 4px; }
.bubble { background: var(--white); color: var(--navy); border-radius: 16px; padding: 14px 16px; font-size: 0.92rem; line-height: 1.45; }
.bubble strong { color: var(--teal); display: block; margin-bottom: 4px; }
.bubble .muted { font-size: 0.85rem; }
.bubble-yes { margin: 12px 0 12px auto; width: max-content; background: var(--peach); color: var(--navy); font-weight: 800; padding: 8px 16px; border-radius: 14px; font-size: 0.9rem; }

/* ---------- How it works ---------- */
.num { width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .kind { font-weight: 700; font-size: 0.92rem; color: var(--navy); margin-bottom: 10px; }
.price-card .amount { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--navy); line-height: 1.1; margin-bottom: 14px; letter-spacing: -0.02em; }
.price-card .amount s { font-size: 1.5rem; opacity: 0.55; margin-right: 6px; text-decoration-thickness: 2px; }
.price-card .packs { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--navy); line-height: 1.5; margin-bottom: 12px; }
.price-card p { font-size: 0.93rem; margin: 0; }
.price-card.featured { background: var(--navy); border-color: var(--navy); }
.price-card.featured .kind { color: var(--peach); }
.price-card.featured .amount, .price-card.featured p { color: var(--white); }
.price-card.featured p { color: #d5dee6; }
.tag-peach { display: inline-block; align-self: flex-start; margin-top: 14px; padding: 4px 12px; border-radius: 999px; background: var(--peach); color: var(--navy); font-weight: 700; font-size: 0.8rem; }
.free-note { margin-top: 18px; font-weight: 600; color: var(--navy); }

/* ---------- Math ---------- */
.math-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .math-grid { grid-template-columns: 1fr 1fr; } .math-grid .wide { grid-column: 1 / -1; } }
.math-card { background: var(--white); border-radius: var(--radius); padding: 18px 20px; }
.math-card .k { font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.math-card .v { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.math-card.teal { background: var(--teal); }
.math-card.teal .k, .math-card.teal .v { color: var(--white); }

/* ---------- Roles ---------- */
.roles .card h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 12px; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 5px 0; color: var(--navy); }
.promise { text-align: center; font-weight: 700; color: var(--navy); font-size: 1.12rem; margin: 26px auto 0; max-width: 40em; }

/* ---------- Who / where ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--teal-soft); color: var(--navy); font-weight: 500; font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: 12px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 48px 18px 18px; font-weight: 700; color: var(--navy); position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--teal); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 18px 18px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: 22px; padding: 26px 18px; max-width: 640px; margin: 0 auto; }
@media (min-width: 640px) { .form-card { padding: 34px 32px; } }
.form-card h2 { margin-bottom: 8px; }
.fgrid { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .fgrid.c2 { grid-template-columns: 1fr 1fr; } .fgrid.c3 { grid-template-columns: 1fr 1fr 1fr; } }
.field { margin-bottom: 18px; min-width: 0; }
label, .label { display: block; font-weight: 700; color: var(--navy); font-size: 0.88rem; margin-bottom: 6px; }
.group-title { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--navy); margin: 0 0 10px; padding: 0; }
.opt-hint, .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy);
}
input::placeholder { color: #9aa8b3; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 1.5l3 3M3 7.5l3 3 3-3' fill='none' stroke='%2312304a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(14, 123, 117, 0.2); border-color: var(--teal); }
input[readonly] { background: var(--mint); }
fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.popt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 500; font-size: 0.95rem; color: var(--navy); cursor: pointer; margin: 0; user-select: none; }
.popt input { width: 18px; height: 18px; accent-color: var(--teal); margin: 0; flex: 0 0 auto; }
.popt:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.popt:has(input:focus-visible) { outline: 3px solid rgba(14, 123, 117, 0.25); }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 1rem; color: var(--body); cursor: pointer; margin: 6px 0 20px; }
.check-row input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--teal); flex: 0 0 auto; }
.form-error { background: #fdecec; color: var(--danger); border: 1px solid #f3c2c2; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-weight: 600; }
.field-error { color: var(--danger); font-size: 0.86rem; margin: 6px 0 0; font-weight: 600; }
.invalid input[type=text], .invalid input[type=tel], .invalid input[type=email], .invalid select, .invalid .popt { border-color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Sign page ---------- */
.page-mint { background: var(--mint); min-height: 100vh; display: flex; flex-direction: column; }
.page-mint main { flex: 1; }
.page-mint section { padding: 28px 0 56px; }
.perks { display: grid; gap: 10px; margin: 22px 0 20px; }
@media (min-width: 640px) { .perks { grid-template-columns: repeat(3, 1fr); } }
.perks .card { padding: 14px 16px; }
.perks strong { display: block; color: var(--navy); font-size: 0.92rem; margin-bottom: 2px; }
.perks span { font-size: 0.86rem; color: var(--muted); }
.agreement-box { max-height: 58vh; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; margin-bottom: 18px; font-size: 0.95rem; }
.agreement-box h1 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; }
.agreement-box h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 1.3em 0 0.4em; letter-spacing: 0; }
.agreement-box h3 { font-size: 0.95rem; margin: 1.1em 0 0.3em; }
.agreement-box blockquote { margin: 0 0 1em; padding: 10px 14px; background: var(--peach-soft); border-radius: 8px; color: var(--peach-ink); }
.agreement-box .table-wrap { overflow-x: auto; margin-bottom: 1em; -webkit-overflow-scrolling: touch; }
.agreement-box table { border-collapse: collapse; width: 100%; font-size: 0.8rem; line-height: 1.4; }
.agreement-box th, .agreement-box td { border: 1px solid var(--line); padding: 5px 6px; text-align: left; vertical-align: top; }
.agreement-box th { background: var(--teal-soft); color: var(--navy); }
@media (min-width: 560px) { .agreement-box table { font-size: 0.88rem; } .agreement-box th, .agreement-box td { padding: 7px 9px; } }
@media (max-width: 420px) { .agreement-box { padding: 18px 12px; } .agreement-box table { font-size: 0.74rem; } .agreement-box th, .agreement-box td { padding: 4px 5px; } }
.agreement-box ul, .agreement-box ol { padding-left: 1.3em; }
.signer { font-size: 0.88rem; color: var(--muted); margin: 0 0 16px; padding: 10px 12px; background: var(--mint); border-radius: 10px; }
.signer strong { color: var(--navy); }
.sig-wrap { position: relative; border: 2px dashed #c7d7d4; border-radius: 14px; background: #fcfefd; touch-action: none; }
.sig-wrap canvas { display: block; width: 100%; height: 190px; touch-action: none; cursor: crosshair; }
.sig-wrap .sig-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #a9bfbb; pointer-events: none; font-family: "Caveat", cursive; font-size: 1.9rem; }
.sig-wrap .sig-clear { position: absolute; top: 10px; right: 10px; }
.fine { text-align: center; font-size: 0.82rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- Done page ---------- */
.done { text-align: center; max-width: 560px; margin: 0 auto; }
.done .mark { width: 84px; height: 84px; margin: 8px auto 22px; display: block; }
.done h1 { font-size: clamp(2rem, 7vw, 2.6rem); }
.done .lede { margin-bottom: 26px; }
.next { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px; }
.next h2 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; letter-spacing: 0; margin-bottom: 10px; }
.next ol { margin: 0; padding-left: 1.2em; color: var(--navy); }
.next li { padding: 4px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mint); padding: 22px 0; text-align: center; color: var(--body); font-size: 0.92rem; }
.page-mint .site-footer { border-top: 1px solid var(--line); }

/* ---------- Admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; background: var(--white); }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.admin-table th { background: var(--teal-soft); color: var(--navy); position: sticky; top: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.status { display: inline-block; padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: 0.78rem; text-transform: capitalize; }
.status-applied { background: #eef0f3; color: #3e4a57; }
.status-signing { background: #eef0f3; color: #3e4a57; }
.status-signed { background: #e0eefc; color: #164a80; }
.status-approved { background: #dff5e7; color: #17663a; }
.status-declined { background: #fbe4e4; color: #8f1d24; }
.inline-form { display: inline; }
.admin-table .btn-xs { margin: 2px 0; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #8f1d24; border-color: #8f1d24; }
.btn-delete { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-delete:hover { background: var(--danger); border-color: var(--danger); color: var(--white); }
