/* ==========================================================================
   Obri marketing site · light SaaS
   Near-white page · white cards · navy type · Lovable mint actions
   Headings: Tenor Sans (OFL, self-hosted) · Body: Inter (OFL, self-hosted)
   ========================================================================== */

@font-face {
  font-family: "Tenor Sans";
  src: url("assets/fonts/TenorSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: oklch(0.985 0.005 240);
  --foreground: oklch(0.28 0.03 254);
  --heading: oklch(0.20 0.04 254);
  --card: #ffffff;
  --primary: oklch(0.72 0.12 166);
  --primary-foreground: oklch(0.22 0.04 254);
  --secondary: oklch(0.55 0.12 253);
  --muted-foreground: oklch(0.46 0.03 254);
  --accent: oklch(0.42 0.09 166);
  --border: oklch(0.90 0.012 254);
  --blue: oklch(0.55 0.12 253);
  --mint: oklch(0.72 0.12 166);

  --field: var(--background);
  --field-2: #ffffff;
  --mint-soft: oklch(0.72 0.12 166 / 0.16);
  --sand: var(--secondary);
  --on-field: var(--foreground);
  --ink: var(--primary-foreground);
  --muted-on-field: var(--muted-foreground);
  --faint-on-field: oklch(0.52 0.025 254);
  --line-on-field: var(--border);
  --line-strong: oklch(0.84 0.015 254);
  --glass: #ffffff;
  --glass-2: oklch(0.97 0.008 254);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  --display: "Tenor Sans", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Liberation Mono", Menlo, Consolas, monospace;
  --wrap: 72rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--sans);
  background: var(--field);
  color: var(--on-field);
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}
/* Faint cool grid + mint/blue wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(13, 27, 45, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 27, 45, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(880px 420px at 8% -12%, oklch(0.72 0.095 253 / 0.22), transparent 62%),
    radial-gradient(760px 380px at 96% -8%, oklch(0.84 0.105 166 / 0.20), transparent 60%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  font-synthesis: none;
  color: var(--heading);
}
h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.005em; }
strong { font-weight: 600; }

/* —— Motion —— */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.72 0.12 166 / 0.45); }
  50% { box-shadow: 0 0 0 6px oklch(0.72 0.12 166 / 0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.8s var(--ease) forwards; }
.fade-up.d1 { animation-delay: 0.08s; }
.fade-up.d2 { animation-delay: 0.18s; }
.fade-up.d3 { animation-delay: 0.28s; }
.fade-up.d4 { animation-delay: 0.38s; }
.fade-up.d5 { animation-delay: 0.48s; }

/* Scroll reveal (enabled by site.js only; content visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 1.25rem 0;
}
.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.7rem 0.65rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
          backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.nav a.brand { display: inline-flex; align-items: center; justify-self: start; margin-right: 0; padding: 0.35rem 0; }
.nav-links { justify-self: center; }
.nav-cta { justify-self: end; border-radius: 999px; }
.brand .brand-logo { height: 20px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  font-size: 0.88rem;
  color: var(--muted-on-field);
  padding: 0.45rem 0.7rem;
  border-radius: 9px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--heading); background: var(--glass-2); }
.nav-links a.active { color: var(--heading); }
.nav-links a.active::after {
  content: ""; display: block; height: 1px; margin-top: 3px;
  background: var(--primary); border-radius: 1px;
}
.nav-cta { padding: 0.62rem 1rem; font-size: 0.86rem; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line-on-field);
  background: var(--glass);
  color: var(--heading);
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 768px) {
  .site-header { padding: 10px 0.75rem 0; }
  .nav { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0.5rem 0.5rem 0.5rem 0.95rem; }
  .brand .brand-logo { height: 18px; }
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-cta { order: 2; padding: 0.55rem 0.85rem; font-size: 0.82rem; }
  .nav-links {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    display: none;
    padding: 0.4rem 0 0.35rem;
    border-top: 1px solid var(--line-on-field);
    margin-top: 0.35rem;
  }
  .site-header.nav-open .nav-links { display: flex; animation: fadeUp 0.28s var(--ease); }
  .nav-links a { font-size: 1rem; padding: 0.75rem 0.6rem; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: var(--glass-2); }
}
@media (max-width: 360px) {
  .nav-cta { display: none; }
}

/* —— Layout —— */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.75rem; }
.section { max-width: var(--wrap); margin: 0 auto; padding: 6.5rem 1.5rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section-head .aside { font-size: 0.85rem; color: var(--muted-on-field); white-space: nowrap; }
.section-head .aside:hover { color: var(--heading); }
.section h2 { max-width: 30ch; }
.film-cap a { color: var(--heading); border-bottom: 1px solid var(--accent); }
.section .sub, .sub {
  margin-top: 0.85rem;
  color: var(--muted-on-field);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 40rem;
}
.section-intro { max-width: 40rem; margin-bottom: 1.75rem; }
.section-intro h2 { margin-top: 0; }
.section-intro .sub { margin-top: 0.7rem; }
.eyebrow, .kicker {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

/* —— Badges / pills —— */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line-on-field);
  border-radius: 999px;
  padding: 0.38rem 0.85rem 0.38rem 0.7rem;
  font-size: 0.76rem;
  color: var(--muted-on-field);
  margin-bottom: 1.4rem;
  background: var(--glass);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); display: inline-block;
  animation: softPulse 2.4s ease-in-out infinite;
}
.lede {
  margin-top: 1.35rem;
  color: var(--muted-on-field);
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 36rem;
}
.lede strong { color: var(--heading); font-weight: 600; }
.lede a, .agenda-item p a { color: var(--heading); border-bottom: 1px solid var(--accent); }

/* —— Buttons —— */
.cta-row { display: flex; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary, .btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 8px 20px oklch(0.72 0.12 166 / 0.28);
}
.btn-primary:hover, .btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--heading);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--accent); background: var(--glass-2); }
.btn.nav-cta { border-radius: 999px; padding: 0.62rem 1.05rem; }

/* —— Glass panels —— */
.glass, .panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

/* ==========================================================================
   Home · hero
   ========================================================================== */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.75rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.75rem, 5.6vw, 4.5rem); /* ~72px at desktop */
  line-height: 1.0;
  letter-spacing: -0.028em;
  max-width: 11ch;
}
.hero .lede { max-width: 31rem; }
.hero .lede .not-pms { display: block; margin-top: 0.9rem; color: var(--heading); }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.75rem; list-style: none;
  font-size: 0.78rem; color: var(--muted-on-field);
}
.hero-points li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
}
.hero-points li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex: none;
}

/* —— Product mockup (illustration) —— */
.mock {
  position: relative;
  overflow: hidden;
  padding: 0;
  --loop: 12s;
}
.mock::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 80%;
  background: radial-gradient(circle, oklch(0.84 0.105 166 / 0.35), transparent 65%);
  pointer-events: none;
}
.mock-bar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line-on-field);
  font-size: 0.74rem; color: var(--muted-on-field);
}
.mock-bar .dots { display: inline-flex; gap: 5px; }
.mock-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: oklch(0.84 0.015 254); display: block; }
.mock-bar .title { color: var(--heading); font-weight: 500; }
.mock-bar .illus {
  margin-left: auto; font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line-on-field); border-radius: 999px; padding: 0.18rem 0.55rem; color: var(--faint-on-field);
}
.mock-body { display: grid; grid-template-columns: 128px 1fr; min-height: 380px; position: relative; }
.mock-rail {
  border-right: 1px solid var(--line-on-field);
  padding: 0.9rem 0.6rem;
  display: flex; flex-direction: column; gap: 0.2rem;
  font-size: 0.74rem; color: var(--faint-on-field);
}
.mock-rail span { padding: 0.42rem 0.55rem; border-radius: 8px; }
.mock-rail span.on { background: var(--glass-2); color: var(--heading); }
.mock-main { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mock-label {
  font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint-on-field);
  display: flex; align-items: center; gap: 0.5rem;
}
.mock-msg {
  border: 1px solid var(--line-on-field);
  background: var(--glass-2);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  animation: mockMsg var(--loop) var(--ease) infinite;
}
.mock-msg .from { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; color: var(--muted-on-field); }
.mock-msg .from .wa {
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  border: 1px solid oklch(0.42 0.09 166 / 0.45); border-radius: 999px; padding: 0.1rem 0.45rem;
}
.mock-msg .bubble {
  margin-top: 0.55rem; display: inline-block;
  background: var(--primary); color: var(--primary-foreground);
  border-radius: 12px 12px 12px 4px;
  padding: 0.55rem 0.8rem; font-size: 0.88rem; font-weight: 500;
}
.mock-route {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.76rem; color: var(--muted-on-field);
  padding: 0 0.2rem;
  animation: mockRoute var(--loop) var(--ease) infinite;
}
.mock-route .line {
  flex: 1; height: 1px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, oklch(0.55 0.12 253 / 0.25), oklch(0.72 0.12 166 / 0.9), oklch(0.55 0.12 253 / 0.25));
}
.mock-route .line::after {
  content: ""; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 10px var(--primary);
  animation: mockDot var(--loop) linear infinite;
}
.mock-route .seat {
  color: var(--heading); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.22rem 0.65rem; font-size: 0.74rem; background: var(--glass-2); white-space: nowrap;
}
.mock-queue { display: grid; gap: 0.5rem; }
.mock-card {
  border: 1px solid var(--line-on-field);
  background: #fff;
  border-radius: 13px;
  padding: 0.75rem 0.85rem;
  display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 0.8rem; align-items: center;
}
.mock-card .t { font-size: 0.86rem; color: var(--heading); font-weight: 500; }
.mock-card .m { font-size: 0.72rem; color: var(--faint-on-field); grid-column: 1; }
.mock-card.new {
  border-color: oklch(0.72 0.12 166 / 0.7);
  background: oklch(0.72 0.12 166 / 0.10);
  animation: mockCard var(--loop) var(--ease) infinite;
}
.mock-card.dim { opacity: 0.55; }
.status { position: relative; grid-row: 1 / span 2; grid-column: 2; min-width: 88px; height: 26px; }
.status span {
  position: absolute; right: 0; top: 0;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em;
  border-radius: 999px; padding: 0.3rem 0.65rem; white-space: nowrap;
}
.status span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status .s-assigned { color: var(--accent); background: oklch(0.72 0.12 166 / 0.16); border: 1px solid oklch(0.42 0.09 166 / 0.35); animation: mockAssigned var(--loop) steps(1) infinite; }
.status .s-done { color: var(--primary-foreground); background: var(--primary); animation: mockDone var(--loop) var(--ease) infinite; }
.status .s-open { color: var(--muted-on-field); border: 1px solid var(--line-strong); position: static; }
.mock-foot {
  margin-top: auto; padding-top: 0.25rem;
  font-size: 0.7rem; color: var(--faint-on-field);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem;
}
.mock-foot b { color: var(--muted-on-field); font-weight: 500; }
.mock-foot i { font-style: normal; color: var(--accent); }

@keyframes mockMsg {
  0% { opacity: 0; transform: translateY(10px); }
  6%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@keyframes mockRoute {
  0%, 12% { opacity: 0; }
  18%, 92% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes mockDot {
  0%, 14% { left: 0; opacity: 0; }
  16% { opacity: 1; }
  28% { left: calc(100% - 5px); opacity: 1; }
  30%, 100% { left: calc(100% - 5px); opacity: 0; }
}
@keyframes mockCard {
  0%, 26% { opacity: 0; transform: translateY(8px) scale(0.98); }
  32%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes mockAssigned {
  0% { opacity: 1; }
  62% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes mockDone {
  0%, 60% { opacity: 0; transform: scale(0.9); }
  64%, 100% { opacity: 1; transform: none; }
}

/* ==========================================================================
   Numbered cards (01 / 02 / 03)
   ========================================================================== */
.num-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.num-card {
  padding: 1.6rem 1.5rem 1.7rem;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.num-card:hover { border-color: oklch(0.72 0.12 166 / 0.7); transform: translateY(-2px); }
.num-card .n {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  font-family: var(--display); font-size: 1rem; color: var(--accent);
  background: var(--mint-soft); border: 1px solid oklch(0.72 0.12 166 / 0.4);
  margin-bottom: 1.35rem;
}
.num-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.num-card p { color: var(--muted-on-field); font-size: 1rem; line-height: 1.65; }

/* ==========================================================================
   Film panel
   ========================================================================== */
.film-panel { overflow: hidden; padding: 0; }
.film-panel .mock-bar .title { font-weight: 500; }
.story-embed { width: 100%; background: var(--background); }
.story-embed iframe {
  width: 100%; display: block; border: 0;
  aspect-ratio: 16 / 9; height: auto; background: #fff;
}
.film-cap { margin-top: 1rem; font-size: 0.85rem; color: var(--faint-on-field); }

/* ==========================================================================
   Works-with diagram
   ========================================================================== */
.works { padding: 2.25rem; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 2.5rem; align-items: center; }
.works h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.works .sub { font-size: 0.98rem; }
.works .go { display: inline-block; margin-top: 1.4rem; font-size: 0.88rem; color: var(--heading); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.diagram {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 64px 1fr 64px 1fr;
  align-items: center;
}
.d-col { display: grid; gap: 0.6rem; }
.d-node {
  border: 1px solid var(--line-on-field);
  background: #fff;
  border-radius: 13px;
  padding: 0.7rem 0.8rem;
  font-size: 0.84rem; color: var(--heading);
}
.d-node small { display: block; font-size: 0.68rem; color: var(--faint-on-field); margin-top: 0.15rem; line-height: 1.35; }
.d-node.live { border-color: oklch(0.72 0.12 166 / 0.7); background: oklch(0.72 0.12 166 / 0.10); }
.d-node.shelf { border-style: dashed; color: var(--muted-on-field); background: transparent; }
.d-core {
  border-radius: 16px; padding: 1.1rem 0.8rem; text-align: center;
  border: 1px solid oklch(0.72 0.12 166 / 0.7);
  background: radial-gradient(circle at 50% 0%, oklch(0.84 0.105 166 / 0.28), #fff 75%);
  box-shadow: 0 10px 28px oklch(0.72 0.12 166 / 0.16);
}
.d-core img { height: 16px; width: auto; margin: 0 auto 0.5rem; }
.d-core small { display: block; font-size: 0.68rem; color: var(--muted-on-field); line-height: 1.35; }
.d-tag {
  display: inline-block; font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  border-radius: 999px; padding: 0.1rem 0.45rem; margin-bottom: 0.35rem;
}
.d-tag.live { color: var(--accent); border: 1px solid oklch(0.42 0.09 166 / 0.45); }
.d-tag.shelf { color: var(--faint-on-field); border: 1px dashed var(--line-strong); }
.d-wire { position: relative; height: 2px; margin: 0 6px; }
.d-wire.live { background: linear-gradient(90deg, var(--blue), var(--primary)); }
.d-wire.live::after {
  content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 12px var(--primary);
  animation: wire 2.8s var(--ease) infinite;
}
.d-wire.shelf {
  height: 0; border-top: 2px dashed oklch(0.55 0.02 254 / 0.45);
}
@keyframes wire { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.d-legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.1rem; font-size: 0.74rem; color: var(--faint-on-field); }
.d-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.d-legend i { display: inline-block; width: 20px; }
.d-legend .l-live i { height: 2px; background: var(--primary); }
.d-legend .l-shelf i { border-top: 2px dashed oklch(0.55 0.02 254 / 0.45); }

/* ==========================================================================
   Pricing teaser + contact
   ========================================================================== */
.teaser { padding: 2.25rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.teaser h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.teaser p { margin-top: 0.6rem; color: var(--muted-on-field); max-width: 38rem; }
.teaser .cta-row { margin-top: 0; }

.contact { padding: 2.5rem; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2.5rem; }
.contact h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.contact .sub a { color: var(--heading); border-bottom: 1px solid var(--accent); }
.contact .form-soft { margin-top: 0; max-width: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.form-grid .full { grid-column: 1 / -1; }

/* —— Forms —— */
.form-soft { display: grid; gap: 0.85rem; max-width: 560px; margin-top: 1.25rem; }
.form-soft label {
  display: grid; gap: 0.4rem;
  font-size: 0.72rem; color: var(--muted-on-field);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}
.form-soft input,
.form-soft textarea,
.form-soft select {
  background: rgba(17, 17, 17, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 0.8rem 0.9rem;
  color: var(--heading);
  font-family: var(--sans);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-soft select { appearance: auto; }
.form-soft select option { background: #fff; color: var(--heading); }
.form-soft textarea { min-height: 120px; resize: vertical; }
.form-soft input:focus,
.form-soft textarea:focus,
.form-soft select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(0.72 0.12 166 / 0.28);
}
.form-soft input::placeholder,
.form-soft textarea::placeholder { color: var(--faint-on-field); }
.form-soft .cta-row { margin-top: 0.4rem; }
.form-note { font-size: 0.78rem; color: var(--muted-on-field); margin-top: 0.5rem; }
.form-note a { color: var(--heading); border-bottom: 1px solid var(--accent); }
.sent-note {
  display: none; margin-bottom: 1rem; padding: 0.7rem 0.9rem; border-radius: 11px;
  background: var(--mint-soft); border: 1px solid oklch(0.42 0.09 166 / 0.35);
  color: var(--heading); font-weight: 600; font-size: 0.9rem;
}

/* ==========================================================================
   Inner pages (purpose, tools, architecture, pricing, demo)
   ========================================================================== */
.page-wrap { max-width: var(--wrap); margin: 0 auto; padding: 4.5rem 1.75rem 2rem; }
.page-wrap > h1, .page-wrap h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.025em; max-width: 18ch; }
.page-wrap .lede { margin: 1.25rem 0 2rem; max-width: 44rem; }
.page-wrap h2 { margin-top: 0.5rem; }
.page-wrap .section { padding-left: 0; padding-right: 0; }

.prose-block {
  margin: 1.5rem 0 2rem; max-width: 48rem;
  padding: 1.35rem 1.5rem; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line-on-field);
}
.prose-block p { color: var(--muted-on-field); font-size: 1rem; line-height: 1.65; margin-bottom: 0.85rem; }
.prose-block p:last-child { margin-bottom: 0; }
.prose-block strong { color: var(--heading); font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Shared glass-card treatment */
.card, .panel-box, .arch-node, .tool-row, .who-card, .cover-item, .step, .pricing-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  box-shadow: var(--shadow);
}
.card { display: block; padding: 1.5rem 1.4rem; min-height: 148px; transition: border-color 0.2s ease, transform 0.2s ease; }
a.card:hover { border-color: oklch(0.72 0.12 166 / 0.7); transform: translateY(-2px); }
.card .kicker { margin-bottom: 0.7rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted-on-field); font-size: 0.93rem; }
.card .go, .tool-row .go {
  display: inline-block; margin-top: 1rem; font-size: 0.8rem; font-weight: 600; color: var(--heading);
}
.card .go:hover, .tool-row a.go:hover { color: var(--accent); }

.note {
  margin-top: 1.75rem; padding: 1rem 1.2rem;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  font-size: 0.82rem; line-height: 1.6; color: var(--muted-on-field);
}
.note strong { color: var(--heading); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.panel-box { padding: 1.5rem 1.5rem 1.6rem; }
.panel-box h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.panel-box p, .panel-box li { color: var(--muted-on-field); font-size: 0.94rem; line-height: 1.6; }
.panel-box strong { color: var(--heading); }
.panel-box ul { margin: 0.6rem 0 0 1.1rem; display: grid; gap: 0.4rem; }
.panel-box a { color: var(--accent); font-weight: 600; }

.truth {
  display: inline-block;
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  padding: 0.2rem 0.55rem; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted-on-field);
  margin-bottom: 0.55rem;
}
.truth.live { color: var(--accent); border-color: oklch(0.42 0.09 166 / 0.4); background: oklch(0.72 0.12 166 / 0.12); }
.truth.shelf { color: var(--faint-on-field); border-style: dashed; background: transparent; }

.steps { display: grid; gap: 0.85rem; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 0.9rem; padding: 1.2rem 1.3rem; }
.step .num { font-family: var(--display); color: var(--accent); }
.step h3 { margin-bottom: 0.3rem; }
.step p { color: var(--muted-on-field); font-size: 0.92rem; }

.arch-ring { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.arch-node { padding: 1.35rem 1.3rem; }
.arch-node h3 { margin-bottom: 0.4rem; }
.arch-node p { color: var(--muted-on-field); font-size: 0.9rem; line-height: 1.55; }
.isolation-copy { color: var(--muted-on-field); font-size: 0.94rem; line-height: 1.6; margin: 0.45rem 0 0.75rem; }

.pricing-box { max-width: 720px; margin: 1.5rem 0 0; padding: 2rem; }
.pricing-box h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 0.6rem; }
.pricing-box p { color: var(--muted-on-field); margin-bottom: 1.2rem; }
.pricing-box p strong { color: var(--heading); }
.pricing-box ul { margin: 0 0 1.15rem 1.1rem; display: grid; gap: 0.4rem; }
.pricing-box li { color: var(--muted-on-field); font-size: 0.94rem; line-height: 1.5; }

.tool-block { display: grid; gap: 0.9rem; margin-top: 0.5rem; }
.tool-row { display: grid; grid-template-columns: 170px 1fr; gap: 1.25rem; padding: 1.4rem 1.5rem; }
.tool-row.live { border-color: oklch(0.72 0.12 166 / 0.55); }
.tool-row.shelf { border-style: dashed; border-color: var(--line-strong); }
.tool-meta .name { font-family: var(--display); font-size: 1.25rem; color: var(--heading); margin: 0.35rem 0 0.45rem; }
.tool-row p { color: var(--muted-on-field); font-size: 1rem; line-height: 1.65; }
.tool-row p strong { color: var(--heading); }

.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 1.75rem; }
.who-card { padding: 1.3rem 1.25rem; }
.who-card h3 { margin-bottom: 0.4rem; }
.who-card p { font-size: 0.9rem; color: var(--muted-on-field); }

.demo-cover { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 0; }
.cover-item { padding: 1.35rem 1.3rem; }
.cover-item .kicker { margin-bottom: 0.5rem; }
.cover-item h3 { margin-bottom: 0.4rem; }
.cover-item p { font-size: 0.9rem; color: var(--muted-on-field); line-height: 1.55; }


/* —— Pricing tier cards (kept verbatim from v1) —— */
/* Pricing tier cards — three clear boxes */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 920px;
}
.price-card {
  background: #fff;
  color: var(--heading);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 1.3rem 1.45rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.price-card.featured {
  border-color: oklch(0.72 0.12 166 / 0.8);
  box-shadow:
    inset 0 0 0 1px oklch(0.72 0.12 166 / 0.35),
    0 14px 36px rgba(15, 23, 42, 0.08);
}
.price-card .price-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
}
.price-card.featured .price-label { color: var(--accent); }
.price-card .price-amount {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--heading);
}
.price-card .price-amount span {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted-on-field);
  margin-left: 0.15rem;
}
.price-card .price-note {
  margin: auto 0 0;
  padding-top: 0.55rem;
  font-size: 0.95rem;
  color: var(--muted-on-field);
}
@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .price-card .price-amount { font-size: 1.9rem; }
}

/* —— Footer —— */
.foot {
  max-width: var(--wrap);
  margin: 6rem auto 0;
  padding: 0 1.75rem 2.5rem;
}
.foot-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  font-size: 0.9rem; color: var(--muted-on-field);
}
.foot-copy { color: var(--muted-on-field); }
.foot .brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.foot .brand .brand-logo { height: 14px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.foot-links a:hover { color: var(--heading); }

/* —— Responsive —— */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 3.5rem; }
  .hero h1 { max-width: 13ch; }
  .works { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .who-grid, .demo-cover, .tool-row, .grid, .grid-2, .grid-4, .arch-ring { grid-template-columns: 1fr; }
  .num-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding-top: 4rem; padding-left: 1.1rem; padding-right: 1.1rem; }
  .hero { padding: 2.75rem 1.1rem 0.5rem; gap: 2.5rem; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.25rem); }
  .lede { font-size: 1.02rem; }
  .page-wrap { padding: 3rem 1.1rem 1.5rem; }
  .page-wrap > h1, .page-wrap h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-rail { flex-direction: row; overflow: hidden; border-right: 0; border-bottom: 1px solid var(--line-on-field); padding: 0.55rem 0.6rem; flex-wrap: nowrap; }
  .mock-rail span { white-space: nowrap; }
  .mock-rail span:nth-child(n+4) { display: none; }
  .works, .teaser, .contact, .pricing-box { padding: 1.5rem 1.25rem; }
  .diagram { grid-template-columns: 1fr; }
  .d-wire { width: 2px; height: 34px; margin: 6px auto; }
  .d-wire.live { background: linear-gradient(180deg, var(--blue), var(--primary)); }
  .d-wire.live::after { left: -3px; animation-name: wireV; }
  .d-wire.shelf { width: 0; height: 34px; border-top: 0; border-left: 2px dashed oklch(0.55 0.02 254 / 0.45); }
  .form-grid { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 auto; }
  .tool-row { padding: 1.2rem 1.15rem; gap: 0.5rem; }
  .prose-block { padding: 1.1rem 1.15rem; }
  .foot { margin-top: 4rem; padding: 0 1.1rem 2rem; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}
@keyframes wireV { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }


/* ==========================================================================
   SaaS reading rhythm · guest flow · system chips
   ========================================================================== */
.page-hero { max-width: 44rem; margin-bottom: 2.25rem; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { margin-bottom: 0; }
.stack { display: grid; gap: 0.85rem; }
.stack p { margin: 0; color: var(--muted-on-field); font-size: 1.02rem; line-height: 1.65; }
.read-card {
  padding: 1.35rem 1.4rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
}
.read-card h2, .read-card h3 { margin: 0 0 0.55rem; }
.read-card p, .read-card li { color: var(--muted-on-field); font-size: 1rem; line-height: 1.65; }
.read-card p + p { margin-top: 0.7rem; }
.read-card strong { color: var(--heading); }
.read-card ul { margin: 0.35rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.55rem; }

.flow-panel { padding: 1.6rem 1.5rem 1.4rem; }
.flow-rail { display: grid; gap: 0.75rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
.flow-item { display: flex; flex-direction: column; gap: 0.65rem; min-width: 0; }
.flow-node {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1rem 1.05rem;
  min-width: 0;
}
.flow-node.core {
  border-color: oklch(0.72 0.12 166 / 0.7);
  background: oklch(0.84 0.105 166 / 0.16);
}
.flow-dot {
  display: block; width: 0.45rem; height: 0.45rem; border-radius: 999px; background: var(--blue);
  box-shadow: 0 0 0 4px oklch(0.55 0.12 253 / 0.12);
}
.flow-node.core .flow-dot,
.flow-item:nth-child(n+4) .flow-dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px oklch(0.72 0.12 166 / 0.16);
}
.flow-node h3 { margin: 0.7rem 0 0.25rem; font-size: 1.02rem; }
.flow-node p { margin: 0; font-size: 0.82rem; line-height: 1.45; color: var(--muted-on-field); }
.flow-edge {
  display: block; height: 18px; width: 2px; margin: 0 auto;
  background-image: linear-gradient(180deg, var(--blue) 55%, transparent 55%);
  background-size: 2px 10px;
}
@media (min-width: 960px) {
  .flow-rail { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 0; }
  .flow-item { flex-direction: row; align-items: stretch; gap: 0; }
  .flow-item > .flow-node { flex: 1; }
  .flow-edge {
    width: 1.6rem; height: 2px; margin: auto 0.35rem; flex: none; align-self: center;
    background-image: linear-gradient(90deg, var(--primary) 55%, transparent 55%);
    background-size: 10px 2px;
  }
}
.system-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.25rem; }
.system-chip {
  border-radius: 14px; padding: 0.9rem 1rem; min-width: 0;
  border: 1px dashed var(--line-strong);
  background: #fff;
}
.system-chip.live {
  border-style: solid;
  border-color: oklch(0.72 0.12 166 / 0.7);
  background: oklch(0.84 0.105 166 / 0.16);
}
.system-chip .state {
  display: block; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted-on-field); line-height: 1.4;
}
.system-chip.live .state { color: var(--accent); }
.system-chip strong { display: block; margin-top: 0.35rem; font-size: 0.95rem; font-weight: 600; color: var(--heading); }
.film-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; flex-wrap: wrap; }
.film-head h2 { margin: 0; }

@media (max-width: 720px) {
  .system-row { grid-template-columns: 1fr; }
  .flow-panel { padding: 1.15rem 1rem; }
  body { font-size: 16px; }
}

/* —— Reduced motion: everything visible, static —— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-up, .js .reveal { opacity: 1 !important; transform: none !important; }
  .mock-msg, .mock-route, .mock-card.new { opacity: 1 !important; transform: none !important; }
  .status .s-assigned { opacity: 0 !important; }
  .status .s-done { opacity: 1 !important; }
  .mock-route .line::after, .d-wire.live::after { display: none; }
}
