/* LifeCare.ID® — marketing site styles.
 *
 * Brand tokens are translated from docs/design/tokens.css (the canonical source).
 * Navy (--lc-navy) is reserved by the design system for identity/consent
 * surfaces; on this marketing page it appears only on identity/developer accents
 * and the footer — green leads. Type is Cabinet Grotesk (display) + Satoshi
 * (body), self-hosted (FLAGS LC-F1/LC-F3 — Inter is superseded).
 */

/* ---- self-hosted brand fonts (Fontshare ITF Free License; see fonts/LICENSE.md) ---- */
@font-face { font-family: "Cabinet Grotesk"; src: url("/static/fonts/cabinet-grotesk-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("/static/fonts/cabinet-grotesk-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/static/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/static/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/static/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* brand palette (translated from tokens.css) */
  --lc-navy: #1F3F70;
  --lc-blue: #2E80B8;
  --lc-green: #7CB045;
  --lc-green-dark: #5E8B32;
  --lc-charcoal: #343434;
  --lc-navy-tint: #D6E0EE;

  /* marketing surface (cream, never white except cards) */
  --bg: #F5F0E8;
  --bg-elevated: #FFFFFF;
  --ink: #343434;
  --ink-muted: #5E5E58;
  --ink-faint: #8A8A82;
  --line: rgba(52, 52, 52, 0.12);

  --font-display: "Cabinet Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* radii (design spec 01 §2) */
  --r-chip: 6px; --r-input: 10px; --r-card: 16px; --r-panel: 24px;

  --maxw: 1120px;
  --shadow-sm: 0 1px 2px rgba(52,52,52,.06);
  --shadow-md: 0 8px 28px rgba(52,52,52,.08);
}

*, *::before, *::after { box-sizing: border-box; }

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-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h2 { font-size: clamp(1.75rem, 1rem + 2.6vw, 2.75rem); }
h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.015em; }
h4 { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: var(--lc-green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* focus-visible rings (design spec 02 states) */
:focus-visible { outline: 3px solid var(--lc-blue); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
.eyebrow { font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lc-green-dark); margin: 0 0 .75rem; }

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--lc-navy); color: #fff; padding: .6rem 1rem; border-radius: var(--r-input); z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap; font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.1; padding: .8rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.btn-primary { background: var(--lc-green); color: #16270a; }
.btn-primary:hover { background: var(--lc-green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--lc-navy); color: var(--lc-navy); }
.btn-navy { background: var(--lc-navy); color: #fff; }
.btn-navy:hover { background: #16315a; color: #fff; }

/* ---- header / nav ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 52px; height: 52px; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--ink-muted); font-weight: 500; font-size: .95rem; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; }
/* Collapse to logo + primary CTA before the full nav would crowd/wrap. */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---- hero ---- */
.hero { padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero h1 { font-size: clamp(2.6rem, 1.2rem + 5.4vw, 5rem); font-weight: 900; line-height: 1.02; }
.hero h1 .accent { color: var(--lc-green-dark); display: block; }
.hero .lede { font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); color: var(--ink-muted); max-width: 42ch; margin: 1.4rem 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-trust { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .9rem; font-size: .85rem; color: var(--ink-faint); }
.hero-trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lc-green); }

/* ---- zero-PHI band ---- */
.band { background: var(--lc-navy); color: #fff; }
.band .wrap { padding-block: clamp(2rem, 4vw, 3rem); }
.band .eyebrow { color: #9BC36A; }
.band h2 { color: #fff; max-width: 22ch; }
.band p { color: #C9D6EA; max-width: 60ch; margin-top: 1rem; }
.band code { font-family: var(--font-mono); font-size: .9em; background: rgba(255,255,255,.12); padding: .1em .45em; border-radius: var(--r-chip); color: #fff; }

/* ---- sections ---- */
section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-muted); font-size: 1.1rem; margin-top: .75rem; }

/* ---- audience cards ---- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.card .tag { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lc-green-dark); }
.card.dev .tag { color: var(--lc-navy); }
.card h3 { margin: .5rem 0 .6rem; }
.card p { color: var(--ink-muted); font-size: .96rem; }
.card .card-link { margin-top: auto; font-weight: 700; font-size: .92rem; }
.card.dev { border-color: var(--lc-navy-tint); background: linear-gradient(180deg, #fff, #FAFCFF); }

/* ---- architecture ---- */
.arch { background: linear-gradient(180deg, transparent, #EEF3E5 60%, transparent); }
.pillars { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pillar { background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.5rem; }
.pillar .ico { width: 40px; height: 40px; border-radius: var(--r-input); display: grid; place-items: center; background: #EAF2DD; color: var(--lc-green-dark); margin-bottom: 1rem; }
.pillar h4 { margin-bottom: .5rem; }
.pillar p { color: var(--ink-muted); font-size: .94rem; margin: 0; }
.standards { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.standards .lbl { font-size: .82rem; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; margin-right: .4rem; }
.chip { font-family: var(--font-mono); font-size: .82rem; background: var(--lc-navy-tint); color: var(--lc-navy); padding: .35em .7em; border-radius: 999px; font-weight: 500; }

/* ---- developer block ---- */
.dev-block { background: var(--lc-navy); color: #fff; border-radius: var(--r-panel); padding: clamp(2rem, 4vw, 3.2rem); display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.dev-block .eyebrow { color: #9BC36A; }
.dev-block h2 { color: #fff; }
.dev-block p { color: #C9D6EA; }
.dev-block .btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.code-card { background: #16315a; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-card); padding: 1.2rem 1.4rem; font-family: var(--font-mono); font-size: .82rem; line-height: 1.7; color: #D6E0EE; overflow-x: auto; }
.code-card .k { color: #9BC36A; } .code-card .c { color: #7E94B4; } .code-card .s { color: #E0C079; }
@media (max-width: 760px) { .dev-block { grid-template-columns: 1fr; } }

/* ---- why now ---- */
.laws { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 2rem; }
.law { border-left: 3px solid var(--lc-green); padding: .25rem 0 .25rem 1rem; }
.law strong { display: block; font-family: var(--font-display); font-weight: 800; }
.law span { color: var(--ink-muted); font-size: .92rem; }
.kicker { margin-top: 2rem; font-size: 1.05rem; color: var(--ink); max-width: 58ch; }

/* ---- reading ---- */
.reads { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.read { background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.read .tag { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lc-green-dark); }
.read h4 { margin: .6rem 0; line-height: 1.25; }
.read p { color: var(--ink-muted); font-size: .94rem; }
.read a.card-link { font-weight: 700; font-size: .92rem; }

/* ---- final CTA ---- */
.final { text-align: center; }
.final .section-head { margin-inline: auto; }
.final .hero-cta { justify-content: center; }

/* ---- footer ---- */
.site-footer { background: var(--lc-charcoal); color: #C7C7C2; padding-block: 3rem 2rem; }
.site-footer a { color: #C7C7C2; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.foot-brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: #fff; }
/* Whole lockup (mark + wordmark) in one white pill so it reads on the dark footer. */
.foot-brand { gap: .55rem; background: #fff; color: var(--lc-charcoal); border-radius: 999px; padding: .4rem 1.1rem .4rem .5rem; }
.foot-brand img { width: 30px; height: 30px; }
.foot-tag { margin-top: .8rem; max-width: 34ch; font-size: .92rem; color: #9D9D97; }
.foot-col h5 { font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #9D9D97; margin: 0 0 .9rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .92rem; }
.foot-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .82rem; color: #8A8A84; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand-col { grid-column: 1 / -1; } }
