/* TROYA AGENT — marketing site */
body.site { overflow-x: hidden; }

/* ---------- header + menu ---------- */
.s-head { position: absolute; z-index: 50; top: 0; left: 0; right: 0; height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter); pointer-events: none; }
.s-head > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg); justify-self: start; }
.brand .mark { width: 30px; height: 30px; margin: -4px 0; }
.x-btn { justify-self: end; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10, 16, 19, 0.55); color: var(--fg); transition: border-color .2s, color .2s; }
.x-btn svg { width: 14px; height: 14px; }
.x-btn:hover { border-color: var(--blue); color: var(--blue-3); }
.menu-btn { font-size: 13px; font-weight: 500; padding: 8px 14px; position: relative; color: var(--fg); }
.menu-btn::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .4s var(--ease); }
.menu-btn:hover::after, .menu-btn[aria-expanded="true"]::after { transform: scaleX(1); }
.s-menu { position: fixed; z-index: 49; top: 0; left: 50%; width: min(330px, calc(100vw - 32px)); transform: translate(-50%, -12px); opacity: 0; visibility: hidden;
  background: rgba(8, 13, 16, 0.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 14px 14px;
  padding: 64px 18px 26px; transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.s-menu.open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.s-menu .big { list-style: none; margin: 0 0 28px; padding: 0; }
.s-menu .big a { display: block; padding: 9px 0 7px; font-size: 22px; letter-spacing: -0.015em; border-bottom: 1px solid var(--line); position: relative; }
.s-menu .big a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--blue-2); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.s-menu .big a:hover::after, .s-menu .big a[aria-current="page"]::after { transform: scaleX(1); }
.s-menu .small { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.s-menu .small a { font-size: 12.5px; color: var(--fg-2); }
.s-menu .small a:hover { color: var(--blue-3); }
.s-menu .grp { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 12px 0 6px; }
.s-menu .grp:first-child { margin-top: 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; z-index: 2; padding: 120px var(--gutter) 0; max-width: 760px; }
.hero h1 { margin: 0 0 40px; font-size: clamp(40px, 4.4vw, 76px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.0; max-width: 9.5em; }
.hero .ulink { margin-bottom: 22px; }
.hero-cta { display: grid; justify-items: start; gap: 22px; }
.hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  radial-gradient(52% 58% at 8% 16%, rgba(2,4,5,.9), rgba(2,4,5,.55) 55%, rgba(2,4,5,0) 80%),
  linear-gradient(to bottom, rgba(2,4,5,0) 70%, var(--bg) 100%); }
.hero-foot { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 26px; display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--muted); font-family: var(--mono); letter-spacing: .04em; }
.hero-foot .live { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 3px rgba(95,211,239,.15); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(95,211,239,0); } }

/* ---------- sections ---------- */
.sec { position: relative; padding: 0 var(--gutter) 140px; overflow: hidden; }
.sec-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.sec > *:not(.sec-fx) { position: relative; z-index: 1; }
.eyebrow-line { display: grid; justify-items: center; padding-top: 22px; margin-bottom: 64px; }
.eyebrow-line span { font-size: 11.5px; color: var(--fg-2); padding-bottom: 10px; letter-spacing: .01em; }
.eyebrow-line::after { content: ""; width: 100%; height: 1px; background: var(--line-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.h2 { margin: 0 0 24px; font-size: clamp(36px, 3.9vw, 68px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.0; }
.lead { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 25em; }
.cards { display: grid; gap: 0; }
.card { padding: 18px 0 44px; border-top: 1px solid var(--line-2); }
.card h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: clamp(20px, 1.7vw, 28px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; max-width: 24em; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 4px; font-size: 10.5px; font-weight: 500; letter-spacing: .01em; background: var(--blue-2); color: #021014; }
.tag.dim { background: var(--bg-4); color: var(--fg-2); }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 120px; }

/* wallet section: tall, with the swirl behind */
.sec.wallet { padding-bottom: 120px; }
.sec.wallet .split { min-height: 52vh; }

/* integrations: centred */
.sec.integr { padding-bottom: 160px; min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.integr-in { display: grid; justify-items: center; align-content: center; text-align: center; gap: 0; padding: 40px 0; }
.integr-in .h2 { max-width: 13em; }
.integr-in .lead { margin: 0 auto 30px; max-width: 30em; color: var(--fg-2); opacity: .8; }
.integr-act { display: flex; gap: 22px; justify-content: center; }
.cmd { display: inline-flex; align-items: center; gap: 12px; margin: 0 auto 34px; height: 40px; padding: 0 6px 0 16px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(6, 10, 12, .7); font-family: var(--mono); font-size: 12px; color: var(--fg-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cmd span { color: var(--blue-2); }
.cmd button { height: 28px; padding: 0 10px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--line-3); font-size: 10px; letter-spacing: .1em; }

/* principles */
.sec.princ .h2 { max-width: 12em; margin-bottom: 110px; }
.princ-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; align-items: end; }
.princ-item { padding-top: 0; }
.princ-item:nth-child(2) { margin-bottom: -22px; }
.princ-item:nth-child(3) { margin-bottom: -34px; }
.princ-ico { width: 64px; height: 64px; margin-bottom: 12px; }
.princ-item .body { border-top: 1px solid var(--line-2); padding-top: 16px; }
.princ-item h3 { margin: 0 0 12px; font-size: clamp(20px, 1.6vw, 26px); font-weight: 500; letter-spacing: -0.02em; }
.princ-item p { margin: 0; color: var(--muted); font-size: 13px; max-width: 24em; }

/* ---------- footer ---------- */
.s-foot { position: relative; padding: 40px var(--gutter) 0; background: var(--bg-1); border-top: 1px solid var(--line); overflow: hidden; }
.f-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 54px; }
.f-big { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.f-big a { font-size: clamp(18px, 1.5vw, 24px); letter-spacing: -0.015em; }
.f-big a:hover, .f-small a:hover { color: var(--blue-3); }
.f-small { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; align-content: start; }
.f-small a { font-size: 12.5px; color: var(--fg-2); }
.f-ca { padding-bottom: 34px; }
.f-legal { color: var(--faint); font-size: 10.5px; line-height: 1.55; max-width: 1400px; margin: 0 0 12px; }
.f-bar { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--faint); font-size: 10.5px; padding-bottom: 36px; }
.f-bar a:hover { color: var(--fg-2); }
.f-word { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 0 28px; }
.f-word span { font-size: clamp(44px, 8.6vw, 150px); font-weight: 500; letter-spacing: -0.04em; line-height: .9; }
.f-word span:last-child { justify-self: end; }
.f-word .mark3d { width: clamp(60px, 9vw, 150px); aspect-ratio: 1; position: relative; }
.f-word .mark3d canvas { position: absolute; inset: -30%; width: 160%; height: 160%; }
.f-word .mark3d .mark { width: 100%; height: 100%; color: var(--blue-2); }

/* ---------- inner pages (shared) ---------- */
.page-hero { position: relative; padding: 140px var(--gutter) 80px; overflow: hidden; min-height: 62vh; display: grid; align-content: end; }
.page-hero .eyebrow { font-size: 11.5px; color: var(--blue-2); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 8px; }
.page-hero h1 { margin: 0 0 22px; font-size: clamp(44px, 5.4vw, 96px); font-weight: 500; letter-spacing: -0.04em; line-height: .98; max-width: 11em; }
.page-hero .lead { font-size: 15px; color: var(--fg-2); max-width: 34em; }
.page-hero .hero-canvas { opacity: .8; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.words .w > i { display: inline-block; font-style: normal; transform: translateY(105%); transition: transform 1s var(--ease); }
.words.in .w > i { transform: none; }

@media (max-width: 900px) {
  .split, .cards-2 { grid-template-columns: 1fr; }
  .cards-2 { margin-top: 56px; }
  .princ-grid { grid-template-columns: 1fr; gap: 40px; }
  .princ-item:nth-child(n) { margin-bottom: 0; }
  .sec.princ .h2 { margin-bottom: 56px; }
}
@media (max-width: 720px) {
  .s-head { grid-template-columns: 1fr auto auto; gap: 4px; }
  .menu-btn { justify-self: end; }
  .hero-in { padding-top: 104px; }
  .hero-shade { background: linear-gradient(to bottom, rgba(2,4,5,.94) 0%, rgba(2,4,5,.8) 38%, rgba(2,4,5,0) 56%), linear-gradient(to bottom, rgba(2,4,5,0) 75%, var(--bg) 100%); }
  .hero-foot { flex-direction: column; gap: 4px; }
  .sec { padding-bottom: 96px; }
  .eyebrow-line { margin-bottom: 40px; }
  .f-nav { grid-template-columns: 1fr; }
  .page-hero { padding-top: 110px; }
}
@media (prefers-reduced-motion: reduce) { .rv, .words .w > i { opacity: 1; transform: none; } }

/* ===== inner pages (fork A) ===== */
.page-hero.short { min-height: 48vh; }
.page-hero .hero-shade { background:
  radial-gradient(80% 70% at 10% 90%, rgba(2,4,5,.9), rgba(2,4,5,0) 70%),
  linear-gradient(to bottom, rgba(2,4,5,.35) 0%, rgba(2,4,5,0) 30%, rgba(2,4,5,0) 70%, var(--bg) 100%); }
.page-hero > *:not(.hero-canvas):not(.hero-shade) { position: relative; z-index: 2; }
.page-hero .hero-act { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.page-hero .meta { margin-top: 26px; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.page-hero .meta i { font-style: normal; color: var(--blue-2); }

.ip { position: relative; padding: 0 var(--gutter) 120px; overflow: hidden; }
.ip > *:not(.sec-fx) { position: relative; z-index: 1; }
.ip .h2.sm { font-size: clamp(30px, 3vw, 52px); }
.ip .lead.wide { max-width: 34em; }
.k-label { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 14px; }

/* numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.steps.two { grid-template-columns: repeat(2, 1fr); }
.step { border-top: 1px solid var(--line-2); padding: 18px 0 40px; }
.step .n { font-family: var(--mono); font-size: 11px; color: var(--blue); margin-bottom: 22px; display: block; }
.step h3 { margin: 0 0 12px; font-size: clamp(20px, 1.7vw, 28px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; max-width: 26em; }
.step p:last-child { margin-bottom: 0; }
.step ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.step li { position: relative; padding-left: 16px; color: var(--fg-2); font-size: 13px; }
.step li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--blue-2); }

/* tool rows */
.tools { display: grid; gap: 0; }
.tool { display: grid; grid-template-columns: minmax(180px, 260px) 1fr auto; gap: 8px 32px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line-2); }
.tool:last-child { border-bottom: 1px solid var(--line-2); }
.tool code { font-family: var(--mono); font-size: 13px; color: var(--ice); }
.tool p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 46em; }
.tool .tier { justify-self: end; }
.tier-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; border: 1px solid var(--line-3); color: var(--fg-2); white-space: nowrap; }
.tier-pill.read { border-color: rgba(95,211,239,.35); color: var(--blue-3); }
.tier-pill.prep { border-color: rgba(242,194,107,.35); color: var(--warn); }
.tier-pill.exec { border-color: rgba(255,107,125,.4); color: var(--down); }
.tier-pill.soon { color: var(--muted); border-style: dashed; }

/* flow diagram (read → prepare → execute) */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0; margin: 10px 0 70px; }
.flow .node { border: 1px solid var(--line-2); border-radius: 10px; padding: 18px; background: rgba(6,10,12,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.flow .node b { display: block; font-weight: 500; font-size: 16px; margin-bottom: 6px; }
.flow .node span { display: block; font-family: var(--mono); font-size: 11px; color: var(--blue-2); margin-bottom: 10px; }
.flow .node p { margin: 0; color: var(--muted); font-size: 12.5px; }
.flow .arrow { display: grid; place-items: center; width: 54px; color: var(--faint); }
.flow .arrow svg { width: 28px; height: 12px; }

/* code */
.code { position: relative; margin: 0 0 18px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-1); overflow: hidden; }
.code-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.code-h button { height: 24px; padding: 0 9px; border-radius: 5px; border: 1px solid var(--line-3); background: var(--bg-3); font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--fg-2); }
.code-h button:hover { border-color: var(--blue); color: var(--blue-3); }
.code pre { margin: 0; padding: 14px; overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--fg-2); }
.code pre .c { color: var(--faint); }
.code pre .s { color: var(--blue-3); }
.code pre .k { color: var(--ice); }
.code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* endpoint table */
.eps { width: 100%; border-collapse: collapse; font-size: 13px; }
.eps th { text-align: left; font-weight: 400; color: var(--muted); font-size: 11px; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line-2); }
.eps td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--fg-2); }
.eps td code { font-family: var(--mono); font-size: 12px; color: var(--ice); white-space: nowrap; }
.eps .m { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--blue-2); }
.eps .m.write { color: var(--warn); }
.eps-wrap { overflow-x: auto; }

/* plans */
.plans { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 12px; padding: 22px; background: rgba(6,10,12,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.plan.live { border-color: rgba(95,211,239,.45); background: linear-gradient(180deg, rgba(10,77,91,.28), rgba(6,10,12,.6)); }
.plan .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 26px; }
.plan h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.plan .price { font-size: clamp(36px, 3vw, 52px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
.plan .price small { font-size: 13px; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.plan .price.dim { color: var(--faint); font-size: clamp(22px, 1.8vw, 28px); }
.plan p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; font-size: 13px; color: var(--fg-2); }
.plan li svg { width: 14px; height: 14px; margin-top: 3px; color: var(--blue-2); }
.plan.soon li svg { color: var(--faint); }
.plan .foot { margin-top: auto; }

/* trust model columns */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust .t { border: 1px solid var(--line-2); border-radius: 12px; padding: 22px; background: rgba(6,10,12,.55); }
.trust .t .ico { width: 40px; height: 40px; margin-bottom: 18px; }
.trust .t h3 { margin: 0 0 4px; font-size: 18px; font-weight: 500; }
.trust .t .who { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 14px; display: block; }
.trust .t ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trust .t li { position: relative; padding-left: 16px; font-size: 13px; color: var(--fg-2); }
.trust .t li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--blue-2); }
.trust .t li.no::before { background: var(--down); }

/* gate checklist */
.checks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.checks .c { padding: 20px 18px; border-left: 1px solid var(--line-2); background: rgba(6,10,12,.5); }
.checks .c:first-child { border-left: 0; }
.checks .c span { font-family: var(--mono); font-size: 10.5px; color: var(--blue); display: block; margin-bottom: 18px; }
.checks .c b { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.checks .c p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* data sources */
.sources { display: grid; gap: 0; }
.source { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 10px 32px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.source:last-child { border-bottom: 1px solid var(--line-2); }
.source b { font-weight: 500; font-size: 15px; }
.source p { margin: 0; color: var(--muted); font-size: 13px; }
.source .lim { color: var(--fg-2); }
.source .lim::before { content: "Limit · "; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--warn); }

/* insights */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 12px; padding: 22px; background: rgba(6,10,12,.55); min-height: 280px; transition: border-color .3s var(--ease), transform .4s var(--ease); }
.post:hover { border-color: var(--line-3); }
.post.feature { grid-column: span 2; background: linear-gradient(160deg, rgba(10,77,91,.32), rgba(6,10,12,.6) 60%); }
.post .meta { display: flex; gap: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); margin-bottom: 26px; }
.post .meta i { font-style: normal; color: var(--blue-2); }
.post h3 { margin: 0 0 12px; font-size: clamp(20px, 1.6vw, 26px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.post.span { grid-column: 1 / -1; min-height: 200px; }
.post.feature h3 { font-size: clamp(26px, 2.4vw, 38px); max-width: 16em; }
.post p { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; max-width: 34em; }
.post .ulink { margin-top: auto; align-self: flex-start; }
.article { max-width: 760px; margin: 0 auto; padding: 0 0 20px; }
.article h2 { margin: 48px 0 14px; font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.02em; }
.article p { color: var(--fg-2); font-size: 15px; line-height: 1.65; margin: 0 0 16px; }
.article .by { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 22px; }
.article-sep { height: 1px; background: var(--line-2); margin: 70px 0 0; }

/* legal */
.legal { max-width: 780px; margin: 0 auto; padding: 0 0 40px; counter-reset: lg; }
.legal .updated { font-family: var(--mono); font-size: 11px; color: var(--muted); margin: 0 0 36px; }
.legal section { border-top: 1px solid var(--line-2); padding: 22px 0 10px; }
.legal h2 { margin: 0 0 12px; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; display: flex; gap: 14px; align-items: baseline; }
.legal h2::before { counter-increment: lg; content: counter(lg, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--blue); }
.legal p, .legal li { color: var(--fg-2); font-size: 14px; line-height: 1.65; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 18px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue-3); text-decoration: underline; text-underline-offset: 3px; }

/* closing band */
.cta-band { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; padding: 56px 0 0; border-top: 1px solid var(--line-2); }
.cta-band .h2 { margin: 0; max-width: 12em; }
.cta-band .acts { display: flex; flex-wrap: wrap; gap: 22px; padding-bottom: 10px; }

/* callout */
.callout { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 16px 18px; border: 1px solid rgba(242,194,107,.3); border-radius: 10px; background: var(--warn-bg); color: #f3dcae; font-size: 13px; }
.callout svg { width: 18px; height: 18px; margin-top: 1px; color: var(--warn); }
.callout.blue { border-color: rgba(95,211,239,.3); background: rgba(95,211,239,.06); color: var(--ice); }
.callout.blue svg { color: var(--blue-2); }

/* 404 */
.nf { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; padding: 120px var(--gutter) 80px; position: relative; overflow: hidden; }
.nf > *:not(.hero-canvas):not(.hero-shade) { position: relative; z-index: 2; }
.nf .code-n { font-family: var(--mono); font-size: 12px; color: var(--blue-2); letter-spacing: .12em; margin-bottom: 18px; }
.nf h1 { margin: 0 0 18px; font-size: clamp(44px, 6vw, 104px); font-weight: 500; letter-spacing: -0.04em; line-height: .98; max-width: 10em; }
.nf p { margin: 0 0 30px; color: var(--fg-2); max-width: 32em; font-size: 15px; }
.nf .acts { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .checks { grid-template-columns: repeat(3, 1fr); }
  .checks .c:nth-child(4) { border-left: 0; }
  .checks .c:nth-child(n+4) { border-top: 1px solid var(--line-2); }
  .steps.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .steps, .steps.two, .steps.four, .trust, .posts, .code-grid { grid-template-columns: 1fr; }
  .post.feature, .post.span { grid-column: auto; }
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { width: auto; height: 34px; transform: rotate(90deg); }
  .tool { grid-template-columns: 1fr; gap: 6px; }
  .tool .tier { justify-self: start; }
  .source { grid-template-columns: 1fr; gap: 6px; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ip { padding-bottom: 88px; }
  .plans { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .checks .c { border-left: 0; border-top: 1px solid var(--line-2); }
  .checks .c:first-child { border-top: 0; }
  .page-hero.short { min-height: 0; }
  .eps td code { white-space: normal; word-break: break-all; }
}
