/*
 * SaaS Law homepage and the pages rebuilt on the same system: /platform/,
 * /law-firm/, /about/ and /blog/.
 *
 * Page sections for those pages only. The header and footer come from
 * chrome.css, shared with every page; neither page loads site.css.
 * Navy authority ground, gold accent, Fraunces display over Inter, with the
 * redline card as the recurring proof motif.
 */

:root {
  --navy: #0F2A5E;
  --navy-deep: #0A1F47;
  --blue: #1A459D;
  --blue-soft: #EDF1FA;
  --gold: #E8B824;
  --gold-deep: #B8860B;
  --ink: #15202E;
  --muted-txt: #6B7685;
  --txt-muted: #55616F;
  --paper: #FFFFFF;
  --canvas: #FAF8F3;
  --band: #F3EFE6;
  --line: #E4E0D4;
  --line-cool: #E3E7EF;
  --red: #C0392B;
  --green: #0F7A4D;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --maxw: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--body); background: var(--canvas); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; font-family: var(--display); }
[hidden] { display: none !important; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

.sl-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; font-weight: 600; }
.sl-skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }


/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 10px 18px; font-size: 14.5px; font-weight: 600; cursor: pointer; border: 1px solid transparent; font-family: var(--body); transition: transform .1s, box-shadow .15s, background .12s, border-color .12s; white-space: nowrap; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 2px 10px color-mix(in srgb, var(--navy) 30%, transparent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--navy) 36%, transparent); }
.btn-gold { background: var(--gold); color: #3A2C00; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--gold) 45%, transparent); }
.btn-ghost { color: var(--navy); border-color: var(--line); background: var(--paper); }
.btn-ghost:hover { border-color: var(--muted-txt); }
.btn-lg { padding: 14px 24px; font-size: 15.5px; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---- eyebrow ---- */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--gold-deep); }
.eyebrow .rule { width: 26px; height: 1.5px; background: var(--gold); }
.eyebrow.ctr { justify-content: center; }

/* ---- hero ---- */
.hero { padding-block: 60px 44px; }
.hero--tight { padding-top: 28px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; }
h1.hero-h { font-size: clamp(38px, 5.3vw, 62px); line-height: 1.02; font-weight: 600; letter-spacing: -1.4px; color: var(--navy); margin-top: 22px; }
h1.hero-h em { font-style: italic; color: var(--gold-deep); }
/* A headline too long for one line at full size: scales with the viewport
   so it stays on one line down to tablet width, then wraps like the rest. */
h1.hero-h--long { font-size: clamp(34px, 3.55vw, 50px); letter-spacing: -1px; }
.hero-sub { font-size: 18.5px; color: var(--txt-muted); margin-top: 22px; max-width: 30em; line-height: 1.55; }
.hero-cta { display: flex; gap: 13px; margin-top: 30px; flex-wrap: wrap; }
.hero-micro { font-size: 13px; color: var(--muted-txt); margin-top: 16px; }
.hero-foot { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 26px; flex-wrap: wrap; }
.hfoot .n { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--navy); letter-spacing: -.3px; }
.hfoot .l { font-size: 12.5px; color: var(--muted-txt); margin-top: 2px; }

/* ---- redline proof card ---- */
.redcard { background: var(--paper); border: 1px solid var(--line-cool); border-radius: 16px; box-shadow: 0 20px 50px color-mix(in srgb, var(--navy) 12%, transparent); overflow: hidden; }
.redcard-top { display: flex; align-items: center; gap: 8px; padding: 12px 15px; border-bottom: 1px solid var(--line-cool); background: var(--canvas); }
.rc-dot { width: 10px; height: 10px; border-radius: 50%; }
.rc-dot.r { background: #E5564A; }
.rc-dot.y { background: #F2B733; }
.rc-dot.g { background: #3FB56C; }
.rc-file { margin-left: 7px; font-size: 12px; color: var(--muted-txt); font-family: var(--mono); }
.rc-pill { margin-left: auto; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 3px 9px; border-radius: 5px; }
.redcard-body { padding: 18px 19px; font-size: 14px; line-height: 1.75; }
.rc-label { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-txt); font-weight: 600; margin-bottom: 10px; }
.ins { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.del { color: var(--red); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.redcard-foot { display: flex; align-items: center; gap: 9px; padding: 13px 19px; border-top: 1px solid var(--line-cool); background: var(--canvas); }
.rc-tag { font-family: var(--mono); font-size: 10.5px; background: var(--paper); border: 1px solid var(--line-cool); padding: 2px 7px; border-radius: 5px; color: var(--muted-txt); }
.rc-ok { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--green); }
.rc-ok svg { width: 13px; height: 13px; }
.rc-ok--sent { color: var(--blue); }
.redcard-note { padding: 13px 19px 16px; border-top: 1px solid var(--line-cool); }
.rc-note-tag { display: inline-flex; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); background: color-mix(in srgb, var(--gold) 20%, transparent); padding: 4px 9px; border-radius: 5px; margin-bottom: 9px; }
.rc-note-txt { font-size: 12.5px; color: var(--txt-muted); line-height: 1.55; }

/* ---- section scaffold ---- */
.sec { padding-block: 64px; }
.sec-band { background: var(--band); }
.sec-navy { background: var(--navy); color: #fff; }
.sec-head { max-width: 40em; }
.sec-head.ctr { margin: 0 auto; text-align: center; }
h2.sec-h { font-size: clamp(28px, 3.6vw, 38px); font-weight: 600; letter-spacing: -.6px; line-height: 1.12; margin-top: 14px; color: var(--navy); }
.sec-navy h2.sec-h { color: #fff; }
.sec-lead { font-size: 17.5px; color: var(--txt-muted); margin-top: 16px; line-height: 1.55; }
.sec-navy .sec-lead { color: #C4D0E4; }
.sec-navy .eyebrow { color: var(--gold); }

/* ---- three-up ---- */
.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.triad.two { grid-template-columns: repeat(2, 1fr); }
.tri { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: 26px 24px; }
.sec-navy .tri { background: color-mix(in srgb, #fff 6%, transparent); border-color: color-mix(in srgb, #fff 12%, transparent); }
.tri-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--blue-soft); display: grid; place-items: center; margin-bottom: 16px; }
.sec-navy .tri-ic { background: color-mix(in srgb, var(--gold) 18%, transparent); }
.tri-ic svg { width: 21px; height: 21px; stroke: var(--blue); }
.sec-navy .tri-ic svg { stroke: var(--gold); }
.tri { container-type: inline-size; }
.tri h3 { font-size: clamp(15px, 6cqi, 18px); font-weight: 600; color: var(--navy); margin-bottom: 8px; letter-spacing: -.2px; font-family: var(--body); }
.sec-navy .tri h3 { color: #fff; }
.tri p { font-size: 14px; color: var(--txt-muted); line-height: 1.6; }
.sec-navy .tri p { color: #B9C6DE; }

/* ---- how row ---- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.step-n { font-family: var(--display); font-size: 15px; font-weight: 600; color: #fff; background: var(--gold-deep); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 7px; font-family: var(--body); letter-spacing: -.2px; }
.step p { font-size: 14px; color: var(--txt-muted); line-height: 1.6; }

/* ---- firm/platform split ---- */
.duo-head { display: flex; align-items: center; gap: 28px; }
.duo-head .rule { flex: 1; min-width: 24px; height: 2px; background: var(--gold); }
.duo-head h2.sec-h { margin-top: 0; font-size: clamp(34px, 5.4vw, 56px); letter-spacing: -1px; text-align: center; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.duo-head + .duo { margin-top: 32px; }
.door { border-radius: 16px; padding: 32px 30px; border: 1px solid var(--line); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.door.firm { background: var(--navy); color: #fff; border-color: transparent; }
.door.plat { background: var(--paper); }
.door-tag { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.door.firm .door-tag { color: var(--gold); }
.door.plat .door-tag { color: var(--blue); }
.door h3 { font-size: 24px; font-weight: 600; letter-spacing: -.4px; line-height: 1.12; margin-bottom: 11px; }
.door.plat h3 { color: var(--navy); }
.door p { font-size: 14.5px; line-height: 1.6; margin-bottom: 20px; }
.door.firm p { color: #C4D0E4; }
.door.plat p { color: var(--txt-muted); }
.door ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.door li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.door li svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.door.firm li { color: #DCE5F2; }
.door.firm li svg { stroke: var(--gold); }
.door.firm li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.door.plat li { color: var(--ink); }
.door.plat li svg { stroke: var(--blue); }
.door .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ---- practice-area list ---- */
.hero-narrow { max-width: 40em; }
.prose { margin-top: 28px; max-width: 44em; }
.prose p { font-size: 17px; color: var(--txt-muted); line-height: 1.7; }
.prose p + p { margin-top: 18px; }
.svc-list { margin-top: 36px; border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: 50px 1fr auto; gap: 20px; align-items: center; padding: 19px 6px; border-bottom: 1px solid var(--line); transition: background .12s, padding-left .14s; }
.svc-row:hover { background: var(--paper); padding-left: 14px; }
.svc-num { font-family: var(--mono); font-size: 12.5px; color: var(--gold-deep); font-weight: 500; }
.svc-main h3 { font-size: 17.5px; font-weight: 600; color: var(--navy); letter-spacing: -.2px; font-family: var(--body); }
.svc-main p { font-size: 13.5px; color: var(--txt-muted); margin-top: 2px; }
.svc-go { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .14s, border-color .14s; }
.svc-row:hover .svc-go { border-color: var(--gold); background: var(--gold); }
.svc-go svg { width: 14px; height: 14px; stroke: var(--muted-txt); transition: stroke .14s; }
.svc-row:hover .svc-go svg { stroke: #3A2C00; }
.svc-more { margin-top: 28px; }

/* ---- article cards (/blog/) ---- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; padding: 24px; transition: transform .12s, box-shadow .15s, border-color .12s; }
.post:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 14px 34px color-mix(in srgb, var(--navy) 10%, transparent); }
.post-date { font-family: var(--mono); font-size: 11.5px; color: var(--gold-deep); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.post-title { font-size: 20px; font-weight: 600; color: var(--navy); line-height: 1.22; letter-spacing: -.3px; margin-top: 10px; }
.post-dek { font-size: 14px; color: var(--txt-muted); line-height: 1.6; margin-top: 10px; }
.post-go { margin-top: auto; padding-top: 20px; }
.post-go svg { width: 34px; height: 34px; padding: 9px; border-radius: 50%; border: 1px solid var(--line); stroke: var(--muted-txt); transition: background .14s, border-color .14s, stroke .14s; }
.post:hover .post-go svg { background: var(--gold); border-color: var(--gold); stroke: #3A2C00; }

/* ---- attorney ---- */
.atty { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: start; margin-top: 38px; }
.atty-photo { width: 260px; height: 300px; border-radius: 16px; overflow: hidden; background: linear-gradient(150deg, var(--blue), var(--navy)); box-shadow: 0 18px 44px color-mix(in srgb, var(--navy) 24%, transparent); }
.atty-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atty-name { font-family: var(--display); font-size: 27px; font-weight: 600; color: var(--navy); letter-spacing: -.3px; line-height: 1.2; }
.atty-role { color: var(--gold-deep); font-weight: 600; font-size: 14px; margin: 5px 0 18px; display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.atty-lic { font-family: var(--mono); font-size: 11px; color: var(--muted-txt); background: var(--band); border: 1px solid var(--line); padding: 2px 8px; border-radius: 5px; font-weight: 500; }
.atty-bio { color: var(--txt-muted); font-size: 15px; line-height: 1.72; margin-bottom: 13px; max-width: 44em; }
.atty-bio a { color: var(--blue); font-weight: 600; }
.atty-bio a:hover { text-decoration: underline; }
.atty-tags { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; list-style: none; }
.atty-tags li { font-size: 12.5px; color: var(--txt-muted); border: 1px solid var(--line); border-radius: 20px; padding: 5px 13px; background: var(--paper); }

/* ---- assurance ---- */
.assure { margin-top: 40px; border-radius: 16px; background: var(--navy); color: #fff; padding: 34px 36px; display: flex; gap: 26px; align-items: center; position: relative; overflow: hidden; }
.assure::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%); }
.assure-ic { width: 58px; height: 58px; border-radius: 15px; background: color-mix(in srgb, var(--gold) 18%, transparent); display: grid; place-items: center; flex-shrink: 0; position: relative; }
.assure-ic svg { width: 29px; height: 29px; stroke: var(--gold); }
.assure-txt { position: relative; }
.assure-txt h3 { font-size: 22px; font-weight: 600; letter-spacing: -.3px; margin-bottom: 7px; color: #fff; }
.assure-txt p { color: #C4D0E4; font-size: 14.5px; line-height: 1.55; max-width: 52em; }

/* ---- faq ---- */
.faq { margin-top: 36px; max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; font-family: var(--body); font-size: 16.5px; font-weight: 600; color: var(--navy); padding: 20px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q svg { width: 19px; height: 19px; stroke: var(--gold-deep); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 0 20px; font-size: 15px; color: var(--txt-muted); line-height: 1.62; max-width: 56em; }

/* ---- CTA + early-access form ---- */
.cta { text-align: center; padding-block: 72px; }
.cta h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 600; letter-spacing: -.8px; color: var(--navy); line-height: 1.06; max-width: 16em; margin: 14px auto 0; }
.cta .cta-lead { font-size: 18px; color: var(--txt-muted); margin: 16px auto 0; max-width: 34em; }
.cta .hero-cta { justify-content: center; }
.cta .micro { font-size: 13px; color: var(--muted-txt); margin-top: 16px; }
.cta .alt { font-size: 14.5px; color: var(--txt-muted); margin-top: 10px; }
.cta .alt a { color: var(--blue); font-weight: 600; }
.cta .alt a:hover { text-decoration: underline; }

.sl-form { max-width: 640px; margin: 32px auto 0; text-align: left; background: var(--paper); border: 1px solid var(--line-cool); border-radius: 16px; padding: 28px; box-shadow: 0 20px 50px color-mix(in srgb, var(--navy) 10%, transparent); }
.sl-form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.sl-field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.sl-field__opt { font-size: 12px; font-weight: 400; color: var(--muted-txt); margin-left: 5px; }
.sl-field input { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; transition: border-color .12s, box-shadow .12s; }
.sl-field input:hover { border-color: #CFC9B8; }
.sl-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 15%, transparent); }
.sl-field input.is-invalid { border-color: var(--red); }
.sl-field input.is-invalid:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 15%, transparent); }
.sl-field__help { font-size: 12.5px; color: var(--muted-txt); margin-top: 6px; line-height: 1.45; }
.sl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sl-form__actions { margin-top: 24px; }
.sl-form__actions .btn { width: 100%; justify-content: center; }
.sl-form__status { margin-top: 14px; font-size: 14px; text-align: center; color: var(--txt-muted); }
.sl-form__status:empty { display: none; }
.sl-form__status.is-error { color: var(--red); }
.sl-form__status.is-ok { color: var(--green); }
.sl-form__done { max-width: 640px; margin: 32px auto 0; background: var(--paper); border: 1px solid var(--line-cool); border-radius: 16px; padding: 28px; }
.sl-form__done p { font-size: 15px; color: var(--txt-muted); }
.sl-form__done .sl-form__done-title { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }

/* reveal — only armed once JS confirms it can observe; default state is fully visible */
.js-reveal .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post, .post:hover { transform: none; transition: none; }
  .js-reveal .rv { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 860px) {
  .hero-grid, .triad, .triad.two, .how, .duo, .atty { grid-template-columns: 1fr; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: 38px 1fr auto; gap: 13px; }
  .assure { flex-direction: column; text-align: center; align-items: center; padding: 30px 24px; }
  .hero { padding-block: 40px 36px; }
  .hero--tight { padding-top: 22px; }
  .sec { padding-block: 52px; }
}

@media (max-width: 560px) {
  .posts { grid-template-columns: 1fr; }
  .sl-form { padding: 22px 18px; }
  .sl-form__grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .door { padding: 28px 22px; }
  .duo-head { gap: 14px; }
}
