/* sunstackrecovery.com — brand-kit tokens (Sep 10 kit) + Recovery descriptor.
   Light grounds only; ink is text, never a background. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/plus-jakarta-sans-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #1c2a42;
  --ink-600: #2d4a6f;
  --muted: #5b6b80;
  --label: #647086; /* small uppercase labels; 4.6:1 on --ground */
  --ground: #f6f7f9;
  --surface: #ffffff;
  --hairline: #e6e9ef;
  --hairline-strong: #d7dce4;
  --descriptor: #0a9d6f; /* Recovery descriptor — fills and lockup only */
  --descriptor-text: #0b6e4f; /* descriptor as text / links */
  --ok: #136c45;

  --display: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(56px, 8vw, 88px);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--descriptor-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--descriptor-text); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); border-top: 1px solid var(--hairline); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
}
.h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; line-height: 1.12; }
.lede { font-size: clamp(16px, 1.3vw, 17px); line-height: 1.65; color: var(--muted); max-width: 560px; }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* Two-column intro used by most sections: heading left, paragraph right */
.intro { display: grid; gap: 20px 72px; align-items: end; }
@media (min-width: 900px) { .intro { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 5px 12px 5px 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--surface);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--descriptor); display: inline-block; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--descriptor-text);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
.button:hover { background: #08553d; text-decoration: none; }

.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Header ---------- */
.header { position: relative; z-index: 2; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.lockup { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.2vw, 26px); letter-spacing: -0.035em; line-height: 1; color: var(--ink); }
.lockup span { font-weight: 600; color: var(--descriptor); }
.lockup:hover { text-decoration: none; }
.nav { display: none; gap: 32px; align-items: center; font-size: 14px; font-weight: 500; }
.nav a { color: var(--ink-600); }
.nav-contact { font-size: 14px; font-weight: 600; }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  left: -10%; right: -10%; top: -60%; height: 80%;
  background: radial-gradient(50% 70% at 50% 100%, rgba(10,157,111,0.16), rgba(10,157,111,0.06) 45%, transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 40px 56px; align-items: center; padding-block: clamp(24px, 4vw, 56px) clamp(56px, 7vw, 88px); }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 640px); } }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.hero .sub { font-family: var(--display); font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.3; color: var(--ink-600); letter-spacing: -0.01em; }
.hero .body { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.hero .photo { aspect-ratio: 640 / 420; box-shadow: 0 30px 60px -30px rgba(28,42,66,0.35); border-radius: 18px; }

/* ---------- The problem ---------- */
.problem .wrap { display: grid; gap: 32px 72px; align-items: start; }
@media (min-width: 900px) { .problem .wrap { grid-template-columns: 1.4fr 1fr; } .problem .dates { padding-top: 44px; } }
.dates { display: grid; gap: 14px; }
.card .date { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }

/* ---------- What happens ---------- */
.three { display: grid; gap: 18px; margin-top: 44px; align-items: start; }
@media (min-width: 700px) { .three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .three { grid-template-columns: repeat(3, minmax(0, 1fr)) 340px; } }
.phone-card {
  display: flex; justify-content: center; align-items: flex-start;
  background: linear-gradient(180deg, #fff, var(--ground));
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 26px 26px 0; overflow: hidden; height: 440px;
}
.phone-card img { width: 290px; filter: drop-shadow(0 24px 40px rgba(28,42,66,0.28)); }
.who { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 900px) { .who { grid-template-columns: 1fr 1fr; } }
.who .photo { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .who .photo { aspect-ratio: auto; min-height: 300px; } }
.who .card { justify-content: center; padding: 30px 32px; gap: 14px; }
.who .big { font-family: var(--display); font-size: clamp(19px, 1.8vw, 22px); font-weight: 600; line-height: 1.35; color: var(--ink); }

/* ---------- Participant app ---------- */
.phones { display: grid; gap: 40px 32px; margin-top: 44px; justify-items: center; }
@media (min-width: 800px) { .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-inline: clamp(0px, 4vw, 60px); } .phones figure:nth-child(odd) { padding-top: 48px; } }
.phones figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phones img { width: min(300px, 78vw); filter: drop-shadow(0 28px 44px rgba(28,42,66,0.26)); }
.phones figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Trade-off ---------- */
.tradeoff .wrap { display: grid; gap: 28px 72px; align-items: center; }
@media (min-width: 900px) { .tradeoff .wrap { grid-template-columns: 1fr 1fr; } }
.tradeoff h2 { font-size: clamp(38px, 4.6vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.rule { border-left: 2px solid var(--descriptor); padding-left: 28px; display: flex; flex-direction: column; gap: 14px; }
.rule .strong { font-size: 20px; line-height: 1.5; font-weight: 500; }

/* ---------- Moving over ---------- */
.moving .wrap { display: grid; gap: 40px 56px; align-items: start; }
@media (min-width: 1000px) { .moving .wrap { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); } .moving .aside { position: sticky; top: 24px; } }
.moving .photo { aspect-ratio: 900 / 508; margin-top: 8px; }
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding: 26px 28px; }
.step .n { font-family: var(--mono); font-size: 28px; font-weight: 500; color: var(--descriptor-text); line-height: 1; }
.step h3 { font-size: 21px; }

/* ---------- Trust ---------- */
.trust-grid { display: grid; gap: 18px; margin-top: 36px; }
@media (min-width: 700px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-grid h3 { font-size: 17px; }
.trust-grid p { font-size: 14.5px; }
.mono { font-family: var(--mono); }

/* ---------- Contact ---------- */
.contact .wrap { display: grid; gap: 32px 56px; align-items: center; }
@media (min-width: 900px) { .contact .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); } }
.contact .photo { aspect-ratio: 960 / 542; }

/* ---------- Footer ---------- */
.footer .wrap { display: grid; gap: 32px 40px; padding-block: 56px 48px; align-items: start; }
@media (min-width: 800px) { .footer .wrap { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer .brand img { width: 160px; }
.footer .brand p { font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 340px; margin-top: 16px; }
.footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer nav a { color: var(--ink-600); }
.footer .copy { font-family: var(--mono); font-size: 12px; color: var(--label); margin-top: 14px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; padding-block: 32px 88px; }
.legal h1 { font-size: clamp(34px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.legal .updated { font-family: var(--mono); font-size: 12.5px; color: var(--label); margin-top: 10px; }
.legal h2 { font-size: 21px; font-weight: 700; margin-top: 36px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 12px 0 0; }

/* One quiet entrance on load; nothing continuous. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: 0.08s; }
  .rise.d2 { animation-delay: 0.16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
.steps { list-style: none; padding: 0; margin: 0; }
.step .stack { gap: 8px; }
.sample-note { margin-top: 36px; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--label); }
