/* East44 website. Tokens follow the East44 design system: dark navy is the primary theme. */
:root {
  --surface-0: #0F1B2D; --surface-1: #15243A; --line: #22324A; --band: #0B1524;
  --ink: #EEF2F7; --ink-muted: #9FB0C6;
  --bearing: #4C63FF; --on-bearing: #FFFFFF; --bearing-text: #8C9BFF;
  --balance: #2FBF8F; --balance-text: #5FE0B4; --flag: #F2B544; --flag-text: #F5C66B;
  --variance-text: #FF8589;
  --f-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface-0); color: var(--ink); font-family: var(--f-sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
img, video { max-width: 100%; display: block; }
a { color: var(--bearing-text); }
:focus-visible { outline: 2px solid var(--bearing); outline-offset: 2px; }
.inner { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.band { padding-block: 88px; }
.band.alt { background: var(--band); }
.eyebrow { font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bearing-text); }
h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: 1.03; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.015em; font-weight: 700; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
.muted { color: var(--ink-muted); }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.section-head { display: grid; gap: 14px; max-width: 66ch; margin-bottom: 44px; }
.lede { font-size: 20px; color: var(--ink-muted); max-width: 52ch; }

/* Header and footer */
header.site { position: sticky; top: 0; z-index: 5; background: var(--surface-0); border-bottom: 1px solid var(--line); }
header.site .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.brand b { font-family: var(--f-mono); font-weight: 600; color: var(--bearing-text); }
nav.links { display: flex; gap: 26px; font-size: 15px; }
nav.links a { color: var(--ink-muted); text-decoration: none; }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.signin { font-size: 15px; color: var(--ink-muted); text-decoration: none; }
.signin:hover { color: var(--ink); }
footer.site { border-top: 1px solid var(--line); padding-block: 40px; font-size: 14px; color: var(--ink-muted); }
footer.site .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer.site a { color: var(--ink-muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* Buttons and pills */
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 15px; font-weight: 600; padding: 11px 18px; border-radius: 6px; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--bearing); color: var(--on-bearing); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn.ghost:hover { border-color: var(--ink-muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { color: var(--balance-text); background: rgba(47, 191, 143, .16); }
.pill.soon { color: var(--flag-text); background: rgba(242, 181, 68, .16); }

/* Video frames */
.frame { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-1); aspect-ratio: 16 / 9; }
.frame video, .frame img { width: 100%; height: 100%; object-fit: cover; }

/* Home */
.hero .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.switch { font-size: 15px; color: var(--ink-muted); }
.switch strong { color: var(--ink); font-weight: 600; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.three > div { border-top: 2px solid var(--line); padding-top: 18px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.three .mark { font-family: var(--f-mono); font-size: 13px; color: var(--flag-text); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface-1); border: 1px solid var(--line); border-radius: 6px; padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.step .n { font-family: var(--f-mono); font-weight: 600; color: var(--bearing-text); font-size: 15px; }
.systems { display: flex; flex-wrap: wrap; gap: 8px; }
.systems span { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--ink-muted); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.pillar { padding: 28px 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar .letter { font-family: var(--f-mono); font-size: 64px; line-height: 1; font-weight: 600; color: var(--bearing); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split > * { min-width: 0; }

/* App cards and grid */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.app-card { display: grid; gap: 12px; text-decoration: none; color: var(--ink); align-content: start; min-width: 0; }
.app-card .frame { transition: border-color .15s; }
.app-card:hover .frame { border-color: var(--bearing); }
.app-card .title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.app-card p { font-size: 15px; }
.group + .group { margin-top: 64px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }

/* App page */
.app-hero .inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.app-hero .copy { display: grid; gap: 18px; min-width: 0; }
.notice { font-size: 14px; color: var(--flag-text); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; }
.functions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; list-style: none; padding: 0; }
.functions li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; }
.functions li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 2px; background: var(--bearing); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facts > div { display: grid; gap: 10px; align-content: start; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a, .chips span { font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; color: var(--ink); text-decoration: none; }
.chips a:hover { border-color: var(--bearing); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plan { background: var(--surface-1); border: 1px solid var(--line); border-radius: 6px; padding: 26px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.plan.featured { border-color: var(--bearing); }
.plan .price { font-family: var(--f-mono); font-size: 36px; font-weight: 600; line-height: 1.1; }
.plan .price small { font-size: 15px; color: var(--ink-muted); font-weight: 400; }
.plan .fee { font-family: var(--f-mono); color: var(--bearing-text); font-weight: 600; font-size: 15px; }
.plan ul { padding-left: 1.1em; display: grid; gap: 4px; font-size: 15px; color: var(--ink-muted); }
.plan .btn { margin-top: 8px; }
.example { margin-top: 24px; border: 1px solid var(--line); border-radius: 6px; padding: 22px; display: grid; gap: 12px; }
.ledger { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; font-size: 15px; max-width: 560px; }
.ledger .num { text-align: right; }
.ledger .total { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-1); }
td:first-child { color: var(--ink-muted); width: 24%; }

/* Forms */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
form.card { background: var(--surface-1); border: 1px solid var(--line); border-radius: 6px; padding: 26px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
label { font-size: 14px; font-weight: 600; }
input, select, textarea { font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface-0); color: var(--ink); width: 100%; }
textarea { min-height: 110px; resize: vertical; }
.error { font-size: 14px; color: var(--variance-text); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.radio-row { display: grid; gap: 8px; }
.radio-row label { font-weight: 500; display: flex; gap: 10px; align-items: center; }
.radio-row input { width: auto; }

@media (max-width: 960px) {
  .hero .inner, .app-hero .inner, .split, .form-wrap { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
  nav.links { display: none; }
  .band { padding-block: 64px; }
}
@media (max-width: 640px) {
  .three, .steps, .plans, .app-grid, .functions, .facts, .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .signin { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
