/* CoThread: cothread.app (parent-facing)
   One stylesheet, no JavaScript, no third-party requests. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette (packages/theme in the product repo): navy #122544, blue #0076CE, emerald #00BD79 */
  --navy: #122544;
  --navy-soft: #2e4a78;
  --blue: #0076ce;
  --blue-deep: #005fa6;
  --blue-50: #f3f8fe;
  --blue-100: #e3effc;
  --blue-200: #c9e0f8;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-50: #f6f8fa;
  --white: #ffffff;
  --emerald: #047857;
  --emerald-bg: #dcf5ea;
  --amber-bg: #fbefd9;
  --amber-text: #7c4a00;

  --text: var(--navy);
  --text-muted: var(--slate-600);
  --border: #e3ebf5;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1100px;
  --gutter: 24px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { margin: 0; line-height: 1.18; letter-spacing: -0.02em; color: var(--navy); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--slate-700); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--navy); }
.nav .btn { color: var(--white); }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--navy); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--blue-50); }
.nav-mobile .panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(18,37,68,.12); padding: 8px; display: grid; }
.nav-mobile .panel a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--navy); font-weight: 500; font-size: 15px; }
.nav-mobile .panel a:hover { background: var(--blue-50); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; font-size: 15.5px; line-height: 1; padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--blue-200); }
.btn-outline:hover { border-color: var(--blue); color: var(--navy); }
.btn-sm { padding: 10px 16px; font-size: 14.5px; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(800px 420px at 90% 0%, var(--blue-100), transparent 70%), linear-gradient(180deg, var(--blue-50), var(--white)); border-bottom: 1px solid var(--border); }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 88px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.hero h1 { font-size: clamp(36px, 5vw, 56px); margin-top: 14px; letter-spacing: -0.03em; }
.hero .lead { color: var(--slate-600); font-size: clamp(18px, 1.7vw, 20px); margin-top: 20px; max-width: 32em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 20px; font-size: 15px; color: var(--slate-500); max-width: 34em; }

/* Hero image rendered from the CoThread design kit */
.kit-shot { margin: 0; justify-self: center; width: 100%; max-width: 340px; }
.kit-shot img { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: 0 30px 60px -24px rgba(18,37,68,.28); }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-tint { background: var(--blue-50); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 12px; }
.section-head p { color: var(--text-muted); font-size: 18.5px; margin-top: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 19px; letter-spacing: -0.01em; }
.card p { color: var(--text-muted); margin-top: 10px; font-size: 16px; }
.card .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-100); color: var(--blue-deep); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.pillars .card { border-top: 4px solid var(--blue); }
.aside { margin-top: 28px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; color: var(--slate-700); font-size: 16px; }
.aside strong { color: var(--navy); }
.card .h-card { font-size: 22px; letter-spacing: -0.01em; }

/* FAQ */
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 22px; letter-spacing: -0.01em; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 18px 40px 18px 0; font-weight: 600; font-size: 17px; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font-size: 24px; font-weight: 400; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--blue-deep); }
.faq details p { margin: 0 0 20px; color: var(--text-muted); font-size: 16.5px; max-width: 42em; }

/* Attorney band */
.pro-band { background: var(--navy); color: #d6e2f2; border-radius: 22px; padding: 48px; display: grid; grid-template-columns: 1.5fr auto; gap: 28px; align-items: center; }
.pro-band h2 { color: var(--white); font-size: clamp(24px, 2.8vw, 32px); }
.pro-band p { margin-top: 12px; font-size: 17px; max-width: 38em; }
.pro-band .btn { background: var(--white); color: var(--navy); }
.pro-band .btn:hover { background: var(--blue-100); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: var(--white); border-radius: 22px; padding: 52px; text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(26px, 3vw, 36px); }
.cta-band p { color: #e3effc; margin: 12px auto 0; font-size: 18px; max-width: 34em; }
.cta-band .btn { margin-top: 26px; background: var(--white); color: var(--blue-deep); }
.cta-band .btn:hover { background: var(--blue-50); }
.pt-0 { padding-top: 0; }

/* Inner pages */
.page-head { background: var(--blue-50); border-bottom: 1px solid var(--border); padding: 64px 0 48px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 46px); margin-top: 12px; }
.page-head p { color: var(--text-muted); font-size: 19px; margin-top: 16px; max-width: 40em; }
.narrow { max-width: 760px; }
.notice { margin-top: 24px; border: 1px solid #f3d9a4; background: var(--amber-bg); color: var(--amber-text); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 15.5px; }
.form-frame { width: 100%; min-height: 900px; border: 0; margin-top: 20px; border-radius: var(--radius); background: var(--white); }
.fine { color: var(--text-muted); margin-top: 18px; font-size: 15px; }

/* Legal pages */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.legal h2 { font-size: 22px; margin-top: 44px; letter-spacing: -0.01em; }
.legal h3 { font-size: 17px; margin-top: 24px; }
.legal p, .legal li { color: var(--slate-700); font-size: 16.5px; }
.legal p { margin-top: 14px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal .meta-line { color: var(--slate-500); font-size: 14px; }
.legal .toc { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--blue-50); }
.legal .toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
.legal .toc li { margin-bottom: 4px; break-inside: avoid; }
.page-404 { border-bottom: 0; padding: 120px 0; }

.join-email { margin-top: 20px; }
.join-email .btn { margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-50); border-top: 1px solid var(--border); padding: 56px 0 36px; font-size: 14.5px; color: var(--slate-600); }
.site-footer .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer .tagline { margin-top: 12px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav a { color: var(--slate-700); text-decoration: none; }
.site-footer nav a:hover { color: var(--blue); }
.site-footer .safety { margin-top: 32px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--border); font-size: 14px; color: var(--slate-700); }
.site-footer .bottom { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--slate-200); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; padding-top: 60px; padding-bottom: 72px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .pro-band { grid-template-columns: 1fr; padding: 36px 28px; }
  .cta-band { padding: 40px 24px; }
  .nav { display: none; }
  .nav-mobile { display: block; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: 64px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .legal .toc ol { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
