/*
 * Author: Hariram S <ramhari4090@gmail.com>
 *
 * Layout and type for the marketing pages, dark-first: a near-black ground
 * with a faint dot grid, white display type set tight, grey running text,
 * thin low-alpha borders, soft violet glows behind the hero and behind the
 * drawn app screens, and pill buttons. Violet is the one accent colour.
 *
 * Every text colour here reaches 4.5:1 or more on the ground it sits on
 * (#ededed and #a1a1aa on #0a0a0b and on the #111113 card surface).
 *
 * Motion: only transform and opacity animate. Content is hidden for its
 * entrance only when scenes.js has marked the page with .js, entrances are
 * staggered with --d, and everything is shown at once under
 * prefers-reduced-motion.
 *
 * Used by:
 *     landing/index.html, landing/use-cases.html, landing/features/*.html,
 *     landing/about.html, landing/contact.html, landing/privacy.html
 *
 * Depends on:
 *     landing/assets/chrome.css (--font, --mono, top bar, footer, .dw-btn)
 *     landing/assets/scenes.js  (.js on <html>, .in on [data-rv], .go on the h1)
 */

:root {
  --bg: #0a0a0b;
  --surface: #111113;
  --surface-2: #17171a;
  --ink: #ededed;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .16);
  --accent: #7c5cff;
  --accent-ink: #b4a3ff;
  --m: clamp(20px, 4vw, 48px);
  --gut: clamp(16px, 2vw, 28px);
  --t1: clamp(40px, 6.6vw, 92px);
  --t2: clamp(30px, 4vw, 56px);
  --t3: clamp(19px, 1.6vw, 22px);
  --t4: 17px;
  --t5: 14px;
  --r: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--t4); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; position: relative;
}
/* A faint dot grid that fades out toward the bottom of the first screens. */
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1400px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .11) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 40%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 40%, transparent 100%);
}
img, svg { display: block; max-width: 100%; }
main { overflow-x: clip; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
a { color: inherit; }
:where(main a:not([class])) { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .2s ease; }
:where(main a:not([class])):hover { text-decoration-color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: rgba(124, 92, 255, .45); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* Grid */
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--m); }
.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }
.side { grid-column: 1 / 6; }
.main { grid-column: 6 / 13; }
.full { grid-column: 1 / -1; }
.sec { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.sec-tight { padding-block: clamp(48px, 6vw, 80px); position: relative; }
.sec + .sec, .sec + .sec-tight, .sec-tight + .sec { border-top: 1px solid var(--line); }

/* Section grounds: the old names now map to subtle variations of the dark page. */
.on-tone { background: linear-gradient(180deg, #0d0d0f, var(--bg)); }
.on-lav { background: radial-gradient(60% 80% at 80% 0%, rgba(124, 92, 255, .14), transparent 70%), var(--bg); }
.on-sky { background: var(--bg); }
.on-deep { background: #000; }
.on-royal { background: radial-gradient(70% 90% at 50% 100%, rgba(124, 92, 255, .28), transparent 70%), #000; }
.muted { color: var(--muted); }

/* Type */
.t1 { font-size: var(--t1); font-weight: 600; line-height: 1; letter-spacing: -0.055em; text-wrap: balance; color: #fff; }
.t2, h2 { font-size: var(--t2); font-weight: 600; line-height: 1.05; letter-spacing: -0.045em; text-wrap: balance; color: #fff; }
.t3, h3 { font-size: var(--t3); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: #fff; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; font-weight: 400; color: var(--muted); max-width: 60ch; }
.body { max-width: 66ch; color: #d4d4d8; }
.body b, .body strong { color: #fff; font-weight: 600; }
.body > * + * { margin-top: 1em; }
.small { font-size: var(--t5); line-height: 1.55; }
.num { font-variant-numeric: tabular-nums; }
.code { font-family: var(--mono); font-size: .86em; font-weight: 400; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); padding: .05em .4em; border-radius: 6px; }
.grad { background: linear-gradient(90deg, #fff 0%, #cbbcff 55%, #8f75ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Eyebrow: a mono label above a heading, with an accent dot. */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.pill-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .03); font-size: 13px; color: #d4d4d8; margin-bottom: 28px; }
.pill-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* The h1 rises line by line on load (scenes.js adds .go). */
.ln { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.ln > span { display: block; }
html.js .rise .ln > span { transform: translateY(105%); transition: transform 1s var(--ease); }
html.js .rise .ln + .ln > span { transition-delay: .1s; }
html.js .rise.go .ln > span { transform: none; }

/* Entrances: staggered by --d, transform and opacity only. */
html.js [data-rv]:not(.bands, .plan, .plate-c, .plate-l, .plate-r, .scene-stage, .scene-steps, .tbl-wrap, .qa, .flow-pic, .stagebar, .live, .bento) {
  opacity: 0; transform: translateY(18px); filter: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms);
}
html.js [data-rv].in { opacity: 1; transform: none; }
html.js .bento[data-rv] > li, html.js .bands[data-rv] > li { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .25s ease; transition-delay: calc(var(--i, 0) * 60ms); }
html.js .bento[data-rv].in > li, html.js .bands[data-rv].in > li { opacity: 1; transform: none; }


/* Hero: centred, with a violet glow behind the headline and the product window. */
.hero { position: relative; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(40px, 6vw, 72px); text-align: center; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -120px; width: min(1100px, 140vw); height: 680px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(124, 92, 255, .32), rgba(124, 92, 255, .08) 45%, transparent 70%);
  pointer-events: none;
}
.hero .g { display: flex; flex-direction: column; align-items: center; }
.hero-head { order: 1; max-width: 1000px; }
.hero-talk { order: 2; margin-top: 24px; display: flex; flex-direction: column; align-items: center; }
.hero-talk .lead { margin-inline: auto; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.fine { margin-top: 16px; font-size: 13px; color: var(--muted); }
.hero-plate { order: 3; width: 100%; margin-top: clamp(48px, 6vw, 72px); position: relative; }
.figure-note { margin-top: 24px; display: inline-flex; align-items: baseline; gap: 12px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .03); color: #d4d4d8; text-align: left; }
.figure-note b { font: 600 15px/1 var(--mono); color: #fff; white-space: nowrap; }
.figure-note span { font-size: 13px; line-height: 1.4; }

/* A window glow: put behind any drawn screen. */
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; z-index: -1; inset: 8% 6% -6% 6%; border-radius: 40px;
  background: radial-gradient(60% 60% at 50% 40%, rgba(124, 92, 255, .45), rgba(56, 120, 255, .12) 55%, transparent 75%);
  filter: blur(40px); pointer-events: none;
}

/* Integration strip */
.strip-label { text-align: center; font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 20px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02); font-size: 14px; color: #d4d4d8; transition: border-color .2s ease, color .2s ease; }
.chips li:hover { border-color: var(--line-2); color: #fff; }
.chips .ic { width: 16px; height: 16px; color: var(--accent-ink); }

/* Section heads */
.head { grid-column: 1 / -1; max-width: 780px; }
.head .lead { margin-top: 18px; }
.center-head { text-align: center; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.center-head .lead { margin-inline: auto; }

/* Side notes: the sentences Dotwave writes into the audit trail, shown as a small log card. */
.notes { grid-column: 1 / 5; display: grid; gap: 14px; align-content: start; }
.note { font-size: var(--t5); line-height: 1.55; color: var(--muted); }
.note b { display: block; font-weight: 600; color: #fff; margin-bottom: 2px; }
.note .muted { display: block; }
.note-audit { position: relative; padding: 12px 14px 12px 34px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: 400 13px/1.55 var(--mono); color: #d4d4d8; }
.note-audit::before { content: "›"; position: absolute; left: 14px; top: 11px; color: var(--accent-ink); font-weight: 600; }
.pair { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.pair s { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); color: var(--muted); }
.pair i { font-style: normal; color: #fff; }

.textpage { row-gap: 32px; }
.textpage .main > * + * { margin-top: 28px; }

/* Scenes: the drawn screen on the right, its steps on the left */
.scene-row { margin-top: clamp(32px, 4vw, 48px); align-items: start; row-gap: 24px; }
.scene-row .scene-steps { grid-column: 1 / 5; }
.scene-row .scene-stage { grid-column: 5 / 13; }

/* Workflow example: each step a card with what you do, what you see, and the result */
.flow { list-style: none; padding: 0; counter-reset: flow; display: grid; gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.flow > li {
  counter-increment: flow; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); row-gap: 24px; align-items: start;
  padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  transition: border-color .25s ease;
}
.flow > li:hover { border-color: var(--line-2); }
.flow-text { grid-column: 1 / 6; }
.flow > li:has(.flow-pic:empty) .flow-text { grid-column: 1 / -1; }
.flow > li:has(.flow-pic:empty) .flow-text dl { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; grid-auto-flow: column; column-gap: var(--gut); row-gap: 4px; }
.flow > li:has(.flow-pic:empty) .flow-text dd { margin-top: 0; }
@media (max-width: 760px) { .flow > li:has(.flow-pic:empty) .flow-text dl { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; row-gap: 4px; } .flow > li:has(.flow-pic:empty) .flow-text dt:not(:first-child) { margin-top: 14px; } }
.flow-text h3::before { content: counter(flow, decimal-leading-zero); display: block; font: 500 12px/1 var(--mono); color: var(--accent-ink); margin-bottom: 12px; letter-spacing: .06em; }
.flow-text dl { margin-top: 18px; display: grid; gap: 14px; }
.flow-text dt { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.flow-text dd { font-size: 15px; color: #d4d4d8; margin-top: 4px; }
.flow-text dd b { color: #fff; }
.flow-pic { grid-column: 6 / 13; }
.flow-pic:empty { display: none; }

/* Tables */
.tbl-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.opts { width: 100%; border-collapse: collapse; font-size: var(--t5); line-height: 1.55; min-width: 600px; color: #d4d4d8; }
table.opts th, table.opts td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
table.opts tr:last-child th, table.opts tr:last-child td { border-bottom: 0; }
table.opts thead th { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: rgba(255, 255, 255, .02); }
table.opts tbody th { font-weight: 600; color: #fff; width: 26%; }
table.opts tbody tr { transition: background-color .2s ease; }
table.opts tbody tr:hover { background: rgba(255, 255, 255, .02); }

/* Card grids (features, audiences, related) */
.bands { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; margin-top: clamp(32px, 4vw, 48px); }
.bands > li > a, .bands > li > div {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); text-decoration: none; color: var(--ink);
  transition: transform .3s var(--ease), border-color .25s ease, background-color .25s ease;
}
.bands > li > a:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, .5); background: var(--surface-2); }
.bands b { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; color: #fff; }
.bands span { font-size: var(--t5); line-height: 1.55; color: var(--muted); }
.group-name { margin-top: clamp(40px, 5vw, 56px); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.group-name + .bands { margin-top: 16px; }

/* Bento grid on the home page */
.bento { list-style: none; padding: 0; margin-top: clamp(40px, 5vw, 56px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px; }
.bento > li { grid-column: span 2; }
.bento > li.wide { grid-column: span 3; }
.bento > li.tall { grid-row: span 2; }
.bento a {
  position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 200px; padding: 24px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); text-decoration: none;
  transition: transform .35s var(--ease), border-color .25s ease;
}
.bento a::after {
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 70%; height: 90%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .25), transparent); opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.bento a:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, .45); }
.bento a:hover::after { opacity: 1; }
.bento .grp { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bento .ic-box { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; background: rgba(255, 255, 255, .03); }
.bento .ic-box .ic { width: 18px; height: 18px; color: var(--accent-ink); }
.bento b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: #fff; margin-top: auto; }
.bento span.d { font-size: var(--t5); color: var(--muted); line-height: 1.55; }

/* The four parts of a client job */
.stagebar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(32px, 4vw, 48px); counter-reset: st; }
.stagebar > div {
  counter-increment: st; position: relative; padding: 24px; display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden;
  transition: border-color .25s ease, transform .3s var(--ease);
}
.stagebar > div::before { content: counter(st, decimal-leading-zero); font: 500 12px/1 var(--mono); color: var(--accent-ink); letter-spacing: .06em; }
.stagebar > div::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(124, 92, 255, .8), transparent); opacity: 0; transition: opacity .3s ease; }
.stagebar > div:hover { border-color: var(--line-2); transform: translateY(-2px); }
.stagebar > div:hover::after { opacity: 1; }
.stagebar b { font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: #fff; }
.stagebar p { font-size: var(--t5); color: var(--muted); }
.stagebar a { margin-top: auto; color: #fff; font-size: var(--t5); font-weight: 500; text-decoration: none; }
.stagebar a::after { content: " →"; color: var(--accent-ink); }
.stagebar a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(32px, 4vw, 48px); align-items: stretch; }
.plan { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.plan h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.plan .for { font-size: 15px; color: var(--muted); }
.plan .price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; order: -1; }
.plan .price b { font-size: 44px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.plan .price span { font-size: 13px; color: var(--muted); }
.plan .inc { font-size: var(--t5); line-height: 1.65; color: #d4d4d8; border-top: 1px solid var(--line); padding-top: 16px; }
.plan .dw-btn { margin-top: auto; align-self: stretch; }
.plan-free .dw-btn, .plan-starter .dw-btn, .plan-team .dw-btn, .plan-agency .dw-btn { background: transparent; color: #fff; border-color: var(--line-2); box-shadow: none; }
.plan-free .dw-btn:hover, .plan-starter .dw-btn:hover, .plan-team .dw-btn:hover, .plan-agency .dw-btn:hover { background: rgba(255, 255, 255, .06); }
.plan-ent { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: clamp(24px, 3.2vw, 36px); border: 1px solid var(--line-2); border-radius: 22px; background: radial-gradient(130% 150% at 0% 0%, rgba(124, 92, 255, .18), transparent 55%), var(--surface); box-shadow: 0 30px 80px -50px rgba(124, 92, 255, .55); }
.plan-ent .ent-tag { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; border: 1px solid rgba(124, 92, 255, .5); background: rgba(124, 92, 255, .12); color: var(--accent-ink); font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.plan-ent h3 { font-size: clamp(19px, 2.4vw, 23px); font-weight: 600; letter-spacing: -0.02em; color: #fff; margin-top: 12px; }
.plan-ent p { font-size: 14px; color: var(--muted); max-width: 64ch; margin-top: 6px; }
.plan-ent .ent-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.plan-ent .ent-chips li { font: 500 12px/1 var(--mono); color: #d4d4d8; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .03); }
.plan-ent .ent-cta { align-self: center; white-space: nowrap; background: #fff; color: #0b0b0f; border: 0; box-shadow: 0 12px 34px -14px rgba(255, 255, 255, .45); }
.plan-ent .ent-cta:hover { background: #ececf5; }
@media (max-width: 760px) { .plan-ent { grid-template-columns: 1fr; gap: 20px; } .plan-ent .ent-cta { justify-self: start; } }
.plan-pro { border-color: rgba(124, 92, 255, .6); background: radial-gradient(80% 60% at 50% 0%, rgba(124, 92, 255, .16), transparent 70%), var(--surface); box-shadow: 0 0 0 1px rgba(124, 92, 255, .2), 0 30px 80px -40px rgba(124, 92, 255, .7); }
.plan-tag { position: absolute; top: -11px; left: 28px; padding: 3px 10px; border-radius: 999px; background: #6340f0; color: #fff; font: 500 11px/1.4 var(--mono); letter-spacing: .04em; }
.plan .muted { color: var(--muted); }
.pay-note { margin-top: 20px; font-size: var(--t5); color: var(--muted); }
/* Plan feature lists: the .inc block rendered as a bulleted list of features */
ul.inc { list-style: none; padding-left: 0; display: grid; gap: 10px; }
ul.inc li { position: relative; padding-left: 24px; }
ul.inc li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-ink); font-weight: 600; }
/* Per-tier comparison table, reusing .tbl-wrap + table.opts conventions */
.plan-compare { margin-top: clamp(40px, 5vw, 56px); }
.plan-compare h3 { font-size: clamp(20px, 3vw, 24px); font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.plan-compare .tbl-wrap { margin-top: 20px; }
table.plan-table { min-width: 560px; }
table.plan-table tbody th { width: 34%; }
table.plan-table thead th + th, table.plan-table td { text-align: center; }
table.plan-table .col-pro { background: rgba(124, 92, 255, .06); }
table.plan-table .yes { color: var(--accent-ink); font-weight: 600; }
table.plan-table .no { color: var(--muted); }
table.plan-table .grp th { background: var(--surface-2); color: #fff; font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; text-align: left; }
table.plan-table .soon { color: var(--accent-ink); font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; }

/* FAQ: every answer open, as a list of rows */
.faq { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); row-gap: 10px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.qa h3 { grid-column: 1 / 6; font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; color: #fff; }
.qa .a { grid-column: 6 / 13; font-size: 15px; line-height: 1.65; color: #d4d4d8; max-width: 62ch; }
.qa .a > * + * { margin-top: .8em; }

/* Closing band */
.close { padding-block: clamp(88px, 11vw, 150px); text-align: center; overflow: hidden; }
.close .g { display: flex; flex-direction: column; align-items: center; }
.close .t2 { font-size: clamp(34px, 5vw, 68px); max-width: 18ch; margin-inline: auto; }
.close .lead { margin: 20px auto 0; }
.close .dw-btn { margin-top: 32px; }
.close .fine { color: var(--muted); }
.close .notes { order: 9; margin-top: 40px; grid-template-columns: repeat(3, auto); justify-content: center; gap: 10px 28px; }
.close .note { text-align: left; }
.close .note .muted { display: inline; }

/* Use cases */
.aud-nav { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; justify-content: center; }
.aud-nav a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; text-decoration: none; color: #d4d4d8; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.aud-nav a:hover { color: #fff; border-color: rgba(124, 92, 255, .6); background: rgba(124, 92, 255, .08); }
.aud .kpis { margin-top: 20px; font-size: var(--t5); color: var(--muted); }
.messy { margin-top: 14px; display: grid; gap: 8px; padding: 0; }
.messy li { list-style: none; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.messy .note b { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.messy .note .muted { color: #fff; font-family: var(--mono); font-size: 13px; }
.steps { margin-top: 20px; padding-left: 1.4em; display: grid; gap: 12px; color: #d4d4d8; font-size: 15px; }
.steps li { padding-left: .3em; }
.steps li::marker { font: 500 13px var(--mono); color: var(--accent-ink); }
.steps b { color: #fff; font-weight: 600; }
.uses { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.uses a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; text-decoration: none; color: #d4d4d8; transition: border-color .2s ease, color .2s ease; }
.uses a:hover { color: #fff; border-color: rgba(124, 92, 255, .6); }
.result { margin-top: 28px; padding: 20px 22px; border: 1px solid rgba(124, 92, 255, .45); border-radius: var(--r); background: radial-gradient(80% 100% at 0% 0%, rgba(124, 92, 255, .14), transparent 70%), var(--surface); color: #fff; font-size: 15px; }
.result b { display: block; font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; color: var(--accent-ink); }

/* Live thing on the home page: read the same dates day first or month first (CSS only) */
.live { margin-top: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.live fieldset { border: 0; padding: 4px; margin: 0; display: inline-flex; flex-wrap: wrap; gap: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.live legend { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; padding: 0; float: left; width: 100%; }
.live label { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #d4d4d8; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.live input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.live label:has(input:checked) { background: #fff; color: #0a0a0b; }
.live label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.live table { margin-top: 18px; width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 14px; color: #d4d4d8; }
.live th, .live td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.live th { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.live td:nth-child(2) { color: #fff; }
.live .mf, .live .why-mf { display: none; }
.live:has(#rd-mf:checked) .mf, .live:has(#rd-mf:checked) .why-mf { display: revert; }
.live:has(#rd-mf:checked) .df, .live:has(#rd-mf:checked) .why-df { display: none; }
.live .why { margin-top: 16px; font-size: var(--t5); color: var(--muted); }
.live .small { color: inherit; }

/* Panel with notes on both sides (home): the audit trail drawn whole */
.plate { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); margin-top: clamp(40px, 5vw, 56px); align-items: start; }
.plate-l, .plate-r { display: grid; gap: 28px; }
.plate-l { grid-column: 1 / 4; text-align: right; }
.plate-r { grid-column: 10 / 13; }
.plate-c { grid-column: 4 / 10; }
.plate .note b { font-size: 15px; }
.plate-notes-mobile { display: none; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px var(--gut); margin-top: 28px; }

/* Row of three drawn screens before the closing band */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1240px; margin: 0 auto; padding: 0 var(--m) clamp(48px, 6vw, 80px); }
.strip > div { overflow: hidden; height: 360px; border-radius: 20px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }

/* Prose pages (about, contact, privacy) */
.prose { max-width: 68ch; color: #d4d4d8; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 22px; letter-spacing: -0.02em; margin-top: 2em; }
.prose li::marker { color: var(--accent-ink); }

@media (max-width: 1100px) {
  .plate-l, .plate-r { display: none; }
  .plate-c { grid-column: 1 / -1; }
  .plate-notes-mobile { display: grid; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > li, .bento > li.wide { grid-column: span 1; }
  .bento > li.tall { grid-row: auto; }
}

@media (max-width: 1040px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .side, .main, .head, .notes, .flow-text, .flow-pic, .scene-row .scene-steps, .scene-row .scene-stage, .qa h3, .qa .a { grid-column: 1 / -1; }
  .scene-row .scene-steps { order: 2; }
  .notes { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .stagebar { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr; }
  .strip > div:nth-child(n+2) { display: none; }
  .flow > li:has(.flow-pic:empty) .flow-text dl { grid-template-columns: 1fr; }
  .close .notes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --t4: 16px; }
  .plate-notes-mobile, .stagebar, .bento { grid-template-columns: 1fr; }
  .figure-note { flex-direction: column; gap: 4px; border-radius: 16px; }
  .live { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-rv], html.js .rise .ln > span, html.js .bento > li, html.js .bands > li { opacity: 1 !important; transform: none !important; transition: none !important; }
  .bands a, .bento a, .stagebar > div, .flow > li, .chips li, table.opts tbody tr { transition: none; }
  .bands > li > a:hover, .bento a:hover, .stagebar > div:hover { transform: none; }
}
