/* F1 — public landing page. Extracted verbatim from docs/design/mockups/landing.html
   <style> block; loaded after lod.css (shared tokens/reset) via the page() shell. */

html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body { margin: 0; background: oklch(0.10 0.01 275); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }

h1, h2, h3 { margin: 0; font-weight: inherit; font-size: inherit; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { flex: none; }
a:focus-visible, button:focus-visible, label:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--primary-2); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* icon defaults — stroke system, matches the app mocks */
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- Top nav ---------------- */
.nav { position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklch, oklch(0.10 0.01 275), transparent 12%);
  backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in oklch, var(--line), transparent 45%); }
.nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .mk { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: color-mix(in oklch, var(--primary) 24%, transparent);
  border: 1px solid color-mix(in oklch, var(--line), var(--primary) 45%); color: var(--primary-2); }
.brand .mk .ico { width: 21px; height: 21px; }
.brand .bt { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.05; }
.brand .bs { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.11em; color: var(--faint); margin-top: 2px; }
.nav .links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav .links a.txt { color: var(--muted); font-size: 0.9rem; padding: 9px 12px; border-radius: 8px; }
.nav .links a.txt:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 0.92rem; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease); }
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary-2); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn.ghost:hover { border-color: color-mix(in oklch, var(--line), var(--primary) 40%); background: var(--surface); }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: 1rem; border-radius: 12px; }
.nav .links .signin { color: var(--ink); font-size: 0.92rem; padding: 9px 14px; border-radius: 8px; }
.nav .links .signin:hover { background: var(--surface); }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% -10%, color-mix(in oklch, var(--primary) 15%, transparent), transparent 55%),
    radial-gradient(90% 70% at 8% 0%, color-mix(in oklch, var(--primary) 7%, transparent), transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center;
  padding-top: 76px; padding-bottom: 84px; }
.hcopy { max-width: 33ch; }
.kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  font-size: 0.8rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px 6px 10px; }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: none;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--good), transparent 82%); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.3rem); font-weight: 750; letter-spacing: -0.03em; }
.hero h1 .em { color: var(--primary-2); }
.hlede { margin-top: 22px; font-size: 1.12rem; color: var(--muted); line-height: 1.55; max-width: 44ch; }
.hcta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hnote { margin-top: 18px; font-size: 0.86rem; color: var(--faint); display: inline-flex; align-items: center; gap: 8px; }
.hnote .ico { width: 15px; height: 15px; color: var(--primary-2); }

/* Hero entrance — enhances an already-visible default; opacity stays 1 so it never ships blank */
.rise { animation: rise 0.6s var(--ease) both; }
.rise.d1 { animation-delay: 0.06s; }
.rise.d2 { animation-delay: 0.12s; }
@keyframes rise { from { transform: translateY(12px); } to { transform: none; } }

/* ---------------- Device frame (faithful reduction of combat-turn-loop) ---------------- */
.device { justify-self: end; width: 100%; max-width: 500px;
  border: 1px solid var(--line); border-radius: 20px; padding: 12px;
  background: linear-gradient(160deg, var(--surface), oklch(0.14 0.011 275));
  box-shadow: 0 30px 70px -30px oklch(0.03 0.02 275 / 0.9), 0 2px 0 0 color-mix(in oklch, var(--line), transparent 40%) inset; }
.mini { border-radius: 12px; overflow: hidden; background: var(--bg); border: 1px solid var(--line);
  font-size: 12px; line-height: 1.3; }
.mtop { display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: var(--surface); border-bottom: 1px solid var(--line); }
.mtop .mt-name { font-weight: 650; font-size: 0.82rem; letter-spacing: -0.005em; }
.mtop .mt-sub { color: var(--faint); font-size: 0.64rem; }
.mtop .mt-live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.62rem; color: var(--good); }
.mtop .mt-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.mbody { display: grid; grid-template-columns: 126px 1fr; min-height: 288px; }

.mrail { background: var(--surface); border-right: 1px solid var(--line); padding: 9px 8px;
  display: flex; flex-direction: column; gap: 6px; }
.mrail .rh { font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint);
  font-weight: 700; margin: 2px 3px 3px; }
.tok { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center;
  padding: 6px 7px; border-radius: 9px; border: 1px solid transparent; background: var(--surface-2); }
.tok.active { background: var(--primary-tint); border-color: var(--primary); }
.tok.foe { background: color-mix(in oklch, var(--surface-2), var(--danger) 8%); }
.tok.downed { border-color: var(--warn); background: color-mix(in oklch, var(--surface-2), var(--warn) 9%); }
.tok .m { width: 22px; height: 22px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 700; font-size: 0.62rem; color: var(--muted); }
.tok.foe .m { color: var(--danger); border-color: color-mix(in oklch, var(--line), var(--danger) 40%); }
.tok .nm { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px; font-weight: 600; font-size: 0.66rem; }
.tok .nn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tok .now { font-size: 0.5rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--primary); color: var(--primary-ink); padding: 1px 5px; border-radius: 999px; }
.tok .fp { font-size: 0.5rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  background: color-mix(in oklch, var(--bg), var(--danger) 22%); color: var(--danger); padding: 1px 5px; border-radius: 999px; }
.tok .sp { font-size: 0.5rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  background: color-mix(in oklch, var(--surface), var(--warn) 22%); color: var(--warn); padding: 1px 5px; border-radius: 999px; }
.bar { height: 5px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
  overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; width: var(--pct); background: var(--fill); }

.mmain { padding: 12px; display: flex; flex-direction: column; gap: 11px; }
.mresult { display: flex; align-items: flex-start; gap: 8px; font-size: 0.68rem; color: var(--muted); line-height: 1.4; }
.mresult .tag { flex: none; font-size: 0.54rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--good-tint); color: var(--good); border: 1px solid color-mix(in oklch, var(--line), var(--good) 40%);
  padding: 2px 7px; border-radius: 999px; margin-top: 1px; }
.mresult b { color: var(--ink); }
.moffer { background: var(--surface); border: 1px solid color-mix(in oklch, var(--line), var(--primary) 30%);
  border-radius: 11px; padding: 12px 13px; }
.moffer .q { font-weight: 700; font-size: 0.78rem; }
.moffer .hint { color: var(--muted); font-size: 0.66rem; margin-top: 4px; line-height: 1.4; }
.mstep { margin-top: 11px; display: flex; align-items: center; gap: 8px; }
.mstep .pm { width: 26px; height: 26px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 0.9rem; color: var(--muted); }
.mstep .cnt { font-size: 0.72rem; } .mstep .cnt b { font-weight: 700; }
.mstep .cnt .sug { color: var(--faint); }
.macts { margin-top: 12px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.macts .b { min-height: 34px; border-radius: 8px; font-size: 0.72rem; font-weight: 650;
  display: inline-flex; align-items: center; justify-content: center; }
.macts .skip { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.macts .apply { background: var(--primary); color: var(--primary-ink); }

/* caption under the device */
.devcap { margin-top: 16px; text-align: center; font-size: 0.82rem; color: var(--faint); }

/* ---------------- Section shells ---------------- */
section { position: relative; }
.band { padding: 84px 0; }
.band.alt { background: color-mix(in oklch, var(--bg), transparent 0%); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }
.shead { max-width: 52ch; margin: 0 auto 52px; text-align: center; }
.shead .eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--primary-2); }
.shead h2 { margin-top: 14px; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -0.02em; }
.shead p { margin-top: 16px; font-size: 1.04rem; color: var(--muted); line-height: 1.55; }

/* ---------------- Promises ---------------- */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color 0.15s var(--ease), transform 0.15s var(--ease); }
.promise:hover { border-color: color-mix(in oklch, var(--line), var(--primary) 32%); transform: translateY(-2px); }
.promise .pi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in oklch, var(--primary) 16%, transparent);
  border: 1px solid color-mix(in oklch, var(--line), var(--primary) 34%); color: var(--primary-2); margin-bottom: 18px; }
.promise .pi .ico { width: 22px; height: 22px; }
.promise h3 { font-size: 1.16rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
.promise p { margin-top: 11px; color: var(--muted); font-size: 0.94rem; line-height: 1.55; }
.promise .eg { margin-top: 15px; font-size: 0.82rem; color: var(--faint);
  border-top: 1px dashed var(--line); padding-top: 13px; }
.promise .eg code { font-family: inherit; color: var(--ink); }

/* ---------------- Surfaces ---------------- */
.surfaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.surf { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.15s var(--ease); }
.surf:hover { border-color: color-mix(in oklch, var(--line), var(--primary) 30%); }
.surf .frame { align-self: flex-start; display: grid; place-items: center; color: var(--primary-2);
  width: 52px; height: 52px; border-radius: 13px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 8px; }
.surf .frame .ico { width: 26px; height: 26px; }
.surf .role { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); }
.surf h3 { font-size: 1.14rem; font-weight: 650; letter-spacing: -0.01em; margin-top: 2px; }
.surf p { margin-top: 9px; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.surf .meta { margin-top: 14px; font-size: 0.8rem; color: var(--faint); }

/* ---------------- Rooted-in-myth band ---------------- */
.myth .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.myth-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; }
.myth-copy p { margin-top: 18px; color: var(--muted); font-size: 1.02rem; line-height: 1.6; max-width: 42ch; }
.myth-copy .aside { margin-top: 18px; font-size: 0.88rem; color: var(--faint); }
.clans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.clan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px; }
.clan .cn { font-size: 1.02rem; font-weight: 650; letter-spacing: -0.01em; }
.clan .cg { margin-top: 5px; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.clan .cr { margin-top: 12px; font-size: 0.72rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------------- Final CTA ---------------- */
.cta { text-align: center; }
.cta .box { position: relative; overflow: hidden; border: 1px solid color-mix(in oklch, var(--line), var(--primary) 26%);
  border-radius: 22px; padding: 64px 32px;
  background:
    radial-gradient(90% 130% at 50% -20%, color-mix(in oklch, var(--primary) 20%, transparent), transparent 60%),
    var(--surface); }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 750; letter-spacing: -0.025em; }
.cta p { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }
.cta .row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta .fine { margin-top: 18px; font-size: 0.84rem; color: var(--faint); }

/* ---------------- Footer ---------------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; }
.foot .flinks { display: flex; flex-wrap: wrap; gap: 20px; }
.foot .flinks a { color: var(--muted); font-size: 0.9rem; }
.foot .flinks a:hover { color: var(--ink); }
.foot .fnote { font-size: 0.82rem; color: var(--faint); max-width: 46ch; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding-top: 52px; padding-bottom: 60px; }
  .hcopy { max-width: none; }
  .device { justify-self: center; }
  .myth .wrap { grid-template-columns: 1fr; gap: 32px; }
  .promises, .surfaces { grid-template-columns: 1fr; }
  .nav .links a.txt { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .band { padding: 60px 0; }
  .clans { grid-template-columns: 1fr; }
  .btn.lg { width: 100%; }
  .hcta { flex-direction: column; align-items: stretch; }
  .nav .brand .bs { display: none; }
  .nav .links { gap: 2px; }
  .nav .links .signin { white-space: nowrap; padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .rise { opacity: 1 !important; transform: none !important; }
}
