/* Scalesco Ventures — shared design system.
   One source of truth for every page: home, product pages, legal.
   Served from /assets/ which nginx caches for 1h (NOT the 30d immutable rule
   that covers the rest of the docroot) so an edit here goes live same-day. */

:root {
  --bone:      #F6F2EA;  /* page ground */
  --bone-2:    #EFE9DD;  /* alternating band, raised panel */
  --sand:      #E3DACA;  /* hairlines, edges */
  --paper:     #FFFDF9;  /* cards sitting on the ground */
  --ink:       #1C1A17;  /* primary text */
  --ink-soft:  #4A453D;  /* secondary text */
  --taupe:     #77705F;  /* muted labels — 4.6:1 on bone, safe at small sizes */
  --gold:      #C88B2E;  /* brand accent: rules, chips, large display */
  --gold-deep: #8A5A16;  /* gold that must carry small text — 5.5:1 on bone */
  --petrol:    #2E4A4E;  /* cool counterweight, verdicts, focus ring */
  --petrol-8:  rgba(46,74,78,.07);
  --gold-12:   rgba(200,139,46,.12);
  --err:       #8C3320;

  --shell: 1160px;
  --pad: 40px;
  --ease: cubic-bezier(.22,1,.36,1);
}
@media (max-width: 720px) { :root { --pad: 22px; } }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bone); color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; border-radius: 2px; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad); }
.display { font-family: 'Young Serif', Georgia, serif; font-weight: 400; line-height: 1.05; letter-spacing: -.015em; }

.eyebrow {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-deep);
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold); flex: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246,242,234,.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sand);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 30px; height: 30px; border-radius: 5px; }
.brand-name { font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 500; letter-spacing: .28em; line-height: 1.1; }
.brand-sub { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .26em; color: var(--gold-deep); line-height: 1.1; margin-top: 2px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--taupe); transition: color .2s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  padding: 9px 17px; border: 1px solid var(--ink); border-radius: 3px;
  color: var(--ink) !important; transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--bone) !important; }
@media (max-width: 940px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 27px; border: 1px solid transparent; border-radius: 3px;
  font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer;
  transition: transform .22s var(--ease), background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--bone); }
.btn-solid:hover { background: var(--petrol); transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--sand); }
.btn-line:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- sections ---------- */
.section { padding: 78px 0; border-top: 1px solid var(--sand); }
.section-alt { background: var(--bone-2); }
.section-head { max-width: 62ch; margin-bottom: 42px; }
.section-head h2 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -.01em; }
.section-head h2 em { font-style: normal; color: var(--gold-deep); }
.section-head p { margin-top: 16px; font-size: 17.5px; color: var(--ink-soft); }

.chip {
  display: inline-block; font-family: 'DM Mono', monospace; font-size: 9.5px;
  letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px;
  border-radius: 2px; border: 1px solid rgba(46,74,78,.28);
  color: var(--petrol); background: var(--petrol-8);
}
.chip-live { color: var(--gold-deep); border-color: rgba(200,139,46,.42); background: var(--gold-12); }

/* ---------- home hero ---------- */
.hero { padding: 92px 0 74px; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 60% at 12% -10%, var(--gold-12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding: 60px 0 54px; } }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--gold-deep); }
.hero-sub { margin-top: 24px; font-size: 18.5px; color: var(--ink-soft); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero-trust {
  margin-top: 30px; font-family: 'DM Mono', monospace; font-size: 10.5px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--taupe);
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
}
.hero-trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- signature: the audit ledger ---------- */
.ledger { background: var(--paper); border: 1px solid var(--sand); border-radius: 5px; box-shadow: 0 24px 60px -34px rgba(28,26,23,.4); overflow: hidden; }
.ledger-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--sand); background: var(--bone-2); }
.ledger-title { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.ledger-note { font-family: 'DM Mono', monospace; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); }
.ledger-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 17px 20px; border-bottom: 1px solid var(--sand);
  opacity: 0; transform: translateY(9px); animation: stamp .55s var(--ease) forwards;
}
.ledger-row:last-of-type { border-bottom: 0; }
.ledger-row:nth-of-type(1) { animation-delay: .30s; }
.ledger-row:nth-of-type(2) { animation-delay: .46s; }
.ledger-row:nth-of-type(3) { animation-delay: .62s; }
@keyframes stamp { to { opacity: 1; transform: translateY(0); } }
.ledger-subject { font-size: 15px; font-weight: 500; line-height: 1.35; }
.ledger-scope { font-family: 'DM Mono', monospace; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); margin-top: 4px; }
.verdict { font-family: 'DM Mono', monospace; font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; padding: 6px 11px; border-radius: 2px; border: 1px solid; white-space: nowrap; }
.verdict-fail { color: var(--petrol); border-color: rgba(46,74,78,.3); background: var(--petrol-8); }
.verdict-open { color: var(--gold-deep); border-color: rgba(200,139,46,.4); background: var(--gold-12); }
.ledger-row-open { background: linear-gradient(90deg, var(--gold-12), transparent 70%); }
.ledger-row-open .ledger-subject { color: var(--gold-deep); }
.pulse { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 7px; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.ledger-foot { padding: 14px 20px; background: var(--bone-2); border-top: 1px solid var(--sand); }
.ledger-foot a { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.ledger-foot a:hover { color: var(--ink); }

/* ---------- discipline cards ---------- */
.disc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .disc-grid { grid-template-columns: 1fr; } }
.disc { background: var(--paper); border: 1px solid var(--sand); border-radius: 5px; padding: 30px 26px 28px; position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.disc::after { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--gold); transition: width .4s var(--ease); }
.disc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(28,26,23,.5); }
.disc:hover::after { width: 100%; }
.disc h3 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: 23px; margin: 14px 0 10px; }
.disc p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- research statement + framework ---------- */
.statement { border-left: 3px solid var(--gold); padding: 4px 0 4px 26px; margin: 34px 0; font-family: 'Young Serif', Georgia, serif; font-size: clamp(21px, 2.8vw, 29px); line-height: 1.35; }
.framework { margin-top: 34px; }
.framework h4 { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); margin-bottom: 14px; }
.steps { display: flex; flex-wrap: wrap; gap: 9px; }
.step { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .06em; padding: 9px 14px; border: 1px solid var(--sand); border-radius: 2px; background: var(--paper); color: var(--ink-soft); transition: border-color .2s var(--ease), color .2s var(--ease); }
.step:hover { border-color: var(--gold); color: var(--ink); }

/* ---------- product teaser cards (home) ---------- */
.sys-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) { .sys-grid { grid-template-columns: 1fr; } }
.sys {
  background: var(--paper); border: 1px solid var(--sand); border-radius: 5px;
  padding: 28px 26px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.sys::after { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--gold); transition: width .4s var(--ease); }
.sys:hover { transform: translateY(-4px); border-color: rgba(200,139,46,.45); box-shadow: 0 20px 44px -30px rgba(28,26,23,.5); }
.sys:hover::after { width: 100%; }
.sys-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.sys h3 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: 24px; line-height: 1.15; }
.sys > p { color: var(--ink-soft); font-size: 15.5px; }
.sys-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--sand); }
.sys-stat-n { font-family: 'Young Serif', Georgia, serif; font-size: 25px; color: var(--gold-deep); line-height: 1.1; }
.sys-stat-l { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); margin-top: 5px; }
.sys-link { margin-top: auto; padding-top: 18px; font-family: 'DM Mono', monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.sys:hover .sys-link { color: var(--ink); }

/* ---------- services list ---------- */
.svc { border-top: 1px solid var(--sand); }
.svc-row { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; padding: 24px 4px; border-bottom: 1px solid var(--sand); transition: background .2s var(--ease), padding-left .25s var(--ease); }
.svc-row:hover { background: var(--paper); padding-left: 14px; }
.svc-row h3 { font-size: 18px; font-weight: 700; }
.svc-row p { color: var(--ink-soft); font-size: 15px; margin-top: 3px; max-width: 62ch; }
.svc-ask { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); white-space: nowrap; }
.svc-note { margin-top: 22px; font-size: 15px; color: var(--taupe); }

/* ---------- disclosure ---------- */
details.more { margin-top: 18px; border-top: 1px solid var(--sand); padding-top: 14px; }
details.more summary { cursor: pointer; list-style: none; font-family: 'DM Mono', monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: ' +'; color: var(--gold); }
details.more[open] summary::after { content: ' –'; }
details.more summary:hover { color: var(--ink); }
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 620px) { .more-grid { grid-template-columns: 1fr; } }
.more-item h5 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.more-item p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.more-head { font-family: 'DM Mono', monospace; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin: 22px 0 10px; }

/* ================= PRODUCT PAGES ================= */

/* breadcrumb */
.crumb { padding: 20px 0 0; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); }
.crumb a:hover { color: var(--ink); }
.crumb span { color: var(--sand); margin: 0 8px; }

/* product hero */
.p-hero { padding: 44px 0 66px; position: relative; }
.p-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 60% at 10% -20%, var(--gold-12) 0%, transparent 60%); pointer-events: none; }
.p-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .p-hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.p-hero h1 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: clamp(36px, 5.4vw, 62px); line-height: 1.06; letter-spacing: -.015em; max-width: 15ch; }
.p-hero h1 em { font-style: normal; color: var(--gold-deep); }
.p-hero-sub { margin-top: 22px; font-size: 18.5px; color: var(--ink-soft); max-width: 48ch; }
.p-hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }

/* the spec panel that sits opposite the product headline */
.spec { background: var(--paper); border: 1px solid var(--sand); border-radius: 5px; box-shadow: 0 24px 60px -34px rgba(28,26,23,.4); overflow: hidden; }
.spec-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 20px; background: var(--bone-2); border-bottom: 1px solid var(--sand); }
.spec-title { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.spec-row { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 14px 20px; border-bottom: 1px solid var(--sand); align-items: baseline; }
.spec-row:last-child { border-bottom: 0; }
.spec-k { font-family: 'DM Mono', monospace; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); white-space: nowrap; }
.spec-v { font-size: 15px; font-weight: 500; text-align: right; }

/* problem → answer pairs */
.pa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .pa-grid { grid-template-columns: 1fr; } }
/* Flex column + margin-top:auto on the answer half so the dividers line up
   across cards whose problem text runs to different lengths. */
.pa { background: var(--paper); border: 1px solid var(--sand); border-radius: 5px; padding: 26px 24px; display: flex; flex-direction: column; }
.pa-tag { font-family: 'DM Mono', monospace; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--err); margin-bottom: 10px; display: block; }
.pa h3 { font-size: 17px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.pa p { color: var(--ink-soft); font-size: 15px; }
.pa-fix { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--sand); }
.pa > p { margin-bottom: 14px; }
.pa-fix-tag { font-family: 'DM Mono', monospace; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 7px; display: block; }

/* numbered flow — used only where order genuinely matters */
.flow { display: grid; gap: 2px; background: var(--sand); border: 1px solid var(--sand); border-radius: 5px; overflow: hidden; }
.flow-step { background: var(--paper); padding: 22px 24px; display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start; }
.flow-n { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .1em; color: var(--gold-deep); padding-top: 3px; }
.flow-step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 5px; }
.flow-step p { color: var(--ink-soft); font-size: 15px; }

/* capability grid */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cap-grid { grid-template-columns: 1fr; } }
.cap { padding: 22px 0 0; border-top: 2px solid var(--sand); transition: border-color .25s var(--ease); }
.cap:hover { border-top-color: var(--gold); }
.cap h3 { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.cap p { color: var(--ink-soft); font-size: 15px; }

/* stat band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 820px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat-b-n { font-family: 'Young Serif', Georgia, serif; font-size: clamp(28px, 3.6vw, 40px); color: var(--gold-deep); line-height: 1.05; }
.stat-b-l { font-family: 'DM Mono', monospace; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); margin-top: 8px; }

/* honesty panel — what this is NOT */
.not { background: var(--petrol-8); border: 1px solid rgba(46,74,78,.22); border-left: 3px solid var(--petrol); border-radius: 4px; padding: 26px 28px; }
.not h3 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: 22px; margin-bottom: 14px; }
.not ul { margin: 0 0 0 19px; color: var(--ink-soft); }
.not li { margin-bottom: 8px; }

/* faq */
.faq { border-top: 1px solid var(--sand); }
.faq details { border-bottom: 1px solid var(--sand); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 4px; font-size: 17px; font-weight: 500; display: flex; justify-content: space-between; gap: 18px; align-items: center; transition: color .2s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: 'DM Mono', monospace; color: var(--gold); font-size: 18px; flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq summary:hover { color: var(--gold-deep); }
.faq-a { padding: 0 4px 22px; color: var(--ink-soft); max-width: 74ch; }
.faq-a p + p { margin-top: 12px; }

/* cross-sell */
.also-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .also-grid { grid-template-columns: 1fr; } }
.also { background: var(--paper); border: 1px solid var(--sand); border-radius: 5px; padding: 22px 22px; transition: transform .22s var(--ease), border-color .22s var(--ease); }
.also:hover { transform: translateY(-3px); border-color: rgba(200,139,46,.45); }
.also h3 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: 19px; margin-bottom: 6px; }
.also p { font-size: 14.5px; color: var(--ink-soft); }
.also-go { margin-top: 12px; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- contact + form ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; gap: 34px; } }
.contact-aside h2 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; }
.contact-aside p { margin-top: 16px; color: var(--ink-soft); }
.contact-direct { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--sand); }
.contact-direct h4 { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); margin-bottom: 8px; }
.contact-direct a { color: var(--gold-deep); font-size: 16px; }
.contact-direct a:hover { color: var(--ink); }

.form { background: var(--paper); border: 1px solid var(--sand); border-radius: 5px; padding: 30px 28px; }
@media (max-width: 620px) { .form { padding: 24px 20px; } }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field label { display: block; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); margin-bottom: 7px; }
.req { color: var(--gold-deep); }
.opt { text-transform: none; letter-spacing: .02em; color: var(--taupe); }
.field input, .field select, .field textarea {
  width: 100%; font-family: 'DM Sans', system-ui, sans-serif; font-size: 15.5px;
  color: var(--ink); background: var(--bone); border: 1px solid var(--sand);
  border-radius: 3px; padding: 12px 13px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--petrol); background: #fff; outline: none; }
.field input::placeholder, .field textarea::placeholder { color: #A8A091; }

.tel-wrap { display: flex; align-items: stretch; }
.tel-prefix { display: flex; align-items: center; padding: 0 13px; background: var(--bone-2); border: 1px solid var(--sand); border-right: 0; border-radius: 3px 0 0 3px; font-family: 'DM Mono', monospace; font-size: 14px; color: var(--ink-soft); flex: none; }
.tel-wrap input { border-radius: 0 3px 3px 0; }

.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--bone); border: 1px solid var(--sand); border-left: 3px solid var(--gold); border-radius: 3px; padding: 16px 17px; margin: 4px 0 20px; }
.consent input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--petrol); cursor: pointer; }
.consent label { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); cursor: pointer; }
.consent a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--ink); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.form-fine { font-size: 12.5px; color: var(--taupe); max-width: 34ch; }
.form-msg { margin-top: 14px; font-size: 14px; display: none; }
.form-msg.show { display: block; }
.form-msg.err { color: var(--err); }
.form-msg.ok { color: var(--petrol); }
.field-invalid input, .field-invalid textarea, .field-invalid select { border-color: var(--err); }

/* ---------- legal pages ---------- */
.legal-head { padding: 76px 0 34px; border-bottom: 1px solid var(--sand); }
.legal-head h1 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: clamp(36px, 6vw, 62px); line-height: 1.04; letter-spacing: -.015em; }
.legal-entity { margin-top: 18px; color: var(--ink-soft); max-width: 62ch; }
.legal-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); }
.legal-body { padding: 44px 0 84px; display: grid; grid-template-columns: 230px 1fr; gap: 60px; align-items: start; }
@media (max-width: 940px) { .legal-body { grid-template-columns: 1fr; gap: 30px; } }
.toc { position: sticky; top: 88px; }
@media (max-width: 940px) { .toc { position: static; padding-bottom: 20px; border-bottom: 1px solid var(--sand); } }
.toc h2 { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); margin-bottom: 13px; }
.toc a { display: block; font-size: 13.5px; color: var(--ink-soft); padding: 5px 0 5px 13px; border-left: 2px solid var(--sand); transition: color .18s var(--ease), border-color .18s var(--ease); }
.toc a:hover { color: var(--ink); border-left-color: var(--gold); }
.prose { max-width: 70ch; }
.prose h2 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: 26px; line-height: 1.2; margin: 44px 0 13px; scroll-margin-top: 92px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 15.5px; font-weight: 700; margin: 24px 0 7px; }
.prose p { color: var(--ink-soft); margin-bottom: 15px; }
.prose ul { margin: 0 0 18px 20px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 700; }

/* A2P clause block — set apart so a carrier reviewer finds it without
   reading the whole document. Do not fold back into body prose. */
.clause { background: var(--paper); border: 1px solid var(--sand); border-left: 3px solid var(--gold); border-radius: 4px; padding: 24px 26px; margin: 24px 0 28px; }
.clause-tag { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); display: block; margin-bottom: 11px; }
.clause p { color: var(--ink); margin: 0; }
.notice { background: var(--petrol-8); border: 1px solid rgba(46,74,78,.22); border-left: 3px solid var(--petrol); border-radius: 4px; padding: 24px 26px; margin: 24px 0 28px; }
.notice-tag { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--petrol); display: block; margin-bottom: 11px; }
.notice p { color: var(--ink); margin: 0 0 12px; }
.notice p:last-child { margin-bottom: 0; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 28px; margin-top: 40px; border-top: 1px solid var(--sand); }
.nav-back { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); transition: color .2s var(--ease); }
.nav-back:hover { color: var(--ink); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--bone); }
.foot-in { padding: 54px 0 38px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 34px; justify-content: space-between; align-items: flex-start; padding-bottom: 30px; border-bottom: 1px solid rgba(246,242,234,.13); }
.foot-mark { font-family: 'Young Serif', Georgia, serif; font-size: 23px; }
.foot-note { color: rgba(246,242,234,.55); font-size: 14.5px; max-width: 36ch; margin-top: 9px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 52px; }
.foot-col h4 { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.foot-col a { display: block; font-size: 14.5px; color: rgba(246,242,234,.7); padding: 3px 0; transition: color .18s var(--ease); }
.foot-col a:hover { color: var(--bone); }
.foot-bot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; padding-top: 22px; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(246,242,234,.45); }

/* ---------- scroll reveal ----------
   Gated on .js so a scripting failure leaves content visible rather than
   permanently transparent. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ledger-row, .js .reveal { opacity: 1 !important; transform: none !important; }
}
