/* ==========================================================================
   ETHELIUM — shared design system, v5 "light frame / dark plate"
   --------------------------------------------------------------------------
   The system the homepage introduced, extracted so every subpage skins from
   one source. Load this BEFORE a page's own style.css:

     <link rel="stylesheet" href="/assets/system.css">
     <link rel="stylesheet" href="style.css">

   The shape
     • The page is dark edge to edge (#0a0a0b) — no outer field, no rounded
       corners, no floating plate. Content is centred in a 1240px column.
       Markup: <div class="frame"><div class="shell"> … </div></div>
       The column is 1560px so a wide display isn't mostly dead space.
     • Two hairline rails run the full height, 64px in from each side of the
       content column; content is padded 76px so it sits just inside them.
     • Every section is separated by a 1px rgba(255,255,255,.1) hairline —
       there are no cards, no shadows, no rounded corners inside the plate.
     • Type is Helvetica at weight 400 — the lightness IS the look, never
       bold a headline. A monospace face is the only other voice, used for
       numerals, eyebrows and the odd inline word.
     • Each app keeps its own --accent as the single pop of colour.

   .shell keeps overflow:hidden so the hero's blurred aurora stays clipped to
   the content column — which also means position:sticky does not pin. The nav
   is deliberately static, as on the homepage.
   ========================================================================== */

:root {
  /* ---- the plate ---- */
  --page:       #0a0a0b;   /* the page ground — dark, edge to edge */
  --plate:      #0a0a0b;   /* same ground; kept as a name for surfaces */
  --frame-pad:  0px;
  --shell-maxw: 1560px;
  --rail:       64px;

  /* ---- hairlines ---- */
  --hairline:    rgba(255, 255, 255, 0.10);
  --hairline-2:  rgba(255, 255, 255, 0.08);
  --rail-line:   rgba(255, 255, 255, 0.075);

  /* ---- text tiers ---- */
  --ink:    #f2f0ee;
  --ink-1:  rgba(255, 255, 255, 0.82);
  --ink-2:  rgba(255, 255, 255, 0.62);
  --ink-3:  rgba(255, 255, 255, 0.52);
  --ink-4:  rgba(255, 255, 255, 0.44);

  /* ---- surfaces ---- */
  --tile:       rgba(255, 255, 255, 0.03);
  --tile-hover: rgba(255, 255, 255, 0.06);
  --pale:       #eeecea;   /* the light pill */

  /* ---- accent: each app overrides this one line ---- */
  --accent: #eeecea;

  /* ---- aurora: the three colours of the soft wash. An app page sets
         --glow-1 to its own accent so its hero glows in its colour. ---- */
  --glow-1: #7A4FE0;
  --glow-2: #1F8F7A;
  --glow-3: #C6742A;

  /* ---- type ---- */
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---- rhythm ---- */
  --pad:  76px;   /* horizontal content inset inside the plate */
  --padv: 56px;   /* default vertical section padding */
}

/* ===================== RESET / BASE ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #fff; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

::selection { background: rgba(255, 255, 255, 0.16); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ===================== THE FRAME + COLUMN ===================== */
.frame {
  min-height: 100vh;
  padding: var(--frame-pad);
  background: var(--page);
}

.shell {
  position: relative;
  max-width: var(--shell-maxw);
  margin: 0 auto;
  background: var(--plate);
  overflow: hidden;
}

/* the two full-height rails */
.shell::before,
.shell::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--rail-line);
  z-index: 1;
  pointer-events: none;
}
.shell::before { left: var(--rail); }
.shell::after  { right: var(--rail); }

/* everything real sits above the rails */
.shell > * { position: relative; z-index: 2; }

.container {
  width: 100%;
  padding: 0 var(--pad);
  position: relative;
  z-index: 2;
}

/* ===================== AURORA ===================== */
/* The soft colour wash behind hero + CTA areas. Drop .aurora on any
   position:relative block; it paints behind, never in front. */
@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.08); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes auroraDrift2 {
  0%   { transform: translate3d(0, 0, 0) scale(1.05); }
  50%  { transform: translate3d(4%, -3%, 0) scale(1); }
  100% { transform: translate3d(0, 0, 0) scale(1.05); }
}

.aurora {
  position: absolute;
  inset: -14% -8%;
  z-index: 0;
  pointer-events: none;
  filter: blur(50px);
  opacity: 0.30;
  background:
    radial-gradient(36% 50% at 68% 36%, var(--glow-1) 0%, transparent 72%),
    radial-gradient(28% 42% at 88% 20%, var(--glow-2) 0%, transparent 74%),
    radial-gradient(24% 38% at 78% 84%, var(--glow-3) 0%, transparent 76%);
  animation: auroraDrift 28s ease-in-out infinite;
}

/* ===================== TYPE HELPERS ===================== */
/* An inline monospace word inside a headline — the house tic. */
.mono, .headline .mono, h1 .mono, h2 .mono, h3 .mono {
  font-family: var(--mono);
  letter-spacing: -0.045em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

.lede {
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-3);
  max-width: 48ch;
  margin: 20px 0 0;
}

/* ===================== PILLS / LINKS ===================== */
.pill,
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.pill-light {
  background: var(--pale);
  color: var(--plate);
}
.pill-light:hover {
  background: #fff;
  color: var(--plate);
  transform: translateY(-1px);
}
.pill-dark,
.badge-soon {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--ink-1);
}
.pill-dark:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.badge-soon {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  cursor: default;
}

/* a quiet underlined text link */
.textlink {
  font-size: 12.5px;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.textlink:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.6); }

/* store badges */
.badges, .badge-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.badge-link { display: inline-block; opacity: 0.92; transition: opacity 0.2s ease, transform 0.2s ease; }
.badge-link:hover { opacity: 1; transform: translateY(-1px); }
.badge-link img { height: 46px; width: auto; }

/* ===================== BRAND MARK ===================== */
/* The three skewed bars. Sized by --logo-n (unitless), coloured by
   --logo-color. Never give --logo-n a unit: it is used inside scale(). */
.logo {
  --logo-n: 26;
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  width:  calc(var(--logo-n) * 1.29px);
  height: calc(var(--logo-n) * 1px);
}
.logo i {
  position: absolute;
  top: 0;
  left: calc(var(--logo-n) * 0.077px);
  width: 92px; height: 92px;
  transform: scale(calc(var(--logo-n) / 92));
  transform-origin: top left;
  font-style: normal;
}
.logo i > b {
  position: absolute;
  display: block;
  width: 68px; height: 22px;
  border-radius: 0 11px 0 11px;
  background: var(--logo-color, #fff);
  transform: skewX(-15deg);
}
.logo i > b:nth-child(1) { top: 4px;  left: 20px; }
.logo i > b:nth-child(2) { top: 35px; left: 12px; }
.logo i > b:nth-child(3) { top: 66px; left: 4px; }

.wordmark {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-1);
}

/* ===================== NAV ===================== */
/* Static, not sticky — the plate's overflow:hidden would break sticky, and
   the homepage header doesn't pin either. */
.nav {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
}
.nav .container,
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 0;
  padding-top: 20px;
  padding-bottom: 20px;
}
.nav .container.nav-inner { padding-top: 20px; padding-bottom: 20px; }

.nav-left { display: inline-flex; align-items: center; gap: 20px; }

.nav-back {
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
}
.nav-back:hover { color: #fff; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand .logo { --logo-n: 22; --logo-color: var(--accent); }

.nav-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  margin: 0;
  text-transform: uppercase;
}
@media (max-width: 860px) { .nav-meta { display: none; } }

/* the nav's right-hand CTA */
.nav-cta { padding: 9px 18px; }

/* ===================== SECTIONS ===================== */
/* Every top-level section is hairline-separated, flat, full-bleed. */
main > section,
main > .section {
  position: relative;
  padding: var(--padv) 0;
  border-bottom: 1px solid var(--hairline);
}
main > section:last-child { border-bottom: 1px solid var(--hairline); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.hero > .container,
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 52px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -14% -8%;
  z-index: 0;
  pointer-events: none;
  filter: blur(46px);
  opacity: 0.36;
  background:
    radial-gradient(38% 54% at 74% 42%, var(--glow-1) 0%, transparent 70%),
    radial-gradient(30% 44% at 90% 20%, var(--glow-2) 0%, transparent 72%),
    radial-gradient(26% 40% at 82% 86%, var(--glow-3) 0%, transparent 74%);
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, rgba(0,0,0,0.35) 34%, #000 66%);
          mask-image: linear-gradient(90deg, transparent 4%, rgba(0,0,0,0.35) 34%, #000 66%);
  animation: auroraDrift 26s ease-in-out infinite;
}

.hero h1,
.hero .headline {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero .lede { max-width: 46ch; margin-top: 20px; }

/* Hero media. The plate's hero reads as a band, so device art is capped —
   an app screenshot at full height would triple the hero's height. */
.hero .hero-phone,
.hero .hero-visual { display: flex; align-items: center; justify-content: center; }
.hero .hero-visual img,
.hero .hero-phone img { max-height: 500px; width: auto; max-width: 100%; }
.hero .phone { width: min(232px, 62vw); }

/* bullet lists under a hero */
.bullets {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 5px;
  background: var(--accent);
}

/* ===================== NUMBER / STAT GRID ===================== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hairline);
}
.stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 26px;
  border-right: 1px solid var(--hairline-2);
  border-bottom: 1px solid var(--hairline-2);
}
.stat-n {
  font-family: var(--mono);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.stat-l { font-size: 11.5px; color: var(--ink-4); }

/* ===================== CARDS / FEATURES ===================== */
/* Flat, hairline-divided cells — no radius, no shadow, no fill. */
.feature-grid,
.cards {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hairline);
  margin-top: 34px;
}
.card {
  padding: 30px 26px;
  border-bottom: 1px solid var(--hairline-2);
  background: transparent;
  border-radius: 0;
  transition: background 0.25s ease;
}
.card:hover { background: var(--tile-hover); }
.card h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink-1);
}
.card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: var(--ink-3);
}
.card-icon { display: block; margin-bottom: 16px; color: var(--accent); opacity: 0.85; }
.card-icon svg { width: 20px; height: 20px; }

/* alternating text/plate rows */
.row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--hairline);
}
.row-copy {
  padding: 56px var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.row-copy h2, .row-copy h3 {
  font-size: clamp(21px, 2.4vw, 29px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  max-width: 20ch;
}
.row-copy p {
  margin: 15px 0 0;
  max-width: 48ch;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-3);
}
.row-plate {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  background: var(--plate);
  border-top: 1px solid var(--hairline);
}

/* ===================== SECTION HEADINGS ===================== */
main h2 {
  font-size: clamp(23px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
main section > .container > p,
.section-sub {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 56ch;
  margin: 15px 0 0;
}

/* ===================== FINAL CTA ===================== */
.final {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  border-bottom: 1px solid var(--hairline);
}
.final > .container {
  position: relative;
  z-index: 1;
  padding-top: 66px;
  padding-bottom: 66px;
}
.final::before {
  content: "";
  position: absolute;
  inset: -20% -10% -40%;
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.2;
  background:
    radial-gradient(32% 60% at 18% 68%, var(--glow-1) 0%, transparent 72%),
    radial-gradient(24% 44% at 44% 94%, var(--glow-2) 0%, transparent 76%);
  animation: auroraDrift2 40s ease-in-out infinite;
}
.final h2 {
  font-size: clamp(25px, 3.4vw, 40px);
  line-height: 1.07;
  max-width: 18ch;
}
.final p { color: var(--ink-3); font-size: 13.5px; line-height: 1.65; max-width: 50ch; margin: 16px 0 0; }
.final .badges, .final .badge-row { margin-top: 26px; }


/* ===================== SPEC LIST (label / value rows) ===================== */
.speclist { display: block; }
.specrow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.specrow:last-child { border-bottom: 0; }
.specrow > span:first-child { color: rgba(255, 255, 255, 0.48); }

/* ===================== FOOTER ===================== */
.site-footer {
  position: relative;
  padding: 32px var(--pad) 38px;
  font-size: 12px;
  color: var(--ink-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand { gap: 9px; }
.footer-brand .logo { --logo-n: 19; --logo-color: rgba(255, 255, 255, 0.7); }
.footer-brand .wordmark { font-size: 12px; letter-spacing: 0; color: rgba(255, 255, 255, 0.7); text-transform: none; font-weight: 400; }
.footer-fine, .footer-loc, .footer-mid p, .footer-contact .meta {
  font-size: 11.5px;
  color: var(--ink-4);
  margin: 0;
  line-height: 1.7;
  letter-spacing: 0;
  font-family: var(--sans);
  text-transform: none;
}
.footer-mid { color: var(--ink-4); }
.footer-mid p { margin: 0; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { color: var(--ink-4); font-size: 12px; }
.footer-contact a:hover { color: #fff; }
.footer-loc { font-style: normal; }

/* ===================== LEGAL / LONG-FORM PROSE ===================== */
.legal {
  max-width: 88ch;
  margin: 0 auto;
  padding: 52px var(--pad) 76px;
}
.legal h1 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.legal .updated {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  margin: 0 0 34px;
}
.legal h2 {
  font-size: 19px !important;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 42px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
.legal h3 { font-size: 15px; font-weight: 500; color: var(--ink-1); margin: 26px 0 8px; }
.legal p, .legal li { font-size: 13.5px; line-height: 1.75; color: var(--ink-3); }
.legal p { margin: 0 0 15px; }
.legal ul, .legal ol { padding-left: 1.15rem; margin: 0 0 18px; }
.legal li { margin-bottom: 9px; }
.legal li::marker { color: var(--ink-4); }
.legal strong { color: var(--ink-1); font-weight: 500; }
.legal a { color: var(--ink-1); border-bottom: 1px solid rgba(255, 255, 255, 0.28); word-break: break-word; }
.legal a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.6); }
.legal code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--tile);
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 1px 6px;
  color: var(--ink-1);
}
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 13px; }
.legal th, .legal td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--hairline); color: var(--ink-3); }
.legal th { color: var(--ink-1); font-weight: 500; }

/* ===================== RESPONSIVE ===================== */
@media (min-width: 900px) {
  .hero > .container,
  .hero-grid { grid-template-columns: 1.06fr 1fr; gap: 56px; }
  .feature-grid, .cards { grid-template-columns: repeat(3, 1fr); }
  .card { border-right: 1px solid var(--hairline-2); }
  .card:nth-child(3n) { border-right: 0; }
  .row { grid-template-columns: 1fr 1fr; }
  .row-plate { border-top: 0; border-left: 1px solid var(--hairline); min-height: 340px; }
  .row.reverse .row-copy { order: 2; }
  .row.reverse .row-plate { order: 1; border-left: 0; border-right: 1px solid var(--hairline); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; align-items: center; }
  .footer-mid { text-align: center; }
  .footer-contact { text-align: right; align-items: flex-end; }
}

@media (max-width: 1000px) {
  :root { --pad: 40px; --rail: 34px; }
}

@media (max-width: 720px) {
  :root { --pad: 24px; --padv: 40px; }
  .shell::before, .shell::after { display: none; }
  .nav .container, .nav-inner { gap: 14px; }
  .nav-left { gap: 12px; }
  .row-copy { padding: 44px var(--pad); }
  .site-footer { padding: 28px var(--pad) 34px; }
  .legal { padding: 40px var(--pad) 56px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
}
