/* ==========================================================================
   Hiroba landing site — "The Floor".
   The page is a top-down presence map: a coordinate floor, colored presence
   dots, and proximity rings (voice that fades in as you get close). The page
   itself honors NFR-01: no frameworks, no build step, light.
   ========================================================================== */

:root {
  /* floor — a cool, calm "screen left on" surface, not warm paper */
  --floor: #eef1ee;
  --floor-deep: #e5e9e4;
  --surface: #ffffff;

  --ink: #16201b;
  --ink-soft: #566460;
  --ink-faint: #93a09a;
  --line: #d8ded7;
  --line-strong: #c4ccc3;

  /* presence — the five avatar colors are real product material */
  --p-moss: #2f9e63;
  --p-indigo: #3f6fb0;
  --p-gold: #cf9a2f;
  --p-plum: #8a6aa6;
  --p-clay: #d8552e;

  /* interactive accent = indigo ("you" / signal); green = live/online */
  --accent: #3f6fb0;
  --accent-deep: #2f5894;
  --accent-soft: #e1eaf5;
  --live: #2f9e63;

  /* dusk — the floor at night, a few dots still glowing */
  --dusk: #102019;
  --dusk-ink: #e7efe8;

  --display: "Space Grotesk", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --body: "Hanken Grotesk", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1100px;
  --radius: 12px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--floor);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

/* the coordinate floor: a faint dot grid under everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(86, 100, 96, 0.16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  background-position: -1px -1px;
}

::selection { background: var(--accent-soft); color: var(--accent-deep); }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--floor) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }

/* brand mark = a presence dot inside a proximity ring (the signature) */
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.brand-sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: 0.16em;
  margin-left: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 500;
}

.site-nav a { color: var(--ink-soft); }
.site-nav a:hover { color: var(--accent-deep); }
.site-nav a[aria-current="page"] { color: var(--accent-deep); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.lang-switch a {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--ink-soft);
}
.lang-switch a:hover { color: var(--accent-deep); }
.lang-switch a.active {
  background: var(--accent);
  color: #fff;
}

.nav-cta {
  display: inline-block;
  background: var(--ink);
  color: var(--floor) !important;
  padding: 8px 17px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }

@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn-primary:hover { background: var(--accent-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }

.btn .arrow { font-family: var(--mono); transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 80px 0 92px;
  overflow: clip;
}

/* a denser viewport grid behind the hero — you're looking down on the floor */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.5;
  mask-image: radial-gradient(120% 92% at 72% 8%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(120% 92% at 72% 8%, #000 0%, transparent 68%);
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
}

/* faint vertical floor label, set in mono like a coordinate axis */
.hero-vert {
  position: absolute;
  top: 4px;
  right: -10px;
  writing-mode: vertical-rl;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(84px, 12vw, 150px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  letter-spacing: 0.06em;
  opacity: 0.6;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.hero-copy { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 20%, transparent);
}

.nowrap { white-space: nowrap; }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-deep);
}

.hero-lede {
  font-size: 1.04rem;
  color: var(--ink-soft);
  max-width: 33em;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
  font-weight: 400;
}
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
}

/* staggered load-in */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .app-mock {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.26s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.38s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.48s; }
  .app-mock { animation-delay: 0.32s; }
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 920px) {
  .hero { padding: 52px 0 60px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-vert { display: none; }
}

/* --------------------------------------------------------------------------
   App mock (live demo) — a floor viewport
   -------------------------------------------------------------------------- */

.app-mock {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 #fff inset,
    0 30px 60px -30px rgba(22, 32, 27, 0.4),
    0 6px 18px -10px rgba(22, 32, 27, 0.16);
  overflow: hidden;
  font-family: var(--body);
  font-size: 12px;
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--floor-deep);
}
.mock-titlebar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.mock-titlebar i:nth-child(1) { background: #e0796b; }
.mock-titlebar i:nth-child(2) { background: #e3b35e; }
.mock-titlebar i:nth-child(3) { background: #6fbf8e; }
.mock-titlebar span {
  margin-left: 8px;
  font-family: var(--mono);
  color: var(--ink-faint);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.mock-body {
  display: grid;
  grid-template-columns: 134px 1fr;
  min-height: 348px;
}

.mock-sidebar {
  border-right: 1px solid var(--line);
  background: var(--floor-deep);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}

.mock-org {
  padding: 0 14px 10px;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-size: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.mock-roster {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.mock-roster li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  color: var(--ink);
  position: relative;
  transition: background 0.15s ease;
}
.mock-roster li:hover { background: var(--accent-soft); }
.mock-roster .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--live);
}
.mock-roster .dot.call {
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
  animation: ping 1.7s ease-out infinite;
}
.mock-roster .dot.away { background: transparent; border: 1.5px solid var(--ink-faint); }
.mock-roster .dot.dnd { background: var(--p-plum); }
.mock-roster .who { font-weight: 600; }
.mock-roster .where {
  margin-left: auto;
  font-family: var(--mono);
  color: var(--ink-faint);
  font-size: 9px;
}
.mock-roster li .page-chip {
  position: absolute;
  right: 10px;
  opacity: 0;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.mock-roster li:hover .page-chip { opacity: 1; }
.mock-roster li:hover .where { opacity: 0; }
.mock-roster li.self .page-chip { display: none; }
.mock-roster li.self:hover .where { opacity: 1; }

/* the proximity ring, as a pulse — reused for live status everywhere */
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
  70%  { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}

.mock-main { display: flex; flex-direction: column; }

.mock-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 10px 0;
  border-bottom: 1px solid var(--line);
}
.mock-tabs button {
  appearance: none;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 6px 12px;
  cursor: pointer;
}
.mock-tabs button .count {
  font-family: var(--mono);
  color: var(--ink-faint);
  font-weight: 400;
  margin-left: 5px;
}
.mock-tabs button.active {
  background: var(--surface);
  border-color: var(--line);
  color: var(--accent-deep);
  position: relative;
  top: 1px;
}

.mock-stage {
  flex: 1;
  position: relative;
  min-height: 250px;
  background: var(--surface);
}
.mock-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.mock-statusbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: var(--floor-deep);
  font-family: var(--mono);
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.02em;
}
.mock-statusbar .mic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.mock-statusbar .mic::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 90px 0; }
.section.deep { background: var(--floor-deep); }

/* per-section presence color, used by the section marker dot */
#problem { --dot: var(--p-moss); }
#values { --dot: var(--p-indigo); }
#how { --dot: var(--p-gold); }
#numbers { --dot: var(--p-plum); }
#oss { --dot: var(--p-clay); }
#start { --dot: var(--p-moss); }
#early-access { --dot: var(--p-indigo); }
body[data-page="pricing"] .section:nth-of-type(odd) { --dot: var(--p-plum); }
body[data-page="pricing"] .section:nth-of-type(even) { --dot: var(--p-gold); }

.sec-head { margin-bottom: 50px; max-width: 640px; }

.sec-no {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 16px;
}
/* the kanji index becomes a presence dot with a proximity ring */
.sec-no b {
  display: inline-block;
  width: 9px;
  height: 9px;
  font-size: 0;
  border-radius: 50%;
  background: var(--dot, var(--accent));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot, var(--accent)) 18%, transparent);
}

.sec-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.sec-lede { color: var(--ink-soft); font-size: 1.02rem; }

/* reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}


/* --- core five — five presence colors, not a fake sequence --------------- */

.five {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.five article {
  background: var(--surface);
  padding: 28px 22px 32px;
  position: relative;
  transition: background 0.25s ease;
}
.five article:hover { background: var(--floor-deep); }
/* the kanji marker becomes a presence dot in this card's color */
.five .num {
  display: block;
  width: 13px;
  height: 13px;
  font-size: 0;
  border-radius: 50%;
  margin-bottom: 18px;
  background: var(--cardc, var(--accent));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--cardc, var(--accent)) 16%, transparent);
}
.five article:nth-child(1) { --cardc: var(--p-clay); }
.five article:nth-child(2) { --cardc: var(--p-moss); }
.five article:nth-child(3) { --cardc: var(--p-indigo); }
.five article:nth-child(4) { --cardc: var(--p-gold); }
.five article:nth-child(5) { --cardc: var(--p-plum); }
.five h3 { font-size: 1rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.five p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.7; }

@media (max-width: 920px) {
  .five { grid-template-columns: 1fr 1fr; }
  .five article:last-child { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .five { grid-template-columns: 1fr; }
}

/* --- how it works -------------------------------------------------------- */

.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.floor-fig {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  background-image: radial-gradient(circle, rgba(86, 100, 96, 0.1) 1px, transparent 1.4px);
  background-size: 22px 22px;
}
.floor-fig .org-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.floor-rooms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.room {
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 16px;
  position: relative;
  min-height: 98px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.room.lobby { grid-column: 1 / -1; border-color: var(--accent); }
.room h4 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.room .ppl { display: flex; gap: 8px; flex-wrap: wrap; }
.room .ppl i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 0%, transparent), 0 1px 3px rgba(0,0,0,0.16);
}
.room .hint {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--ink-faint);
}
.page-arc {
  text-align: center;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-deep);
}
.page-arc::before { content: "→ "; }

.how-points { display: grid; gap: 24px; }
.how-points article { border-left: 2px solid var(--accent); padding-left: 22px; }
.how-points h3 { font-size: 1.1rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.how-points p { font-size: 0.94rem; color: var(--ink-soft); }

@media (max-width: 880px) {
  .how { grid-template-columns: 1fr; gap: 40px; }
}

/* --- numbers ------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  text-align: center;
}
.stats .stat { padding: 12px 0; position: relative; }
.stats .stat::before {
  content: "";
  display: block;
  width: 7px; height: 7px; margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 16%, transparent);
}
.stats .v {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.8vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
  display: block;
}
.stats .v small {
  font-family: var(--mono);
  font-size: 0.34em;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 0;
}
.stats .k {
  display: block;
  margin-top: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.stats .note {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-faint);
  margin-top: 4px;
}
.stats-disclaimer {
  text-align: center;
  margin-top: 42px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
}

@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
}

/* --- open source (dusk band) --------------------------------------------- */

.section.night {
  background: var(--dusk);
  color: var(--dusk-ink);
  position: relative;
  overflow: clip;
}
.section.night::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(231, 239, 232, 0.06) 1px, transparent 1.4px);
  background-size: 26px 26px;
  pointer-events: none;
}
.section.night .wrap { position: relative; }
.section.night .sec-no { color: rgba(231, 239, 232, 0.45); }
.section.night h2 { color: var(--dusk-ink); }
.section.night .sec-lede { color: rgba(231, 239, 232, 0.62); }

.oss-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.term {
  background: #0b1610;
  border: 1px solid rgba(231, 239, 232, 0.14);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  font-size: 0.82rem;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(231, 239, 232, 0.1);
}
.term-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(231, 239, 232, 0.18);
}
.term-bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(231, 239, 232, 0.38);
}
.term pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  line-height: 1.95;
  color: #d6e3d8;
}
.term .p { color: var(--live); }
.term .ok { color: #7fd0a0; }
.term .c { color: rgba(231, 239, 232, 0.4); }

.oss-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  font-size: 0.88rem;
  color: rgba(231, 239, 232, 0.62);
  line-height: 1.75;
}
.oss-points li { border-left: 2px solid var(--live); padding-left: 18px; }
.oss-points b {
  display: block;
  color: var(--dusk-ink);
  font-size: 0.96rem;
  margin-bottom: 3px;
}

.oss-cta { margin-top: 46px; }

@media (max-width: 880px) {
  .oss-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* --- two ways ------------------------------------------------------------ */

.ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.way {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.way.hosted { border-color: var(--accent); border-width: 1.5px; }
.way-ribbon { display: none; }
.way.hosted .way-ribbon {
  display: block;
  position: absolute;
  top: 20px;
  right: -52px;
  width: 180px;
  text-align: center;
  transform: rotate(38deg);
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 4px 0;
}
.way .way-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.way h3 { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 14px; }
.way > p { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 22px; }
.way ul {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: grid;
  gap: 9px;
}
.way li { display: flex; gap: 10px; align-items: baseline; }
.way li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.way:not(.hosted) li::before { background: var(--live); }
.way .btn { margin-top: auto; align-self: flex-start; }

@media (max-width: 760px) {
  .ways { grid-template-columns: 1fr; }
}

/* --- invited (download row, injected by download.js) --------------------- */

.invited {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 30px 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  background: var(--surface);
}
.invited h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
.invited p { font-size: 0.9rem; color: var(--ink-soft); flex: 1 1 320px; }
.invited-actions { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.invited .btn { flex: none; }
.invited .btn.is-disabled { pointer-events: none; opacity: 0.55; }
.download-more {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.download-more a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.download-more a:hover { color: var(--accent); }

/* --- CTA band — the signature, full size: concentric proximity rings ----- */

.cta-band {
  text-align: center;
  padding: 98px 0 108px;
  position: relative;
  overflow: clip;
}
.cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, transparent 0 78px, color-mix(in srgb, var(--accent) 26%, transparent) 78px 79.5px, transparent 79.5px) center / 100% 100% no-repeat,
    radial-gradient(circle, transparent 0 158px, color-mix(in srgb, var(--accent) 18%, transparent) 158px 159.5px, transparent 159.5px) center / 100% 100% no-repeat,
    radial-gradient(circle, transparent 0 248px, color-mix(in srgb, var(--accent) 11%, transparent) 248px 249.5px, transparent 249.5px) center / 100% 100% no-repeat,
    radial-gradient(circle, transparent 0 310px, color-mix(in srgb, var(--accent) 6%, transparent) 310px 311.5px, transparent 311.5px) center / 100% 100% no-repeat;
  mask-image: radial-gradient(circle, #000 60%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 80%);
}
.cta-band::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent);
  pointer-events: none;
}
.cta-band h2 {
  position: relative;
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.cta-band p {
  position: relative;
  color: var(--ink-soft);
  margin-bottom: 34px;
}
.cta-band .hero-ctas { justify-content: center; position: relative; }

/* --------------------------------------------------------------------------
   Pricing page
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 74px 0 28px;
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.2rem); letter-spacing: -0.03em; margin-bottom: 18px; }
.page-hero p { color: var(--ink-soft); max-width: 36em; margin: 0 auto; font-size: 1.04rem; }

.notice {
  max-width: 720px;
  margin: 32px auto 0;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent-deep);
  font-weight: 400;
  text-align: center;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
  margin: 56px auto 0;
  max-width: 760px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured {
  border-color: var(--accent);
  border-width: 1.5px;
  box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--accent) 65%, transparent);
}
.plan .plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 999px;
}
.plan h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.plan .plan-for { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 24px; }
.plan .price {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.plan .price small { font-family: var(--mono); font-size: 0.3em; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }
.plan .price-note { font-size: 0.76rem; color: var(--ink-faint); margin-bottom: 26px; min-height: 2.6em; }
.plan ul {
  list-style: none;
  margin: 0 0 30px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--live); transform: translateY(-1px); }
.plan li.minus::before { background: var(--ink-faint); }
.plan li.minus { color: var(--ink-faint); }
.plan .btn { margin-top: auto; justify-content: center; }

@media (max-width: 880px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; }
}

/* comparison table */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9rem;
}
.cmp-table th, .cmp-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.cmp-table thead th {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--floor-deep);
}
.cmp-table tbody th { font-weight: 700; color: var(--ink); width: 34%; }
.cmp-table td { color: var(--ink-soft); }
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: none; }
.cmp-table .yes { color: var(--live); font-weight: 700; }
.cmp-table .opt { color: var(--p-gold); font-weight: 700; }

.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 26px;
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 19px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  flex: none;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a {
  padding: 0 0 22px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--dusk);
  color: rgba(231, 239, 232, 0.66);
  padding: 62px 0 38px;
  font-size: 0.85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 46px;
}
.site-footer .brand { color: var(--dusk-ink); margin-bottom: 16px; }
.footer-tag { max-width: 26em; font-size: 0.84rem; line-height: 1.8; }
.site-footer h4 {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(231, 239, 232, 0.45);
  text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(231, 239, 232, 0.78); }
.site-footer a:hover { color: var(--live); }
.footer-legal {
  border-top: 1px solid rgba(231, 239, 232, 0.12);
  padding-top: 26px;
  display: grid;
  gap: 10px;
  font-size: 0.74rem;
  color: rgba(231, 239, 232, 0.42);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================== Early-access waitlist ============================== */
.waitlist-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.waitlist-form .wl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.waitlist-form .wl-field { display: grid; gap: 6px; }
.waitlist-form .wl-wide { grid-column: 1 / -1; }
.waitlist-form .wl-field > span {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.waitlist-form .wl-field em {
  font-style: normal;
  color: var(--ink-faint);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.waitlist-form input,
.waitlist-form textarea {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.waitlist-form textarea { resize: vertical; min-height: 84px; }
.waitlist-form input::placeholder,
.waitlist-form textarea::placeholder { color: var(--ink-faint); }
.waitlist-form input:focus,
.waitlist-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.waitlist-form .wl-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.waitlist-form .wl-status { margin: 0; font-size: 0.88rem; font-weight: 500; }
.waitlist-form .wl-status.is-ok { color: var(--live); }
.waitlist-form .wl-status.is-error { color: var(--p-clay); }
.waitlist-form button[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.waitlist-form .wl-fineprint { margin: 0; font-size: 0.78rem; color: var(--ink-faint); }
/* Honeypot — visually and programmatically removed from the flow. */
.waitlist-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) {
  .waitlist-form .wl-row { grid-template-columns: 1fr; }
}
