/* SpadaShield site. Dark by design, like the logo's field.
   Layout: one calm column (max 1120 px); the hero splits into the headline and
   the one slow object, the tiled shield. Everything else is text, hairlines and space. */
@font-face {
  font-family: "Saira";
  src: url("/assets/fonts/Saira.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
}

:root {
  --night: #070b14;      /* page ground */
  --night-2: #0a1120;    /* raised bands */
  --panel: #0d1626;      /* cards */
  --rule: #1a2536;       /* hairlines */
  --rule-2: #26354d;     /* control borders */
  --fg: #eef1f5;         /* text */
  --muted: #a3afbf;      /* secondary text */
  --dim: #7d8a9b;        /* labels */
  --silver: #dfe4ea;     /* the left half */
  --blue: #4a97ff;       /* links, the "Shield" blue on dark */
  --blue-btn: #1764e0;   /* filled buttons */
  --blue-btn-hover: #1f72f5;
  --cyan: #0fb6fc;       /* the sheen: used sparingly */
  --amber: #ffb547;      /* "stopped", in the hero only */

  --display: "Saira", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 3.4vw, 2.35rem);
  --step-3: clamp(2.5rem, 6.2vw, 4.6rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #7cb4ff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(74, 151, 255, .35); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; background: var(--panel); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 560px) { .wrap { padding-inline: 16px; } }

h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-stretch: 112%; font-size: var(--step-3); line-height: 1.0; letter-spacing: -0.025em; }
h2 { font-weight: 700; font-stretch: 110%; font-size: var(--step-2); line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-weight: 700; font-stretch: 105%; font-size: var(--step-1); line-height: 1.2; }
p { margin: 0; }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 60ch; }
.lead strong { color: var(--fg); font-weight: 600; }
.eyebrow { font-family: var(--display); font-weight: 600; font-stretch: 112%; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(7, 11, 20, .86); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
@media (max-width: 760px) {
  .head-row { flex-wrap: wrap; gap: 10px 16px; padding-block: 10px; }
  .brand img { height: 26px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 18px; overflow-x: auto; padding-bottom: 2px; }
  .head-cta { margin-left: auto; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 600; font-stretch: 108%; font-size: 1rem; letter-spacing: 0.01em; line-height: 1; padding: 13px 20px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--blue-btn); color: #fff; box-shadow: 0 0 0 1px rgba(15, 182, 252, .18), 0 8px 28px -10px rgba(23, 100, 224, .7); }
.btn-primary:hover { background: var(--blue-btn-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--rule-2); }
.btn-ghost:hover { border-color: #3a4d6b; color: var(--fg); background: rgba(255, 255, 255, .03); }
.btn-sm { padding: 9px 14px; font-size: 0.9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(16, 76, 170, .28), rgba(7, 11, 20, 0) 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-block: 72px 80px; }
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--muted); border: 1px solid var(--rule-2); border-radius: 999px; padding: 6px 14px 6px 8px; background: rgba(13, 22, 38, .7); }
.pill b { font-family: var(--display); font-weight: 700; font-stretch: 110%; font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--night); background: var(--silver); border-radius: 999px; padding: 3px 8px; }
.hero .lead { font-size: 1.25rem; }
.hero-note { font-size: var(--step--1); color: var(--dim); }
.stage { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; }
.stage canvas { width: 100%; max-width: 470px; aspect-ratio: 1 / 1.06; display: block; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 48px 56px; gap: 28px; }
  .stage canvas { max-width: 360px; }
}

/* the logo's sub-line, as a strip under the hero */
.tagstrip { border-bottom: 1px solid var(--rule); background: var(--night-2); }
.tagstrip-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 18px; }
.tagstrip span { font-family: var(--display); font-weight: 600; font-stretch: 112%; font-size: 0.8125rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tagstrip span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 12px; border-radius: 2px; background: var(--cyan); vertical-align: 1px; box-shadow: 0 0 10px rgba(15, 182, 252, .6); }
@media (max-width: 640px) { .tagstrip-row { justify-content: flex-start; } }

/* spacing hooks (no inline styles: the CSP blocks them) */
#price-note, #day30, #ms-note, #after20 { margin-top: 24px; }
#free-head { margin-top: 40px; margin-bottom: 24px; }

/* sections */
.section { padding-block: 88px; border-bottom: 1px solid var(--rule); }
.section.alt { background: var(--night-2); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 44px; }
@media (max-width: 560px) { .section { padding-block: 64px; } .section-head { margin-bottom: 32px; } }

.prose { max-width: 66ch; display: grid; gap: 16px; }
.prose p { color: var(--muted); }
.prose p strong { color: var(--fg); font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--rule-2); padding-top: 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 600; font-stretch: 112%; font-size: 0.8125rem; letter-spacing: .12em; color: var(--cyan); }
.steps p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; }
.grid-2 > * { min-width: 0; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.item { display: grid; gap: 8px; padding-block: 18px; border-top: 1px solid var(--rule); align-content: start; }
.item p { color: var(--muted); }

.catch { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.catch li { border: 1px solid var(--rule-2); border-radius: 999px; padding: 6px 14px; font-size: 0.9375rem; color: var(--silver); background: rgba(13, 22, 38, .6); }

.limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.limits li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 8px 32px; padding-block: 18px; border-top: 1px solid var(--rule); }
.limits li:last-child { border-bottom: 1px solid var(--rule); }
.limits strong { font-family: var(--display); font-weight: 600; font-stretch: 105%; }
.limits span { color: var(--muted); }
@media (max-width: 680px) { .limits li { grid-template-columns: minmax(0, 1fr); } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1040px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { border: 1px solid var(--rule-2); border-radius: 16px; background: var(--panel); padding: 24px; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 14px; min-width: 0; }
.plan.feature { border-color: #2e5ba6; box-shadow: inset 0 1px 0 rgba(15, 182, 252, .25); }
.plan h3 { font-size: 1.125rem; }
.price { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 2.25rem; line-height: 1; letter-spacing: -0.02em; }
.price small { font-family: var(--body); font-weight: 400; font-size: 0.9375rem; color: var(--muted); letter-spacing: 0; }
.plan .sub { color: var(--muted); font-size: 0.9375rem; }
.plan ul { margin: 0; padding-left: 1.1em; display: grid; align-content: start; gap: 8px; font-size: 0.9375rem; color: var(--silver); }
.plan ul li::marker { color: var(--dim); }
.plan .btn { width: 100%; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule-2); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--display); font-weight: 600; font-stretch: 108%; color: var(--dim); font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; background: var(--night-2); }
tr:last-child td { border-bottom: 0; }
td { color: var(--muted); }
td:first-child { color: var(--fg); }

/* faq */
.faq { display: grid; gap: 0; max-width: 820px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-family: var(--display); font-weight: 600; font-stretch: 105%; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; color: var(--dim); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 20px; color: var(--muted); display: grid; gap: 10px; max-width: 70ch; }

/* request pages */
.page-head { padding-block: 64px 40px; border-bottom: 1px solid var(--rule); }
.page-head .lead { margin-top: 16px; }
.mail-card { border: 1px solid var(--rule-2); border-radius: 16px; background: var(--panel); padding: 28px; display: grid; gap: 18px; max-width: 720px; }
.addr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.addr code { font-family: var(--mono); font-size: 1rem; color: var(--fg); background: var(--night); border: 1px solid var(--rule-2); border-radius: 8px; padding: 9px 12px; user-select: all; overflow-wrap: anywhere; }
.copy-state { font-size: var(--step--1); color: var(--dim); min-height: 1.4em; }
.include { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--muted); }
.note { border-left: 2px solid var(--cyan); padding: 4px 0 4px 16px; color: var(--muted); max-width: 66ch; }
.note strong { color: var(--fg); font-weight: 600; }

/* cta band */
.cta-band { padding-block: 80px; text-align: left; }
.cta-band .wrap { display: grid; gap: 20px; justify-items: start; }

/* footer */
.site-foot { padding-block: 48px 56px; color: var(--dim); font-size: var(--step--1); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 28px; }
.foot-grid > * { min-width: 0; }
.foot-grid img { height: 28px; width: auto; display: block; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--fg); }
.foot-h { font-family: var(--display); font-weight: 600; font-stretch: 110%; letter-spacing: .14em; text-transform: uppercase; font-size: 0.6875rem; color: var(--dim); margin-bottom: 10px; }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); }
@media (max-width: 680px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* DRAFT legal pages (preview only until Eric and counsel approve) */
.legal-doc { max-width: 780px; display: grid; gap: 14px; }
.legal-doc h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 4px; }
.legal-doc h2 { font-size: 1.5rem; margin-top: 26px; }
.legal-doc h3 { font-size: 1.125rem; margin-top: 10px; }
.legal-doc p, .legal-doc li { color: var(--muted); }
.legal-doc strong { color: var(--fg); font-weight: 600; }
.legal-doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal-doc .table-wrap { margin-block: 6px; }
.draft-banner { border: 1px solid var(--amber); background: rgba(255, 181, 71, .08); color: var(--fg) !important; border-radius: 12px; padding: 14px 18px; font-weight: 600; }
mark.todo { background: rgba(255, 181, 71, .16); color: var(--amber); border-radius: 4px; padding: 0 4px; font-size: .92em; }
