/* Dorefin AI landing page.
   Every value resolves to a token below: spacing, radius, type scale and motion
   follow the landing page design skill. Three themes share one component set. */

:root,
[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f6f6f6;
  --surface: #ffffff;
  --surface-2: #f2f2f2;
  --ink: #0b0c0f;
  --ink-2: #4f525a;
  --ink-3: #6e717a;
  --line: rgba(11, 12, 15, 0.1);
  --line-2: rgba(11, 12, 15, 0.18);
  --emphasis: #000000;
  --emphasis-soft: rgba(0, 0, 0, 0.06);
  --btn-bg: #0b0c0f;
  --btn-ink: #ffffff;
  --btn-hover: #2b2d33;
  --ghost-hover: rgba(11, 12, 15, 0.06);
  --glass: rgba(255, 255, 255, 0.72);
  --menu: rgba(255, 255, 255, 0.92);
  --danger: #b42318;
  --focus: #1d4fd8;
  --hero-from: #000000;
  --hero-to: #666666;
  --shadow: 0 24px 48px -24px rgba(11, 12, 15, 0.18);
  color-scheme: light;
}


/* Dark backgrounds only use the approved set: #000000 #181818 #1F1F1F #272727 #313131 #131209 */
[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #181818;
  --surface: #181818;
  --surface-2: #272727;
  --ink: #f4f4f4;
  --ink-2: #a8a8a8;
  --ink-3: #8c8c8c;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --emphasis: #ffffff;
  --emphasis-soft: rgba(255, 255, 255, 0.1);
  --btn-bg: #f4f4f4;
  --btn-ink: #181818;
  --btn-hover: #ffffff;
  --ghost-hover: rgba(255, 255, 255, 0.08);
  --glass: rgba(24, 24, 24, 0.72);
  --menu: rgba(0, 0, 0, 0.94);
  --danger: #ff8a7f;
  --focus: #9dbcff;
  --hero-from: #ffffff;
  --hero-to: #9b9b9b;
  --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

:root {
  /* Spacing */
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  /* Tailwind radius values */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1120px;
  --gutter: var(--s-200);
}

@media (min-width: 640px) {
  :root { --gutter: var(--s-300); }
}
@media (min-width: 1024px) {
  :root { --gutter: var(--s-400); }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--s-900);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, [class^="heading-"] { text-wrap: balance; }
p, li, dd, blockquote, label, summary { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
em, i, cite { font-style: normal; }

/* ---------- Text styles (named, from the type scale) ---------- */
.heading-1 { font-size: 3.75rem; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.heading-2 { font-size: 3rem; line-height: 1; font-weight: 600; letter-spacing: -0.025em; }
.heading-3 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.02em; }
.heading-4 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.02em; }
.heading-5 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.015em; }
.heading-6 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -0.01em; }
.title-1 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.title-2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.title-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.title-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.title-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.body-1 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.body-2 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.body-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 400; }
.body-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.body-5 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.body-6 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.button-lg { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.button-md { font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.button-sm { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.button-xsm { font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.caption-1 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.caption-2 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.caption-3 { font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.caption-4 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.caption-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 400; }

/* Smaller screens swap to a smaller named style */
@media (max-width: 639px) {
  .m-heading-3 { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.02em; }
  .m-heading-4 { font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.02em; }
  .m-heading-5 { font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.015em; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .t-heading-2 { font-size: 3rem; line-height: 1; }
  .t-heading-3 { font-size: 2.25rem; line-height: 2.5rem; }
}

.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--s-700); }
.section--alt { background: var(--bg-alt); }
@media (min-width: 1024px) {
  .section { padding-block: var(--s-900); }
}

.section-head { max-width: 680px; margin-bottom: var(--s-500); }
.section-head .eyebrow { margin-bottom: var(--s-200); }
.section-head p { margin-top: var(--s-200); }
@media (min-width: 1024px) {
  .section-head { margin-bottom: var(--s-600); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  color: var(--ink-2);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: var(--s-200);
  left: var(--s-200);
  z-index: 100;
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  background: var(--btn-bg);
  color: var(--btn-ink);
  transform: translateY(-200%);
  transition: transform 500ms var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 300ms var(--ease), color 300ms var(--ease),
    border-color 300ms var(--ease), transform 500ms var(--ease);
}
.btn i { font-size: 1.125rem; transition: transform 500ms var(--ease); }
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--accent-solid); color: var(--accent-on); }
.btn--primary:hover { background: var(--accent-solid-hover); }
.btn--primary:hover i { transform: translateX(var(--s-25)); }

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

.btn--icon {
  width: var(--s-500);
  height: var(--s-500);
  padding: 0;
  background: transparent;
  color: var(--ink);
}
.btn--icon:hover { background: var(--ghost-hover); }
.btn--icon i { font-size: 1.25rem; }

.btn[disabled] { cursor: progress; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
  color: var(--accent-text);
  border-radius: var(--r-sm);
  transition: color 300ms var(--ease);
}
.text-link i { transition: transform 500ms var(--ease); }
.text-link:hover { color: var(--accent-solid-hover); }
.text-link:hover i { transform: translateX(var(--s-50)); }
.text-link:active { transform: translateY(1px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: var(--s-200);
  left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - var(--s-400));
  display: flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-75);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow);
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-75);
  border-radius: var(--r-lg);
  color: var(--ink);
}
.brand-mark { width: 31px; height: 22px; flex: none; color: var(--ink); }

.nav-links { display: none; align-items: center; gap: var(--s-25); }
.nav-links a {
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  color: var(--ink-2);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--ghost-hover); }
.nav-links a[aria-current] { color: var(--ink); background: var(--ghost-hover); }

.nav-actions { display: flex; align-items: center; gap: var(--s-50); }

.menu-toggle { position: relative; }
.menu-toggle .bar {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 2px;
  border-radius: var(--r-full);
  background: currentColor;
  transition: transform 500ms var(--ease);
}
.menu-toggle .bar:first-child { transform: translateY(-3px); }
.menu-toggle .bar:last-child { transform: translateY(3px); }
.menu-toggle[aria-expanded="true"] .bar:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:last-child { transform: rotate(-45deg); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
}

@media (max-width: 380px) {
  .brand-name { display: none; }
}

/* Mobile menu: full height panel */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: var(--s-400);
  padding: var(--s-900) var(--s-300) var(--s-400);
  background: var(--menu);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ease), visibility 0s linear 300ms;
}
.menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 300ms var(--ease), visibility 0s;
}
.menu-links { display: flex; flex-direction: column; gap: var(--s-75); }
.menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-100) 0;
  color: var(--ink);
}
.menu-links a[aria-current] { color: var(--accent-text); }
.menu-item {
  opacity: 0;
  transform: translateY(var(--s-300));
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  transition-delay: 0ms;
}
.menu[data-open="true"] .menu-item {
  opacity: 1;
  transform: none;
  transition-delay: var(--d, 0ms);
}
@media (min-width: 900px) {
  .menu { display: none; }
}

/* ---------- Theme switcher ---------- */
.segmented {
  display: inline-flex;
  gap: var(--s-25);
  padding: var(--s-25);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.segmented button {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
  padding: var(--s-50) var(--s-100);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 500ms var(--ease);
}
.segmented button:hover { color: var(--ink); background: var(--ghost-hover); }
.segmented button:active { transform: scale(0.98); }
.segmented button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-ink); }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--s-900) + var(--s-400));
  padding-bottom: var(--s-700);
  text-align: center;
}
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--s-900) + var(--s-700)); padding-bottom: var(--s-900); }
}

.hero-title {
  max-width: 680px;
  margin-inline: auto;
  padding-bottom: var(--s-50);
  background: linear-gradient(90deg, var(--hero-from), var(--hero-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 680px;
  margin: var(--s-300) auto 0;
  color: var(--ink-2);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-200);
  margin-top: var(--s-400);
}

.hero-kicker {
  margin-bottom: var(--s-300);
  color: var(--ink-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .hero-cta { flex-direction: row; justify-content: center; }
}

.proof-line {
  max-width: 680px;
  color: var(--ink-2);
}

/* Hero product preview */
.preview {
  margin-top: var(--s-700);
  padding: var(--s-75);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  text-align: left;
}
.preview-inner {
  display: grid;
  gap: var(--s-75);
  border-radius: var(--r-2xl);
}
@media (min-width: 768px) and (max-width: 1023px) {
  .preview-inner { grid-template-columns: 1fr 1fr; }
  .preview-inner > .pane:last-child { grid-column: 1 / -1; }
  .preview-inner > .pane:last-child .channels { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .preview-inner { grid-template-columns: 1.1fr 1fr 1fr; }
}

.pane {
  display: flex;
  flex-direction: column;
  gap: var(--s-100);
  padding: var(--s-200);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--surface);
  min-width: 0;
}
.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-75);
  color: var(--ink-2);
}
.pane-head .title-4 { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--ink); }
.pane-head i { font-size: 1rem; color: var(--emphasis); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
  padding: var(--s-25) var(--s-75);
  border-radius: var(--r-full);
  background: var(--emphasis-soft);
  color: var(--emphasis);
  white-space: nowrap;
}
.chip--plain { background: var(--surface-2); color: var(--ink-2); }

.wire { display: flex; flex-direction: column; gap: var(--s-75); }
.wire li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-25) var(--s-100);
  padding: var(--s-100);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.wire time { grid-row: span 2; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wire .meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-75); color: var(--ink-3); }
.wire li.is-new { border-color: var(--emphasis); }

.draft { display: flex; flex-direction: column; gap: var(--s-100); }
.draft-lines { display: flex; flex-direction: column; gap: var(--s-75); }
.draft-lines span {
  height: 8px;
  border-radius: var(--r-full);
  background: var(--surface-2);
}
.draft-actions { display: flex; gap: var(--s-75); margin-top: auto; flex-wrap: wrap; }
.fake-btn {
  padding: var(--s-50) var(--s-100);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  color: var(--ink);
}
.fake-btn--solid { background: var(--accent-solid); color: var(--accent-on); border-color: transparent; }

.channels { display: flex; flex-direction: column; gap: var(--s-75); }
.channels li {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  padding: var(--s-100);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.channels i { font-size: 1.25rem; color: var(--ink-2); }
.channels .grow { flex: 1; min-width: 0; }
.channels .grow span { display: block; color: var(--ink-3); }

.preview-caption { margin-top: var(--s-200); color: var(--ink-3); text-align: center; }

/* ---------- Problem to solution ---------- */
.split { display: grid; gap: var(--s-300); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-400); }
}

.card {
  padding: var(--s-300);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--surface);
}
@media (min-width: 1024px) {
  .card { padding: var(--s-400); }
}
.card-label { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--ink-2); margin-bottom: var(--s-300); }
.card--dark { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }
.card--dark .card-label,
.card--dark .muted { color: inherit; opacity: 0.72; }

.pain-list, .gain-list { display: flex; flex-direction: column; gap: var(--s-200); }
.pain-list li, .gain-list li { display: flex; gap: var(--s-100); }
.pain-list i, .gain-list i { flex: none; font-size: 1.25rem; margin-top: var(--s-25); }
.pain-list i { color: var(--ink-3); }
.gain-list i { color: var(--emphasis); }
.card--dark .gain-list i { color: inherit; }

.offer-card { display: flex; flex-direction: column; gap: var(--s-300); }
.offer-card .card-label { margin-bottom: 0; }
.offer-card .gain-list { margin-block: var(--s-50); }
.offer-card .text-link { margin-top: auto; align-self: flex-start; }

/* ---------- Products ---------- */
.products { display: grid; gap: var(--s-300); }
@media (min-width: 900px) {
  .products { grid-template-columns: 1fr 1fr; }
}
.product { display: flex; flex-direction: column; gap: var(--s-300); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-100); }
.product-icon {
  display: grid;
  place-items: center;
  width: var(--s-600);
  height: var(--s-600);
  border-radius: var(--r-xl);
  background: var(--emphasis-soft);
  color: var(--emphasis);
  font-size: 1.5rem;
}
.product h3 + p { margin-top: var(--s-75); }
.caps { display: grid; gap: var(--s-200); }
@media (min-width: 640px) {
  .caps { grid-template-columns: 1fr 1fr; }
}
.caps li { display: flex; flex-direction: column; gap: var(--s-50); }
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-200);
  border-radius: var(--r-xl);
  background: var(--surface-2);
}
.flow i { color: var(--ink-3); font-size: 0.875rem; }
.product-foot {
  display: flex;
  flex-direction: column;
  gap: var(--s-200);
  margin-top: auto;
  padding-top: var(--s-300);
}

/* ---------- Tagline reveal ---------- */
.tagline-section { padding-block: var(--s-900); }
@media (min-width: 1024px) {
  .tagline-section { padding-block: calc(var(--s-900) * 2); }
}
.tagline { max-width: 680px; }
.tagline .w {
  opacity: 0.3;
  transition: opacity 500ms var(--ease);
}
.tagline .w.on { opacity: 1; }

/* ---------- How it works ---------- */
.steps { display: grid; gap: var(--s-300); counter-reset: step; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step { display: flex; flex-direction: column; gap: var(--s-100); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--s-500);
  height: var(--s-500);
  margin-bottom: var(--s-200);
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- Proof ---------- */
.proof { display: grid; gap: var(--s-300); }
@media (min-width: 900px) {
  .proof { grid-template-columns: 1.2fr 1fr; }
}
.founder { display: flex; flex-direction: column; gap: var(--s-300); }
.founder-id { display: flex; align-items: center; gap: var(--s-200); }
.avatar {
  display: grid;
  place-items: center;
  width: var(--s-700);
  height: var(--s-700);
  flex: none;
  border-radius: var(--r-full);
  background: var(--emphasis-soft);
  color: var(--emphasis);
}
.facts { display: flex; flex-direction: column; gap: var(--s-200); }
.facts li { display: flex; gap: var(--s-100); }
.facts i { flex: none; font-size: 1.25rem; color: var(--emphasis); margin-top: var(--s-25); }

.quote { display: flex; flex-direction: column; gap: var(--s-300); }
.quote blockquote { color: var(--ink); }
.placeholder {
  display: inline-flex;
  padding: var(--s-25) var(--s-75);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: ui-monospace, monospace;
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: var(--s-400); }
@media (min-width: 900px) {
  .faq-layout { grid-template-columns: 1fr 1.6fr; gap: var(--s-700); }
  .faq-layout .section-head { position: sticky; top: var(--s-900); align-self: start; }
}
.faq { display: flex; flex-direction: column; gap: var(--s-75); }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  transition: border-color 300ms var(--ease);
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-200);
  padding: var(--s-200) var(--s-300);
  border-radius: var(--r-xl);
  cursor: pointer;
  list-style: none;
  transition: background-color 300ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--ghost-hover); }
.faq summary i { flex: none; font-size: 1.25rem; color: var(--ink-2); transition: transform 500ms var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq-a { padding: 0 var(--s-300) var(--s-300); color: var(--ink-2); }
.faq details[open] .faq-a { animation: faq-in 500ms var(--ease); }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(calc(var(--s-75) * -1)); }
  to { opacity: 1; transform: none; }
}

/* ---------- Booking ---------- */
.book { display: grid; gap: var(--s-500); }
@media (min-width: 900px) {
  .book { grid-template-columns: 1fr 1.1fr; gap: var(--s-700); align-items: start; }
}
.book-copy p { margin-top: var(--s-200); }
.assurances { display: flex; flex-direction: column; gap: var(--s-100); margin-top: var(--s-400); }
.assurances li { display: flex; align-items: center; gap: var(--s-100); }
.assurances i { color: var(--emphasis); font-size: 1.25rem; }
.contact-lines { display: flex; flex-direction: column; gap: var(--s-75); margin-top: var(--s-400); }

.form { display: flex; flex-direction: column; gap: var(--s-300); }
.field { display: flex; flex-direction: column; gap: var(--s-75); }
.field-row { display: grid; gap: var(--s-300); }
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.field label { color: var(--ink); }
.field .opt { color: var(--ink-3); }
.input {
  width: 100%;
  padding: var(--s-75) var(--s-100);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.5rem;
  transition: border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--ink-3); }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 112px; resize: vertical; }
select.input {
  appearance: none;
  padding-right: var(--s-500);
  background-image: none;
}
.select-wrap { position: relative; }
.select-wrap i {
  position: absolute;
  right: var(--s-100);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink-2);
}
.error { display: flex; align-items: center; gap: var(--s-50); color: var(--danger); }
.error:empty { display: none; }

.form-foot { display: flex; flex-direction: column; gap: var(--s-200); }
.form-foot .btn { width: 100%; }
@media (min-width: 640px) {
  .form-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .form-foot .btn { width: auto; }
}

/* Loading state: skeleton shimmer instead of a spinner */
.btn[data-loading="true"] { position: relative; overflow: hidden; }
.btn[data-loading="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--btn-ink);
  opacity: 0.16;
  transform: translateX(-100%);
  animation: shimmer 1200ms var(--ease) infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.form-status {
  display: flex;
  gap: var(--s-100);
  padding: var(--s-200);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: var(--surface-2);
}
.form-status[hidden] { display: none; }
.form-status i { flex: none; font-size: 1.25rem; color: var(--emphasis); margin-top: var(--s-25); }
.form-status.is-error i { color: var(--danger); }

/* ---------- Footer ---------- */
.footer { padding-block: var(--s-700) var(--s-400); background: var(--bg-alt); }
.footer-grid { display: grid; gap: var(--s-500); }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-col { display: flex; flex-direction: column; gap: var(--s-100); }
.footer-col h2 { color: var(--ink-3); margin-bottom: var(--s-50); }
.footer-col a { color: var(--ink-2); width: fit-content; border-radius: var(--r-sm); transition: color 300ms var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: var(--s-200);
  margin-top: var(--s-600);
  color: var(--ink-3);
}
.footer-legal .footer-col { flex-wrap: wrap; }
@media (min-width: 900px) {
  .footer-legal { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--s-400));
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-300);
  padding: var(--s-900) var(--gutter);
  text-align: center;
}
.notfound p { max-width: 480px; color: var(--ink-2); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 700ms var(--ease); }
  .menu-item { transform: none; }
  .tagline .w { opacity: 1; transition: none; }
  .btn:active, .segmented button:active { transform: none; }
  .btn--primary:hover i, .text-link:hover i { transform: none; }
  .faq details[open] .faq-a { animation: none; }
  .btn[data-loading="true"]::after { animation: none; transform: none; }
}

.preview--products { margin-top: 0; }
.preview-caption--products { margin-bottom: var(--s-500); }
@media (max-width: 639px) {
  .stage-label .caption-5 { display: none; }
}

/* ---------- Hero: 3D Jaipur at night ---------- */
.hero3d {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  text-align: center;
}
.hero3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1200ms var(--ease);
  /* fades the bottom edge of the 3D image into the page */
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, #000 82%, transparent);
}
.hero3d.is-ready .hero3d-canvas { opacity: 1; }
/* Words around the globe: real text over the canvas so they stay sharp */
.hero3d-words {
  position: absolute;
  inset: 0 0 auto;
  height: 100vh;
  height: 100svh;
  pointer-events: none;
  overflow: hidden;
}
/* Small solid tags: whole-pixel positions, no glow and no blur filters, so the text renders crisp */
.hero3d-word {
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  line-height: 1.25;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0;
  -webkit-font-smoothing: antialiased;
}
/* Phones: the globe can be swiped sideways to turn it; vertical swipes still scroll */
@media (max-width: 767px) {
  .hero3d { touch-action: pan-y; }
}
.hero3d-content {
  position: relative;
  width: 100%;
  max-width: 760px;
  padding: calc(var(--s-900) + var(--s-400)) var(--gutter) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero3d-content { padding-top: calc(var(--s-900) + var(--s-600)); }
}
.hero3d .hero-sub,
.hero3d .proof-line { text-shadow: 0 1px 18px var(--bg); }
.hero3d-note {
  position: absolute;
  right: var(--gutter);
  bottom: var(--s-300);
  color: var(--ink-3);
}

/* ---------- Outputs strip ---------- */
.outputs { padding-block: var(--s-700); }
@media (min-width: 1024px) {
  .outputs { padding-block: var(--s-800) var(--s-900); }
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.post-strip { position: relative; }
.post-row {
  display: flex;
  gap: var(--s-200);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: var(--s-75) var(--gutter) var(--s-300);
  scrollbar-width: none;
}
.post-row::-webkit-scrollbar { display: none; }
@media (min-width: 1200px) {
  .post-row {
    padding-inline: calc((100vw - var(--wrap)) / 2);
    scroll-padding-inline: calc((100vw - var(--wrap)) / 2);
  }
}
.post-card {
  flex: none;
  width: 288px;
  display: flex;
  flex-direction: column;
  gap: var(--s-200);
  padding: var(--s-300);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--surface);
  scroll-snap-align: start;
  transition: transform 500ms var(--ease), border-color 300ms var(--ease);
}
.post-card:hover { transform: translateY(calc(var(--s-50) * -1)); border-color: var(--line-2); }
@media (min-width: 640px) {
  .post-card { width: 320px; }
}
.post-head { display: flex; align-items: center; gap: var(--s-100); }
.post-head .subtle { margin-left: auto; }
.post-icon {
  display: grid;
  place-items: center;
  width: var(--s-500);
  height: var(--s-500);
  flex: none;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  font-size: 1.25rem;
}
.post-icon--accent { background: var(--emphasis-soft); color: var(--emphasis); }
.post-tags,
.post-actions { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: auto; }
.post-media {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--s-50);
  min-height: 120px;
  padding: var(--s-200);
  border-radius: var(--r-xl);
  background: var(--accent-solid);
  color: var(--accent-on);
}
.post-media--square { aspect-ratio: 1; min-height: 0; }
.outputs-note { margin-top: var(--s-200); text-align: center; }

/* ---------- Before and after ---------- */

/* ---------- Channel orbit ---------- */
.orbit {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin: 0 auto;
}
.orbit-lines,
.orbit-nodes { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.orbit-spoke { stroke: var(--accent-scene); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; opacity: 0.7; }
.orbit-node {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: var(--s-700);
  height: var(--s-700);
  margin: calc(var(--s-700) / -2) 0 0 calc(var(--s-700) / -2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  background: var(--surface);
  font-size: 1.5rem;
  box-shadow: var(--shadow);
}
.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: var(--s-900);
  height: var(--s-900);
  transform: translate(-50%, -50%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  background: var(--surface);
  box-shadow: 0 0 0 var(--s-200) var(--emphasis-soft), var(--shadow);
}
.orbit-core .brand-mark { width: var(--s-600); height: auto; }
@media (max-width: 639px) {
  .orbit-node {
    width: var(--s-600);
    height: var(--s-600);
    margin: calc(var(--s-600) / -2) 0 0 calc(var(--s-600) / -2);
    font-size: 1.25rem;
  }
  .orbit-core { width: var(--s-800); height: var(--s-800); }
}

@media (prefers-reduced-motion: reduce) {
  .hero3d-canvas { transition: none; }
  .post-card:hover { transform: none; }
}

/* ---------- Hero: product demo sitting on the horizon ---------- */
.hero3d { min-height: 100vh; min-height: 100svh; padding-bottom: 0; }
.hero3d-canvas { height: 100vh; height: 100svh; bottom: auto; }
.hero-demo-wrap {
  position: relative;
  width: 100%;
  max-width: calc(1040px + var(--gutter) * 2);
  margin-top: var(--s-800);
  padding-inline: var(--gutter);
}
@media (min-width: 1024px) {
  .hero-demo-wrap { margin-top: var(--s-900); }
}
.demo {
  margin: 0;
  padding: var(--s-75);
  border: 1px solid var(--line-2);
  border-radius: var(--r-3xl);
  background: var(--surface);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  text-align: left;
}
.demo-inner {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--bg);
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: var(--s-200);
  padding: var(--s-100) var(--s-200);
  border-bottom: 1px solid var(--line);
}
.demo-brand { display: inline-flex; align-items: center; gap: var(--s-75); }
.demo-brand .brand-mark { width: 22px; height: 16px; }
.demo-live { display: inline-flex; align-items: center; gap: var(--s-75); margin-left: auto; color: var(--ink-2); }
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: #ff3b30;
  animation: live 1600ms var(--ease) infinite;
}
@keyframes live { 50% { opacity: 0.35; } }
/* The panel copies the real apps: Vartmaan intake list, the open story, Socia's X post.
   Demo-only status colours live here so both themes stay legible. */
.demo {
  --d-ok: #4ade80;
  --d-ok-soft: rgba(74, 222, 128, 0.14);
  --d-bad: #ff8a7f;
  --d-bad-line: rgba(255, 138, 127, 0.45);
  --d-link: #79b8ff;
  --d-chat: #0d0d0d;
  --d-dots: rgba(255, 255, 255, 0.07);
  --d-bubble: #1f1f1f;
  --d-sel: #1f1f1f;
}
[data-theme="light"] .demo {
  --d-ok: #15803d;
  --d-ok-soft: #e2f3e6;
  --d-bad: #c0362c;
  --d-bad-line: rgba(192, 54, 44, 0.4);
  --d-link: #1b6ac9;
  --d-chat: #f3f0eb;
  --d-dots: rgba(34, 34, 34, 0.09);
  --d-bubble: #ffffff;
  --d-sel: #ededed;
}
.demo .ok { color: var(--d-ok); }
.demo .bad { color: var(--d-bad); }
.demo [lang="hi"] { font-family: "Noto Sans Devanagari", "Geist", system-ui, sans-serif; }

.demo-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .demo-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.4fr) minmax(0, 1.05fr); min-height: 440px; }
  .demo-col + .demo-col { border-left: 1px solid var(--line); }
}
.demo-col { display: flex; flex-direction: column; gap: var(--s-100); padding: var(--s-200); min-width: 0; }

/* Shared bits */
.av {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background: rgba(214, 160, 110, 0.22);
  color: #e3b48a;
}
.av--b { background: rgba(74, 222, 128, 0.16); color: var(--d-ok); }
.av--c { background: rgba(121, 184, 255, 0.16); color: var(--d-link); }
[data-theme="light"] .demo .av { background: #f3e6d9; color: #9a5a22; }
[data-theme="light"] .demo .av--b { background: #e2f3e6; color: #15803d; }
[data-theme="light"] .demo .av--c { background: #e3eefb; color: #1b6ac9; }
.av-src {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--d-ok);
  font-size: 10px;
}
.av-src.ph-envelope-simple { color: var(--d-link); }
.tag { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--ink-2); font-size: 10px; line-height: 14px; font-weight: 600; }
.tag--big { border-color: transparent; background: #ffd60a; color: #1a1a1a; }
.demo .fake-btn { display: inline-flex; align-items: center; gap: 4px; }
.demo .fake-btn:not(.fake-btn--solid) { background: var(--surface); }
.demo .fake-btn--solid { background: var(--ink); color: var(--bg); }
.fake-btn--danger { border-color: var(--d-bad-line); color: var(--d-bad); }

/* 1. Intake list */
.demo-wire { gap: 0; padding: 0; overflow: hidden; }
.in-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--s-100) var(--s-100) 0; }
.in-filters--status { padding-bottom: var(--s-100); border-bottom: 1px solid var(--line); }
.in-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px var(--s-75); border-radius: var(--r-full); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.in-chip i { font-size: 0.8125rem; }
.in-chip.is-on { background: var(--d-ok-soft); color: var(--d-ok); }
.in-chip--soft b { font-weight: 500; color: var(--ink-3); }
.in-list { display: flex; flex-direction: column; }
.in-row { display: flex; align-items: center; gap: var(--s-100); padding: 10px var(--s-100); border-bottom: 1px solid var(--line); }
.in-row.is-sel { background: var(--d-sel); box-shadow: inset 2px 0 0 var(--ink); }
.in-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.in-top, .in-bot { display: flex; align-items: center; gap: 6px; min-width: 0; }
.in-top .title-4 { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.in-time { flex: none; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.in-time.is-new { color: var(--d-ok); font-weight: 600; }
.in-head { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); font-size: 0.75rem; line-height: 1.25rem; }
.in-bot i { flex: none; font-size: 0.875rem; }
.in-dot { flex: none; width: 7px; height: 7px; border-radius: var(--r-full); background: var(--d-ok); }

/* 2. Open story */
.demo-story { gap: 0; padding: 0; }
.st-head { display: flex; align-items: center; gap: var(--s-100); padding: 10px var(--s-200); border-bottom: 1px solid var(--line); }
.st-who { display: flex; flex-direction: column; }
.st-chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-100);
  padding: var(--s-200);
  background-color: var(--d-chat);
  background-image: radial-gradient(var(--d-dots) 1px, transparent 1.2px);
  background-size: 14px 14px;
}
.st-date { align-self: center; padding: 2px var(--s-75); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-2); font-weight: 500; letter-spacing: 0.02em; }
.st-bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 94%;
  padding: var(--s-75) var(--s-100) var(--s-100);
  border: 1px solid var(--line);
  border-radius: 2px var(--r-xl) var(--r-xl) var(--r-xl);
  background: var(--d-bubble);
}
.st-from { color: var(--ink-3); }
.st-from b { color: var(--d-ok); font-weight: 600; }
.st-slug { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.st-file, .st-path { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 11px; line-height: 16px; color: var(--ink); overflow-wrap: anywhere; }
.st-file { font-weight: 600; }
.st-av { padding: 0 5px; border: 1px solid var(--ink-2); border-radius: var(--r-sm); font-size: 10px; line-height: 14px; font-weight: 600; }
.st-dist { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-2); }
.st-msg { font-size: 0.8125rem; line-height: 1.375rem; color: var(--ink); }
.st-stamp { align-self: flex-end; margin-top: -4px; color: var(--ink-3); font-size: 10px; }
.st-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: var(--s-100);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--d-bubble);
}
.st-foot-head { display: flex; align-items: center; gap: var(--s-75); }
.st-found { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border: 1px solid var(--d-ok); border-radius: var(--r-full); color: var(--d-ok); font-weight: 500; }
.st-found span { width: 5px; height: 5px; border-radius: var(--r-full); background: currentColor; }
.st-mini { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 2px var(--s-75); border: 1px solid var(--line-2); border-radius: var(--r-lg); color: var(--ink); }
.st-path { color: var(--ink-2); }
.st-files li { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-top: 1px solid var(--line); }
.st-files li:last-child { border-bottom: 1px solid var(--line); }
.st-files i { flex: none; color: var(--ink-3); font-size: 0.875rem; }
.st-fn { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); }
.st-sz { flex: none; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.st-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s-75); padding: var(--s-100) var(--s-200); border-top: 1px solid var(--line); }
.demo-approved { display: inline-flex; align-items: center; gap: var(--s-50); align-self: center; padding: 2px var(--s-100); border: 1px solid var(--d-ok); border-radius: var(--r-full); background: var(--d-ok-soft); color: var(--d-ok); }
[data-demo-approve] { transition: transform 300ms var(--ease), opacity 300ms var(--ease); }
[data-demo-approve].is-pressed { transform: scale(0.94); opacity: 0.6; }

/* 3. Socia: the X post */
.so-head { display: flex; align-items: center; gap: var(--s-75); }
.so-head i { font-size: 1rem; }
.demo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-75); }
.demo-stats > span { display: flex; flex-direction: column; padding: 6px var(--s-100); border: 1px solid var(--line); border-radius: var(--r-xl); }
.xp {
  display: flex;
  flex-direction: column;
  gap: var(--s-75);
  padding: var(--s-100);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: var(--surface);
}
.xp-meta { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.xp-time { margin-left: auto; font-variant-numeric: tabular-nums; }
.xp-body { display: flex; align-items: flex-start; gap: var(--s-100); }
.xp-text { flex: 1; min-width: 0; }
.xp-post { font-size: 0.8125rem; line-height: 1.375rem; font-weight: 500; color: var(--ink); }
.xp-hash { margin-top: 2px; color: var(--d-link); font-size: 0.75rem; line-height: 1.125rem; }
.xcard {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: space-between;
  width: 78px;
  aspect-ratio: 4 / 5;
  padding: 10px 6px 7px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: radial-gradient(120% 80% at 50% 55%, #d8090c 0%, #b00306 55%, #7d0204 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55), inset 0 0 0 3px #a10305;
  color: #ffffff;
}
.xcard-title { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.xcard-title b {
  padding: 1px 5px 3px;
  background: #ffd400;
  color: #111111;
  font-size: 14px;
  font-weight: 800;
  transform: skewX(-8deg) translateX(-6px);
  box-shadow: 0 0 10px 1px rgba(255, 196, 0, 0.6);
}
.xcard-title span { margin-top: 1px; font-size: 15px; font-weight: 800; transform: translateX(7px); }
.xcard-news { font-size: 9px; line-height: 12px; font-weight: 600; text-align: center; }
.xp-handles { display: flex; flex-wrap: wrap; gap: 4px; }
.handle { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border: 1px solid var(--line-2); border-radius: var(--r-full); color: var(--ink); }
.handle i { color: var(--d-link); font-size: 0.8125rem; }
.xp-foot { display: flex; justify-content: space-between; gap: var(--s-75); }
.xp-count { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.xp-cta { justify-content: center; padding-block: 7px; }
.so-rows { display: flex; flex-direction: column; }
.so-rows li { display: flex; align-items: center; gap: var(--s-75); padding: 6px 2px; border-top: 1px solid var(--line); }
.so-rows i { font-size: 0.9375rem; }
.so-rows .subtle { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.so-rows .chip { padding-block: 0; }

/* Desk tabs and source pills in the window bar */
.demo-tabs { display: none; gap: var(--s-25); padding: 2px; border-radius: var(--r-lg); background: var(--surface); }
.demo-tab { display: inline-flex; align-items: center; gap: var(--s-50); padding: 3px var(--s-100); border-radius: var(--r-md); color: var(--ink-3); }
.demo-tab.is-on { background: var(--surface-2); color: var(--ink); }
.demo-count { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-full); background: var(--accent-solid); color: var(--accent-on); font-size: 10px; font-weight: 600; }
.demo-live { gap: var(--s-50); }
.demo-src { display: inline-flex; align-items: center; gap: 6px; padding: 2px var(--s-75); border: 1px solid var(--line); border-radius: var(--r-full); }
.demo-src:not(:last-child) { display: none; }
.src-dot { width: 6px; height: 6px; border-radius: var(--r-full); background: #34c759; }
.demo-src .live-dot { width: 6px; height: 6px; background: #34c759; }
@media (min-width: 900px) {
  .demo-tabs { display: inline-flex; }
}
@media (min-width: 1180px) {
  .demo-src:not(:last-child) { display: inline-flex; }
}

/* Phones and tablets: the open story, then the X post */
@media (max-width: 899px) {
  .demo-wire { display: none; }
  .demo-col + .demo-col { border-top: 1px solid var(--line); }
  .st-bubble { max-width: 100%; }
}
@media (max-width: 479px) {
  .st-mini, .st-path { display: none; }
  .st-actions { padding-inline: var(--s-100); }
  .so-rows { display: none; }
}

/* Demo steps appear in sequence; the typing reveals word by word */
.js .ds { opacity: 0; transform: translateY(var(--s-75)); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.js .ds.on { opacity: 1; transform: none; }
.js [data-demo-type] .tw { opacity: 0.12; transition: opacity 300ms var(--ease); }
.js [data-demo-type] .tw.on { opacity: 1; }

/* ---------- How it works: small live screens ---------- */
.step { gap: var(--s-75); }
.mini {
  display: flex;
  flex-direction: column;
  gap: var(--s-75);
  margin-bottom: var(--s-200);
  padding: var(--s-200);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg);
  min-height: 148px;
}
.mini-row { display: flex; align-items: center; gap: var(--s-100); }
.mini-row i { font-size: 1.125rem; color: var(--ink-2); }
.mini-row .body-6 { flex: 1; }
.toggle {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: var(--r-full);
  background: var(--surface-2);
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: var(--r-full);
  background: var(--ink-3);
  transition: transform 500ms var(--ease), background-color 300ms var(--ease);
}
.toggle.is-on { background: var(--accent-solid); }
.toggle.is-on::after { transform: translateX(14px); background: var(--accent-on); }
.mini-log { display: flex; align-items: center; gap: var(--s-75); color: var(--ink-2); }
.mini-log i { color: var(--ink); }
.mini-log .chip { margin-left: auto; }
.mini--scale { align-items: center; justify-content: center; }
.mini-story { padding: var(--s-50) var(--s-100); border: 1px solid var(--line-2); border-radius: var(--r-full); }
.mini-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-75); font-size: 1.25rem; }
.mini-icons i {
  display: grid;
  place-items: center;
  width: var(--s-500);
  height: var(--s-500);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
}
.step-index { margin-top: var(--s-75); }

@media (prefers-reduced-motion: reduce) {
  .js .ds { transform: none; }
  .live-dot { animation: none; }
}

/* ---------- Colour: dark and light, monochrome with a newspaper red ----------
   Main (80%): backgrounds, surfaces, text and the 3D sky and Earth, all tinted with the style hue.
   Band (10%): a contrasting second hue for the tagline section, the "With Dorefin" card and the footer.
   Catchy (10%): actions only: buttons, links, switches, and the story lights in the 3D scene.
   Every value was computed in OKLCH and every text and fill pair measured (WCAG 2 and APCA). */
:root,
[data-theme="light"] {
  --accent-solid: #0b0c0f;
  --accent-solid-hover: #2b2d33;
  --accent-on: #ffffff;
  --accent-text: #0b0c0f;
  --accent-tint: #f2f2f2;
  --accent-scene: #5f646b;
  --main-scene: #5f646b;
  --band-bg: #222222;
  --band-ink: #f5f5f5;
  --band-ink-2: #cacaca;
  --band-line: rgba(245, 245, 245, 0.18);
}
[data-theme="dark"] {
  --accent-solid: #f4f4f4;
  --accent-solid-hover: #ffffff;
  --accent-on: #181818;
  --accent-text: #f4f4f4;
  --accent-tint: #181818;
  --accent-scene: #cfe0ff;
  --main-scene: #cfe0ff;
  --band-bg: #e8e8e8;
  --band-ink: #121212;
  --band-ink-2: #3d3d3d;
  --band-line: rgba(18, 18, 18, 0.18);
}
:root[data-style="mono"],
[data-theme="light"][data-style="mono"] {
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --surface: #ffffff;
  --surface-2: #ededed;
  --ink: #222222;
  --ink-2: #4d4d4d;
  --ink-3: #636363;
  --main-scene: #868686;
  --accent-scene: #fa4942;
  --line: rgba(34, 34, 34, 0.12);
  --line-2: rgba(34, 34, 34, 0.22);
  --glass: rgba(255, 255, 255, 0.8);
  --menu: rgba(255, 255, 255, 0.95);
  --emphasis: #222222;
  --emphasis-soft: #ededed;
  --btn-bg: #222222;
  --btn-ink: #ffffff;
  --btn-hover: #4d4d4d;
  --ghost-hover: rgba(34, 34, 34, 0.07);
  --hero-from: #222222;
  --hero-to: #636363;
  --band-bg: #333333;
  --band-ink: #f5f5f5;
  --band-ink-2: #cacaca;
  --band-line: rgba(245, 245, 245, 0.18);
  --accent-solid: #e61d23;
  --accent-solid-hover: #c7171d;
  --accent-on: #ffffff;
  --accent-text: #cd2626;
  --accent-tint: #ededed;
}
[data-theme="dark"][data-style="mono"] {
  --bg: #000000;
  --bg-alt: #181818;
  --surface: #1f1f1f;
  --surface-2: #272727;
  --ink: #f3f3f3;
  --ink-2: #bebebe;
  --ink-3: #b1b1b1;
  --main-scene: #ababab;
  --accent-scene: #fca298;
  --line: rgba(243, 243, 243, 0.12);
  --line-2: rgba(243, 243, 243, 0.22);
  --glass: rgba(24, 24, 24, 0.8);
  --menu: rgba(0, 0, 0, 0.95);
  --emphasis: #f3f3f3;
  --emphasis-soft: #272727;
  --btn-bg: #f3f3f3;
  --btn-ink: #181818;
  --btn-hover: #bebebe;
  --ghost-hover: rgba(243, 243, 243, 0.07);
  --hero-from: #f3f3f3;
  --hero-to: #b1b1b1;
  --band-bg: #e8e8e8;
  --band-ink: #121212;
  --band-ink-2: #3d3d3d;
  --band-line: rgba(18, 18, 18, 0.18);
  --accent-solid: #fc988d;
  --accent-solid-hover: #fcb1a8;
  --accent-on: #000000;
  --accent-text: #f3a79e;
  --accent-tint: #272727;
}
/* The 10% band: a block that re-points the main tokens at the band colours */
.band {
  --bg: var(--band-bg);
  --surface: var(--band-bg);
  --ink: var(--band-ink);
  --ink-2: var(--band-ink-2);
  --ink-3: var(--band-ink-2);
  --line: var(--band-line);
  --line-2: var(--band-line);
  --emphasis: var(--band-ink);
  --btn-bg: var(--band-ink);
  --btn-ink: var(--band-bg);
  --ghost-hover: var(--band-line);
  background: var(--band-bg);
  color: var(--band-ink);
}
.card--dark.band { border-color: transparent; }
.card--dark.band .card-label,
.card--dark.band .muted { opacity: 1; color: var(--band-ink-2); }
.card--dark.band .gain-list i { color: var(--band-ink); }


/* ---------- Real product screens ---------- */
.shots { display: grid; gap: var(--s-300); }

.shots-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-100) var(--s-300);
}
.shots-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-50);
  padding: var(--s-50);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
}
.shots-group-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
  padding-inline: var(--s-100) var(--s-75);
  color: var(--ink-3);
}
.shots-group-label i { font-size: 1rem; color: var(--emphasis); }
.shots-tab {
  min-height: 36px;
  padding: var(--s-75) var(--s-200);
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 300ms var(--ease), color 300ms var(--ease);
}
.shots-tab:hover { background: var(--ghost-hover); color: var(--ink); }
.shots-tab[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-ink); }
.shots-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.shots-frame { margin-top: 0; }
.shots-bar {
  display: flex;
  align-items: center;
  gap: var(--s-200);
  padding: var(--s-50) var(--s-100) var(--s-100);
}
.shots-url {
  flex: 1;
  max-width: 340px;
  margin-inline: auto;
  padding: var(--s-25) var(--s-200);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--ink-3);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot { margin: 0; }
.shot[hidden] { display: none; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-2xl);
  background: #fff;
  border: 1px solid var(--line);
}
.shot.is-active img { animation: shot-in 500ms var(--ease); }
.shot figcaption {
  max-width: 62ch;
  margin: var(--s-200) auto var(--s-75);
  text-align: center;
}
@keyframes shot-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 639px) {
  .shots-tabs { gap: var(--s-75); }
  .shots-group { justify-content: center; border-radius: var(--r-2xl); }
  .shots-group-label { width: 100%; justify-content: center; padding-block: var(--s-25); }
  .shot img { border-radius: var(--r-lg); }
}
@media (prefers-reduced-motion: reduce) {
  .shot.is-active img { animation: none; }
}

/* ---------- Orbit: labels, packets, summary ---------- */
.orbit-node { transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease), background 300ms var(--ease); }
.orbit-node.is-hit {
  border-color: var(--accent-scene);
  box-shadow: 0 0 0 6px var(--emphasis-soft), 0 0 36px -4px var(--accent-scene);
}
.orbit-tag {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: var(--r-md);
  background: var(--bg);
  white-space: nowrap;
  color: var(--ink-3);
  pointer-events: none;
}
.orbit-tag b { color: var(--ink); font-weight: 500; }
.orbit-packet { fill: var(--accent-scene); filter: drop-shadow(0 0 4px var(--accent-scene)); }
.orbit-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-100);
  margin-top: var(--s-700);
}
.orbit-summary .chip { padding: var(--s-50) var(--s-100); }
.orbit-summary .chip i { font-size: 0.875rem; }
@media (max-width: 639px) {
  .orbit-tag span { display: none; }
}

/* ---------- Tagline band: a moving wall of wire copy ---------- */
.tagline-section { position: relative; isolation: isolate; overflow: hidden; }
.tagline-section::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background: radial-gradient(40% 50% at 70% 50%, rgba(230, 29, 35, 0.14), transparent 70%);
  pointer-events: none;
}
.wirewall {
  position: absolute;
  inset: -30% -20%;
  z-index: -2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  transform: rotate(-7deg);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 2%, rgba(0, 0, 0, 0.6) 18%, rgba(0, 0, 0, 0.6) 50%, #000 68%, transparent 98%), linear-gradient(180deg, transparent 10%, #000 30%, #000 70%, transparent 90%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 2%, rgba(0, 0, 0, 0.6) 18%, rgba(0, 0, 0, 0.6) 50%, #000 68%, transparent 98%), linear-gradient(180deg, transparent 10%, #000 30%, #000 70%, transparent 90%);
  mask-composite: intersect;
}
.wire-row { display: flex; width: max-content; animation: wire-run var(--dur, 60s) linear infinite; will-change: transform; }
.wire-row:nth-child(even) { animation-direction: reverse; }
.wire-row span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 56px;
  font-size: clamp(1rem, 1.6vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--band-ink);
  opacity: 0.3;
  transition: opacity 0.5s ease, color 0.5s ease;
}
.wire-row span b { font-family: ui-monospace, Consolas, monospace; font-weight: 500; font-size: 0.78em; opacity: 0.8; }
/* source chip: WA / FTP / MAIL */
.wire-row span i {
  font-style: normal;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.6em;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  opacity: 0.7;
}
.wire-row span q { quotes: none; }
.wire-row span q[lang="hi"] { font-family: "Anek Devanagari", "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif; letter-spacing: 0; }
/* desk badges: yellow = Big breaking, red = Breaking */
.wire-row span em {
  font-style: normal;
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 4px;
}
.wire-row span em.wb-big { background: #ffd400; color: #111; }
.wire-row span em.wb-brk { background: #e61d23; color: #fff; }
.wire-row.is-hot span { opacity: 0.5; }
.wire-row span.is-new { opacity: 1; color: #e61d23; }
@keyframes wire-run { to { transform: translateX(-50%); } }
.tagline-section .wrap { position: relative; }
/* a soft pool of the band colour behind the line so it stays readable over the brighter wall */
.tagline-section .wrap::before {
  content: "";
  position: absolute;
  inset: -40% 30% -40% -10%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--band-bg) 35%, transparent);
  opacity: 0.9;
  pointer-events: none;
}
.tagline { text-shadow: 0 0 24px var(--band-bg), 0 0 48px var(--band-bg); }
.tagline-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ---------- Company: pilot card ---------- */
.pilot { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: var(--s-200); }
.pilot .card-label { margin-bottom: 0; }
.pilot .gain-list { display: flex; flex-direction: column; gap: var(--s-100); }
.pilot .gain-list li { display: flex; gap: var(--s-75); }
.pilot-cta { align-self: flex-start; margin-top: auto; background: var(--band-ink); color: var(--band-bg); }
.pilot-cta:hover { background: var(--band-ink); opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
  /* still moving (the wall is the point of the band), but at a third of the speed */
  .wire-row { animation-duration: calc(var(--dur, 60s) * 3); }
  .wire-row span { transition: none; }
}

/* ---------- Phones: no demo card, the globe fills the hero ---------- */
@media (max-width: 767px) {
  .hero-demo-wrap { display: none; }
  .hero3d { min-height: 100vh; min-height: 100svh; }
}

/* ---------- Inner pages (about, privacy, terms) ---------- */
.page-hero { padding-top: calc(var(--s-900) + var(--s-700)); }
.about-story { display: grid; gap: var(--s-400); }
@media (min-width: 900px) { .about-story { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.prose { display: flex; flex-direction: column; gap: var(--s-200); max-width: 680px; }
.values { display: grid; gap: var(--s-400) var(--s-500); }
@media (min-width: 768px) { .values { grid-template-columns: 1fr 1fr; } }
.values li { display: flex; flex-direction: column; gap: var(--s-75); padding-top: var(--s-200); border-top: 1px solid var(--line); }
.legal { max-width: 760px; }
.legal-updated { margin: var(--s-100) 0 var(--s-500); }
.legal-section { display: flex; flex-direction: column; gap: var(--s-100); padding: var(--s-300) 0; border-top: 1px solid var(--line); }
.next-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-300); margin-top: var(--s-300); }
