/* East Blue public site (homepage and demo). Colours, type and spacing come from the desk's design system
 * (web/src/design/tokens.css), so the website and the desks read as one product. */
@import url("/static/fonts/fonts.css");

:root, [data-theme="dark"] {
  --bg: #050E1A; --bg2: #071426; --card: #0A1A2E; --card2: #0F2440; --line: #15304F; --line2: #1F4068;
  --ink: #E3EEF9; --muted: #8BA4C0; --faint: #8CA1B8;
  --accent: #2F9BFF; --accent2: #4FD1E8; --accent-soft: rgba(47,155,255,.14); --on-accent: #fff;
  --btn: #1670D0;                                   /* primary button fill: white text at 4.9:1 (AA) */
  --pos: #22C98A; --neg: #FF5D6E; --pos-soft: rgba(34,201,138,.16); --neg-soft: rgba(255,93,110,.14);
  --gold: #FFC84D;
  --glow: radial-gradient(1100px 520px at 78% -10%, rgba(47,155,255,.16), transparent 62%);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #EEF4FA; --bg2: #E5EEF7; --card: #FFFFFF; --card2: #F3F8FD; --line: #D6E3F0; --line2: #BFD3E8;
  --ink: #0A2340; --muted: #4D6884; --faint: #526981;
  --accent: #0A66CC; --accent2: #0891B2; --accent-soft: rgba(10,102,204,.10); --on-accent: #fff;
  --btn: #0A66CC;
  --pos: #0B7D4C; --neg: #C4273B; --pos-soft: rgba(14,159,97,.12); --neg-soft: rgba(215,53,74,.10);
  --gold: #A86A00;
  --glow: radial-gradient(1100px 520px at 78% -10%, rgba(10,102,204,.10), transparent 62%);
  color-scheme: light;
}
:root {
  --font-ui: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Sora, Inter, sans-serif;
  --radius: 10px; --radius-lg: 16px; --max: 1180px; --gut: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1); --dur: 200ms;
}
@media (min-width: 768px) { :root { --gut: 32px; } }
@media (prefers-reduced-motion: reduce) { :root { --dur: 0ms; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); background-image: var(--glow); background-repeat: no-repeat;
  color: var(--ink); font: 400 15px/1.6 var(--font-ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* signed in or not (set by the server): one of the two is shown */
body[data-signed="in"] .if-out, body[data-signed="out"] .if-in { display: none !important; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand b { font: 700 17px/1 var(--font-display); letter-spacing: .02em; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; letter-spacing: .02em; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; transition: color var(--dur) var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 860px) { .nav { display: none; } }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius);
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--line2); }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme="dark"] .i-sun, [data-theme="light"] .i-moon { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: var(--radius); border: 1px solid var(--line2); background: var(--card); color: var(--ink);
  font: 600 14px/1 var(--font-ui); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.btn:hover { border-color: var(--accent); }
.btn.pri { background: var(--btn); border-color: var(--btn); color: var(--on-accent); }
.btn.pri:hover { background: color-mix(in srgb, var(--btn) 90%, #000); border-color: var(--accent); }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; }

/* ---------- hero: the live payoff is the centrepiece ---------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero h1 { font: 700 clamp(34px, 5.2vw, 56px)/1.06 var(--font-display); letter-spacing: -.025em; margin: 0 0 20px; }
.hero p.lede { font-size: 17px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ebmark { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--muted); font-size: 14px; font-weight: 500; }
.ebmark svg { width: 30px; height: 30px; }
@media (max-width: 960px) {
  .hero { padding: 44px 0 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .cta, .ebmark { justify-content: center; }
}

.payfig { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; text-align: left; }
.payfig header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.payfig h2 { font: 600 15px/1.3 var(--font-ui); margin: 0; }
.payfig .legs { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.readout { font: 700 22px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.readout.pos { color: var(--pos); } .readout.neg { color: var(--neg); }
.payfig svg.pf { display: block; width: 100%; height: auto; touch-action: none; cursor: ew-resize; }
.pf-zero { stroke: var(--line2); stroke-width: 1; }
.pf-spot { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 4; opacity: .6; }
.pf-fill.up { fill: var(--pos-soft); } .pf-fill.dn { fill: var(--neg-soft); }
.pf-line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; }
.pf-line.today { stroke: var(--accent2); stroke-width: 1.6; stroke-dasharray: 5 5; }
.pf-mark { stroke: var(--ink); stroke-width: 1; opacity: .35; }
.pf-dot { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }
.slide { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.slide output { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 6.5em; text-align: right; }
input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; margin: 0; }
.payfig figcaption { margin-top: 10px; font-size: 12.5px; color: var(--faint); }

/* ---------- sections ---------- */
section.band { padding: 64px 0; border-top: 1px solid var(--line); }
.band h2 { font: 700 clamp(26px, 3.4vw, 34px)/1.15 var(--font-display); letter-spacing: -.02em; margin: 0 0 12px; max-width: 22em; }
.band p.sub { color: var(--muted); font-size: 16px; margin: 0 0 36px; max-width: 40em; }
@media (max-width: 768px) { section.band { padding: 48px 0; } .band h2, .band p.sub { text-align: center; margin-left: auto; margin-right: auto; } }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.points h3 { font: 600 17px/1.3 var(--font-ui); margin: 14px 0 8px; }
.points p { color: var(--muted); margin: 0; font-size: 15px; }
.points svg { width: 28px; height: 28px; color: var(--accent); }
@media (max-width: 900px) { .points { grid-template-columns: 1fr; gap: 28px; max-width: 520px; margin: 0 auto; text-align: center; } .desk { text-align: center; } }

.desks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.desk { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--card); }
.desk b { display: block; font-weight: 600; margin-bottom: 4px; }
.desk span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .desks { grid-template-columns: 1fr; } }

/* plans: a real comparison table */
.plans { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.plans-scroll { overflow-x: auto; border-radius: var(--radius-lg); }
.plans th, .plans td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; font-size: 14.5px; }
.plans tbody tr:last-child th, .plans tbody tr:last-child td { border-bottom: 0; }
.plans th[scope=row] { text-align: left; font-weight: 500; color: var(--ink); }
.plans thead th { vertical-align: bottom; padding-top: 20px; }
.plans thead th b { display: block; font: 700 19px/1.2 var(--font-display); }
.plans thead th span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 4px; }
.plans thead th.feat { color: var(--muted); font-weight: 500; text-align: left; font-size: 13px; }
.plans col.pro { background: var(--accent-soft); }
.yes { color: var(--pos); font-weight: 700; font-size: 16px; } .no { color: var(--faint); }
.yes svg, .no svg { width: 18px; height: 18px; vertical-align: middle; }
.plans-note { color: var(--muted); font-size: 14px; margin: 18px 0 0; }
@media (max-width: 600px) { .plans th, .plans td { padding: 11px 8px; font-size: 13.5px; } .plans thead th b { font-size: 16px; } }

/* company: what EastIdeal does */
.co { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 56px; align-items: start; }
.co-intro svg { width: 56px; height: 56px; margin-bottom: 18px; }
.co-intro p { color: var(--muted); margin: 0 0 14px; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lines li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.lines b { font-weight: 600; font-size: 16px; }
.lines p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14.5px; }
.state { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); align-self: center; }
.state.live { color: var(--pos); border-color: color-mix(in srgb, var(--pos) 45%, transparent); }
@media (max-width: 900px) { .co { grid-template-columns: 1fr; gap: 32px; } .co-intro { text-align: center; } }

.closing { text-align: center; }
.closing h2, .closing p.sub { margin-left: auto; margin-right: auto; }
.closing .cta { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 700px) { footer .wrap { justify-content: center; text-align: center; } }

/* ---------- demo: the builder layout (legs left, summary and payoff right) ---------- */
.demo-head { padding: 40px 0 8px; }
.demo-head h1 { font: 700 clamp(26px, 3.6vw, 34px)/1.15 var(--font-display); letter-spacing: -.02em; margin: 0 0 8px; }
.demo-head p { color: var(--muted); margin: 0; max-width: 46em; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 10px 14px; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--ink); font-size: 13.5px; max-width: 46em; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
.builder { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; padding: 24px 0 56px; align-items: start; }
@media (max-width: 1000px) { .builder { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card > h2 { font: 600 15px/1.3 var(--font-ui); margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.card .body { padding: 16px 18px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
select { height: 40px; border-radius: var(--radius); border: 1px solid var(--line2); background: var(--card2); color: var(--ink);
  font: 500 14px var(--font-ui); padding: 0 12px; width: 100%; }
select option { background: var(--card); color: var(--ink); }
.legtable { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.legtable th, .legtable td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.legtable th { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.legtable th:first-child, .legtable td:first-child { text-align: left; }
.legtable tr:last-child td { border-bottom: 0; }
.side { font-weight: 600; } .side.b { color: var(--pos); } .side.s { color: var(--neg); }
.right { display: grid; gap: 20px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(4n) { border-right: 0; }
.stat:nth-last-child(-n+4) { border-bottom: 0; }
.stat small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 4px; }
.stat b { font: 600 16px/1.2 var(--font-ui); font-variant-numeric: tabular-nums; }
.stat b.pos { color: var(--pos); } .stat b.neg { color: var(--neg); }
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(4n) { border-right: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
}
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2.4px solid var(--accent); vertical-align: middle; margin-right: 6px; }
.legend i.today { border-top: 1.6px dashed var(--accent2); }

/* privacy policy */
.legal { max-width: 720px; padding-top: 48px; padding-bottom: 48px; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { margin-top: 32px; font-size: 20px; }
.legal p, .legal li { line-height: 1.65; }
.legal .muted { color: var(--faint); }
footer a { color: inherit; text-decoration: underline; }
