/* ============================================================================
   Reflux marketing site stylesheet (2026-09-30 revamp)
   One small sheet for the product-led pages: home, the four product pages,
   custom models and pricing. Same tokens as brand/reflux-brand.css and
   landing-cursor.css, so the older pages that still load landing-cursor.css
   share the palette, the type and the header.
   ============================================================================ */

:root {
  color-scheme: light dark;
  --bg: #f7f7f4;
  --bg-deep: #efeee9;
  --fg: #26251e;
  --fg-soft: rgba(38, 37, 30, 0.62);
  --fg-mid: rgba(38, 37, 30, 0.5);
  --fg-faint: rgba(38, 37, 30, 0.38);
  --card: #f2f1ed;
  --card-2: #ebeae5;
  --card-3: #e6e5e0;
  --border: rgba(38, 37, 30, 0.1);
  --border-strong: rgba(38, 37, 30, 0.2);
  --button: #26251e;
  --button-hover: #3b3a33;
  --button-text: #f7f7f4;
  --accent: #f54e00;
  --accent-hot: #ff7a33;
  --accent-mid: #ff9d63;
  --green: #1f8a65;
  --red: #cf2d56;
  --panel-ink: #fff7f2;
  --radius: 4px;
  --radius-ui: 8px;
  --radius-card: 14px;
  --header-height: 60px;
  --container: 1200px;
  --gutter: 24px;
  --duration: 140ms;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-window: 0 40px 90px rgba(38, 37, 30, 0.18);
  --shadow-soft: 0 16px 40px rgba(38, 37, 30, 0.08);
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-family: var(--font-sans);
}
:root[data-theme="light"] {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14120b;
  --bg-deep: #0c0b07;
  --fg: #edecec;
  --fg-soft: rgba(237, 236, 236, 0.62);
  --fg-mid: rgba(237, 236, 236, 0.5);
  --fg-faint: rgba(237, 236, 236, 0.4);
  --card: #1b1913;
  --card-2: #201e18;
  --card-3: #26241e;
  --border: rgba(237, 236, 236, 0.1);
  --border-strong: rgba(237, 236, 236, 0.2);
  --button: #edecec;
  --button-hover: #d7d6d5;
  --button-text: #14120b;
  --shadow-window: 0 40px 90px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.28);
}
:root[data-theme="dark"] .brand img.mono-logo {
  filter: invert(1);
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--header-height);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
video {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  margin: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: 8px;
  z-index: 100;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
.wrap {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}
em {
  font-style: normal;
  color: var(--accent);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--fg-mid);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent);
}

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0.78em 1.35em 0.8em;
  border: 1px solid var(--button);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition:
    color var(--duration) var(--ease),
    background var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}
.button-primary {
  background: var(--button);
  color: var(--button-text);
}
.button-primary:hover,
.button-primary:focus-visible {
  background: var(--button-hover);
  border-color: var(--button-hover);
}
.button-secondary {
  border-color: var(--border-strong);
  background: var(--card);
  color: var(--fg);
}
.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--card-2);
}
.button-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.button-accent:hover,
.button-accent:focus-visible {
  background: var(--accent-hot);
  border-color: var(--accent-hot);
}
.button-small {
  min-height: 36px;
  padding: 0.45em 0.95em 0.47em;
  font-size: 0.875rem;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  color: var(--accent);
  font-size: 0.96rem;
  font-weight: 500;
}
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-hot);
}

/* ---------------------------------------------------------------------------
   Hero (split like the reference: copy left, product on a colour panel right)
   --------------------------------------------------------------------------- */
.hero {
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-height));
  max-height: 860px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 72px) clamp(56px, 8vw, 96px) 0;
}
.hero-notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 26px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg-soft);
  font-size: 0.86rem;
  transition:
    border-color var(--duration) var(--ease),
    background var(--duration) var(--ease);
}
.hero-notice:hover,
.hero-notice:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
}
.hero-notice-tag {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-notice-arrow {
  flex: none;
  color: var(--accent);
}
.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 6vw, 4.9rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero-lede {
  max-width: 34rem;
  margin-top: 26px;
  color: var(--fg-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.hero-fine {
  margin-top: 16px;
  color: var(--fg-mid);
  font-size: 0.88rem;
}
.hero-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px) 0 clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px);
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw) 0 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(circle at 80% 20%, var(--accent-hot), transparent 55%),
    var(--accent);
}
.hero-panel > * {
  position: relative;
  z-index: 1;
}
.product-window {
  width: 100%;
  max-width: 640px;
  overflow: hidden;
  border: 1px solid rgba(38, 37, 30, 0.18);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-window);
}
.window-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--card-2);
  color: var(--fg-mid);
  font-size: 0.78rem;
}
.window-chrome .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.window-chrome strong {
  margin-left: 8px;
  color: var(--fg);
  font-weight: 500;
}
.product-window video,
.product-window img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0c0b07;
}

/* ---------------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------------- */
.band {
  padding: clamp(64px, 9vw, 112px) 0;
  border-bottom: 1px solid var(--border);
}
.band-tight {
  padding: clamp(36px, 5vw, 56px) 0;
}
.band-head {
  max-width: 44rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.band-head h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
}
.band-head p {
  margin-top: 16px;
  color: var(--fg-soft);
  font-size: 1.1rem;
  line-height: 1.55;
}
.band-head.center {
  margin-inline: auto;
  text-align: center;
}

/* Simulator strip (the reference's logo strip) */
.strip {
  text-align: center;
}
.strip p {
  margin: 0 0 20px;
  color: var(--fg-mid);
  font-size: 0.92rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-soft);
  font-size: 0.9rem;
  white-space: nowrap;
}
.chips li.live {
  border-color: var(--accent);
  color: var(--fg);
}
.chips li.live::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 1px;
}

/* Product cards with a short exchange in each (the reference's agent cards) */
.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  overflow: hidden;
  transition:
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}
.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.exchange {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--bg);
  font-size: 0.86rem;
  line-height: 1.4;
}
.bubble {
  max-width: 92%;
  padding: 9px 12px;
  border-radius: 12px;
}
.bubble.you {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: var(--card-2);
  color: var(--fg);
}
.bubble.agent {
  justify-self: start;
  border-bottom-left-radius: 4px;
  background: var(--fg);
  color: var(--bg);
}
.bubble.agent b {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-mid);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}
.product-body h3 {
  font-size: 1.2rem;
}
.product-body p {
  flex: 1;
  color: var(--fg-soft);
  font-size: 0.95rem;
}
.product-body .who {
  color: var(--fg-mid);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* How it works (the reference's lifecycle: steps left, panel right) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split.reverse > :first-child {
  order: 2;
}
.steps {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 12px;
  transition: background var(--duration) var(--ease);
}
.steps li:hover {
  background: var(--card);
}
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.steps strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 500;
}
.steps p {
  margin-top: 6px;
  color: var(--fg-soft);
  font-size: 0.97rem;
}
.panel {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(circle at 20% 90%, var(--accent-hot), transparent 55%),
    var(--accent);
}
.panel-soft {
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--card);
  border: 1px solid var(--border);
}
.plan-card {
  border: 1px solid rgba(38, 37, 30, 0.16);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.plan-card + .plan-card {
  margin-top: 12px;
}
.plan-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.plan-card header span {
  color: var(--fg-mid);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.plan-card header b {
  font-weight: 500;
}
.plan-card ol,
.plan-card ul {
  margin: 0;
  padding: 12px 16px 12px 34px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.plan-card li + li {
  margin-top: 6px;
}
.plan-card code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--card-2);
  font-family: var(--font-mono);
  font-size: 0.82em;
}
.plan-card .verified {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  color: var(--green);
  font-size: 0.85rem;
}
.plan-card .verified::before {
  content: "\2713";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 16%, transparent);
  font-size: 0.7rem;
}
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--fg-soft);
  font-size: 0.74rem;
}
.tag.ok {
  background: color-mix(in srgb, var(--green) 14%, transparent);
  color: var(--green);
}

/* Feature grid (the reference's product suite) */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
}
.feature h3 {
  font-size: 1.1rem;
}
.feature h3 span {
  color: var(--fg-soft);
  font-weight: 400;
}
.feature p {
  margin-top: 8px;
  color: var(--fg-soft);
  font-size: 0.95rem;
}
.feature .glyph {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* Where it runs */
.surfaces {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.surfaces li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 12px;
}
.surfaces li:hover {
  background: var(--card);
}
.surfaces .glyph {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.surfaces strong {
  display: block;
  font-weight: 500;
}
.surfaces p {
  margin-top: 4px;
  color: var(--fg-soft);
  font-size: 0.94rem;
}

/* Custom model callout */
.callout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
}
.callout h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.08;
}
.callout p {
  margin-top: 14px;
  color: var(--fg-soft);
  font-size: 1.05rem;
}
.callout .hero-actions {
  margin-top: 26px;
}
.model-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}
.model-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 18px;
  margin: 0;
  font-size: 0.9rem;
}
.model-card dt {
  color: var(--fg-mid);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-top: 3px;
}
.model-card dd {
  margin: 0;
}

/* Trust grid */
.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.trust article {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.trust h3 {
  font-size: 1.05rem;
}
.trust p {
  margin-top: 8px;
  color: var(--fg-soft);
  font-size: 0.94rem;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  border-top: 1px solid var(--border);
}
.faq details:last-child {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--fg-mid);
  font-size: 1.3rem;
  font-weight: 300;
}
.faq details[open] summary::after {
  content: "\2013";
}
.faq details p {
  padding: 0 4px 20px;
  color: var(--fg-soft);
}

/* Final CTA */
.final-cta {
  padding: clamp(72px, 10vw, 128px) 0;
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.02;
}
.final-cta p {
  max-width: 36rem;
  margin: 18px auto 0;
  color: var(--fg-soft);
  font-size: 1.1rem;
}
.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.final-cta-note {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--fg-mid);
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------------------
   Product page hero (simpler than the home hero)
   --------------------------------------------------------------------------- */
.page-hero {
  padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
}
.page-hero .hero-grid {
  min-height: 0;
  max-height: none;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.page-hero .hero-copy {
  padding: 0;
}
.page-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
}
.page-hero .hero-panel {
  padding: clamp(24px, 4vw, 48px);
  border-radius: 24px;
}
.page-hero .hero-panel::before {
  inset: 0;
  border-radius: 24px;
}

/* ---------------------------------------------------------------------------
   Pricing
   --------------------------------------------------------------------------- */
.pricing-head {
  padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 48px);
  text-align: center;
}
.pricing-head h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.02;
}
.pricing-head p {
  max-width: 34rem;
  margin: 18px auto 0;
  color: var(--fg-soft);
  font-size: 1.1rem;
}
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}
.plan .badge {
  position: absolute;
  top: -12px;
  left: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan h2 {
  font-size: 1.25rem;
}
.plan .for {
  margin-top: 4px;
  color: var(--fg-mid);
  font-size: 0.88rem;
}
.plan .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 22px 0 4px;
}
.plan .amount {
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan .unit {
  color: var(--fg-mid);
  font-size: 0.9rem;
}
.plan .sub {
  min-height: 2.6em;
  color: var(--fg-soft);
  font-size: 0.88rem;
}
.plan ul {
  flex: 1;
  margin: 18px 0 22px;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  font-size: 0.92rem;
}
.plan li {
  position: relative;
  padding-left: 22px;
}
.plan li + li {
  margin-top: 9px;
}
.plan li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}
.plan .button {
  width: 100%;
}
.plan-note {
  margin-top: 22px;
  color: var(--fg-mid);
  font-size: 0.88rem;
  text-align: center;
}

/* ---------------------------------------------------------------------------
   Inquiry form (custom models)
   --------------------------------------------------------------------------- */
.inquiry {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
}
.form textarea {
  min-height: 140px;
  resize: vertical;
}
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form .fine {
  color: var(--fg-mid);
  font-size: 0.82rem;
  font-weight: 400;
}
.form-status {
  min-height: 1.4em;
  color: var(--green);
  font-size: 0.92rem;
}
.form-status.is-error {
  color: var(--red);
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.footer {
  padding: 64px var(--gutter) 30px;
  background: color-mix(in srgb, var(--card) 68%, var(--bg) 32%);
}
.footer-grid,
.footer-bottom {
  width: min(var(--container), 100%);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 48px;
}
.footer-brand p {
  max-width: 24rem;
  margin-top: 12px;
  color: var(--fg-soft);
  font-size: 0.92rem;
}
.footer h3 {
  margin: 0 0 13px;
  color: var(--fg-mid);
  font-size: 0.92rem;
  font-weight: 400;
}
.footer-grid a {
  display: block;
  margin-top: 10px;
  color: var(--fg);
  font-size: 0.95rem;
}
.footer-grid a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--fg-mid);
  font-size: 0.88rem;
}
.theme-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.theme-button {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-2) 82%, var(--bg) 18%);
  color: var(--fg);
  cursor: pointer;
  font-size: 0.9rem;
}
.theme-button[aria-pressed="true"] {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features,
  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  :root {
    --gutter: 16px;
  }
  .hero-grid,
  .split,
  .callout,
  .inquiry,
  .page-hero .hero-grid {
    grid-template-columns: 1fr;
  }
  .split.reverse > :first-child {
    order: 0;
  }
  .hero-grid {
    min-height: 0;
    max-height: none;
  }
  .hero-copy {
    padding: 48px 0 40px;
  }
  .hero-panel {
    padding: 24px 0 24px 0;
    margin: 0 calc(-1 * var(--gutter));
  }
  .hero-panel::before {
    inset: 0;
  }
  .hero-panel .product-window {
    margin: 0 var(--gutter);
  }
  .page-hero .hero-panel {
    margin: 0;
    padding: 20px;
  }
  .page-hero .hero-panel .product-window {
    margin: 0;
  }
  .hero h1,
  .page-hero h1 {
    max-width: none;
  }
  .form .row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .products,
  .plans,
  .features,
  .trust {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-actions .button,
  .final-cta-actions .button {
    width: 100%;
  }
  .steps li {
    grid-template-columns: 32px 1fr;
    padding: 14px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button:hover,
  .product-card:hover {
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   Product pages (the reference's product layout): a centred hero, the
   product itself right under it, then feature blocks that alternate sides.
   --------------------------------------------------------------------------- */
.phero {
  padding: clamp(56px, 8vw, 96px) 0 0;
  text-align: center;
}
.phero .eyebrow {
  justify-content: center;
}
.phero h1 {
  max-width: 16ch;
  margin: 0 auto;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.phero .hero-lede {
  max-width: 38rem;
  margin: 22px auto 0;
}
.phero .hero-actions {
  justify-content: center;
  margin-top: 30px;
}
.phero .hero-fine {
  max-width: 34rem;
  margin: 14px auto 0;
}
.phero-visual {
  margin-top: clamp(36px, 5vw, 64px);
}
.phero-visual .panel {
  padding: clamp(20px, 3.5vw, 48px) clamp(20px, 3.5vw, 48px) 0;
  border-radius: 24px 24px 0 0;
}
.phero-visual .product-window {
  max-width: 980px;
  margin: 0 auto;
  border-radius: 12px 12px 0 0;
  border-bottom: 0;
}
.phero-visual .product-window video,
.phero-visual .product-window img {
  aspect-ratio: 16 / 9;
}
.phero-visual .plan-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: clamp(20px, 3.5vw, 48px);
}
.phero-visual .plan-stack .plan-card + .plan-card {
  margin-top: 0;
}
.phero + .band {
  border-top: 1px solid var(--border);
}
.fblock .split {
  align-items: center;
}
.fblock .band-head {
  margin-bottom: 20px;
}
.fblock .band-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}
.fblock .surfaces {
  margin-top: 8px;
}
.fblock .hero-actions {
  margin-top: 22px;
}
.checks {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 26px;
  color: var(--fg-soft);
  font-size: 0.98rem;
}
.checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 0.7rem;
}
.checks li strong {
  color: var(--fg);
  font-weight: 500;
}

/* ---------------------------------------------------------------------------
   Sign-up page (the reference's auth layout): the form on the left, the
   product on the colour panel on the right, nothing else on the page.
   --------------------------------------------------------------------------- */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - var(--header-height));
}
.auth-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(440px, 100%);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
}
.auth-form h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}
.auth-form .lede {
  margin-top: 10px;
  color: var(--fg-soft);
}
.auth-form .student-form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}
.auth-form .student-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}
.auth-form .student-form input[type="email"] {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
}
.auth-form .student-form input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.auth-form .student-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--fg-soft);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.45;
}
.auth-form .student-check input {
  margin-top: 3px;
  accent-color: var(--accent);
}
.auth-form .student-check a {
  color: var(--fg);
  text-decoration: underline;
}
.auth-form .student-actions {
  display: grid;
  gap: 10px;
}
.auth-form .student-actions .button {
  width: 100%;
}
.auth-form .student-note {
  margin: 0;
  color: var(--fg-mid);
  font-size: 0.84rem;
  line-height: 1.45;
}
.auth-form .student-status {
  margin: 0;
  color: var(--red);
  font-size: 0.9rem;
}
.auth-form #sent h3 {
  font-size: 1.3rem;
}
.auth-form #sent {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.auth-form .checks {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.auth-form .checks li {
  font-size: 0.9rem;
}
html[data-os="windows"] [data-other-os] {
  display: none;
}
.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
}
.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(circle at 80% 20%, var(--accent-hot), transparent 55%),
    var(--accent);
}
.auth-visual > * {
  position: relative;
  z-index: 1;
}
.auth-visual .product-window {
  max-width: 560px;
}
.auth-proof {
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.auth-proof li {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #26251e;
  font-size: 0.9rem;
}
.auth-proof li b {
  font-weight: 500;
}
.auth-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 18px var(--gutter);
  border-top: 1px solid var(--border);
  color: var(--fg-mid);
  font-size: 0.86rem;
}
.auth-footer a {
  color: var(--fg-mid);
}
.auth-footer a:hover {
  color: var(--fg);
}

/* ---------------------------------------------------------------------------
   Demo page: what a demo covers on the left, the two-step form on the right.
   --------------------------------------------------------------------------- */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px);
}
.demo h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.demo .hero-lede {
  margin-top: 20px;
}
.demo-quote {
  margin-top: 30px;
  padding: 20px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--card);
  color: var(--fg-soft);
  font-size: 0.98rem;
}
.demo-quote footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--fg);
  font-size: 0.88rem;
}
.demo-quote img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.demo-quote small {
  display: block;
  color: var(--fg-mid);
}
.contact-form .contact-card.is-inactive {
  display: none;
}
.contact-form .contact-card h2 {
  margin-bottom: 4px;
  font-size: 1.3rem;
}
.contact-form .contact-form-step {
  display: grid;
  gap: 14px;
}
.contact-form .contact-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form label span[aria-hidden] {
  color: var(--accent);
}
.contact-form .contact-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.contact-form .contact-actions .button {
  flex: 1;
}
.contact-form-column .form-status {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .auth,
  .demo,
  .phero-visual .plan-stack {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    order: -1;
    min-height: 0;
    padding: 28px var(--gutter);
  }
  .auth-proof {
    display: none;
  }
  .phero h1 {
    max-width: none;
  }
  .contact-form .contact-field-row {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------------
   Library: the one-pagers sent from Instagram and the notes, newest first.
   The reference's blog layout: a compact left-aligned title, the filters
   down the left, two columns of cards on the right.
   --------------------------------------------------------------------------- */
.lib-band {
  padding-top: clamp(40px, 6vw, 64px);
}
.lib-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.lib-side {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 20px;
  border-right: 1px solid var(--border);
}
.lib-side-label {
  margin: 0 0 8px;
  padding-left: 10px;
  color: var(--fg-mid);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lib-filter {
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg-soft);
  font: inherit;
  font-size: 0.93rem;
  text-align: left;
  cursor: pointer;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease);
}
.lib-filter:hover {
  background: var(--card-2);
  color: var(--fg);
}
.lib-filter[aria-pressed="true"] {
  color: var(--fg);
  font-weight: 600;
}
.lib-head {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.lib-head h1 {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
}
.lib-head p {
  margin-top: 8px;
  color: var(--fg-soft);
  font-size: 1.02rem;
}
.lib-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.lib-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  color: var(--fg);
  transition:
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}
.lib-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.lib-card[hidden] {
  display: none;
}
.lib-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 80% 20%, var(--accent-hot), transparent 55%),
    var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}
.lib-card[data-kind="note"] .lib-cover {
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--card-2);
  color: var(--fg-soft);
  font-size: 0.8rem;
}
.lib-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
}
.lib-meta {
  color: var(--fg-mid);
  font-size: 0.8rem;
}
.lib-card strong {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lib-blurb {
  display: -webkit-box;
  overflow: hidden;
  color: var(--fg-soft);
  font-size: 0.92rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
@media (max-width: 900px) {
  .lib-layout {
    grid-template-columns: 1fr;
  }
  .lib-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .lib-side-label {
    display: none;
  }
  .lib-filter {
    padding: 8px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--card);
    color: var(--fg);
    font-size: 0.9rem;
  }
  .lib-filter[aria-pressed="true"] {
    border-color: var(--fg);
    background: var(--fg);
    color: var(--bg);
    font-weight: 500;
  }
}
@media (max-width: 640px) {
  .lib-grid {
    grid-template-columns: 1fr;
  }
}

/* Library covers that carry the page's own figure or photo */
.lib-cover-figure {
  padding: 10px;
  background: var(--card-2);
}
.lib-cover-figure img,
.lib-cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lib-cover-photo {
  padding: 0;
  background: var(--card-2);
}
.lib-cover-photo img {
  object-fit: cover;
}
.lib-kw {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  vertical-align: 1px;
}
