/* ===========================================================
   Plotline - visualisation as code
   Static landing site. No build step.
   Soft mint studio: off-white page, forest green, bold tight
   headlines, hand-drawn notes. Ruled sections, no icon cards.
   =========================================================== */

:root {
  --paper:   #F5F8EF;   /* page: warm off-white with a mint cast */
  --paper-2: #EAF0E0;   /* recessed: inputs, footer */
  --card:    #FFFFFF;
  --mint:    #DAE7C7;
  --sage:    #A8C49A;
  --ink:     #101410;
  --ink-soft:#5E5E61;
  --faint:   #8B8F88;
  --line:    #DCE3D2;   /* hairline */
  --line-2:  #BCC7AF;
  --rule:    #101410;   /* heavy rule */

  /* one accent: forest. (--green / --ochre names kept so older rules and
     inline styles still resolve to it.) */
  --green:   #08482D;
  --green-deep: #05321F;
  --ochre:   #08482D;
  --clay:    #08482D;

  --accent:  var(--green);
  --up:      #08482D;
  --down:    #B4462F;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --gutter: clamp(1rem, 4vw, 2.4rem);
  --nav-h: 72px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --serif: 'Inter Tight', 'Inter', system-ui, sans-serif;   /* display */
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Inter', system-ui, -apple-system, sans-serif;     /* small labels */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; }
h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.accent-word { font-style: italic; color: var(--ink);
  background: linear-gradient(var(--green), var(--green)) 0 92% / 100% .08em no-repeat; }

/* ----------------------- Buttons ----------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-weight: 500; font-size: .95rem; font-family: inherit;
  padding: .8rem 1.4rem; border-radius: var(--radius); cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--green); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-primary::after, .btn-ghost.arrow::after { content: "→"; font-family: var(--sans); transition: transform .15s; }
.btn-primary:hover::after { transform: translateX(3px); }
.btn-sm { padding: .5rem 1rem; font-size: .88rem; }
.btn-sm::after { display: none; }
.btn-xs { padding: .35rem .7rem; font-size: .76rem; font-family: var(--mono); }
.full { width: 100%; }

/* ----------------------- Nav ----------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .85rem var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: baseline; gap: .55rem; }
.brand-mark { display: block; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.brand-name::after { content: "."; color: var(--green); }
.nav-links { margin-left: auto; display: flex; gap: 1.6rem; }
.nav-links a { color: var(--ink-soft); font-size: .9rem; transition: color .15s; }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 4px; }

/* ----------------------- Hero ----------------------- */
/* One 1440×1000 frame, contained and centred. Everything in frame units. */
.hero {
  --u: min(100vw / 1440, (100vh - var(--nav-h)) / 650);
  position: relative; overflow: hidden;
}
.hero-frame { position: relative; width: calc(1440 * var(--u)); height: calc(650 * var(--u)); margin: 0 auto; }
.hero-frame > * { position: absolute; }

.hero-badge {
  left: 50%; top: calc(64 * var(--u)); transform: translateX(-50%);
  height: calc(37 * var(--u)); padding: 0 calc(20 * var(--u));
  display: inline-flex; align-items: center; white-space: nowrap;
  background: var(--mint); color: var(--green); border-radius: 999px;
  font: 500 calc(16.6 * var(--u)) / 1 var(--sans);
}
.hero-title {
  left: 0; right: 0; top: calc(96 * var(--u)); text-align: center; white-space: nowrap;
  font: 700 calc(76 * var(--u)) / calc(84 * var(--u)) var(--serif);
  letter-spacing: -0.035em; color: var(--ink);
}
.hero-title .hl { display: block; }
.hero-title .hl-2 { letter-spacing: -0.022em; }

/* Curved card row. JS lays out the cards; the box only sets the band. */
.reel {
  left: 0; top: calc(210 * var(--u)); width: calc(1440 * var(--u)); height: calc(420 * var(--u));
  overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.reel.is-dragging { cursor: grabbing; }
.reel-card { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; overflow: hidden; contain: strict; }
.reel-card svg { display: block; width: 100%; height: 100%; }
.reel.is-paused .reel-card * { animation-play-state: paused !important; }
.reel-live {
  position: absolute; left: 10%; bottom: 7%; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.reel-live::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; transform: scale(.8); } }

/* Little chart motions inside the cards */
.rc-bar { transform-box: fill-box; transform-origin: bottom; animation: rc-bar 4.8s var(--ease) infinite alternate; }
.rc-barh { transform-box: fill-box; transform-origin: left; animation: rc-barh 5.2s var(--ease) infinite alternate; }
.rc-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: rc-draw 5s var(--ease) infinite; }
.rc-spin { transform-box: fill-box; transform-origin: center; animation: rc-spin 7s var(--ease) infinite alternate; }
.rc-blink { animation: rc-blink 3.4s ease-in-out infinite; }
@keyframes rc-bar { from { transform: scaleY(.55); } }
@keyframes rc-barh { from { transform: scaleX(.6); } }
@keyframes rc-draw { 0% { stroke-dashoffset: 1; } 55%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes rc-spin { from { transform: rotate(-40deg); } }
@keyframes rc-blink { 50% { opacity: .3; } }



@media (max-width: 820px) {
  .hero { --u: 1px; padding: 1.6rem 0 0; }
  .hero-frame { width: auto; height: auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero-frame > * { position: static; }
  .hero-badge { transform: none; height: 32px; padding: 0 14px; font-size: 13.5px; margin: 0 var(--gutter) 1.1rem; }
  .hero-title { font-size: clamp(30px, 8vw, 56px); line-height: 1.06; padding: 0 var(--gutter); white-space: normal; }
  .hero-title .hl { display: inline; }
  .hero-title { text-wrap: balance; }
  .reel { position: relative; top: auto; left: auto; width: 100%; height: 290px; margin-top: 1.6rem; }
}

/* ----------------------- Sections ----------------------- */
.section { max-width: calc(var(--maxw) + 2 * 2.4rem); margin: 0 auto; padding: clamp(2.5rem,5vw,4.5rem) var(--gutter) clamp(3rem,6vw,5.5rem); }
.hero + .section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.section > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head {
  display: block;
  border-top: 1px solid var(--rule); padding-top: 1.1rem;
  margin-bottom: clamp(2rem,4vw,3.2rem);
}
.section-head > * { grid-column: 2; }
.kicker { grid-column: 1 !important; grid-row: 1 / span 3; display: block;
  font-family: var(--mono); font-size: .76rem; color: var(--ink-soft); padding-top: .55rem; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: .9rem; max-width: 24ch; }
.section-head .sub { color: var(--ink-soft); font-size: 1.08rem; max-width: 38rem; }

/* Problem: three columns divided by rules, no boxes */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.card { padding: 0 1.8rem; border-left: 1px solid var(--line); }
.card:first-child { padding-left: 0; border-left: 0; }
.card-ico { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--green); margin-bottom: 1.2rem; font-weight: 300; }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .97rem; }

/* ----------------------- Demo (no-code configurator) ----------------------- */
.demo-grid > *, .contact-grid > * { min-width: 0; }
.demo-grid { display: grid; grid-template-columns: .75fr 1.25fr; border: 1px solid var(--rule); background: var(--card); }
.control-pane { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.4rem; border-right: 1px solid var(--rule); }
.control-group { display: flex; flex-direction: column; gap: .55rem; }
.control-label { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.seg { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.seg-btn {
  font-family: inherit; font-size: .86rem; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: .42rem .8rem; cursor: pointer; transition: all .12s;
}
.seg-btn:hover { border-color: var(--ink); color: var(--ink); }
.seg-btn.is-active { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.swatches { display: flex; gap: .5rem; }
.swatch { width: 28px; height: 28px; border-radius: 0; cursor: pointer; background: var(--sw);
  border: 0; box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow .12s; }
.swatch.is-active { box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--ink); }
.control-note { margin-top: auto; color: var(--ink-soft); font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.45; padding-top: 1rem; border-top: 1px solid var(--line); }
#chartGroup.is-hidden { display: none; }
.is-hidden { display: none; }
#dashboardsControls, #oversightControls { display: flex; flex-direction: column; gap: 1.4rem; }
#dashboardsControls.is-hidden, #oversightControls.is-hidden { display: none; }

.demo-tabs { margin-bottom: 0; gap: 0; display: flex; }
.demo-tabs .seg-btn { font-size: .92rem; padding: .7rem 1.1rem; border: 1px solid var(--rule); border-bottom: 0; margin-right: -1px; background: transparent; }
.demo-tabs .seg-btn.is-active { background: var(--card); color: var(--ink); font-weight: 600; position: relative; z-index: 1; margin-bottom: -1px; padding-bottom: calc(.7rem + 1px); }

.oversight-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.oversight-list li { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.oversight-list li:first-child { border-top: 1px solid var(--line); }
.oversight-list strong { color: var(--ink); }

.output-pane { overflow: hidden; display: flex; flex-direction: column; }
.pane-head { display: flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-bottom: 1px solid var(--line); }
.pane-file { font-family: var(--mono); font-size: .74rem; color: var(--faint); }
.pane-head .btn { margin-left: auto; }

.report { padding: 1.3rem 1.5rem 1rem; display: flex; flex-direction: column; height: 100%; background: var(--card); transition: background .25s, color .25s; }
.report-title { font-family: var(--serif); font-size: 1.35rem; margin-bottom: .2rem; }
.chart { flex: 1; min-height: 320px; width: 100%; }
.report-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; padding-top: .7rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; color: var(--faint); }
.badge { color: var(--ink-soft); }
.badge::before { content: "● "; color: var(--green); }
/* dark preview inside the demo */
.report.is-dark { background: #1C1B18; color: #EDEAE2; }
.report.is-dark .report-title { color: #EDEAE2; }
.report.is-dark .report-foot { color: #9C978B; border-top-color: #34322D; }
.report.is-dark .badge { color: #C9C4B8; }

/* ----------------------- Features ----------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 4rem); }
.feature { display: grid; grid-template-columns: 14rem 1fr; gap: 1.5rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.feature:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.f-ico { display: none; }
.feature h3 { font-size: 1rem; }
.feature p { color: var(--ink-soft); font-size: .95rem; }

/* ----------------------- Pricing ----------------------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); background: var(--card); }
.plan { padding: 2rem 1.8rem; position: relative; border-left: 1px solid var(--rule); display: flex; flex-direction: column; }
.plan:first-child { border-left: 0; }
.plan.featured { box-shadow: inset 0 5px 0 var(--green); }
.plan-tag { font-family: var(--mono); font-size: .7rem; color: var(--green); margin-bottom: .4rem; order: -1; }
.plan:not(.featured)::before { content: " "; font-family: var(--mono); font-size: .7rem; margin-bottom: .4rem; white-space: pre; }
.plan h3 { font-family: var(--mono); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: .8rem; }
.price { font-family: var(--serif); font-size: 3.2rem; letter-spacing: -0.03em; line-height: 1; margin-bottom: .6rem; font-variant-numeric: tabular-nums; }
.price span { font-family: var(--mono); font-size: .8rem; color: var(--faint); letter-spacing: 0; margin-left: .2rem; }
.plan-sub { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.4rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .5rem; flex: 1; align-content: start; }
.plan li { color: var(--ink); font-size: .93rem; padding-left: 1.3rem; position: relative; }
.plan li::before { content: "-"; position: absolute; left: 0; color: var(--faint); }

/* ----------------------- CTA / contact ----------------------- */
.cta-box { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(2rem,5vw,3.4rem) 0;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 2.6rem; align-items: end; }
.cta-copy h2 { font-size: clamp(2.2rem,5vw,4rem); margin-bottom: 1rem; }
.cta-copy p { color: var(--ink-soft); max-width: 36rem; }
.cta-action { display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.cta-reassure { color: var(--faint); font-size: .86rem; font-family: var(--serif); font-style: italic; font-size: 1rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.02rem; }
.form-status { font-size: .85rem; color: var(--ink-soft); min-height: 1.2rem; margin: .1rem 0 0; }
.form-status.is-error { color: var(--down); }

/* ----------------------- Booking modal ----------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(26,25,21,.55); animation: fade .2s var(--ease); }
.modal-dialog { position: relative; z-index: 1; width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow-y: auto;
  margin: clamp(1rem, 6vh, 4rem) auto 1rem; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem); animation: pop .2s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.modal-close { position: absolute; top: .9rem; right: 1rem; width: 34px; height: 34px; border-radius: var(--radius); cursor: pointer;
  background: transparent; border: 1px solid transparent; color: var(--ink-soft); font-size: .95rem; transition: all .15s; }
.modal-close:hover { border-color: var(--ink); color: var(--ink); }
.modal h2 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); margin-bottom: .5rem; }
.modal-sub { color: var(--ink-soft); font-size: .96rem; margin-bottom: 1.5rem; }
#bookingForm { display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .3rem; }
.field label { font-family: var(--mono); font-size: .72rem; color: var(--ink-soft); }
.field input, .field select, .field textarea { font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--card);
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: .7rem .8rem; outline: none; transition: border-color .15s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 56px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; width: 0; }
#bookingForm .btn { margin-top: .3rem; }
.modal-alt { margin-top: 1.1rem; text-align: center; color: var(--faint); font-size: .9rem; }
.modal-alt a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; }
.modal-success { text-align: left; padding: 1rem 0 .5rem; }
.success-mark { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--green); margin-bottom: 1rem; }
.modal-success p { color: var(--ink-soft); margin: 0 0 1.5rem; max-width: 26rem; }
.modal-success span { color: var(--ink); font-weight: 600; }

/* ----------------------- Footer ----------------------- */
.footer { border-top: 1px solid var(--rule); background: var(--paper); }
.foot-top { max-width: calc(var(--maxw) + 2 * 2.4rem); margin: 0 auto; padding: 3rem var(--gutter) 2rem;
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 2rem; }
.foot-brand { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.foot-tag { color: var(--ink-soft); font-size: 1.05rem; font-family: var(--serif); font-style: italic; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.foot-col { display: flex; flex-direction: column; gap: .5rem; }
.foot-col h4 { font-family: var(--mono); font-size: .7rem; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 0 0 .3rem; }
.foot-col a { color: var(--ink); font-size: .92rem; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-base { max-width: calc(var(--maxw) + 2 * 2.4rem); margin: 0 auto; padding: 1.2rem var(--gutter) 2.2rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--faint); font-family: var(--mono); font-size: .72rem; }

/* ----------------------- Subpages: header, prose, faq, contact ----------------------- */
.page-hero { max-width: calc(var(--maxw) + 2 * 2.4rem); margin: 0 auto; padding: clamp(2.5rem,6vw,4.5rem) var(--gutter) clamp(2rem,4vw,3rem); }
.page-hero .kicker { font-family: var(--mono); font-size: .76rem; color: var(--green); margin-bottom: 1rem; padding: 0; }
.page-hero .kicker::before { content: none; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 1.1rem; max-width: 16ch; }
.page-hero .lede { color: var(--ink-soft); font-size: clamp(1.05rem,1.5vw,1.2rem); max-width: 40rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); margin-bottom: 0; }
.page-hero .lede a { color: var(--ink) !important; text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; font-weight: 500 !important; }

.prose { max-width: 42rem; margin: 0 auto; padding: 0 var(--gutter) clamp(3rem,6vw,5rem); font-size: 1.05rem; }
.prose h2 { font-size: 1.75rem; margin: 2.6rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); margin-bottom: 1rem; }
.prose ul { color: var(--ink-soft); margin: 0 0 1.2rem; padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; }
.prose .muted { color: var(--faint); font-size: .85rem; font-family: var(--mono); }

.faq { max-width: 48rem; margin: 0 auto; padding: 0 var(--gutter) clamp(2rem,4vw,3rem); }
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-family: var(--mono); font-size: .76rem; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--green); margin: 0 0 .6rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-group h2 + .faq-item { border-top: 1px solid var(--rule); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.01em;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); color: var(--ink-soft); font-size: 1.1rem; transition: transform .2s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--green); }
.faq-item .faq-a { padding: 0 0 1.3rem; color: var(--ink-soft); font-size: 1rem; max-width: 40rem; }
.faq-item .faq-a p { margin: 0 0 .7rem; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

.contact-grid { max-width: calc(var(--maxw) + 2 * 2.4rem); margin: 0 auto; padding: 0 var(--gutter) clamp(3rem,6vw,5rem);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: start; }
.contact-card { background: var(--card); border: 1px solid var(--rule); padding: clamp(1.5rem,3vw,2.2rem); }
.contact-card h2 { font-size: 1.8rem; margin-bottom: .4rem; }
.contact-card .modal-sub { margin-bottom: 1.4rem; }
#contactForm { display: grid; gap: 1rem; }
.contact-side { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-block h3 { font-family: var(--mono); font-weight: 400; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: .4rem; }
.contact-block p { color: var(--ink-soft); font-size: 1rem; }
.contact-block a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; }
.contact-divider { height: 1px; background: var(--line); }
.page-cta { max-width: calc(var(--maxw) + 2 * 2.4rem); margin: 0 auto; padding: 0 var(--gutter) clamp(3.5rem,7vw,5.5rem); }
.page-cta-inner { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: clamp(1.8rem,4vw,2.6rem) 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.page-cta-inner h2 { font-size: clamp(1.8rem,3.4vw,2.6rem); }
.page-cta-inner p { color: var(--ink-soft); margin-top: .4rem; }

/* ----------------------- Comparison table ----------------------- */
.compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td { text-align: left; padding: .95rem 1.2rem .95rem 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .96rem; }
.compare-table thead th { font-family: var(--mono); font-size: .74rem; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); border-bottom: 1px solid var(--rule); padding-bottom: .7rem; }
.compare-table tbody th { font-weight: 500; color: var(--ink); width: 24%; }
.compare-table td { color: var(--faint); }
.compare-table .is-plotline { padding-left: 1.2rem; }
.compare-table thead .is-plotline { color: var(--green); }
.compare-table tbody td.is-plotline { color: var(--ink); box-shadow: inset 2px 0 0 var(--green); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 1px solid var(--rule); }

/* ----------------------- Scroll to top ----------------------- */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 80;
  width: 42px; height: 42px; border-radius: var(--radius); cursor: pointer;
  display: grid; place-items: center; font-size: 1.05rem; line-height: 1;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), background .15s, color .15s;
}
.to-top:hover { background: var(--ink); color: var(--paper); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ----------------------- Accessibility & utilities ----------------------- */
.skip-link { position: fixed; top: -120px; left: 1rem; z-index: 200; background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; font-size: .9rem; transition: top .15s; }
.skip-link:focus { top: 1rem; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px;
}
.menu-toggle { display: none; width: 40px; height: 38px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ----------------------- Responsive ----------------------- */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav > .btn-primary { margin-left: auto; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: .3rem var(--gutter) .8rem; }
  .nav.menu-open .nav-links { display: flex; }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links a:last-child { border-bottom: 0; }
  .section-head { grid-template-columns: 1fr; }
  .section-head > *, .kicker { grid-column: 1 !important; }
  .kicker { grid-row: auto; padding: 0 0 .9rem; }
  .cards-3, .pricing { grid-template-columns: 1fr; }
  .plan { border-left: 0; border-top: 1px solid var(--rule); }
  .plan:first-child { border-top: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: .3rem; }
  .feature:nth-last-child(2) { border-bottom: 0; }
  .demo-grid { grid-template-columns: 1fr; }
  .control-pane { border-right: 0; border-bottom: 1px solid var(--rule); }
  .cta-box { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .demo-tabs .seg-btn { flex: 1; font-size: .82rem; padding: .6rem .6rem; }
  .foot-base { flex-direction: column; }
  .field-row { grid-template-columns: 1fr; }
}

/* ----------------------- Mint studio refinements ----------------------- */
/* Display type is bold and tight everywhere; labels are small Inter. */
h1, h2, .step-body h3, .price, .card-ico, .report-title, .brand-name, .cta-copy h2, .faq-item summary, .contact-card h2 {
  font-family: var(--serif); font-weight: 700; letter-spacing: -0.03em;
}
.faq-item summary { font-weight: 600; letter-spacing: -0.015em; font-size: 1.2rem; }
.report-title { font-weight: 600; letter-spacing: -0.015em; }
.kicker, .control-label, .kpi-label, .pane-file, .report-foot, .plan h3, .plan-tag, .step-n, .faq-group h2,
.contact-block h3, .foot-col h4, .compare-table thead th, .foot-base, .field label, .prose .muted, .btn-xs {
  font-family: var(--sans); letter-spacing: .02em;
}
.field label { font-weight: 500; }
.kicker { font-weight: 500; }
.accent-word { font-style: normal; background: none; color: var(--green); }

/* Pills, not slabs */
.btn { border-radius: 999px; font-weight: 500; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-primary::after { display: none; }
.btn-ghost { background: #fff; border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; color: var(--green); border-color: var(--green); }
.seg-btn { border-radius: 999px; }
.seg-btn.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.demo-tabs .seg-btn { border-radius: 14px 14px 0 0; }
.demo-tabs .seg-btn.is-active { background: var(--card); color: var(--green); }
.swatch { border-radius: 50%; }
.menu-toggle { border-radius: 999px; border-color: var(--line-2); }
.to-top { border-radius: 50%; border-color: var(--line-2); background: #fff; }
.to-top:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* Nav: soft bar, wordmark with a leaf */
.nav { min-height: var(--nav-h); border-bottom: 1px solid var(--line); background: rgba(245,248,239,.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.brand { align-items: center; }
.brand-name { font-family: 'Fraunces', Georgia, serif; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }  /* original Plotline wordmark */
.brand-name::after { content: none; }
.nav-links { margin-left: auto; margin-right: auto; gap: 1.95rem; }
.nav-links a { color: var(--ink); font-size: 1rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green); text-decoration: none; }

/* Boxes get soft corners; rules go forest-tinted and lighter */
.demo-grid, .pricing, .contact-card, .modal-dialog { border-radius: var(--radius); border-color: var(--line-2); overflow: hidden; }
.demo-tabs + .demo-grid { border-top-left-radius: 0; }
.control-pane, .plan, .demo-tabs .seg-btn { border-color: var(--line-2); }
.section-head, .cta-box, .page-cta-inner, .footer, .compare-table thead th, .compare-table tr:last-child th,
.compare-table tr:last-child td, .faq-group h2 + .faq-item, .page-hero .lede { border-color: var(--line-2); }
.plan.featured { box-shadow: none; background: var(--green); color: #fff; }
.plan.featured h3, .plan.featured .plan-tag, .plan.featured .plan-sub, .plan.featured .price span, .plan.featured li::before { color: var(--mint); }
.plan.featured li { color: #fff; }
.plan.featured .plan-sub { border-color: rgba(255,255,255,.18); }
.plan.featured .btn-primary { background: var(--mint); color: var(--green); }
.plan.featured .btn-primary:hover { background: #fff; }
.compare-table tbody td.is-plotline { box-shadow: inset 2px 0 0 var(--green); }
.badge::before { color: var(--sage); }
.success-mark { font-family: 'Caveat', cursive; }
.control-note, .cta-reassure, .foot-tag { font-family: 'Caveat', cursive; font-style: normal; font-weight: 600; font-size: 1.35rem; color: var(--green); line-height: 1.25; }
.report.is-dark { background: #0C1F16; }
.card-ico { font-weight: 700; color: var(--sage); }
.step-n { color: var(--green); font-weight: 600; }

@media (max-width: 900px) {
  .nav-links { margin-right: 0; }
  .plan { border-color: var(--line-2); }
}

/* ----------------------- KPI dashboard as code ----------------------- */
.tab-code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .78em; font-weight: 500; margin-right: .5em;
  padding: .1em .4em; border-radius: 5px; background: var(--mint); color: var(--green); }
.demo-tabs .seg-btn.is-active .tab-code { background: var(--green); color: var(--mint); }

.kpi-panel { border: 1px solid var(--line-2); border-radius: 0 var(--radius) var(--radius) var(--radius); background: var(--card); overflow: hidden; }

.kpi-split { display: grid; grid-template-columns: minmax(300px, 0.78fr) 1.22fr; position: relative; }
.kpi-split > * { min-width: 0; }

/* Code editor */
.kpi-code { --code-fs: 13.5px; --code-lh: 23px; min-height: 0;
  background: #0B2218; color: #E4EEDD; display: flex; flex-direction: column; }
.code-head { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-dots { display: flex; gap: 6px; }
.code-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.code-file { font: 500 .8rem/1 'JetBrains Mono', ui-monospace, monospace; color: #DAE7C7; }
.code-reset { margin-left: auto; font: 500 .74rem/1 var(--sans); color: #9DB5A4; background: none; border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: .35rem .7rem; cursor: pointer; }
.code-reset:hover { color: #fff; border-color: rgba(255,255,255,.4); }

.code-quick { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .6rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.cq-label { font: 500 .68rem/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: #7E9A88; margin-right: .2rem; }
.code-quick button { font: 500 .74rem/1 'JetBrains Mono', ui-monospace, monospace; color: #C9D8C2; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: .38rem .6rem; cursor: pointer; transition: all .12s; }
.code-quick button:hover { border-color: rgba(218,231,199,.5); color: #fff; }
.code-quick button.is-on { background: #DAE7C7; color: #08482D; border-color: #DAE7C7; }
.code-quick .cq-sw { width: 20px; height: 20px; padding: 0; background: var(--sw); border: 2px solid transparent; }
.code-quick .cq-sw.is-on { background: var(--sw); border-color: #DAE7C7; box-shadow: 0 0 0 2px #0B2218 inset; }
.cq-sep { width: 1px; height: 16px; background: rgba(255,255,255,.12); margin: 0 .2rem; }

.code-editor { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.code-editor::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; pointer-events: none;
  background: linear-gradient(rgba(11,34,24,0), #0B2218); }   /* hints that the file carries on below */
.code-gutter, .code-hl, #kpiCode { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: var(--code-fs); line-height: var(--code-lh); }
.code-gutter { position: absolute; left: 0; top: 0; bottom: 0; width: 3.1rem; padding: 14px 0; text-align: right; color: #4E6B5A; user-select: none; overflow: hidden; border-right: 1px solid rgba(255,255,255,.06); }
.code-gutter span { display: block; padding: 0 .7rem 0 .5rem; }
.code-gutter span.is-hot { color: #DAE7C7; }
.code-area { position: absolute; top: 0; right: 0; bottom: 0; left: 3.1rem; overflow: hidden; }
.code-hl, #kpiCode { position: absolute; inset: 0; margin: 0; padding: 14px 16px; white-space: pre; overflow: auto; tab-size: 2; letter-spacing: 0; }
.code-hl { pointer-events: none; color: #E4EEDD; scrollbar-width: none; }
.code-hl::-webkit-scrollbar { display: none; }
#kpiCode { background: transparent; color: transparent; caret-color: #DAE7C7; border: 0; outline: none; resize: none; }
#kpiCode::selection { background: rgba(218,231,199,.25); color: transparent; }
.code-hl .ln { display: block; margin: 0 -16px; padding: 0 16px; transition: background .15s; }
.code-hl .ln.is-hot { background: rgba(218,231,199,.13); box-shadow: inset 3px 0 0 #DAE7C7; }
.code-hl .ln.is-err { background: rgba(240,138,115,.12); box-shadow: inset 3px 0 0 #F08A73; }
.t-key { color: #9FD8AE; }
.t-p { color: #6F8E7B; }
.t-val { color: #F3D58A; }
.t-str { color: #F5B98A; }
.t-item { color: #F3D58A; }
.t-com { color: #5F7D6B; font-style: italic; }
.t-kw { color: #E9A6C8; }
.t-sql { color: #E4EEDD; }
.t-sqlkw { color: #E9A6C8; }
.t-num { color: #F3D58A; }
.t-fn { color: #8FD0E8; }
.code-status { font: 500 .76rem/1.4 'JetBrains Mono', ui-monospace, monospace; color: #9FD8AE; padding: .65rem 1rem; border-top: 1px solid rgba(255,255,255,.08); }
.code-status.is-err { color: #F5A08C; }


/* The rendered board */
.kpi-board { --kc: #08482D; --kb-bg: #F7FAF2; --kb-card: #FFFFFF; --kb-ink: #101410; --kb-soft: #5E625C; --kb-faint: #8D9289;
  --kb-line: #E3E9DA; --kb-good: #2B7A4B; --kb-bad: #B4462F;
  background: var(--kb-bg); color: var(--kb-ink); padding: 1.3rem 1.3rem 1.4rem; transition: background .3s, color .3s, opacity .2s; position: relative; }
.kpi-board.is-dark { --kb-bg: #0E1512; --kb-card: #16201B; --kb-ink: #EEF3E8; --kb-soft: #A9B5AA; --kb-faint: #7D8A80; --kb-line: #26332C;
  --kb-good: #7FCB97; --kb-bad: #F08A73; }
.kpi-board.is-dark { --kc-ink: color-mix(in oklab, var(--kc) 55%, white); }
.kpi-board.is-stale { opacity: .55; }
.kb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.kb-title { font: 700 1.35rem/1.15 var(--serif); letter-spacing: -0.025em; }
.kb-period { font-size: .8rem; color: var(--kb-faint); }
.kb-live { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 500; color: var(--kb-soft);
  border: 1px solid var(--kb-line); background: var(--kb-card); border-radius: 999px; padding: .3rem .65rem; }
.kb-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--kb-good); animation: live 2s ease-in-out infinite; }

.kb-tiles { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: .7rem; margin-bottom: .7rem; }
.kt, .kb-card { background: var(--kb-card); border: 1px solid var(--kb-line); border-radius: 12px; transition: box-shadow .15s, border-color .15s, background .3s; }
.kt { padding: .85rem .9rem .7rem; position: relative; overflow: hidden; outline: none; }
.kt:hover, .kt:focus-visible, .kt.is-linked, .kb-card.is-linked, .kb-card:hover { border-color: var(--kc); box-shadow: 0 0 0 1px var(--kc); }
.is-dark .kt:hover, .is-dark .kt.is-linked, .is-dark .kb-card.is-linked, .is-dark .kb-card:hover { border-color: var(--kc-ink); box-shadow: 0 0 0 1px var(--kc-ink); }
.kt-label { font-size: .76rem; font-weight: 500; color: var(--kb-soft); }
.kt-val { font: 700 1.6rem/1.2 var(--serif); letter-spacing: -0.03em; margin: .15rem 0 .2rem; font-variant-numeric: tabular-nums; }
.kt-foot { display: flex; gap: .4rem; align-items: baseline; font-size: .72rem; flex-wrap: wrap; }
.kt-delta { font-weight: 600; }
.kt-delta.good { color: var(--kb-good); }
.kt-delta.bad { color: var(--kb-bad); }
.kt-vs { color: var(--kb-faint); }
.kt-spark { display: block; width: 100%; height: 30px; margin-top: .45rem; overflow: visible; }
.sp-line { fill: none; stroke: var(--kc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sp-area { fill: var(--kc); opacity: .08; }
.sp-dot { fill: var(--kc); stroke: var(--kb-card); stroke-width: 2; vector-effect: non-scaling-stroke; }
.is-dark .sp-line { stroke: var(--kc-ink); } .is-dark .sp-dot { fill: var(--kc-ink); } .is-dark .sp-area { fill: var(--kc-ink); opacity: .12; }

.kb-row { display: grid; grid-template-columns: 1.55fr 1fr; gap: .7rem; }
.kb-row > * { min-width: 0; }
.kb-card { padding: .9rem 1rem .8rem; position: relative; }
.kb-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: .5rem; }
.kb-card-title { font-size: .86rem; font-weight: 600; }
.kb-legend { display: flex; gap: .8rem; font-size: .72rem; color: var(--kb-soft); }
.lg { display: inline-flex; align-items: center; gap: .35rem; }
.lg i { width: 14px; height: 0; border-top: 2px solid var(--kc); }
.lg.s-target i { border-top: 2px dashed var(--kb-faint); }
.is-dark .lg.s-main i { border-color: var(--kc-ink); }
.kb-total { font: 700 1rem/1 var(--serif); letter-spacing: -0.02em; }

.kb-chart { position: relative; }
.kb-chart svg { display: block; overflow: visible; }
.kb-chart .grid { stroke: var(--kb-line); stroke-width: 1; }
.kb-chart .ax { fill: var(--kb-faint); font: 400 10.5px var(--sans); font-variant-numeric: tabular-nums; }
.kb-chart .ln-path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.kb-chart .ln-path.s-main { stroke: var(--kc); }
.kb-chart .ln-path.s-target { stroke: var(--kb-faint); stroke-dasharray: 5 4; }
.is-dark .kb-chart .ln-path.s-main { stroke: var(--kc-ink); }
.kb-chart .fill-top { stop-color: var(--kc); stop-opacity: .2; }
.kb-chart .fill-bot { stop-color: var(--kc); stop-opacity: 0; }
.is-dark .kb-chart .fill-top { stop-color: var(--kc-ink); stop-opacity: .25; }
.kb-chart .dl { font: 600 11px var(--sans); fill: var(--kb-soft); }
.kb-chart .xh { stroke: var(--kb-faint); stroke-width: 1; stroke-dasharray: 2 3; }
.kb-chart .hd { stroke: var(--kb-card); stroke-width: 2; }
.kb-chart .hd.s-main { fill: var(--kc); } .is-dark .kb-chart .hd.s-main { fill: var(--kc-ink); }
.kb-chart .hd.s-target { fill: var(--kb-faint); }
.kb-chart .hit { fill: transparent; cursor: crosshair; }
.kb-tip { position: absolute; z-index: 3; pointer-events: none; min-width: 150px; margin-top: 38px;
  background: var(--kb-ink); color: var(--kb-bg); border-radius: 10px; padding: .55rem .7rem; font-size: .74rem;
  display: grid; gap: .2rem; box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.kb-tip[hidden] { display: none; }
.kb-tip b { font-weight: 600; margin-bottom: .1rem; }
.kb-tip span { display: flex; align-items: center; gap: .4rem; }
.kb-tip span i { width: 8px; height: 8px; border-radius: 50%; background: var(--kc); flex: none; }
.is-dark .kb-tip span.s-main i { background: var(--kc-ink); }
.kb-tip span.s-target i { background: var(--kb-faint); }
.kb-tip em { margin-left: auto; font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; padding-left: .8rem; }
.kb-tip .tip-gap { margin-top: .15rem; padding-top: .3rem; border-top: 1px solid rgba(127,127,127,.3); font-weight: 600; }
.kb-tip .tip-gap.good { color: #9FE0B2; } .kb-tip .tip-gap.bad { color: #F5A08C; }
.is-dark .kb-tip .tip-gap.good { color: #2B7A4B; } .is-dark .kb-tip .tip-gap.bad { color: #B4462F; }

.kb-bars { display: grid; gap: .85rem; margin-top: .4rem; }
.kbar-top { display: flex; justify-content: space-between; gap: .6rem; font-size: .8rem; margin-bottom: .3rem; }
.kbar-top span { color: var(--kb-soft); }
.kbar-top b { font-weight: 600; font-variant-numeric: tabular-nums; }
.kbar-top small { color: var(--kb-faint); font-weight: 500; margin-left: .3rem; }
.kbar-track { height: 10px; border-radius: 999px; background: var(--kb-line); overflow: hidden; }
.kbar-track i { display: block; height: 100%; border-radius: 999px; background: var(--kc); transition: width .7s cubic-bezier(.22,.61,.36,1), background .3s; }
.is-dark .kbar-track i { background: var(--kc-ink); }

@media (max-width: 1060px) {
  .kpi-split { grid-template-columns: 1fr; }
  .code-editor { min-height: 330px; }   /* stacked: the editor needs a height of its own */
}
@media (max-width: 640px) {
  .kb-tiles { grid-template-columns: repeat(2, 1fr); }
  .kb-row { grid-template-columns: 1fr; }
  .kpi-code { --code-fs: 12px; --code-lh: 20px; }
  .kpi-panel { border-radius: 0 0 var(--radius) var(--radius); }
}

/* Talk to your dashboard */
.ask { padding: 1.1rem 1.2rem 1rem; border-bottom: 1px solid var(--line-2); background: var(--card); display: grid; gap: .6rem; }
.ask-label { font: 700 1.15rem/1.2 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.ask-box { display: flex; align-items: center; gap: .6rem; background: var(--paper); border: 1.5px solid var(--green); border-radius: 999px; padding: .35rem .4rem .35rem 1rem; }
.ask-box:focus-within { box-shadow: 0 0 0 4px rgba(8,72,45,.12); }
.ask-icon { font: 600 1.2rem/1 'JetBrains Mono', ui-monospace, monospace; color: var(--green); }
.ask-box input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: 400 1.02rem/1.4 var(--sans); color: var(--ink); padding: .45rem 0; }
.ask-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .8rem; color: var(--faint); }
.ask-chips button { font: 500 .8rem/1 var(--sans); color: var(--green); background: var(--mint); border: 1px solid transparent; border-radius: 999px; padding: .42rem .75rem; cursor: pointer; }
.ask-chips button:hover { border-color: var(--green); }
.ask-reply { font: 500 .8rem/1.4 'JetBrains Mono', ui-monospace, monospace; color: var(--green); }
.ask-reply:empty { display: none; }
.ask-reply.is-busy::after { content: "▍"; animation: rc-blink 1s steps(1) infinite; margin-left: .2rem; }
.ask-reply.is-miss { color: var(--down); }
.kpi-panel.is-asking .kpi-code { box-shadow: inset 0 0 0 2px #DAE7C7; }
@media (max-width: 640px) {
  .ask-box { border-radius: 16px; flex-wrap: wrap; padding: .5rem; }
  .ask-box input { flex-basis: 100%; padding: .3rem .4rem; }
  .ask-icon { display: none; }
  .ask-box .btn { width: 100%; }
}
.ask-tag { display: inline-block; vertical-align: middle; margin-left: .5rem; font: 500 .7rem/1 var(--sans); letter-spacing: .02em;
  color: var(--green); background: var(--mint); border-radius: 999px; padding: .32rem .6rem; }

/* ----------------------- Demo tabs: shared ----------------------- */
.tab-panel { border: 1px solid var(--line-2); border-radius: 0 var(--radius) var(--radius) var(--radius); background: #F7FAF2; padding: 1.3rem; }
.tab-panel.is-hidden, .kpi-panel.is-hidden { display: none; }
.dq-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; border-radius: 999px; padding: .28rem .6rem .28rem .4rem; white-space: nowrap; }
.dq-pill i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .62rem; color: #fff; }
.dq-pill.ok { background: #E3F0E4; color: #1F6B3E; } .dq-pill.ok i { background: #2B7A4B; }
.dq-pill.warn { background: #FBEFD9; color: #8A520E; } .dq-pill.warn i { background: #B5701A; }
.dq-pill.bad { background: #F8E1DB; color: #96351F; } .dq-pill.bad i { background: #B4462F; }
.dq-pill.run { background: var(--paper-2); color: var(--ink-soft); }
.dq-pill .spin { border: 2px solid var(--line-2); border-top-color: var(--green); background: none; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------- Permissions ----------------------- */
.pm-grid { display: grid; grid-template-columns: minmax(280px, .82fr) 1.18fr; gap: 1rem; }
.pm-grid > * { min-width: 0; }
.pm-bottom { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.pm-bottom > * { min-width: 0; }
.pm-h { font: 600 .78rem/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: .6rem; }
.pm-roles { display: grid; gap: .45rem; margin-bottom: 1rem; }
.pm-role { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; text-align: left; font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .75rem; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pm-role:hover { border-color: var(--line-2); }
.pm-role.is-on { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.pm-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 .75rem/1 var(--sans); background: var(--mint); color: var(--green); }
.pm-role.is-on .pm-av { background: var(--green); color: #fff; }
.pm-av.sm { width: 26px; height: 26px; font-size: .62rem; flex: none; }
.pm-who b { display: block; font-size: .9rem; font-weight: 600; }
.pm-who small { font-size: .78rem; color: var(--ink-soft); }
.pm-scope { font-size: .7rem; font-weight: 600; color: var(--green); background: var(--mint); border-radius: 999px; padding: .25rem .55rem; white-space: nowrap; }
.pm-code { background: #0B2218; border-radius: 12px; overflow: hidden; }
.pm-code-head { font: 500 .74rem/1 'JetBrains Mono', ui-monospace, monospace; color: #DAE7C7; padding: .6rem .9rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.pm-code pre { margin: 0; padding: .6rem 0; font: 400 12px/1.75 'JetBrains Mono', ui-monospace, monospace; color: #E4EEDD; overflow-x: auto; }
.pm-code .pl { display: block; padding: 0 .9rem; white-space: pre; transition: background .2s; }
.pm-code .pl.is-hot { background: rgba(218,231,199,.14); box-shadow: inset 3px 0 0 #DAE7C7; }

.pm-preview { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; height: 100%; }
.pm-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.pm-title { font: 700 1.3rem/1.15 var(--serif); letter-spacing: -0.02em; }
.pm-viewing { font-size: .8rem; color: var(--ink-soft); }
.pm-actions { display: flex; gap: .35rem; }
.pm-act { font: 500 .78rem/1 var(--sans); color: var(--green); background: var(--mint); border: 1px solid transparent; border-radius: 999px; padding: .45rem .75rem; cursor: default; display: inline-flex; gap: .3rem; align-items: center; }
.pm-act.is-off { color: var(--faint); background: var(--paper-2); }
.pm-act i { font-style: normal; font-size: .7rem; }
.pm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; margin-bottom: .8rem; }
.pm-tile { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .75rem; display: grid; gap: .15rem; background: #fff; }
.pm-tl { font-size: .74rem; color: var(--ink-soft); font-weight: 500; }
.pm-tv { font: 700 1.35rem/1.15 var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pm-td { font-size: .7rem; font-weight: 600; color: #2B7A4B; } .pm-td.bad { color: #B4462F; }
.pm-tile.is-locked { background: repeating-linear-gradient(135deg, #F4F6F0 0 8px, #EEF1E8 8px 16px); }
.pm-tile.is-locked .pm-tv { color: var(--line-2); letter-spacing: .1em; }
.pm-lock { font-size: .7rem; font-weight: 600; color: var(--ink-soft); } .pm-lock i { font-style: normal; }
.pm-regions-card { border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; }
.pm-card-head { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; font-weight: 600; margin-bottom: .6rem; }
.pm-rows-note { font-size: .74rem; font-weight: 500; color: var(--ink-soft); }
.pm-reg { display: grid; grid-template-columns: 8.5rem 1fr 4rem; align-items: center; gap: .7rem; font-size: .82rem; padding: .3rem 0; }
.pm-reg b { text-align: right; font-variant-numeric: tabular-nums; }
.pm-track { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.pm-track i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .5s var(--ease); }
.pm-reg.is-hidden-row { color: var(--faint); }
.pm-reg.is-hidden-row .pm-track i { background: repeating-linear-gradient(135deg, var(--line-2) 0 4px, transparent 4px 8px); }
.pm-matrix-card, .pm-log-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.pm-matrix-card h4, .pm-log-card h4 { margin: 0 0 .7rem; font-size: .9rem; font-weight: 600; }
.pm-log-card h4 span { font-weight: 400; color: var(--faint); font-size: .78rem; margin-left: .3rem; }
.pm-matrix-wrap { overflow-x: auto; }
.pm-matrix { width: 100%; border-collapse: collapse; font-size: .8rem; min-width: 460px; }
.pm-matrix th, .pm-matrix td { padding: .5rem .5rem; text-align: left; border-bottom: 1px solid var(--line); }
.pm-matrix thead th { font-size: .72rem; font-weight: 600; color: var(--ink-soft); }
.pm-matrix tbody th { font-weight: 500; }
.pm-matrix .is-col { background: rgba(218,231,199,.45); }
.pm-cell { font-size: .72rem; font-weight: 600; border-radius: 999px; padding: .2rem .5rem; white-space: nowrap; }
.pm-edit { background: var(--green); color: #fff; } .pm-view { background: var(--mint); color: var(--green); } .pm-none { color: var(--faint); }
.pm-log { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pm-log li { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; font-size: .8rem; color: var(--ink-soft); }
.pm-log b { color: var(--ink); font-weight: 600; }
.pm-log em { font-style: normal; font-weight: 600; color: var(--green); } .pm-log em.bad { color: #B4462F; }
.pm-log time { font-size: .72rem; color: var(--faint); white-space: nowrap; }

/* ----------------------- Data integrity ----------------------- */
.dq-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.dq-title { font: 700 1.35rem/1.15 var(--serif); letter-spacing: -0.02em; }
.dq-when { font-size: .8rem; color: var(--ink-soft); }
#dqRun:disabled { opacity: .7; cursor: progress; }
.dq-tiles { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: .7rem; margin-bottom: .7rem; }
.dq-tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .85rem .95rem; display: grid; gap: .1rem; align-content: start; }
.dq-score { grid-template-columns: 64px 1fr; gap: .9rem; align-items: center; }
.dq-score svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.dq-score .ring-bg { fill: none; stroke: var(--line); stroke-width: 7; }
.dq-score .ring { fill: none; stroke: var(--green); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1s var(--ease); }
.dq-score > div { display: grid; }
.dq-tl { font-size: .76rem; font-weight: 500; color: var(--ink-soft); }
.dq-tl small { font-weight: 400; color: var(--faint); }
.dq-tv { font: 700 1.6rem/1.2 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dq-tv.sm { font-size: 1.3rem; }
.dq-ts { font-size: .72rem; color: var(--faint); }
.dq-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: .7rem; margin-bottom: .7rem; }
.dq-row > * { min-width: 0; }
.dq-row-2 { grid-template-columns: 1.1fr 1fr; margin-bottom: 0; }
.dq-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; }
.dq-card-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; font-size: .88rem; font-weight: 600; margin-bottom: .6rem; }
.dq-hint { font-size: .74rem; font-weight: 400; color: var(--faint); }
.dq-tables { overflow-x: auto; }
.dq-table { width: 100%; border-collapse: collapse; font-size: .8rem; min-width: 480px; }
.dq-table th, .dq-table td { padding: .55rem .5rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dq-table thead th { font-size: .72rem; font-weight: 600; color: var(--ink-soft); }
.dq-table tbody th { font: 500 .78rem/1.2 'JetBrains Mono', ui-monospace, monospace; }
.dq-table tbody tr { cursor: pointer; transition: background .12s; }
.dq-table tbody tr:hover { background: var(--paper); }
.dq-table tbody tr.is-sel { background: rgba(218,231,199,.5); box-shadow: inset 3px 0 0 var(--green); }
.dq-table tbody tr:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.dq-detail .dq-card-head span:first-child { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 500; font-size: .82rem; }
.dq-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.dq-checks li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; padding: .5rem .6rem; border-radius: 10px; background: var(--paper); }
.dq-checks li > i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .7rem; font-weight: 700; color: #fff; margin-top: .1rem; }
.dq-checks li.ok > i { background: #2B7A4B; } .dq-checks li.warn > i { background: #B5701A; } .dq-checks li.bad > i { background: #B4462F; }
.dq-checks li.warn { background: #FBF3E4; } .dq-checks li.bad { background: #FBEAE5; }
.dq-checks b { display: block; font-size: .82rem; font-weight: 600; }
.dq-checks span { font-size: .76rem; color: var(--ink-soft); }
.dq-alert { margin-top: .6rem; font-size: .78rem; color: #96351F; background: #FBEAE5; border-radius: 10px; padding: .55rem .7rem; }
.dq-legend { display: flex; gap: .7rem; font-size: .72rem; font-weight: 400; color: var(--ink-soft); }
.dq-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.sq { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.sq.ok { background: #8DC29C; } .sq.warn { background: #E2A55A; } .sq.bad { background: #C9644C; }
.dq-heat { display: grid; grid-template-columns: auto 1fr; gap: .45rem .7rem; align-items: center; }
.dq-heat-name { font: 400 .72rem/1 'JetBrains Mono', ui-monospace, monospace; color: var(--ink-soft); white-space: nowrap; }
.dq-heat-row { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; }
.dq-heat-row .sq { width: 100%; height: 14px; }
.dq-heat-row .sq:last-child { box-shadow: 0 0 0 1.5px var(--ink); }
.dq-model { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.1rem; }
.dq-model > div { display: grid; gap: .25rem; align-content: start; }
.dq-acc { width: 100%; height: 54px; margin: .2rem 0; }
.dq-acc .band { fill: var(--mint); opacity: .7; }
.dq-acc .acc { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dq-drift { display: grid; grid-template-columns: 7.6rem 1fr 2.2rem; gap: .5rem; align-items: center; font-size: .74rem; }
.dq-drift span { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dq-drift em { font-style: normal; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.dq-drift em.warn { color: #B5701A; }
.dq-track { position: relative; height: 8px; background: var(--line); border-radius: 999px; }
.dq-track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green); border-radius: 999px; }
.dq-track i.warn { background: #B5701A; }
.dq-track b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }

@media (max-width: 1040px) {
  .pm-grid, .pm-bottom, .dq-row, .dq-row-2 { grid-template-columns: 1fr; }
  .dq-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tab-panel { padding: .9rem; border-radius: 0 0 var(--radius) var(--radius); }
  .pm-tiles { grid-template-columns: 1fr 1fr; }
  .pm-reg { grid-template-columns: 6.5rem 1fr 3.4rem; }
  .dq-model { grid-template-columns: 1fr; }
  .dq-tiles { grid-template-columns: 1fr; }
}

/* ----------------------- Layout details ----------------------- */
/* Hero sits on a faint plot grid that fades out towards the edges */
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px); background-size: 26px 26px; background-position: 13px 13px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 60%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 70% 80% at 50% 60%, #000 30%, transparent 100%); }
.hero-frame { z-index: 1; }

/* Nav links: a short underline grows in on hover */
.nav-links a { position: relative; padding-bottom: .15rem; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* Every section rule starts with a short green axis tick */
.section-head { position: relative; }
.section-head::before { content: ""; position: absolute; left: 0; top: -2px; width: 56px; height: 3px; background: var(--green); }

/* Demo tabs: the active tab has a green top edge, like a browser tab */
.demo-tabs .seg-btn { position: relative; }
.demo-tabs .seg-btn.is-active::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--green); border-radius: 14px 14px 0 0; }

/* Comparison: ticks for Plotline, dashes for the other lot, a tinted Plotline column */
.compare-table .is-plotline { background: rgba(218,231,199,.32); }
.compare-table thead th.is-plotline { border-top: 3px solid var(--green); padding-top: .6rem; border-radius: 8px 8px 0 0; }
.compare-table tbody td.is-plotline { box-shadow: none; padding-left: 2.3rem; position: relative; }
.compare-table tbody td.is-plotline::before { content: "✓"; position: absolute; left: 1rem; top: .95rem; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.compare-table tbody td:not(.is-plotline) { padding-left: 2.3rem; position: relative; }
.compare-table tbody td:not(.is-plotline)::before { content: "–"; position: absolute; left: 1rem; top: .95rem; width: 18px; height: 18px; border-radius: 50%; background: var(--paper-2); color: var(--faint); font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.compare-table tbody tr { transition: background .15s; }
.compare-table tbody tr:hover th, .compare-table tbody tr:hover td:not(.is-plotline) { background: rgba(255,255,255,.6); }
.compare-table tr:last-child td.is-plotline { border-radius: 0 0 8px 8px; }

/* Features: two columns split by a hairline, each item with a small green marker */
.feature-grid { position: relative; }
.feature-grid::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.feature h3 { position: relative; padding-left: 1.1rem; }
.feature h3::before { content: ""; position: absolute; left: 0; top: .42em; width: 8px; height: 8px; background: var(--green); border-radius: 2px; transition: transform .2s var(--ease); }
.feature:hover h3::before { transform: scale(1.4); }
.feature:hover h3 { color: var(--green); }
.feature { transition: color .15s; }

/* Contact: a mint panel with a rising plot line behind the copy */
.cta-box { border: 0; background: var(--mint); border-radius: var(--radius); padding: clamp(2rem,5vw,3.4rem); position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 360' preserveAspectRatio='none'%3E%3Cpath d='M0 330 C 200 310, 320 260, 480 250 S 760 200, 900 140 S 1100 60, 1200 30' fill='none' stroke='%2308482D' stroke-width='2' stroke-opacity='.35'/%3E%3Cpath d='M0 330 C 200 310, 320 260, 480 250 S 760 200, 900 140 S 1100 60, 1200 30 L1200 360 L0 360 Z' fill='%2308482D' fill-opacity='.05'/%3E%3C/svg%3E") center / cover no-repeat; }
.cta-box > * { position: relative; }
.cta-copy h2, .cta-copy p { color: var(--ink); }
.cta-copy p { color: var(--ink-soft); }
.cta-reassure { color: var(--green); }

/* Footer: the same tick under the brand, and the wordmark line */
.footer { border-top: 1px solid var(--line-2); }
.foot-brand { position: relative; padding-top: .2rem; }
.foot-brand::before { content: ""; position: absolute; left: 0; top: calc(-3rem - 2px); width: 56px; height: 3px; background: var(--green); }

@media (max-width: 900px) {
  .feature-grid::before { display: none; }
  .foot-brand::before { display: none; }
}

.sub-note { margin-top: .7rem; font-size: .82rem; color: var(--faint); max-width: 38rem; }
.sub-note a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------- Comparison, as a product panel ----------------------- */
.compare { overflow: visible; padding: .6rem 0 0; }
.compare-table { min-width: 0; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { vertical-align: middle; padding: 1.05rem 1.3rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.compare-table thead th { border-bottom: 0; padding-bottom: .6rem; }
.compare-table thead th:not(.is-plotline) { vertical-align: bottom; }
.compare-table tbody th { font-weight: 600; color: var(--ink); width: 22%; padding-left: 0; }
.compare-table .is-plotline { background: var(--green); color: #fff; width: 42%; box-shadow: none; }
.compare-table thead th.is-plotline { border-top: 0; border-radius: 16px 16px 0 0; padding: 1.3rem 1.3rem .9rem; }
.compare-table tbody td.is-plotline { color: #fff; font-weight: 500; border-bottom-color: rgba(255,255,255,.14); border-radius: 0; padding-left: 3.1rem; }
.compare-table tr:last-child td.is-plotline { border-bottom: 0; border-radius: 0 0 16px 16px; padding-bottom: 1.5rem; }
.compare-table tbody td.is-plotline::before { left: 1.3rem; top: 1.1rem; background: var(--mint); color: var(--green); }
.compare-table tbody td:not(.is-plotline) { color: var(--ink-soft); width: 36%; padding-left: 3.1rem; }
.compare-table tbody td:not(.is-plotline)::before { left: 1.3rem; top: 1.1rem; }
.compare-table tbody tr:hover th, .compare-table tbody tr:hover td:not(.is-plotline) { background: transparent; }
.compare-table tr:last-child th, .compare-table tr:last-child td:not(.is-plotline) { border-bottom: 1px solid var(--line); }
.cmp-brand { display: inline-flex; align-items: center; gap: .55rem; font: 700 1.15rem/1 var(--serif); letter-spacing: -0.02em; color: #fff; text-transform: none; }
.cmp-other { font: 600 .95rem/1.2 var(--sans); color: var(--ink-soft); text-transform: none; letter-spacing: 0; }

@media (max-width: 700px) {
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: auto; }
  .compare-table tbody th, .compare-table tbody td.is-plotline, .compare-table tbody td:not(.is-plotline), .compare-table .is-plotline { width: auto; }
  .compare-table thead { display: none; }
  .compare-table tbody tr { margin-bottom: .8rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
  .compare-table tbody th { padding: .9rem 1rem .5rem; border-bottom: 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
  .compare-table tbody td.is-plotline, .compare-table tr:last-child td.is-plotline { border-radius: 10px; margin: 0 .6rem; padding: .85rem 1rem .85rem 2.8rem; border-bottom: 0; }
  .compare-table tbody td.is-plotline::before { left: 1rem; top: .9rem; }
  .compare-table tbody td.is-plotline::after { content: "Plotline"; display: block; font-size: .7rem; font-weight: 600; color: var(--mint); margin-top: .25rem; text-transform: uppercase; letter-spacing: .05em; }
  .compare-table tbody td:not(.is-plotline), .compare-table tr:last-child td:not(.is-plotline) { border-bottom: 0; padding: .75rem 1rem .9rem 2.8rem; }
  .compare-table tbody td:not(.is-plotline)::before { left: 1rem; top: .8rem; }
  .compare-table tbody td:not(.is-plotline)::after { content: "A typical BI provider"; display: block; font-size: .7rem; font-weight: 600; color: var(--faint); margin-top: .25rem; text-transform: uppercase; letter-spacing: .05em; }
}

/* Clear product introduction with a direct route to the editable demo. */
.hero { --u: min(100vw / 1440, (100vh - var(--nav-h)) / 740); }
.hero-frame { height: calc(740 * var(--u)); }
.hero-title { top: calc(58 * var(--u)); }
.hero-sub {
  top: calc(164 * var(--u)); left: 50%; transform: translateX(-50%);
  width: min(90%, 38rem); text-align: center; color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6;
}
.hero-demo { top: calc(266 * var(--u)); left: 50%; transform: translateX(-50%); }
.reel { top: calc(330 * var(--u)); }
#demo, #compare, .section-anchor { scroll-margin-top: 6rem; }
.section-anchor { display: block; height: 0; }
@media (max-width: 820px) {
  .hero { --u: 1px; }
  .hero-frame { height: auto; }
  .hero-sub { transform: none; width: auto; max-width: 36rem; margin: 1.1rem var(--gutter) 0; font-size: 1rem; }
  .hero-demo { transform: none; margin-top: 1.3rem; }
  .reel { top: auto; height: 240px; margin-top: 1.2rem; }
}

/* About: keep the introduction, article and contact block on one reading axis. */
.about-page .page-hero,
.about-page .prose,
.about-page .page-cta {
  max-width: 54rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.about-page .page-hero { padding-bottom: 2.5rem; }
.about-page .page-hero h1 {
  max-width: none;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  margin-bottom: 1.5rem;
}
.about-page .page-hero h1 span { display: block; }
.about-page .page-hero .lede {
  max-width: none;
  font-size: 1.1rem;
  line-height: 1.75;
  padding-bottom: 2rem;
}
.about-page .prose { line-height: 1.8; }
.about-page .prose h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.25;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.about-page .prose h2:first-child { margin-top: 0; }
.about-page .prose p { margin-bottom: 1.2rem; }
.about-page .page-cta-inner { gap: 1.5rem; align-items: flex-start; }
.about-page .page-cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.2; }
.about-page .page-cta-inner p { max-width: 35rem; }
@media (max-width: 700px) {
  .about-page .page-cta-inner { flex-direction: column; }
}

/* Review round: a clear navigation item for each proposed direction. */
.nav-links { gap: clamp(.65rem, 1.6vw, 1.5rem); }
.nav-links a { font-size: .9rem; white-space: nowrap; }
.review-banner { padding: .55rem var(--gutter); background: var(--mint); color: var(--green); text-align: center; font-size: .8rem; font-weight: 600; }
.review-banner span { font-weight: 400; margin-left: .5rem; }
.review-page .page-hero, .review-content, .review-page .page-cta { max-width: 68rem; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.review-page .page-hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: 2.5rem; }
.review-page .page-hero h1 { max-width: 24ch; font-size: clamp(2.15rem, 4.8vw, 3.8rem); line-height: 1.08; text-wrap: balance; }
.review-page .page-hero .lede { max-width: 47rem; font-size: 1.12rem; line-height: 1.75; padding-bottom: 2rem; }
.review-content { padding-bottom: 3rem; }
.review-section { max-width: 47rem; margin-bottom: 2.8rem; }
.review-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; margin-bottom: 1rem; text-wrap: balance; }
.review-section p, .review-section li { font-size: 1.02rem; line-height: 1.8; color: var(--ink-soft); }
.review-section p + p { margin-top: 1rem; }
.review-section a, .review-card a, .review-note a, .prototype-label a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.review-section li { margin-bottom: .7rem; }
.review-section ul, .review-steps { padding-left: 1.3rem; }
.review-section strong { color: var(--ink); }
.review-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: .5rem 0 3rem; }
.review-grid-two { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: .9rem; }
.review-card { padding: 1.5rem; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,.65); min-width: 0; }
.review-number { display: block; font-size: .75rem; color: var(--green); margin-bottom: 1.25rem; }
.review-card h2 { font-size: 1.5rem; line-height: 1.2; margin-bottom: .8rem; }
.review-card p { color: var(--ink-soft); font-size: .94rem; line-height: 1.75; }
.review-card a { display: inline-block; font-size: .88rem; margin-top: 1.2rem; }
.review-note { max-width: 47rem; border-left: 3px solid var(--green); background: var(--paper-2); padding: 1.2rem 1.4rem; margin-bottom: 2.5rem; border-radius: 0 10px 10px 0; }
.review-note strong { display: block; color: var(--green); margin-bottom: .5rem; }
.review-note p { color: var(--ink-soft); line-height: 1.75; font-size: .94rem; }
.chart-example svg { display: block; width: 100%; margin-top: 1.5rem; font: 11px var(--sans); fill: var(--ink-soft); }
.chart-example-after { border-color: var(--green); background: var(--card); }
.review-caption { font-size: .8rem; color: var(--ink-soft); margin-bottom: 2.5rem; }
.review-code { font: .82rem/1.8 'JetBrains Mono', ui-monospace, monospace; padding: 1.5rem; border-radius: 14px; background: #0C1F16; color: #EAF0E0; overflow-x: auto; margin: -1rem 0 3rem; }
.technical-flow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; margin: 0 0 3rem; }
.technical-flow div { padding: 1.2rem; border-top: 3px solid var(--green); background: var(--paper-2); }
.technical-flow strong, .technical-flow span { display: block; }
.technical-flow span { font-size: .85rem; color: var(--ink-soft); line-height: 1.6; margin-top: .6rem; }
.review-page .page-cta-inner { gap: 1.5rem; }
.review-page .page-cta-inner > div { flex: 1 1 30rem; }
.review-page .page-cta-inner h2 { max-width: 25ch; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.18; text-wrap: balance; }
.review-page .page-cta-inner p { max-width: 40rem; }
.review-faq { padding: 0; max-width: 47rem; margin: 0; }
.prototype-label { color: var(--ink-soft); font-size: .85rem; line-height: 1.6; padding: .8rem 0; }
@media (min-width: 901px) and (max-width: 1120px) {
  .nav { flex-wrap: wrap; gap: .6rem 1rem; }
  .nav > .btn-primary { margin-left: auto; }
  .nav-links { order: 3; width: 100%; justify-content: center; margin: .2rem 0 0; padding-top: .6rem; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .nav.menu-open .nav-links { gap: 0; max-height: calc(100dvh - 80px); overflow-y: auto; }
  .nav-links a { padding: .65rem 0; font-size: .95rem; }
  .review-grid { grid-template-columns: 1fr; }
  .technical-flow { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .review-banner span { display: block; margin: .1rem 0 0; }
  .technical-flow { grid-template-columns: 1fr; }
  .review-page .page-hero .lede { font-size: 1rem; }
  .review-card { padding: 1.2rem; }
}

/* Review 2: restore with the complete backup recorded in BACKUP_PATH.txt. */
.brand-name { white-space: nowrap; }
.foot-tag { font-family: var(--sans); font-style: normal; font-weight: 400; font-size: .95rem; line-height: 1.5; }
.ask .ai-note { display: block; white-space: nowrap; max-width: none; font-size: clamp(.65rem, 2.6vw, .82rem); line-height: 1.5; }
.ask .ai-note a { display: inline; white-space: nowrap; }
.ask-chips button { background: transparent; border: 0; border-radius: 0; padding: .35rem .15rem; text-decoration: underline; text-underline-offset: 3px; }
.ask-chips button:hover { color: var(--ink); }
/* Comparison: a dark frame and continuous forest column, with room for the copy. */
.compare-spotlight { padding: clamp(1rem,3vw,2.2rem); border-radius: 24px; background: #10251C; box-shadow: 0 18px 45px rgba(8,72,45,.12); }
.compare-spotlight .compare-table { color: #fff; }
.compare-spotlight .compare-table thead th { padding-bottom: 1.2rem; }
.compare-spotlight .compare-table thead th.is-plotline { background: #DAE7C7; padding: 1.4rem; }
.compare-spotlight .cmp-brand { color: #08482D; font-size: 1.4rem; }
.compare-spotlight .cmp-other { color: #CAD4C9; }
.compare-spotlight .compare-table tbody th { color: #EDF4E9; font-size: .88rem; width: 18%; border-bottom-color: rgba(255,255,255,.13); }
.compare-spotlight .compare-table tbody td.is-plotline { background: #DAE7C7; color: #08482D; width: 44%; border-bottom-color: rgba(8,72,45,.15); padding-top: 1.3rem; padding-bottom: 1.3rem; }
.compare-spotlight .compare-table tbody td.is-plotline::before { background: #08482D; color: #DAE7C7; top: 1.35rem; }
.compare-spotlight .compare-table tbody td:not(.is-plotline) { color: #CAD4C9; border-bottom-color: rgba(255,255,255,.13); width: 38%; }
.compare-spotlight .compare-table tbody td:not(.is-plotline)::before { background: #244034; color: #CAD4C9; }
.compare-spotlight .compare-table tr:last-child th, .compare-spotlight .compare-table tr:last-child td:not(.is-plotline) { border-bottom: 0; }
.stack-ribbon, .migration-path { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 2rem; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; }
.stack-ribbon > div, .migration-path > div { padding: 1.5rem; border-right: 1px solid var(--line-2); background: var(--paper-2); }
.stack-ribbon > div:last-child, .migration-path > div:last-child { border: 0; background: var(--mint); }
.stack-ribbon span { font-size: .72rem; color: var(--green); }
.stack-ribbon strong { display: block; font-size: 1.5rem; margin: 1.6rem 0 .5rem; letter-spacing: -.03em; }
.stack-ribbon p, .migration-path p { font-size: .88rem; color: var(--ink-soft); line-height: 1.6; }
.technical-cards { margin-bottom: 1.5rem; }
.technical-cards .review-card { border: 0; background: transparent; padding: 1rem 0; }
.technical-footnote { padding: 1rem 1.3rem; border-radius: 10px; background: var(--paper-2); font-size: .9rem; color: var(--ink-soft); }
.technical-footnote strong { color: var(--green); }
.technical-details { margin-top: 1rem; font-size: .9rem; color: var(--ink-soft); }
.technical-details summary { cursor: pointer; padding: .8rem 0; color: var(--green); }
.technical-details li { margin-bottom: .5rem; }
.price-overview { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; margin-bottom: 1rem; }
.price-main, .price-scope { padding: clamp(1.5rem,4vw,3rem); }
.price-main { background: var(--green); color: #fff; }
.price-main .review-number { color: var(--mint); }
.price-main h2 { font-size: clamp(2rem,4vw,3rem); line-height: 1.15; margin-bottom: 1.2rem; }
.price-main p { color: #DAE7C7; margin-bottom: 1.8rem; }
.price-main .btn { background: var(--mint); color: var(--green); }
.price-scope { background: var(--card); }
.price-scope h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.price-scope ul { list-style: none; margin: 0; padding: 0; }
.price-scope li { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.price-scope li:last-child { border: 0; }
.price-scope strong, .price-scope span { display: block; }
.price-scope span { color: var(--ink-soft); font-size: .9rem; margin-top: .2rem; }
.quote-checklist h2 { font-size: 1.7rem; margin-bottom: .7rem; }
.quote-checklist p { color: var(--ink-soft); max-width: 40rem; }
.migration-path > div { background: transparent; }
.migration-path span { display: block; color: var(--green); font-size: 2.6rem; font-weight: 600; letter-spacing: -.06em; margin-bottom: .8rem; }
.migration-path h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.migration-workbench { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; align-items: start; }
.migration-workbench > section { min-width: 0; }
.migration-workbench h2 { font-size: 1.7rem; margin-bottom: .6rem; }
.migration-workbench p { color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }
.migration-query .review-code { margin: 1.2rem 0 0; font-size: .72rem; }
.migration-preview { padding: 1.5rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line-2); position: sticky; top: 7rem; }
.migration-preview svg { width: 100%; display: block; margin: 1.7rem 0 0; font: 12px var(--sans); fill: var(--ink-soft); }
.chart-legend { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .72rem; margin-bottom: 1.2rem; }
.chart-legend span:nth-child(1) { color: #08482D; }
.chart-legend span:nth-child(2) { color: #2348E0; }
.chart-legend span:nth-child(3) { color: #B5701A; }
.migration-preview .review-caption { margin: 0; font-size: .76rem; }
.migration-signoff { padding: 1.5rem 0 0; margin-top: 2rem; border-top: 1px solid var(--line-2); }
.migration-signoff h2 { font-size: 1.7rem; margin-bottom: .8rem; }
.migration-signoff p { color: var(--ink-soft); max-width: 46rem; margin-bottom: .7rem; }
@media (min-width: 901px) and (max-width: 1250px) {
  .nav { flex-wrap: wrap; gap: .6rem 1rem; }
  .nav > .btn-primary { margin-left: auto; }
  .nav-links { order: 3; width: 100%; justify-content: center; margin: .2rem 0 0; padding-top: .6rem; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .stack-ribbon, .migration-path { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stack-ribbon > div, .migration-path > div { border-bottom: 1px solid var(--line-2); }
  .migration-workbench { grid-template-columns: 1fr; }
  .migration-preview { position: static; }
}
@media (max-width: 700px) {
  .compare-spotlight { padding: .75rem; border-radius: 18px; }
  .compare-spotlight .compare-table tbody tr { background: transparent; border-color: #365044; }
  .compare-spotlight .compare-table tbody th { width: auto; border: 0; padding: 1rem; }
  .compare-spotlight .compare-table tbody td.is-plotline, .compare-spotlight .compare-table tbody td:not(.is-plotline) { width: auto; }
  .compare-spotlight .compare-table tbody td.is-plotline::after { content: "Plotline"; color: #08482D; }
  .compare-spotlight .compare-table tbody td:not(.is-plotline)::after { color: #A8C49A; }
  .price-overview { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .stack-ribbon > div, .migration-path > div { padding: 1rem; }
  .stack-ribbon strong { font-size: 1.25rem; }
}

/* Terms: aligned reading column, section navigation and clear breaks. */
.legal-page .page-hero { max-width: 72rem; padding-bottom: 2rem; }
.legal-page .page-hero h1 { font-size: clamp(2.3rem,5vw,3.8rem); max-width: none; }
.legal-page .page-hero .lede { max-width: none; font-size: 1.05rem; padding-bottom: 1.5rem; }
.legal-layout { display: grid; grid-template-columns: 13rem minmax(0,1fr); gap: clamp(2rem,5vw,4rem); max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter) 4rem; }
.legal-contents { position: sticky; top: 8rem; align-self: start; padding: 1.2rem; background: var(--paper-2); border-radius: 12px; display: grid; gap: .7rem; }
.legal-contents > span { font-size: .72rem; color: var(--green); font-weight: 600; margin-bottom: .4rem; }
.legal-contents a { font-size: .82rem; line-height: 1.5; color: var(--ink-soft); }
.legal-contents a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.legal-copy { min-width: 0; }
.legal-section { padding: 1.7rem 0; border-top: 1px solid var(--line-2); scroll-margin-top: 9rem; }
.legal-section:first-child { padding-top: 0; border-top: 0; }
.legal-section h2 { font-size: clamp(1.3rem,2.5vw,1.7rem); line-height: 1.25; margin-bottom: 1rem; }
.legal-section p, .legal-section li { color: var(--ink-soft); font-size: .97rem; line-height: 1.85; margin-bottom: 1rem; }
.legal-section strong { color: var(--ink); }
.legal-section ul { padding-left: 1.3rem; }
.legal-section a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.technical-footnote + .technical-footnote { margin-top: .7rem; }
.cost-note { margin-top: 2rem; }
@media (max-width: 800px) {
  .legal-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .legal-contents { position: static; grid-template-columns: 1fr 1fr; }
  .legal-contents > span { grid-column: 1 / -1; }
}

/* Public demo: code remains visible while changes come from the demo controls. */
.code-preview-label { color: #A8C49A; font-size: .64rem; margin-left: auto; white-space: nowrap; }
.code-head .code-reset { margin-left: .5rem; }
/* The bottom CTA follows a clear text/button layout on every screen size. */
.cta-box { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2rem; align-items: center; }
.cta-copy { min-width: 0; }
.cta-action { display: flex; align-items: center; justify-content: flex-end; }
.cta-action .btn { min-height: 3rem; padding: .9rem 1.4rem; border-radius: 10px; font-size: .95rem; }
@media (max-width: 800px) {
  .cta-box { grid-template-columns: 1fr; gap: 1.4rem; }
  .cta-action { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .code-preview-label { display: none; }
  .cta-action .btn { width: 100%; }
}

/* Migration: let the sample chart lead; keep implementation detail optional. */
.migration-workbench { display: block; }
.migration-preview.revenue-feature { position: static; background: radial-gradient(ellipse at 85% 0, #254936, transparent 60%), #102B20; color: #EDF6E8; padding: clamp(1.4rem,4vw,2.7rem); border: 1px solid #365245; border-radius: 24px; box-shadow: 0 20px 45px rgba(8,48,30,.12); }
.revenue-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.revenue-feature .review-number { color: #A6C6AF; margin-bottom: .8rem; }
.revenue-feature h2 { color: #EDF6E8; font-size: clamp(1.5rem,3vw,2.2rem); }
.revenue-feature p { color: #A6C6AF; font-size: .84rem; }
.revenue-unit { border: 1px solid #52715D; border-radius: 999px; padding: .4rem .7rem; font-size: .72rem; color: #DAE7C7; white-space: nowrap; }
.revenue-metrics { display: flex; gap: clamp(1.5rem,6vw,5rem); margin: 2rem 0 .5rem; }
.revenue-metrics > div > span { display: block; color: #A6C6AF; font-size: .75rem; margin-bottom: .5rem; }
.revenue-metrics strong { font: 600 clamp(1.8rem,4vw,3.1rem)/1 var(--sans); letter-spacing: -.05em; }
.revenue-metrics strong span { font-size: .55em; margin-left: .1rem; color: #A6C6AF; }
.revenue-feature svg.revenue-chart { width: 100%; margin: 1.5rem 0 0; font: 13px var(--sans); }
.revenue-chart .revenue-axis { fill: #9EB8A6; font-size: 13px; }
.revenue-chart .revenue-end { font-size: 16px; font-weight: 600; }
.revenue-bottom { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-top: 1px solid #365245; padding-top: 1rem; }
.revenue-bottom .chart-legend { margin: 0; font-size: .76rem; }
.revenue-bottom .chart-legend span:nth-child(1) { color: #BCE6A0; }
.revenue-bottom .chart-legend span:nth-child(2) { color: #8CAFFF; }
.revenue-bottom .chart-legend span:nth-child(3) { color: #EAC28A; }
.revenue-bottom > span { color: #9EB8A6; font-size: .7rem; white-space: nowrap; }
.migration-sample-note { margin: 1rem 0 2rem; max-width: 44rem; }
.migration-code-details { border-top: 1px solid var(--line-2); padding: 1.2rem 0 0; }
.migration-code-details summary { cursor: pointer; color: var(--green); font-weight: 500; font-size: .95rem; }
.migration-code-details > p { color: var(--ink-soft); font-size: .88rem; margin-top: 1rem; }
.migration-code-details .review-code { margin: 1rem 0 0; }
@media (max-width: 600px) {
  .revenue-unit { display: none; }
  .revenue-metrics { gap: 1.6rem; }
  .revenue-bottom { align-items: flex-start; flex-direction: column; }
  .revenue-feature svg.revenue-chart { width: calc(100% + 1.5rem); margin-left: -.75rem; }
}

/* Interactive migration dashboard: native controls and a restrained chart UI. */
.revenue-utilities, .revenue-view-controls { display: flex; align-items: center; gap: .65rem; }
.revenue-feature button { font-family: var(--sans); cursor: pointer; }
.revenue-icon-button { display: inline-flex; align-items: center; gap: .65rem; border: 1px solid #52715D; border-radius: 999px; color: #DDEBDD; background: transparent; padding: .45rem .75rem; font-size: .72rem; white-space: nowrap; }
.revenue-icon-button:hover { background: #365245; }
.revenue-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; padding-top: 1.3rem; border-top: 1px solid #365245; }
.revenue-segments { display: inline-flex; border: 1px solid #365245; padding: .22rem; border-radius: 10px; background: #0C2118; gap: .18rem; }
.revenue-segments button { font-size: .76rem; font-weight: 500; padding: .5rem .8rem; border: 0; background: transparent; color: #A6C6AF; border-radius: 7px; transition: background .15s, color .15s; }
.revenue-segments button[aria-pressed="true"] { background: #DAE7C7; color: #102B20; box-shadow: 0 2px 8px #0002; }
.revenue-segments button:hover:not([aria-pressed="true"]) { color: #fff; background: #244534; }
.revenue-reset { border: 0; background: transparent; color: #A6C6AF; font-size: .75rem; padding: .5rem .2rem; }
.revenue-reset:hover { color: #fff; }
.revenue-feature button:focus-visible, .revenue-chart:focus-visible, .revenue-table-details summary:focus-visible { outline: 2px solid #BCE6A0; outline-offset: 4px; }
.revenue-feature .revenue-metrics { gap: clamp(1.5rem,5vw,4.5rem); }
.revenue-metrics .revenue-growth strong { color: #BCE6A0; }
.revenue-plot { position: relative; margin-top: 1.5rem; }
.revenue-feature .revenue-plot svg.revenue-chart { width: 100%; margin: 0; touch-action: pan-y; cursor: crosshair; overflow: visible; }
.revenue-tooltip { position: absolute; z-index: 5; pointer-events: none; background: rgba(9,25,17,.97); border: 1px solid #52715D; border-radius: 12px; padding: 1rem; width: 215px; max-width: calc(100% - 16px); box-shadow: 0 12px 30px #0005; backdrop-filter: blur(12px); font: .76rem/1.6 var(--sans); color: #EDF6E8; }
.revenue-tooltip[hidden] { display: none; }
.revenue-tooltip > strong { display: block; margin-bottom: .7rem; color: #DAE7C7; font-size: .8rem; }
.revenue-tooltip-row, .revenue-tooltip-total { display: flex; justify-content: space-between; gap: 1rem; margin-top: .35rem; }
.revenue-tooltip-row span { display: inline-flex; align-items: center; color: #B7CDBD; }
.revenue-tooltip-row i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: .4rem; }
.revenue-tooltip-row b, .revenue-tooltip-total b { font-variant-numeric: tabular-nums; font-weight: 600; }
.revenue-tooltip-total { border-top: 1px solid #365245; padding-top: .6rem; margin-top: .65rem; }
.revenue-region-filters { display: flex; flex-wrap: wrap; gap: .6rem; }
.revenue-region-filters button { display: inline-flex; gap: .4rem; align-items: center; color: #A6C6AF; border: 1px solid transparent; background: transparent; font-size: .76rem; padding: .4rem .6rem; border-radius: 7px; }
.revenue-region-filters button[aria-pressed="true"] { color: var(--region-color); background: #ffffff07; border-color: #365245; }
.revenue-region-filters button[aria-pressed="false"] { opacity: .55; }
.revenue-region-filters i { width: 7px; height: 7px; background: var(--region-color); border-radius: 50%; }
.revenue-region-filters button:hover { border-color: #52715D; opacity: 1; }
.revenue-table-details { margin-top: 1rem; font-size: .76rem; color: #A6C6AF; }
.revenue-table-details summary { cursor: pointer; width: fit-content; padding: .5rem 0; }
.revenue-table-scroll { overflow-x: auto; margin-top: .8rem; }
#revenueData { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .76rem; }
#revenueData caption { text-align: left; padding-bottom: .8rem; }
#revenueData th, #revenueData td { padding: .7rem .6rem; text-align: right; border-bottom: 1px solid #365245; white-space: nowrap; }
#revenueData th:first-child { text-align: left; }
#revenueData thead th { color: #DAE7C7; }
#revenueData tbody th { font-weight: 400; }
@media (max-width: 600px) {
  .revenue-utilities { align-items: flex-end; }
  .revenue-icon-button { font-size: .65rem; padding: .4rem .6rem; }
  .revenue-feature .revenue-metrics { justify-content: space-between; gap: .6rem; }
  .revenue-feature .revenue-metrics strong { font-size: clamp(1.4rem,5.8vw,2rem); }
  .revenue-metrics > div > span { font-size: .65rem; }
  .revenue-tooltip { font-size: .69rem; width: 195px; padding: .8rem; }
  .revenue-bottom { gap: .5rem; }
  .revenue-region-filters { gap: .15rem; }
  .revenue-region-filters button { font-size: .68rem; padding: .4rem; }
}
@media (max-width: 400px) {
  .revenue-top { flex-wrap: wrap; }
  .revenue-utilities { width: 100%; justify-content: flex-end; }
  .revenue-segments button { padding: .45rem .6rem; }
}

#migrationRevenue { scroll-margin-top: 6rem; }
@media (max-width: 600px) {
  .revenue-chart .revenue-axis { font-size: 16px; }
  .revenue-chart .revenue-end { font-size: 18px; }
}

/* A studio sidebar: live appearance controls and a searchable Plotly capability guide. */
body:has(.migration-studio) .review-content { max-width: 88rem; }
.migration-studio { display: grid; grid-template-columns: 16rem minmax(0,1fr); gap: 1.5rem; align-items: start; }
.migration-studio .migration-workbench { min-width: 0; }
.customization-sidebar { position: sticky; top: 6rem; max-height: calc(100dvh - 7rem); overflow-y: auto; scrollbar-width: thin; padding-right: .3rem; }
.customization-panel, .customization-catalog { border: 1px solid var(--line-2); border-radius: 14px; background: #FFFFFF80; overflow: hidden; }
.customization-panel > summary, .customization-catalog > summary { cursor: pointer; padding: 1rem; font-size: .95rem; font-weight: 600; color: var(--green); }
.customization-panel > summary small, .customization-catalog > summary span { display: block; font-size: .7rem; font-weight: 400; color: var(--ink-soft); margin-top: .2rem; }
.customization-body, .catalog-body { padding: 0 1rem 1rem; }
.customization-body fieldset { border: 0; padding: .6rem 0 .9rem; margin: 0; min-width: 0; }
.customization-body legend { width: 100%; border-top: 1px solid var(--line); padding-top: 1rem; color: var(--green); font-size: .7rem; font-weight: 600; }
.custom-select { display: block; font-size: .75rem; color: var(--ink-soft); margin: .65rem 0 1rem; }
.custom-select select, .catalog-search input { display: block; width: 100%; margin-top: .4rem; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); padding: .55rem; border-radius: 7px; font: .76rem var(--sans); }
.custom-select input[type="range"] { display: block; width: 100%; margin-top: .7rem; accent-color: var(--green); }
.custom-toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .76rem; color: var(--ink-soft); }
.custom-toggle input { accent-color: var(--green); width: 15px; height: 15px; cursor: pointer; }
.custom-export { border: 1px solid var(--green); border-radius: 8px; padding: .65rem .6rem; width: 100%; background: var(--green); color: #fff; font: 500 .73rem var(--sans); cursor: pointer; }
.custom-note { font-size: .68rem; line-height: 1.6; color: var(--ink-soft); margin-top: .7rem; }
.customization-catalog { margin-top: 1rem; }
.catalog-search { font-size: .73rem; color: var(--ink-soft); }
.capability-group { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .65rem; }
.capability-group summary { cursor: pointer; font-size: .74rem; font-weight: 500; color: var(--green); }
.capability-group ul { padding-left: 1rem; margin: .7rem 0; }
.capability-group li { font-size: .7rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: .45rem; }
.capability-group a, .catalog-full-reference { display: inline-block; font-size: .68rem; color: var(--green); text-decoration: underline; text-underline-offset: 3px; margin-top: .5rem; }
.revenue-point-value { font: 12px var(--sans); }
.revenue-reference-label { font: 11px var(--sans); }
@media (max-width: 1100px) {
  .migration-studio { grid-template-columns: 13rem minmax(0,1fr); gap: 1rem; }
  .customization-body, .catalog-body { padding-left: .8rem; padding-right: .8rem; }
  .migration-studio .revenue-toolbar { align-items: flex-start; }
}
@media (max-width: 850px) {
  .migration-studio { display: flex; flex-direction: column-reverse; }
  .customization-sidebar { position: static; max-height: none; overflow: visible; width: 100%; }
  .migration-studio .migration-workbench { width: 100%; }
  .customization-body { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; }
  .customization-body > .custom-note, .customization-body > button { grid-column: 1/-1; }
}
@media (max-width: 450px) { .customization-body { grid-template-columns: 1fr; } }

/* A model-driven example alongside the historical chart. */
.scenario-control-panel { background: #102B20; color: #EDF6E8; border: 1px solid #365245; border-radius: 14px; padding: 1rem; margin-bottom: 1rem; }
.scenario-control-panel > summary { cursor: pointer; font-size: .9rem; font-weight: 600; }
.scenario-control-panel > summary > span { display: block; color: #A6C6AF; font-size: .7rem; font-weight: 400; margin-top: .4rem; }
.scenario-control-body { margin-top: 1rem; }
.scenario-presets { display: grid; grid-template-columns: 1fr; gap: .35rem; }
.scenario-presets button { border: 1px solid #365245; background: transparent; color: #A6C6AF; text-align: left; padding: .5rem .65rem; border-radius: 7px; font: .74rem var(--sans); cursor: pointer; }
.scenario-presets button[aria-pressed="true"] { background: #DAE7C7; color: #102B20; }
.scenario-control-kicker { color: #A6C6AF; font-size: .65rem; margin: 1.3rem 0 .5rem; }
.scenario-slider { display: block; margin: 1rem 0 1.3rem; }
.scenario-slider > span { display: flex; justify-content: space-between; gap: .5rem; font-size: .7rem; color: #B7CDBD; }
.scenario-slider output { color: #EDF6E8; font-weight: 600; font-variant-numeric: tabular-nums; }
.scenario-slider input { width: 100%; margin-top: .6rem; accent-color: #BCE6A0; cursor: pointer; }
.scenario-control-panel .custom-select, .scenario-control-panel .custom-note { color: #A6C6AF; }
.scenario-control-panel .custom-select select { color: #EDF6E8; background: #183B2B; border-color: #52715D; }
.scenario-lab { border-radius: 24px; border: 1px solid #365245; background: radial-gradient(ellipse at 100% 0,#254936,transparent 65%),#102B20; color: #EDF6E8; padding: clamp(1.4rem,3vw,2.7rem); box-shadow: 0 20px 45px #08301e18; }
.scenario-lab-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.2rem; }
.scenario-eyebrow { display: block; color: #A6C6AF; font-size: .72rem; margin-bottom: 1rem; }
.scenario-lab h2 { color: #EDF6E8; font-size: clamp(1.5rem,3vw,2.3rem); line-height: 1.18; max-width: 25ch; text-wrap: balance; margin-bottom: .9rem; }
.scenario-lab-top p { color: #A6C6AF; font-size: .85rem; line-height: 1.7; max-width: 38rem; }
.scenario-badge { border: 1px solid #52715D; border-radius: 999px; white-space: nowrap; padding: .4rem .65rem; color: #BCE6A0; font-size: .66rem; }
.scenario-kpis { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 1rem; padding-top: 1.5rem; margin: 1.5rem 0 1rem; border-top: 1px solid #365245; }
.scenario-kpis > div > span { display: block; color: #A6C6AF; font-size: .68rem; margin-bottom: .7rem; }
.scenario-kpis strong { font: 600 clamp(1.5rem,3.2vw,2.7rem)/1 var(--sans); letter-spacing: -.045em; color: #BCE6A0; }
.scenario-kpis #scenarioTotal { color: #EDF6E8; }
.scenario-kpis strong.is-shortfall { color: #F3A997; }
.scenario-lab .scenario-verdict { color: #DAE7C7; background: #FFFFFF06; border-left: 2px solid #BCE6A0; padding: .8rem 1rem; font-size: .8rem; line-height: 1.6; }
.scenario-plot { position: relative; margin-top: 1.3rem; }
#scenarioSvg { width: 100%; display: block; touch-action: pan-y; cursor: crosshair; }
#scenarioSvg:focus-visible { outline: 2px solid #BCE6A0; outline-offset: 4px; }
.scenario-axis { font: 12px var(--sans); fill: #A6C6AF; }
.scenario-target-label { font: 10px var(--sans); }
.scenario-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .68rem; margin: .3rem 0 1rem; }
.scenario-legend span:nth-child(1) { color: #8CAFFF; }
.scenario-legend span:nth-child(2), .scenario-legend span:nth-child(3) { color: #BCE6A0; }
.scenario-legend span:last-child { margin-left: auto; color: #A6C6AF; }
.scenario-lab .scenario-range-note { color: #A6C6AF; font-size: .67rem; line-height: 1.65; max-width: 45rem; }
.scenario-bottom { border-top: 1px solid #365245; padding-top: 1.5rem; margin-top: 1.3rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
.scenario-bottom h3 { font-size: .85rem; }
.scenario-bottom p { font-size: .7rem; color: #A6C6AF; line-height: 1.7; margin: .4rem 0 1rem; }
.scenario-contribution { display: grid; grid-template-columns: 6.4rem minmax(0,1fr) 4.5rem; align-items: center; gap: .6rem; font-size: .7rem; margin-top: .85rem; }
.scenario-contribution > span { color: #A6C6AF; }
.scenario-contribution > div { height: 5px; background: #365245; border-radius: 5px; }
.scenario-contribution i { display: block; height: 5px; border-radius: 5px; }
.scenario-contribution strong { text-align: right; font-weight: 500; }
.scenario-method summary { cursor: pointer; color: #DAE7C7; font-size: .78rem; }
.scenario-method pre { overflow-x: auto; font: .62rem/1.7 ui-monospace,monospace; background: #0C2118; padding: .8rem; border-radius: 8px; }
.scenario-section-break { margin: 2.5rem 0 1.2rem; }
.scenario-section-break span { font-size: .75rem; color: var(--green); }
.scenario-section-break p { font-size: .85rem; margin-top: .4rem; color: var(--ink-soft); }
@media (max-width: 850px) {
  .migration-studio { flex-direction: column; }
  .customization-sidebar { max-height: none; }
  .scenario-control-body { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.5rem; }
  .scenario-presets { grid-template-columns: repeat(3,1fr); grid-column: 1/-1; }
  .scenario-control-kicker, .scenario-control-body > .custom-note { grid-column: 1/-1; }
  .scenario-slider { margin: .6rem 0; }
  .customization-sidebar { display: contents; }
  .scenario-control-panel { order: 0; width: 100%; }
  .migration-studio .migration-workbench { order: 1; }
  .customization-sidebar > .customization-panel { order: 2; width: 100%; }
  .customization-sidebar > .customization-catalog { order: 3; width: 100%; }
  .scenario-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .scenario-badge { display: none; }
  .scenario-kpis { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .scenario-kpis > div:last-child { grid-column: 1/-1; }
  .scenario-kpis > div:last-child > span { display: inline-block; margin-right: 1rem; }
  .scenario-kpis strong { font-size: 1.8rem; }
  .scenario-axis { font-size: 15px; }
  .scenario-legend span:last-child { margin-left: 0; }
}

.scenario-lab { scroll-margin-top: 6rem; }

/* One focused interactive example; migration remains a separate service page. */
.explore-page .review-content { max-width: 88rem; }
.explore-page .page-hero { max-width: 88rem; padding-bottom: 2rem; }
.explore-page .page-hero h1 { max-width: 24ch; }
.explore-layout { display: grid; grid-template-columns: 15rem minmax(0,1fr); align-items: start; gap: 1.5rem; }
.explore-controls { position: sticky; top: 6rem; max-height: calc(100dvh - 7rem); overflow-y: auto; scrollbar-width: thin; }
.explore-controls .scenario-control-panel { margin: 0; }
.explore-layout .scenario-lab { min-width: 0; }
.explore-disclaimer { font-size: .78rem; color: var(--ink-soft); line-height: 1.7; margin-top: 1.2rem; max-width: 55rem; }
.migration-service .review-section { max-width: 47rem; }
.migration-practical { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 1.5rem; background: var(--paper-2); border-radius: 14px; margin-bottom: 2rem; }
.migration-practical h2 { font-size: 1.3rem; line-height: 1.3; margin-bottom: .7rem; }
.migration-practical p { font-size: .9rem; line-height: 1.75; color: var(--ink-soft); }
.migration-next { display: flex; flex-wrap: wrap; gap: 1rem 2rem; border-top: 1px solid var(--line-2); padding-top: 1.3rem; }
.migration-next a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }
@media (max-width: 900px) {
  .explore-layout { grid-template-columns: 1fr; }
  .explore-controls { position: static; max-height: none; overflow: visible; }
  .explore-controls .scenario-control-body { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.5rem; }
  .explore-controls .scenario-presets { grid-template-columns: repeat(3,1fr); grid-column: 1/-1; }
  .explore-controls .scenario-control-kicker, .explore-controls .custom-note { grid-column: 1/-1; }
}
@media (max-width: 600px) {
  .migration-practical { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Migration process imagery: editorial scenes paired with the relevant service copy. */
.migration-story-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.5rem,4vw,3rem); align-items: center; margin: 3.5rem 0; }
.migration-story-image { min-width: 0; margin: 0; }
.migration-story-image img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: 16px; background: var(--paper-2); }
.migration-story-image figcaption { color: var(--ink-soft); font-size: .73rem; line-height: 1.6; margin-top: .7rem; }
.migration-service .migration-story-copy { margin: 0; max-width: none; }
.migration-story-copy h2 { font-size: clamp(1.5rem,2.8vw,2rem); line-height: 1.2; }
.migration-story-copy p { font-size: .95rem; line-height: 1.8; }
.migration-story-reverse .migration-story-image { order: 2; }
.migration-story-reverse .migration-story-copy { order: 1; }
.migration-image-credit { font-size: .7rem; color: var(--ink-soft); margin: .5rem 0 1rem; }
@media (max-width: 760px) {
  .migration-story-row { grid-template-columns: 1fr; gap: 1.3rem; margin: 2.5rem 0; }
  .migration-story-reverse .migration-story-image, .migration-story-reverse .migration-story-copy { order: initial; }
}

/* Hero: category label above the headline */
.hero-badge { top: calc(26 * var(--u)); }
.hero-title { top: calc(78 * var(--u)); }
.hero-sub { top: calc(178 * var(--u)); }
.hero-demo { top: calc(276 * var(--u)); }

/* Hero polish: highlighter mark, two buttons, a soft glow behind the cards, faded edges */
.hl-mark { background: linear-gradient(transparent 60%, var(--mint) 60% 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; }
.hero-demo { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.hero-demo .btn { padding: .9rem 1.6rem; }
.hero-frame::before { content: ""; position: absolute; left: 50%; top: calc(300 * var(--u)); width: calc(1100 * var(--u)); height: calc(420 * var(--u));
  transform: translateX(-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(168,196,154,.55) 0%, rgba(218,231,199,.35) 40%, rgba(245,248,239,0) 72%); }
.reel { position: absolute; z-index: 1; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
@media (max-width: 820px) {
  .hero-frame::before { display: none; }
  .reel { position: relative; }
  .hero-demo { margin-top: 1.3rem; width: auto; }
}

/* Migration rebuild: a visual introduction and a clear move-then-build story. */
.migration-new main { max-width: 88rem; margin: 0 auto; padding: 0 var(--gutter); }
.move-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; padding: clamp(3rem,6vw,5.5rem) 0 clamp(3rem,5vw,4.5rem); }
.move-hero h1 { font: 700 clamp(2.6rem,4.7vw,4.5rem)/1.02 var(--serif); letter-spacing: -.045em; }
.move-hero h1 span { display: block; color: var(--green); margin-top: .22em; }
.move-hero-copy > p { font-size: clamp(1rem,1.4vw,1.15rem); line-height: 1.75; color: var(--ink-soft); max-width: 31rem; margin: 1.8rem 0; }
.move-hero-image { margin: 0; min-width: 0; }
.move-hero-image img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 22px 50px #08482d20; }
.move-hero-image figcaption { margin-top: .8rem; color: var(--green); font-size: .78rem; }
.move-possibilities { display: grid; grid-template-columns: 1fr 1fr; margin: 1rem 0 clamp(3rem,6vw,5rem); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; }
.move-possibilities > div { padding: clamp(1.8rem,4vw,3.5rem); }
.move-existing { background: #FFFFFF85; }
.move-new-builds { background: var(--green); color: #fff; }
.move-possibilities h2 { font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 600; line-height: 1.1; margin-bottom: 1.2rem; }
.move-possibilities p { font-size: .98rem; color: var(--ink-soft); line-height: 1.8; max-width: 32rem; }
.move-new-builds p { color: #D7E5D3; }
.move-possibilities ul { margin: 1.6rem 0 0; padding: 0; list-style: none; }
.move-possibilities li { font-size: .9rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.move-new-builds li { border-top-color: #FFFFFF2A; color: #EDF6E8; }
.move-new-builds a { display: inline-flex; gap: .8rem; align-items: center; margin-top: 1.5rem; color: #DAE7C7; text-decoration: underline; text-underline-offset: 5px; font-size: .9rem; }
.move-delivery { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem,6vw,5rem); padding: 0 0 clamp(3rem,6vw,5rem); }
.move-delivery h2 { font-size: clamp(1.8rem,3.1vw,2.8rem); line-height: 1.15; font-weight: 600; text-wrap: balance; }
.move-delivery-copy > p { color: var(--ink-soft); font-size: .97rem; line-height: 1.85; margin-bottom: 1rem; }
.move-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.7rem; border-top: 1px solid var(--line-2); padding-top: 1.4rem; }
.move-facts strong { display: block; color: var(--green); font-size: .9rem; margin-bottom: .5rem; }
.move-facts span { display: block; color: var(--ink-soft); font-size: .78rem; line-height: 1.7; }
.move-finale { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.8rem,5vw,4rem); padding: clamp(1.3rem,3vw,2.5rem); background: var(--mint); border-radius: 22px; }
.move-finale figure { margin: 0; min-width: 0; }
.move-finale img { display: block; width: 100%; height: auto; border-radius: 12px; }
.move-finale h2 { font-size: clamp(1.7rem,2.8vw,2.6rem); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
.move-finale p { color: var(--ink-soft); font-size: .93rem; line-height: 1.7; margin: 1.1rem 0 1.4rem; max-width: 28rem; }
.move-image-note { font-size: .68rem; color: var(--ink-soft); margin: .9rem 0 3rem; }
@media (max-width: 900px) {
  .move-hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .move-hero h1 { max-width: 17ch; font-size: clamp(2.6rem,7vw,4.2rem); }
  .move-hero-image { transform: none; max-width: 42rem; }
  .move-possibilities, .move-delivery { grid-template-columns: 1fr; }
  .move-delivery { gap: 1.5rem; }
  .move-finale { grid-template-columns: 1fr; gap: 1.5rem; }
  .move-finale h2 { max-width: 25ch; }
}
@media (max-width: 450px) {
  .move-hero h1 { font-size: 2.7rem; }
  .move-hero { padding-top: 2.5rem; }
  .move-facts { grid-template-columns: 1fr; }
}

/* Migration imagery: straight, consistent frames without captions or decorative effects. */
.migration-new .move-hero-image { transform: none; max-width: none; overflow: hidden; border: 1px solid var(--line-2); border-radius: 8px; background: #101B17; }
.migration-new .move-hero-image img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: 0; box-shadow: none; }
.migration-new .move-finale { padding: 0; gap: 0; border-radius: 8px; border: 1px solid var(--line-2); overflow: hidden; background: var(--paper-2); margin-bottom: 4rem; }
.migration-new .move-finale figure { height: 100%; background: #101B17; }
.migration-new .move-finale img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; border-radius: 0; }
.migration-new .move-finale > div { padding: clamp(1.5rem,4vw,3rem); }
@media (max-width: 900px) {
  .migration-new .move-finale img { height: auto; min-height: 0; aspect-ratio: 3/2; }
}

/* Hero label: a code comment, not a pill */
.hero-badge { background: none; border-radius: 0; height: auto; padding: 0; color: var(--green);
  font: 500 calc(17 * var(--u)) / 1 'JetBrains Mono', ui-monospace, Menlo, monospace; letter-spacing: 0; }
@media (max-width: 820px) { .hero-badge { margin: 0 var(--gutter) 1rem; font-size: 14px; } }

/* Standalone Sankey artwork sits directly on the page, preserving PNG transparency. */
.migration-new .move-hero-image { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.migration-new .move-hero-image img { object-fit: contain; box-shadow: none; border: 0; background: transparent; }

/* Use the site's own dashboard artwork at its native proportions. */
.migration-new .move-hero-image img { aspect-ratio: 8/5; border-radius: 8px; }
.migration-new .move-finale figure { display: flex; align-items: center; background: #F6F9F1; }
.migration-new .move-finale img { aspect-ratio: 8/5; height: auto; min-height: 0; object-fit: contain; }

/* Footer slogan: same mono label style as the hero */
.foot-tag { font: 500 .95rem/1.3 'JetBrains Mono', ui-monospace, Menlo, monospace; letter-spacing: 0; color: var(--green); }

/* Hero without buttons: dashboards sit directly under the subline */
.hero { --u: min(100vw / 1440, (100vh - var(--nav-h)) / 690); }
.hero-frame { height: calc(690 * var(--u)); }
.hero-frame::before { top: calc(250 * var(--u)); }
.reel { top: calc(280 * var(--u)); }
@media (max-width: 820px) { .hero { --u: 1px; } .hero-frame { height: auto; } .reel { top: auto; margin-top: 1.6rem; } }

/* Nav lockup: slogan beside the logo (wide screens only) */
.brand-tag { display: none; }
@media (min-width: 1251px) {   /* the nav goes to two rows at 1250px and below */
  .brand-tag { display: inline-block; margin-left: .95rem; padding-left: .95rem; border-left: 1px solid var(--line-2);
    font: 500 .8rem/1.2 'JetBrains Mono', ui-monospace, Menlo, monospace; color: var(--green); white-space: nowrap; }
}

/* Hero without the label: headline moves up, dashboards follow */
.hero { --u: min(100vw / 1440, (100vh - var(--nav-h)) / 660); }
.hero-frame { height: calc(660 * var(--u)); }
.hero-title { top: calc(64 * var(--u)); }
.hero-sub { top: calc(166 * var(--u)); }
.hero-frame::before { top: calc(226 * var(--u)); }
.reel { top: calc(258 * var(--u)); }
@media (max-width: 820px) { .hero { --u: 1px; } .hero-frame { height: auto; } .reel { top: auto; } }

/* Dashboards keep a readable size on narrower screens: the strip is tall enough for the biggest card */
@media (min-width: 821px) {
  .hero-frame { height: max(calc(660 * var(--u)), calc(258 * var(--u) + 300px)); }
  .reel { height: max(calc(420 * var(--u)), 300px); }
}
@media (max-width: 820px) { .reel { height: 300px; } }

/* Top bar: logo on the left, links and the button grouped on the right */
@media (min-width: 1251px) {
  .nav-links { margin-left: auto; margin-right: 0; }
}

/* ----------------------- Migration page: steps and the two boxes ----------------------- */
.mg-delivery, .mg-boxes { margin: clamp(3rem, 6vw, 5rem) 0; }
.mg-head { max-width: 44rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.mg-head h1, .mg-head h2 { font-size: clamp(2.1rem, 4vw, 3.6rem); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; }

.mg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; position: relative; }
.mg-steps::before { content: ""; position: absolute; left: 18px; right: 18px; top: 18px; height: 2px; background: linear-gradient(90deg, var(--green), var(--sage)); }
.mg-steps li { position: relative; }
.mg-n { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font: 700 .95rem/1 var(--serif); box-shadow: 0 0 0 6px var(--paper); margin-bottom: 1rem; }
.mg-steps h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .4rem; }
.mg-steps p { color: var(--ink-soft); font-size: .93rem; line-height: 1.6; max-width: 17rem; }
.mg-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line-2); }
.mg-facts strong { display: block; color: var(--green); font-size: .95rem; margin-bottom: .25rem; }
.mg-facts span { color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }

.mg-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mg-box { border-radius: 22px; padding: clamp(1.8rem, 3.5vw, 3rem); display: flex; flex-direction: column; min-height: 25rem; }
.mg-box-a { background: var(--card); border: 1px solid var(--line-2); }
.mg-box-b { background: var(--green); color: #fff; }
.mg-box h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 1.6rem; }
.mg-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.mg-box li { position: relative; padding: .85rem 0 .85rem 2.3rem; border-top: 1px solid var(--line); font-size: 1.02rem; line-height: 1.45; }
.mg-box li::before { content: "\2713"; position: absolute; left: 0; top: .8rem; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.mg-box-b li { border-top-color: rgba(255,255,255,.18); color: #EDF6E8; }
.mg-box-b li::before { background: var(--mint); color: var(--green); }
.mg-box-a li strong { color: var(--ink); }


.mg-move { margin-top: auto; padding-top: 1.8rem; display: flex; align-items: center; justify-content: center; gap: .6rem; }
.mg-move figure { margin: 0; flex: 1 1 0; min-width: 0; text-align: center; }
.mg-move figure svg { display: block; width: 100%; height: auto; max-width: 190px; margin: 0 auto; }
.mg-move figcaption { margin-top: .5rem; font-size: .8rem; color: var(--ink-soft); }
.mg-arrow { flex: 0 0 22%; width: 22%; height: auto; }
.mg-flow-line { stroke: var(--green); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 8 8; }

.mg-thumbs { margin-top: auto; padding-top: 1.8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mg-thumbs svg { display: block; width: 100%; height: auto; background: var(--mint); border-radius: 10px; padding: .55rem; }
.mg-demo { align-self: flex-start; margin-top: 1.4rem; display: inline-flex; align-items: center; gap: .6rem; background: var(--mint); color: var(--green); font-weight: 600; padding: .8rem 1.4rem; border-radius: 999px; transition: background .15s, gap .15s; }
.mg-demo:hover { background: #fff; gap: .9rem; }

@media (max-width: 900px) {
  .mg-boxes { grid-template-columns: 1fr; }
  .mg-box { min-height: 0; }
  .mg-steps { grid-template-columns: 1fr 1fr; row-gap: 1.8rem; }
  .mg-steps::before { display: none; }
  .mg-facts { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .mg-steps { grid-template-columns: 1fr; } }

/* Homepage closing panel, moved from Migration. */
.home-finale { display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper-2); }
.home-finale figure { margin: 0; min-width: 0; background: #F6F9F1; }
.home-finale img { display: block; width: 100%; height: auto; aspect-ratio: 8/5; object-fit: contain; }
.home-finale > div { padding: clamp(1.5rem,4vw,3rem); }
.home-finale h2 { font-size: clamp(1.8rem,3vw,2.7rem); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
.home-finale p { color: var(--ink-soft); font-size: .96rem; line-height: 1.75; margin: 1rem 0 1.5rem; }
.migration-close { padding: 2.5rem 0 3.5rem; border-top: 1px solid var(--line-2); }
.migration-close h2 { font-size: clamp(1.8rem,3vw,2.5rem); line-height: 1.2; font-weight: 600; }
.migration-close p { color: var(--ink-soft); max-width: 40rem; line-height: 1.75; margin: 1rem 0 1.5rem; }
@media (max-width: 800px) { .home-finale { grid-template-columns: 1fr; } }

/* Dashboards sit closer to the subline */
.hero { --u: min(100vw / 1440, (100vh - var(--nav-h)) / 600); }
.hero-frame { height: calc(600 * var(--u)); }
.hero-frame::before { top: calc(166 * var(--u)); }
.reel { top: calc(198 * var(--u)); }
@media (min-width: 821px) { .hero-frame { height: max(calc(600 * var(--u)), calc(198 * var(--u) + 300px)); } }
@media (max-width: 820px) { .hero { --u: 1px; } .hero-frame { height: auto; } .reel { top: auto; margin-top: .4rem; } }

/* Pricing: one quote action, a readable scope and explicit external costs. */
.pricing-page .page-hero { padding-bottom: 2rem; }
.pricing-page .page-hero h1 { max-width: none; }
.pricing-page .page-hero .lede { max-width: 43rem; }
.pricing-content { max-width: 68rem; margin: 0 auto; padding: 0 var(--gutter) 4rem; }
.pricing-sheet { display: grid; grid-template-columns: .85fr 1.3fr; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.pricing-summary { padding: clamp(1.5rem,3.5vw,2.8rem); background: var(--green); color: #fff; display: flex; flex-direction: column; align-items: flex-start; }
.pricing-summary h2 { font-size: clamp(1.8rem,3vw,2.7rem); line-height: 1.12; font-weight: 600; letter-spacing: -.03em; }
.pricing-summary p { color: #DAE7C7; font-size: .94rem; line-height: 1.75; margin: 1.2rem 0 1.8rem; }
.pricing-summary .btn { margin-top: auto; background: #DAE7C7; color: var(--green); border-radius: 8px; }
.pricing-summary .btn:hover { background: #fff; }
.pricing-details { padding: clamp(1.5rem,3.5vw,2.8rem); background: #FFFFFF9C; }
.pricing-details > h2 { font-size: 1.35rem; line-height: 1.3; font-weight: 600; margin-bottom: 1.3rem; }
.pricing-details dl { margin: 0; }
.pricing-details dl > div { padding: 1rem 0; border-top: 1px solid var(--line); }
.pricing-details dt { font-size: .92rem; font-weight: 600; margin-bottom: .45rem; }
.pricing-details dd { margin: 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.8; }
.pricing-separate { padding: 2rem 0 1.5rem; }
.pricing-separate > h2 { font-size: 1.4rem; line-height: 1.3; font-weight: 600; margin-bottom: 1.4rem; }
.pricing-exclusions { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.pricing-exclusions h3 { font-size: .92rem; margin-bottom: .5rem; }
.pricing-exclusions p { font-size: .88rem; color: var(--ink-soft); line-height: 1.8; max-width: 28rem; }
.pricing-brief { color: var(--ink-soft); font-size: .86rem; line-height: 1.8; padding-top: 1.3rem; border-top: 1px solid var(--line-2); }
@media (max-width: 700px) {
  .pricing-sheet, .pricing-exclusions { grid-template-columns: 1fr; }
  .pricing-summary .btn { margin-top: .3rem; }
  .pricing-exclusions { gap: 1.2rem; }
}

/* Ownership up front; quick edits first, optional AI tucked behind a disclosure. */
.ownership-strip { max-width: calc(var(--maxw) + 4.8rem); margin: 0 auto; padding: .7rem var(--gutter) 1rem; }
.ownership-strip p { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font-size: .93rem; }
.ownership-strip strong { color: var(--green); font-weight: 600; }
.ownership-strip span { color: var(--ink-soft); }
.demo-instruction { margin: 0; padding: 1rem 1.2rem; font-size: .85rem; color: var(--ink-soft); background: var(--card); border-bottom: 1px solid var(--line-2); }
.optional-ai-demo { background: var(--card); border-top: 1px solid var(--line-2); }
.optional-ai-demo > summary { padding: 1rem 1.2rem; color: var(--green); font-size: .86rem; font-weight: 500; cursor: pointer; }
.optional-ai-intro { color: var(--ink-soft); font-size: .8rem; padding: 0 1.2rem .8rem; max-width: 48rem; line-height: 1.7; }
.optional-ai-demo .ask { border-bottom: 0; }
.optional-ai-demo summary:focus-visible { outline: 2px solid var(--green); outline-offset: -4px; }
.comparison-note { color: var(--ink-soft); font-size: .75rem; line-height: 1.6; margin-top: 1rem; }
@media (max-width: 600px) { .ownership-strip p { flex-direction: column; gap: .4rem; } }
.mg-delivery .mg-head { max-width: 62rem; }

/* Let the ownership message and homepage demo breathe without stacked rules. */
.ownership-strip p { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
#demo > .section-head { border-top: 0; }
#demo > .section-head::before { display: none; }

/* Remove the decorative stripe above the active homepage demo tab. */
#demo .demo-tabs .seg-btn.is-active::before { display: none; }

/* Migration options: open editorial columns, keeping the existing copy and artwork. */
.mg-boxes { gap: 0; padding: 2.5rem 0 3rem; border-top: 1px solid var(--line-2); }
.mg-box { border: 0; border-radius: 0; background: transparent; color: var(--ink); min-height: 0; padding: 0 3rem 0 0; }
.mg-box + .mg-box { border-left: 1px solid var(--line-2); padding: 0 0 0 3rem; }
.mg-box h2 { font-family: var(--sans); font-size: clamp(1.6rem,2.5vw,2.1rem); font-weight: 500; line-height: 1.25; letter-spacing: -.025em; margin-bottom: 1.3rem; }
.mg-box ul { display: block; list-style: disc; padding-left: 1.05rem; min-height: 9rem; }
.mg-box li, .mg-box-b li { padding: .4rem 0 .4rem .2rem; border: 0; font-size: .98rem; line-height: 1.7; color: var(--ink-soft); }
.mg-box li::before { display: none; }
.mg-box li::marker { color: var(--green); font-size: .75em; }
.mg-box-a li strong { font-weight: 500; }
.mg-move, .mg-thumbs { margin-top: 1.5rem; padding-top: 0; min-height: 10rem; align-items: center; }
.mg-thumbs svg { background: transparent; border-radius: 0; padding: .2rem; }
.mg-demo { margin-top: 1.2rem; padding: .3rem 0; border-radius: 0; background: transparent; color: var(--green); border-bottom: 1px solid var(--green); font-weight: 500; font-size: .9rem; }
.mg-demo:hover { background: transparent; gap: .6rem; }
@media (max-width: 900px) {
  .mg-boxes { gap: 2.5rem; padding-top: 2rem; }
  .mg-box { padding: 0; }
  .mg-box + .mg-box { border-left: 0; border-top: 1px solid var(--line-2); padding: 2.5rem 0 0; }
  .mg-box ul { min-height: 0; }
  .mg-move, .mg-thumbs { min-height: 0; margin-top: 1.5rem; }
}

/* Pricing follows the open editorial layout used on Migration. */
.pricing-sheet { border: 0; border-radius: 0; overflow: visible; grid-template-columns: .85fr 1.3fr; gap: 3rem; }
.pricing-summary { background: transparent; color: var(--ink); padding: 0; }
.pricing-summary h2 { font-family: var(--sans); font-size: clamp(1.7rem,2.7vw,2.2rem); font-weight: 500; line-height: 1.25; letter-spacing: -.025em; }
.pricing-summary p { color: var(--ink-soft); font-size: .95rem; margin: 1rem 0 1.5rem; }
.pricing-summary .btn { margin-top: 0; color: #fff; background: var(--green); }
.pricing-summary .btn:hover { background: var(--green-deep); }
.pricing-details { background: transparent; padding: 0 0 0 3rem; border-left: 1px solid var(--line-2); }
.pricing-details > h2 { font-family: var(--sans); font-size: 1.3rem; font-weight: 500; }
.pricing-details dt { font-weight: 500; }
.pricing-details dd { font-size: .92rem; }
.pricing-separate { margin-top: 2.5rem; padding: 1.8rem 0 1.5rem; border-top: 1px solid var(--line-2); }
.pricing-separate > h2 { font-family: var(--sans); font-size: 1.3rem; font-weight: 500; }
.pricing-exclusions h3 { font-weight: 500; }
@media (max-width: 700px) {
  .pricing-sheet { grid-template-columns: 1fr; gap: 2rem; }
  .pricing-details { border-left: 0; border-top: 1px solid var(--line-2); padding: 1.5rem 0 0; }
}

/* Migration boxes: identical green dot bullets on both sides (drawn, not the browser's native marker) */
.mg-boxes .mg-box ul { list-style: none; padding-left: 0; }
.mg-boxes .mg-box li { position: relative; padding-left: 1.3rem; }
.mg-boxes .mg-box li::before { content: ""; display: block; position: absolute; left: .15rem; top: 1.22rem; width: 6px; height: 6px; border-radius: 50%; background: var(--green); color: transparent; font-size: 0; }
.mg-boxes .mg-box li::marker { content: none; }

/* Concise paired comparison, with the same row alignment on phones. */
.compare-paired { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.paired-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.paired-table th { text-align: left; padding: 1.3rem 1.5rem; font: 600 1.05rem/1.3 var(--sans); }
.paired-table th:first-child { background: var(--green); color: #fff; }
.paired-table th:last-child { background: var(--paper-2); color: var(--ink-soft); }
.paired-table td { width: 50%; padding: 1.15rem 1.5rem; vertical-align: top; border-top: 1px solid var(--line); font-size: .96rem; line-height: 1.5; }
.paired-table td:first-child { background: rgba(218,231,199,.35); color: var(--green); font-weight: 500; }
.paired-table td:last-child { background: var(--card); color: var(--ink-soft); }
.paired-table td > span:last-child { display: block; margin-left: 1.55rem; }
.paired-mark { float: left; font-weight: 700; }
@media (max-width: 640px) {
  .compare-paired { border-radius: 10px; }
  .paired-table th { padding: 1rem .8rem; font-size: .9rem; }
  .paired-table td { padding: .9rem .8rem; font-size: .84rem; line-height: 1.5; }
  .paired-table td > span:last-child { margin-left: 1.1rem; }
}

/* ----------------------- Phones: demo order, folded code, comfortable taps ----------------------- */
.code-toggle { display: none; }
@media (max-width: 820px) {
  /* code first, then the dashboard it draws; the code can be hidden with the button */
  .code-toggle { display: inline-flex; align-items: center; margin-left: auto; font: 600 .78rem/1 var(--sans); color: var(--green); background: var(--mint);
    border: 0; border-radius: 999px; padding: .55rem .95rem; min-height: 40px; cursor: pointer; }
  .code-toggle + .code-reset { margin-left: .5rem; }
  .code-head { flex-wrap: wrap; row-gap: .6rem; }
  .kpi-code:not(.is-code-open) .code-editor,
  .kpi-code:not(.is-code-open) .code-status { display: none; }

  /* touch targets: about 44px */
  .seg-btn, .demo-tabs .seg-btn { min-height: 44px; }
  .code-quick button, .ask-chips button, .code-reset { min-height: 40px; }
  .code-quick { gap: .5rem; }
  .foot-col a { display: inline-block; padding: .65rem 0; }
  .btn-sm { min-height: 44px; }
  .menu-toggle { width: 44px; height: 44px; }
  .brand { min-height: 44px; }

  /* footer: two columns instead of three squeezed ones */
  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
  .foot-col:nth-child(3) { grid-column: 1 / -1; }
}

/* ----------------------- Pricing on phones: a green summary card, card-per-item details, a soft panel for the extras ----------------------- */
@media (max-width: 700px) {
  .pricing-sheet { gap: 1.4rem; }
  .pricing-summary { background: var(--green); color: #fff; padding: 1.7rem 1.4rem 1.5rem; border-radius: 18px; }
  .pricing-summary h2 { font-family: var(--serif); font-weight: 700; font-size: 2rem; line-height: 1.08; letter-spacing: -.03em; color: #fff; }
  .pricing-summary p { color: #DAE7C7; margin: 1rem 0 1.4rem; }
  .pricing-summary .btn { width: 100%; justify-content: center; min-height: 48px; border-radius: 999px; background: var(--mint); color: var(--green); font-weight: 600; }
  .pricing-summary .btn:hover { background: #fff; }

  .pricing-details { border-top: 0; padding: 0; }
  .pricing-details > h2 { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; margin-bottom: 1rem; }
  .pricing-details dl > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem 1.1rem; margin-bottom: .7rem; }
  .pricing-details dt { position: relative; padding-left: 1.1rem; font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
  .pricing-details dt::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
  .pricing-details dd { font-size: .93rem; line-height: 1.65; }

  .pricing-separate { margin-top: 1.6rem; padding: 1.5rem 1.3rem 1.4rem; background: rgba(218,231,199,.5); border: 0; border-radius: 18px; }
  .pricing-separate > h2 { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: 1.1rem; }
  .pricing-exclusions { gap: 1rem; }
  .pricing-exclusions > div { background: #fff; border-radius: 12px; padding: .9rem 1rem 1rem; }
  .pricing-exclusions h3 { font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
  .pricing-exclusions p { font-size: .92rem; line-height: 1.6; }
  .pricing-brief { margin-top: 1.4rem; padding-top: 1.2rem; font-size: .92rem; }
}

/* Pricing: no summary column, so the details take the full width and the quote button sits under them */
.pricing-sheet { grid-template-columns: 1fr; gap: 0; }
.pricing-details { border-left: 0; padding: 0; max-width: 46rem; }
.pricing-cta { margin-top: 1.4rem; }
@media (max-width: 700px) { .pricing-cta { width: 100%; justify-content: center; min-height: 48px; border-radius: 999px; } }

/* How it works: source, code and browser in one continuous story. */
.how-main { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.how-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem,6vw,6rem); padding: 5rem 0 5.5rem; }
.how-intro h1 { font-size: clamp(3.2rem,5.8vw,5.5rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.01; }
.how-intro h1 span { color: var(--green); }
.how-intro > p { max-width: 29rem; margin-top: 1.7rem; font-size: 1.15rem; color: var(--ink); line-height: 1.6; }
.how-intro > p.how-lede { margin-top: .8rem; color: var(--ink-soft); font-size: 1rem; }
.how-text-link { display: inline-flex; gap: 1rem; margin-top: 1.8rem; color: var(--green); border-bottom: 1px solid var(--green); padding-bottom: .3rem; font-size: .9rem; }
.how-art { padding: 1.5rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.how-source { background: #102b20; color: #f5f8ef; border-radius: 6px; overflow: hidden; }
.how-file { display: block; border-bottom: 1px solid #385044; padding: .7rem 1rem; font: .72rem/1.4 ui-monospace, monospace; color: #bfd1ba; }
.how-source pre { margin: 0; padding: 1rem; font: .8rem/1.8 ui-monospace, monospace; white-space: pre-wrap; }
.how-source pre span { color: #b4d29d; }
.how-source pre em { font-style: normal; color: #e5cc8c; }
.how-bridge { display: flex; justify-content: space-between; align-items: center; padding: .65rem 1rem; color: var(--green); font-size: .76rem; font-weight: 600; }
.how-bridge > span:last-child { font-size: 1.4rem; }
.how-browser { background: #fff; border: 1px solid #cbd7c0; border-radius: 6px; overflow: hidden; }
.how-browser-bar { display: flex; align-items: center; gap: 4px; padding: .65rem .8rem; background: #f4f6f0; border-bottom: 1px solid var(--line); }
.how-browser-bar i { width: 5px; height: 5px; background: #b7c0b2; border-radius: 50%; }
.how-browser-bar > span { margin-left: .6rem; color: #626c5c; font: .64rem/1.4 ui-monospace, monospace; }
.how-dashboard { padding: 1.25rem; }
.how-dash-heading { display: flex; justify-content: space-between; align-items: center; gap: .7rem; }
.how-dash-heading strong { font-size: .85rem; }
.how-dash-heading > span { font-size: .62rem; color: var(--ink-soft); }
.how-metric { font: 600 2.2rem/1.3 var(--serif); letter-spacing: -.04em; margin: 1rem 0; }
.how-metric small { display: block; font: 400 .65rem/1.5 var(--sans); letter-spacing: 0; color: var(--ink-soft); }
.how-bars > div { display: grid; grid-template-columns: 5rem 1fr 3rem; align-items: center; gap: .7rem; margin-top: .8rem; font-size: .65rem; }
.how-bars i { height: 12px; width: var(--bar); background: var(--green); border-radius: 1px; }
.how-bars > div:nth-child(2) i { background: #5e9a73; }
.how-bars > div:nth-child(3) i { background: #a8c49a; }
.how-bars b { font-weight: 500; text-align: right; }
.how-process { border-top: 1px solid var(--line-2); padding: 3rem 0 4rem; scroll-margin-top: 6rem; }
.how-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.how-section-head h2, .how-update h2, .how-handover h2 { font-size: clamp(2rem,3vw,2.8rem); font-weight: 600; letter-spacing: -.035em; }
.how-section-head p { color: var(--ink-soft); font-size: .95rem; }
.how-steps { list-style: none; display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; margin: 2.8rem 0 0; padding: 0; }
.how-step-n { display: flex; justify-content: space-between; color: var(--green); border-bottom: 1px solid var(--line-2); padding-bottom: .8rem; font: .85rem/1.5 ui-monospace, monospace; }
.how-steps h3 { font-size: 1.1rem; margin: 1.1rem 0 .7rem; }
.how-steps p { color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }
.how-step-tag { display: block; margin-top: 1.1rem; color: var(--green); font-size: .76rem; font-weight: 500; }
.how-update { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; padding: 3.3rem; background: var(--green); color: #fff; border-radius: 12px; }
.how-update h2 { color: #fff; }
.how-update p { margin-top: 1.2rem; color: #e0e9dc; font-size: .95rem; line-height: 1.75; }
.how-update-flow { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .7rem; font-size: .8rem; color: #fff; }
.how-update-flow li + li::before { content: '→'; margin-right: .7rem; color: var(--sage); }
.how-refresh { border-left: 1px solid #53765c; padding-left: 2.5rem; }
.how-refresh h3 { font-size: 1.2rem; color: #fff; }
.how-refresh-note { display: block; margin-top: 1.4rem; color: #bed3b6; font-size: .78rem; line-height: 1.6; }
.how-handover { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: 4.5rem 0; }
.how-handover > div { max-width: 44rem; }
.how-handover p { margin-top: 1rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.75; }
.how-handover p.how-own-note { color: var(--green); font-size: .85rem; }
@media (min-width: 901px) and (max-width: 1250px) { .nav-links { gap: 1rem; } .brand-tag { display: none; } }
@media (max-width: 900px) {
 .how-hero { gap: 2rem; padding: 3rem 0; }
 .how-steps { grid-template-columns: 1fr 1fr; }
 .how-update { gap: 2rem; padding: 2rem; }
 .how-refresh { padding-left: 1.5rem; }
 .how-handover { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 640px) {
 .how-hero { grid-template-columns: 1fr; padding: 2.5rem 0 3rem; }
 .how-intro h1 { font-size: clamp(3rem,14vw,4rem); }
 .how-intro > p { font-size: 1.05rem; margin-top: 1.3rem; }
 .how-art { padding: .8rem; }
 .how-source pre { font-size: .7rem; padding: .85rem; }
 .how-dashboard { padding: 1rem; }
 .how-dash-heading { align-items: flex-start; flex-direction: column; gap: .2rem; }
 .how-bars > div { grid-template-columns: 4.5rem 1fr 2.8rem; gap: .5rem; }
 .how-section-head { display: block; }
 .how-section-head p { margin-top: .8rem; }
 .how-process { padding: 2.2rem 0 2.8rem; }
 .how-steps { grid-template-columns: 1fr; gap: 1.8rem; margin-top: 2rem; }
 .how-steps h3 { margin-top: .8rem; }
 .how-step-tag { margin-top: .65rem; }
 .how-update { grid-template-columns: 1fr; padding: 1.5rem; gap: 2rem; }
 .how-refresh { padding: 1.5rem 0 0; border-left: 0; border-top: 1px solid #53765c; }
 .how-handover { padding: 3rem 0; }
}

/* The process is the opening section on How it works. */
.how-main > .how-process:first-child { border-top: 0; padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.how-section-head h1 { font-size: clamp(2.4rem, 4.5vw, 4rem); font-weight: 600; letter-spacing: -.035em; }

/* Hero subline: same family as the headline, a touch heavier and darker, with a paper halo so the dot grid never cuts through it */
.hero-sub { font-family: var(--serif); font-weight: 500; color: #3F433D; letter-spacing: -0.012em; font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  text-shadow: 0 0 6px var(--paper), 0 0 10px var(--paper), 0 0 18px var(--paper), 0 0 26px var(--paper); }
@media (max-width: 820px) { .hero-sub { font-size: 1.2rem; } }

/* Model evaluation demo. */
.model-toolbar, .model-controls, .model-chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.model-toolbar h3 { font-size: 1.35rem; }
.model-toolbar p { font-size: .88rem; color: var(--ink-soft); margin-top: .3rem; }
.model-sample { font-size: .72rem; color: var(--green); background: var(--paper-2); padding: .3rem .65rem; border-radius: 5px; }
.model-controls { margin: 1.4rem 0; }
.model-choice { display: flex; flex-wrap: wrap; gap: .4rem; }
.model-choice button, .model-controls select { font: inherit; font-size: .82rem; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); border-radius: 7px; padding: .6rem .8rem; min-height: 44px; }
.model-choice button { cursor: pointer; }
.model-choice button[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.model-controls label { display: flex; gap: .65rem; align-items: center; font-size: .8rem; color: var(--ink-soft); }
.model-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: .8rem; margin-bottom: 1rem; }
.model-metrics > div { padding: 1rem; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
.model-metrics span, .model-metrics small { display: block; font-size: .76rem; line-height: 1.5; color: var(--ink-soft); }
.model-metrics strong { display: block; margin: .35rem 0; font: 600 1.85rem/1.3 var(--serif); letter-spacing: -.03em; }
.model-metrics small { font-size: .67rem; }
.model-chart-card { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 1.2rem; min-width: 0; }
.model-chart-card h4, .model-context h4 { font-size: .94rem; margin: 0; }
.model-chart-heading { margin-bottom: .8rem; }
.model-legend { display: flex; flex-wrap: wrap; gap: .8rem; color: var(--ink-soft); font-size: .7rem; }
.model-legend span::before { content: ''; display: inline-block; vertical-align: middle; width: 16px; height: 3px; margin-right: .4rem; background: var(--green); }
.model-legend span:nth-child(2)::before { background: #5376a1; }
.model-legend span:nth-child(3)::before { background: #e0e8f2; height: 9px; }
#modelPanel svg { width: 100%; height: auto; display: block; overflow: visible; }
#modelPanel svg text { font: 11px var(--sans); fill: var(--ink-soft); }
.model-grid { stroke: var(--line); stroke-width: 1; }
.model-band { fill: #e0e8f2; opacity: .8; }
.model-actual, .model-predicted { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.model-predicted { stroke: #5376a1; stroke-dasharray: 5 4; stroke-width: 2; }
.model-point { fill: var(--green); stroke: white; stroke-width: 1.5; cursor: help; }
.model-point:hover, .model-point:focus { stroke: #5376a1; stroke-width: 3; outline: none; }
.model-zero { stroke: var(--line-2); }
.model-chart-note { color: var(--ink-soft); font-size: .72rem; line-height: 1.6; margin-top: .6rem; }
.model-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.model-context { min-width: 0; padding: 1.2rem; background: var(--paper-2); border-radius: 9px; }
.model-context > p:not(.model-chart-note) { font-size: .85rem; line-height: 1.65; margin-top: .6rem; color: var(--ink-soft); }
.model-context pre { font: .72rem/1.8 ui-monospace, monospace; color: var(--green); white-space: pre-wrap; overflow-wrap: anywhere; margin: 1rem 0; }
@media (max-width: 640px) {
 .demo-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
 .demo-tabs .seg-btn { margin: 0; border-radius: 0; border: 1px solid var(--line-2); padding: .7rem .4rem; }
 .demo-tabs .seg-btn.is-active { margin: 0; padding: .7rem .4rem; background: var(--green); color: #fff; }
 .model-toolbar { align-items: flex-start; }
 .model-metrics { grid-template-columns: 1fr 1fr; gap: .5rem; }
 .model-metrics > div { padding: .8rem; }
 .model-metrics strong { font-size: 1.6rem; }
 .model-bottom { grid-template-columns: 1fr; }
 .model-chart-card { padding: .8rem; }
 .model-controls label { flex-wrap: wrap; }
 #modelChart svg { min-height: 170px; }
}

@media (max-width: 640px) { #modelPanel svg text { font-size: 14px; } }

/* Classification diagnostics and linked threshold controls. */
.diag-threshold { display: flex; align-items: center; gap: 1.5rem; padding: 1.2rem 0; margin: .6rem 0 1rem; border-bottom: 1px solid var(--line); }
.diag-threshold label { font-size: .9rem; font-weight: 500; }
.diag-threshold label strong { display: inline-block; min-width: 3rem; margin-left: .7rem; color: var(--green); font-variant-numeric: tabular-nums; }
.diag-threshold p { color: var(--ink-soft); font-size: .75rem; margin-top: .35rem; }
.diag-threshold input { accent-color: var(--green); flex: 1; min-width: 100px; min-height: 44px; cursor: pointer; }
.diag-reset { font: inherit; font-size: .8rem; padding: .55rem .85rem; background: var(--card); border: 1px solid var(--line-2); border-radius: 7px; min-height: 44px; cursor: pointer; }
.diag-metrics { grid-template-columns: repeat(3,1fr); }
.diag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.diag-score { color: var(--green); background: var(--paper-2); padding: .2rem .5rem; font-size: .72rem; border-radius: 4px; }
.diag-baseline { fill: none; stroke: #9b9f98; stroke-dasharray: 5 5; stroke-width: 1.3; }
.diag-marker { fill: #fff; stroke: #2348e0; stroke-width: 3; }
.diag-threshold-line { stroke: #2348e0; stroke-width: 2; stroke-dasharray: 4 4; }
.diag-matrix { width: 100%; border-collapse: separate; border-spacing: 5px; table-layout: fixed; margin: 1.1rem 0; }
.diag-matrix caption { font-size: .72rem; color: var(--ink-soft); margin-bottom: .7rem; }
.diag-matrix th { font-weight: 500; font-size: .75rem; line-height: 1.6; text-align: center; }
.diag-matrix th:first-child { width: 23%; }
.diag-matrix td { text-align: center; border-radius: 7px; padding: 1.15rem .4rem; }
.diag-matrix td strong { display: block; font: 600 2rem/1.3 var(--serif); }
.diag-matrix td span { display: block; font-size: .7rem; margin-top: .35rem; }
.diag-correct { background: var(--green); color: #fff; }
.diag-error { background: #f3e8dc; color: #6c4931; }
.diag-population { text-align: center; font-size: .72rem; color: var(--ink-soft); margin: 1rem 0; }
.diag-legend { display: flex; gap: .8rem; font-size: .7rem; }
.diag-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; background: var(--sage); margin-right: .35rem; }
.diag-legend span:last-child::before { background: var(--green); }
.diag-explainer { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.25rem; }
.diag-explainer strong { font-size: .95rem; }
.diag-explainer p { font-size: .85rem; line-height: 1.7; color: var(--ink-soft); margin-top: .5rem; max-width: 60rem; }
.diag-explainer p.model-chart-note { font-size: .72rem; }
@media (max-width: 640px) {
 .diag-grid { grid-template-columns: 1fr; }
 .diag-metrics { grid-template-columns: 1fr 1fr; }
 .diag-threshold { flex-wrap: wrap; gap: .6rem; }
 .diag-threshold > div { flex-basis: 100%; }
 .diag-matrix td { padding: 1rem .2rem; }
 .diag-matrix td span { font-size: .65rem; }
}

/* Shared typography for informational pages and both four-step processes. */
:root {
 --page-title-size: clamp(2.1rem, 4vw, 3.6rem);
 --section-title-size: clamp(1.6rem, 2.5vw, 2.1rem);
 --step-title-size: 1.1rem;
 --page-copy-size: .95rem;
}
.page-hero h1, .review-page .page-hero h1, .about-page .page-hero h1,
.mg-head h1, .how-section-head h1 {
 font-family: var(--serif); font-size: var(--page-title-size); font-weight: 700;
 line-height: 1.08; letter-spacing: -.035em;
}
.mg-box h2, .how-update h2, .how-handover h2,
.review-section h2, .about-page .prose h2, .page-cta-inner h2, .review-page .page-cta-inner h2 {
 font-family: var(--sans); font-size: var(--section-title-size); font-weight: 500;
 line-height: 1.25; letter-spacing: -.025em;
}
.mg-steps, .how-steps { gap: 1.8rem; }
.mg-steps h3, .how-steps h3, .how-refresh h3 {
 font-family: var(--sans); font-size: var(--step-title-size); font-weight: 600;
 line-height: 1.4; letter-spacing: -.005em;
}
.mg-steps h3, .how-steps h3 { margin: 0 0 .5rem; }
.mg-steps p, .how-steps p { font-family: var(--sans); font-size: var(--page-copy-size); line-height: 1.7; max-width: none; }
.mg-steps::before { display: none; }
.mg-n, .how-step-n {
 display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
 background: var(--green); color: #fff; padding: 0; border: 0; margin: 0 0 1rem;
 font: 600 .95rem/1 var(--sans); box-shadow: none;
}
.how-steps { margin-top: 2.4rem; }
.how-section-head { display: block; }
.how-section-head p { margin-top: 1rem; font-size: var(--page-copy-size); line-height: 1.7; }
.how-main > .how-process:first-child { padding-top: clamp(3rem, 6vw, 5rem); }
.how-update p, .how-handover p, .review-section p { font-family: var(--sans); font-size: var(--page-copy-size); line-height: 1.7; }
.mg-practical { margin: 0 0 clamp(3rem, 6vw, 5rem); }
.mg-practical .mg-facts { margin-top: 0; padding-top: 1.8rem; }
@media (max-width: 900px) { .mg-steps, .how-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .mg-steps, .how-steps { grid-template-columns: 1fr; } }

.mg-n, .how-step-n { justify-content: center; align-content: center; }
.migration-new main { max-width: calc(var(--maxw) + 2 * var(--gutter)); }

/* Four illustrations replace the process numbers on How it works. */
.how-step-image { width: 100%; max-width: 240px; margin: 0 0 1.5rem; }
.how-step-image svg { display: block; width: 100%; height: auto; }
@media (max-width: 640px) {
 .how-step-image { max-width: 210px; margin-bottom: 1rem; }
 .how-steps { gap: 2.5rem; }
}

/* Mobile-only dashboard turnstile: spaced faces travel around a 3D ring. */
@media (max-width: 820px) {
 .reel {
  perspective: 900px;
  perspective-origin: 50% 46%;
  height: clamp(270px, 65vw, 350px);
  -webkit-mask-image: none;
  mask-image: none;
  touch-action: pan-y;
 }
 .reel-card { border: 1px solid #b8c9b0; box-shadow: 0 10px 22px rgba(8,72,45,.09); }
 .reel-card.is-rear { background: #e3ecd9 !important; border-color: #9fb396; box-shadow: none; }
 .reel-card.is-rear svg { visibility: hidden; }
 .reel-card.is-rear::after { content: ''; position: absolute; inset: 8px; border: 1px solid #b5c8a8; }
}

/* Optional AI on phones: quiet disclosure, plain labels and a compact composer. */
@media (max-width: 820px) {
 .optional-ai-demo > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem; list-style: none; color: var(--ink); font-size: .9rem; }
 .optional-ai-demo > summary::-webkit-details-marker { display: none; }
 .optional-ai-demo > summary::after { content: '+'; color: var(--ink-soft); font-size: 1.3rem; font-weight: 400; line-height: 1; }
 .optional-ai-demo[open] > summary::after { content: '−'; }
 .optional-ai-intro { padding: 0 1.1rem 1rem; font-size: .78rem; line-height: 1.65; }
 .optional-ai-demo .ask { padding: 1.1rem; gap: 1rem; border-top: 1px solid var(--line); }
 .optional-ai-demo .ask-label { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; font: 500 .95rem/1.4 var(--sans); letter-spacing: -.01em; }
 .optional-ai-demo .ask-tag { margin: 0; padding: 0; background: none; border-radius: 0; color: var(--ink-soft); font: 400 .7rem/1.4 var(--sans); letter-spacing: 0; }
 .optional-ai-demo .ask-box { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: .45rem; }
 .optional-ai-demo .ask-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px rgba(8,72,45,.08); }
 .optional-ai-demo .ask-icon { display: none; }
 .optional-ai-demo .ask-box input { width: 100%; padding: .6rem .25rem; font-size: 1rem; }
 .optional-ai-demo .ask-box .btn { width: auto; min-height: 44px; border-radius: 5px; padding: .55rem .85rem; background: var(--ink); color: #fff; font-size: .8rem; }
 .optional-ai-demo .ask-chips { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 0 1rem; }
 .optional-ai-demo .ask-chips > span { grid-column: 1 / -1; font-size: .7rem; color: var(--ink-soft); margin-bottom: .25rem; }
 .optional-ai-demo .ask-chips button { text-align: left; font-size: .76rem; font-weight: 400; line-height: 1.5; color: var(--ink-soft); padding: .6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; min-height: 44px; background: none; border-radius: 0; }
 .optional-ai-demo .ask-chips button:hover, .optional-ai-demo .ask-chips button:focus-visible { color: var(--green); border-bottom-color: var(--green); }
 .optional-ai-demo .ask-reply { padding: .75rem; border-left: 2px solid var(--green); background: var(--paper); border-radius: 0; font-size: .8rem; line-height: 1.6; }
 .optional-ai-demo .ask-reply:empty { display: none; }
 .optional-ai-demo .sub-note { margin-top: 0; }
}

/* Tighter phone composition for the hero and process page. */
@media (max-width: 820px) {
 .hero .reel { margin-top: 0; height: clamp(240px, 60vw, 300px); }
}
@media (max-width: 640px) {
 .how-main > .how-process:first-child { padding-top: 2.2rem; }
 .how-process { padding-bottom: 2rem; }
 .how-steps { gap: 0; margin-top: 1.6rem; }
 .how-steps > li { display: grid; grid-template-columns: 68px minmax(0,1fr); column-gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
 .how-step-image { grid-column: 1; grid-row: 1 / 4; width: 68px; max-width: none; margin: .15rem 0 0; }
 .how-steps h3 { grid-column: 2; margin: 0 0 .55rem; font-size: 1rem; line-height: 1.4; }
 .how-steps p { grid-column: 2; font-size: .9rem; line-height: 1.7; }
 .how-step-tag { grid-column: 2; margin-top: .7rem; font-size: .73rem; }
 .how-update { padding: 1.3rem; gap: 1.5rem; border-radius: 9px; }
 .how-update h2, .how-handover h2 { font-size: 1.6rem; }
 .how-update p, .how-handover p { font-size: .9rem; line-height: 1.7; }
 .how-update-flow { margin-top: 1.3rem; gap: .5rem; font-size: .75rem; }
 .how-refresh { padding-top: 1.3rem; }
 .how-refresh h3 { font-size: 1rem; }
 .how-refresh-note { margin-top: 1rem; font-size: .73rem; }
 .how-handover { padding: 2.5rem 0; gap: 1.3rem; }
}

@media (max-width: 640px) { .mg-steps h3 { font-size: 1rem; line-height: 1.4; } .mg-steps p { font-size: .9rem; } }

/* ----------------------- Model diagnostics: dark by default ----------------------- */
.model-head-right { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.model-theme { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.model-theme button { font: 600 .74rem/1 var(--sans); padding: .55rem .85rem; min-height: 36px; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; }
.model-theme button[aria-pressed="true"] { background: var(--green); color: #fff; }

#modelPanel.is-dark { background: #0E1512; border-color: #26332C; color: #EEF3E8; }
#modelPanel.is-dark .model-toolbar h3, #modelPanel.is-dark .model-chart-card h4, #modelPanel.is-dark .diag-explainer strong, #modelPanel.is-dark .diag-threshold label { color: #EEF3E8; }
#modelPanel.is-dark .model-toolbar p, #modelPanel.is-dark .model-chart-note, #modelPanel.is-dark .diag-threshold p, #modelPanel.is-dark .diag-explainer p,
#modelPanel.is-dark .diag-population, #modelPanel.is-dark .diag-matrix caption, #modelPanel.is-dark .diag-legend, #modelPanel.is-dark .model-metrics span,
#modelPanel.is-dark .model-metrics small { color: #A9B5AA; }
#modelPanel.is-dark .model-sample, #modelPanel.is-dark .diag-score { background: #1E2B24; color: #DAE7C7; }
#modelPanel.is-dark .model-theme { border-color: #34463B; }
#modelPanel.is-dark .model-theme button { color: #A9B5AA; }
#modelPanel.is-dark .model-theme button[aria-pressed="true"] { background: #DAE7C7; color: #08482D; }
#modelPanel.is-dark .diag-threshold { border-bottom-color: #26332C; }
#modelPanel.is-dark .diag-threshold label strong { color: #9FD8AE; }
#modelPanel.is-dark .diag-threshold input { accent-color: #9FD8AE; }
#modelPanel.is-dark .diag-reset { background: #16201B; color: #EEF3E8; border-color: #34463B; }
#modelPanel.is-dark .model-metrics > div, #modelPanel.is-dark .model-chart-card { background: #16201B; border-color: #26332C; }
#modelPanel.is-dark .model-metrics strong { color: #EEF3E8; }
#modelPanel.is-dark svg text { fill: #A9B5AA; }
#modelPanel.is-dark .model-grid { stroke: #26332C; }
#modelPanel.is-dark .model-actual { stroke: #9FD8AE; }
#modelPanel.is-dark .diag-baseline { stroke: #5F7D6B; }
#modelPanel.is-dark .diag-marker { fill: #0E1512; stroke: #F3D58A; }
#modelPanel.is-dark .diag-threshold-line { stroke: #F3D58A; }
#modelPanel.is-dark rect[fill="#a8c49a"] { fill: #4E8B66; }
#modelPanel.is-dark rect[fill="#08482d"] { fill: #DAE7C7; }
#modelPanel.is-dark .diag-legend span::before { background: #4E8B66; }
#modelPanel.is-dark .diag-legend span:last-child::before { background: #DAE7C7; }
#modelPanel.is-dark .diag-correct { background: #1F5C3C; color: #EEF3E8; }
#modelPanel.is-dark .diag-error { background: #3A2B24; color: #F2C2AE; }
#modelPanel.is-dark .diag-explainer { border-top-color: #26332C; }

/* Give both migration illustration groups one shared visual row. */
@media (min-width: 901px) {
 .mg-boxes { grid-template-rows: auto auto 190px auto; }
 .mg-boxes .mg-box { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
 .mg-boxes .mg-box ul { min-height: 0; margin: 0; }
 .mg-boxes .mg-move, .mg-boxes .mg-thumbs { grid-row: 3; height: 160px; min-height: 0; margin: 1.5rem 0 0; padding: 0; align-items: center; }
 .mg-move figure { position: relative; margin: 0; }
 .mg-move figure svg, .mg-thumbs svg { height: 110px; width: 100%; padding: 0; object-fit: contain; }
 .mg-move figcaption { position: absolute; left: 0; right: 0; top: 100%; margin-top: .5rem; }
 .mg-boxes .mg-demo { grid-row: 4; justify-self: start; margin-top: 1rem; }
}

/* Customer quotes, faint, in the home page footer */
.foot-quotes { width: min(var(--maxw), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 1.3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; border-top: 1px solid var(--line); }
.foot-quotes p { font-size: .82rem; line-height: 1.55; font-style: italic; color: var(--faint); opacity: .85; }
@media (max-width: 900px) { .foot-quotes { grid-template-columns: 1fr; gap: .8rem; } }

/* Phones: the menu button sits on the far right of the header */
@media (max-width: 900px) {
  .nav .menu-toggle { margin-left: auto; }
  .nav:has(> .btn-primary) .menu-toggle { margin-left: 0; }   /* if a header button is present it takes the auto margin instead */
}

/* ----------------------- Migration on phones: steps zig-zag down the page, joined by curved arrows ----------------------- */
@media (max-width: 640px) {
  .mg-delivery { margin-bottom: 0; }
  .mg-steps { display: block; margin-top: 2.2rem; }
  .mg-steps li { position: relative; width: 80%; margin: 0 0 64px; padding: 1.5rem 1.15rem 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 16px 34px -26px rgba(8,72,45,.55); }
  .mg-steps li:nth-child(even) { margin-left: auto; }
  .mg-steps li .mg-n { position: absolute; top: -16px; left: 16px; width: 32px; height: 32px; margin: 0; font-size: .9rem; box-shadow: 0 0 0 4px var(--paper); }
  .mg-steps li:nth-child(even) .mg-n { left: auto; right: 16px; }
  .mg-steps h3 { margin: 0 0 .35rem; }
  .mg-steps p { margin: 0; }
  /* the arrow spans the full column: 125% of a card that is 80% wide */
  .mg-steps li::after { content: ""; position: absolute; top: 100%; height: 64px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 360 64%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M96 2 C96 58 264 6 264 54%22 fill=%22none%22 stroke=%22%2308482D%22 stroke-width=%222.6%22 stroke-linecap=%22round%22 stroke-dasharray=%227 7%22/%3E%3Cpath d=%22M255 49 L264 63 L273 49%22 fill=%22none%22 stroke=%22%2308482D%22 stroke-width=%222.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
  .mg-steps li::after { width: 125%; left: 0; }
  .mg-steps li:nth-child(even)::after { left: auto; right: 0; transform: scaleX(-1); }
  .mg-steps li:last-child::after { content: none; }

  /* Step 4 leads into the content; the two content sections remain separate. */
  .mg-boxes { gap: 24px; padding-top: 0; border-top: 0; }
  .mg-box + .mg-box { border-top: 0; padding-top: 0; }
}

/* Pricing: the "no published plans" note sits under the quote line without a second divider */
.pricing-withdrawn { border-top: 0; padding-top: .2rem; margin-top: .4rem; }
.pricing-withdrawn strong { color: var(--ink); font-weight: 600; }

/* Editable demo: long jokes wrap instead of breaking the layout */
.kb-title { overflow-wrap: anywhere; }
#kpiCode { cursor: text; }

/* How it works: shared disclosure navigation, with Scout as a child page. */
.nav-dropdown{position:relative;align-self:center}
.nav-dropdown>summary{display:flex;align-items:center;gap:8px;list-style:none;font:400 .9rem var(--sans);white-space:nowrap;color:var(--ink);cursor:pointer;padding:3px 0}
.nav-dropdown>summary::-webkit-details-marker{display:none}
.nav-dropdown>summary:after{content:"";width:6px;height:6px;border-right:1.3px solid currentColor;border-bottom:1.3px solid currentColor;transform:rotate(45deg);margin-top:-3px;transition:transform .15s}
.nav-dropdown[open]>summary:after{transform:rotate(225deg);margin-top:3px}
.nav-dropdown>summary:hover,.nav-dropdown>summary.is-current{color:var(--green)}
.nav-dropdown>summary:focus-visible{outline:2px solid var(--green);outline-offset:6px;border-radius:2px}
.nav-dropdown .nav-submenu{position:absolute;top:calc(100% + 14px);left:-16px;min-width:175px;padding:7px;background:var(--paper);border:1px solid var(--line-2);border-radius:8px;box-shadow:0 12px 30px #10271e14;z-index:100}
.nav-dropdown:not([open])>.nav-submenu{display:none}
.nav-links .nav-submenu a{display:block;padding:10px 12px;border:0;border-radius:4px;font-size:13px;line-height:1.5}
.nav-links .nav-submenu a:after{display:none}
.nav-links .nav-submenu a:hover,.nav-links .nav-submenu a[aria-current="page"]{background:var(--paper-2);color:var(--green)}
@media(max-width:900px){
 .nav-dropdown{align-self:stretch;width:100%;border-bottom:1px solid var(--line)}
 .nav-dropdown>summary{padding:.8rem 0;font-size:.95rem;min-height:44px;justify-content:space-between}
 .nav-dropdown .nav-submenu{position:static;min-width:0;padding:0 0 10px 14px;margin-bottom:4px;border:0;border-left:1px solid var(--line-2);border-radius:0;box-shadow:none;background:none}
 .nav-links .nav-submenu a{font-size:.9rem;min-height:44px;padding:10px 12px}
}

/* Tiny booking popup: one click to the contact page */
.modal-mini .modal-dialog { width: min(300px, calc(100vw - 2rem)); padding: 1.3rem 1.3rem 1.2rem; margin: 18vh auto 1rem; text-align: center; }
.modal-mini h2 { font-size: 1.15rem; margin: 0 1.6rem .9rem; line-height: 1.25; }
.modal-mini .modal-close { top: .45rem; right: .5rem; }
.modal-mini .btn { min-height: 44px; }

/* Meridian dashboard embedded on the demo page */
.meridian-wrap{max-width:1360px;margin:0 auto;padding:0 clamp(8px,2vw,24px)}
.meridian-frame{display:block;width:100%;height:min(1100px,calc(100vh - 90px));min-height:640px;border:1px solid var(--line-2,#dae7c7);border-radius:10px;background:#f5f8ef}
.meridian-note{max-width:62rem;margin:14px auto 56px;padding:0 clamp(16px,4vw,24px);font-size:13px;color:var(--ink-soft,#5b6759);line-height:1.6}
.meridian-note a{color:inherit;text-decoration:underline}
@media(max-width:700px){.meridian-frame{height:calc(100vh - 70px);min-height:560px;border-radius:6px}}

/* Demo page on phones: a friendly note instead of the full dashboard */
.meridian-mobile{display:none}
@media(max-width:760px){
 .meridian-wrap,.meridian-note{display:none}
 .meridian-mobile{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;margin:8px 16px 56px;padding:32px 22px 28px;background:#fff;border:1px solid var(--line-2,#dae7c7);border-radius:16px}
 .meridian-mobile .mm-art{width:170px;height:auto;margin-bottom:6px}
 .meridian-mobile h2{font-size:1.5rem;line-height:1.2;margin:0}
 .meridian-mobile .mm-aside{font-family:Caveat,cursive;font-size:1.35rem;color:#08482D;margin:-4px 0 0}
 .meridian-mobile p{margin:0;color:var(--ink-soft,#5b6759);max-width:22rem;line-height:1.55}
 .meridian-mobile .btn{margin-top:8px;min-height:44px;width:100%;max-width:280px;justify-content:center}
 .meridian-mobile .mm-anyway{font-size:.92rem;color:var(--ink-soft,#5b6759);text-decoration:underline;text-underline-offset:3px;padding:10px}
}

/* Feedback for the illustrative permissions actions, scoped to their own panel. */
.pm-action-note{font-size:.78rem;line-height:1.7;color:var(--green);background:var(--paper-2);border-left:2px solid var(--green);border-radius:4px;padding:.7rem .85rem;margin:0 0 .9rem;}
.pm-action-note[hidden]{display:none;}
