/* ============================================================
   Solves - Homepage styles (scoped to layouts/home.php)
   Bigger type than the app; same tokens. No JS required for
   content or CTAs; the interactive demo is progressive enhancement.
   ============================================================ */

* { box-sizing: border-box; }
:root {
  --brand-harbour: #3056d3;
  --brand-kiln: #b3590e;
}
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(100%, 1120px); margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }
.mono { font-family: var(--font-mono); }
img, video, canvas, svg { max-width: 100%; }
p, li, h1, h2, h3, h4, h5, h6, .lede { overflow-wrap: anywhere; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; border-radius: var(--r-sm);
  border: 1px solid transparent; padding: 11px 20px; cursor: pointer;
  white-space: nowrap; transition: background-color .14s ease, border-color .14s ease, transform .12s ease, box-shadow .14s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(21,96,63,0.28); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost-dark { background: transparent; color: #dbe7df; border-color: rgba(255,255,255,0.22); }
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.45); color: #fff; }
.btn-secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border-strong); }
.btn-secondary:hover { background: #fff; border-color: var(--color-text-muted); }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17,32,26,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.nav .wm { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; color: #f3f8f3; }
.nav .wm .dot { color: #5fbd8b; font-weight: 700; }
.nav-links { display: flex; gap: 24px; margin-left: 12px; }
.nav-links a { font-size: 14px; color: #b7cabf; font-weight: 500; transition: color .14s ease; }
.nav-links a:hover { color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-right .login { font-size: 14px; color: #b7cabf; font-weight: 500; }
.nav-right .login:hover { color: #fff; }
.nav .btn-primary { padding: 8px 16px; font-size: 14px; }
.home-mobile-nav { display: none; position: relative; }
.home-mobile-nav > summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 14px; padding: 8px 13px; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--r-sm); color: #f3f8f3; background: rgba(255,255,255,0.06); }
.home-mobile-nav > summary::-webkit-details-marker { display: none; }
.home-mobile-nav[open] > .home-mobile-panel { position: fixed; left: 20px; right: 20px; top: 68px; min-width: 0; background: #f5f7f3; color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--r-md); box-shadow: var(--shadow-3); padding: 8px; z-index: 120; }
.home-mobile-panel a { display: block; padding: 10px 11px; border-radius: var(--r-sm); color: var(--color-text); font-size: 15px; }
.home-mobile-panel a:hover { background: var(--color-sunken); color: var(--color-primary-text); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background: #11201a; color: #eaf1ea;
  padding: 64px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; left: 50%; top: -160px; transform: translateX(-50%);
  width: 900px; height: 520px;
  background: radial-gradient(ellipse at center, rgba(95,189,139,0.18), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.03em;
  color: #5fbd8b; margin-bottom: 22px;
}
.eyebrow .pulse { width: 7px; height: 7px; border-radius: 999px; background: #5fbd8b; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,189,139,0.5); } 70% { box-shadow: 0 0 0 9px rgba(95,189,139,0); } 100% { box-shadow: 0 0 0 0 rgba(95,189,139,0); } }
.hero h1 {
  font-size: clamp(36px, 5.6vw, 62px); line-height: 1.03; letter-spacing: -0.03em;
  font-weight: 700; margin: 0 auto; max-width: 16ch; color: #f7faf7;
}
.hero h1 em { font-style: normal; color: #5fbd8b; }
.hero .lede { font-size: clamp(16px, 1.9vw, 19px); line-height: 1.6; color: #b9cdc0; max-width: 60ch; margin: 22px auto 0; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 28px; font-size: 13px; color: #84a092; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 14px; height: 14px; color: #5fbd8b; }

/* ============ Interactive demo ============ */
.demo-shell { position: relative; z-index: 1; max-width: 940px; margin: 52px auto 0; }
.demo-switch {
  display: flex; align-items: center; gap: 14px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap;
}
.seg-toggle { display: inline-flex; background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 4px; position: relative; }
.seg-toggle button {
  position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: #9fb6a9;
  padding: 8px 20px; border-radius: 999px; transition: color .2s ease; display: inline-flex; align-items: center; gap: 7px;
}
.seg-toggle button svg { width: 14px; height: 14px; }
.seg-toggle button.on { color: #11201a; }
.seg-toggle .thumb {
  position: absolute; top: 4px; left: 4px; height: calc(100% - 8px);
  background: #f3f8f3; border-radius: 999px; transition: transform .32s cubic-bezier(.4,1.2,.5,1), width .32s cubic-bezier(.4,1.2,.5,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.demo-hint { font-size: 13px; color: #84a092; }
.demo-hint b { color: #cfe0d5; }

.demo-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--r-md); box-shadow: 0 24px 70px rgba(0,0,0,0.45), 0 4px 14px rgba(0,0,0,0.3);
  overflow: hidden; text-align: left;
}
.demo-head { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--color-border); background: var(--color-bg); }
.demo-head .dh-title { font-size: 14px; font-weight: 600; transition: color .25s ease; }
.demo-head .dh-sub { font-size: 12px; color: var(--color-text-muted); }
.demo-head .spacer { flex: 1; }
.demo-head .dh-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-success); }
.demo-head .dh-live .blip { width: 6px; height: 6px; border-radius: 999px; background: var(--color-success); animation: blip 1.8s infinite; }
.demo-head .dh-live.off { color: var(--color-danger); }
.demo-head .dh-live.off .blip { background: var(--color-danger); animation: none; }
@keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.demo-counters { display: flex; gap: 8px; }
.dcounter { display: flex; align-items: baseline; gap: 6px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-sm); padding: 4px 10px; transition: opacity .25s ease; }
.dcounter b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dcounter span { font-size: 11px; color: var(--color-text-muted); white-space: nowrap; }
.dcounter.risk b { color: var(--color-warning); }
.dcounter.chaos b { color: var(--color-danger); }

/* rows */
.drow {
  display: grid; grid-template-columns: 30px minmax(0,1fr) auto;
  gap: 14px; align-items: center; padding: 0 18px; min-height: 58px;
  border-bottom: 1px solid var(--color-border); position: relative;
}
.drow:last-child { border-bottom: 0; }
.drow .owner {
  width: 26px; height: 26px; border-radius: 999px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff; transition: all .3s ease;
}
.owner.av-1 { background: #4a6b5a; } .owner.av-2 { background: #5a5e8a; }
.owner.av-3 { background: #8a5a4e; } .owner.av-4 { background: #3e6e78; }
.owner.none { background: transparent; color: var(--color-text-faint); border: 1.5px dashed var(--color-border-strong); }
.drow .d-main { min-width: 0; }
.drow .d-subj { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--color-text); transition: font-weight .2s ease; }
.drow .d-cust { font-size: 12px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow .d-cust .bdot { display: none; width: 7px; height: 7px; border-radius: 999px; margin-right: 5px; vertical-align: middle; }
.bdot.harbour { background: var(--brand-harbour); } .bdot.kiln { background: var(--brand-kiln); }

/* right column states */
.d-right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px; font-size: 11.5px; font-weight: 600; border-radius: var(--r-xs); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip svg { width: 11px; height: 11px; }
.chip.chaos-tag { background: var(--color-danger-soft); color: var(--color-danger); }
.chip.chaos-tag.amber { background: var(--color-warning-soft); color: var(--color-warning); }
.chip.chaos-tag.grey { background: rgba(29,35,31,0.07); color: var(--color-text-muted); }
.chip.st-new { background: var(--color-info-soft); color: var(--color-info); }
.chip.st-open { background: var(--color-primary-soft); color: var(--color-primary-text); }
.chip.sla-ok { color: var(--color-text-muted); padding-left: 0; }
.chip.sla-risk { background: var(--color-warning-soft); color: var(--color-warning); }
.chip.sla-breach { background: var(--color-danger-soft); color: var(--color-danger); }
.brand-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--color-text-secondary); }
.brand-tag .bdot { width: 8px; height: 8px; border-radius: 999px; }

/* The two state groups - animate in/out */
.d-chaos, .d-order { display: flex; align-items: center; gap: 10px; transition: opacity .3s ease, transform .35s ease; }
.demo-stage[data-mode="inbox"] .d-order { display: none; }
.demo-stage[data-mode="inbox"] .d-chaos { display: flex; }
.demo-stage[data-mode="solves"] .d-chaos { display: none; }
.demo-stage[data-mode="solves"] .d-order { display: flex; }
.demo-stage[data-mode="solves"] .d-cust .bdot { display: inline-block; }
.demo-stage[data-mode="inbox"] .owner { background: transparent !important; color: var(--color-text-faint); border: 1.5px dashed var(--color-border-strong); }
.demo-stage[data-mode="inbox"] .d-subj { font-weight: 600; }

/* solves entrance stagger */
.demo-stage.animating .d-order { animation: orderIn .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes orderIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.demo-stage.animating .owner { animation: ownerPop .4s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes ownerPop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.drow.arriving { animation: dropIn .5s cubic-bezier(.2,.8,.2,1); }
@keyframes dropIn { 0% { opacity: 0; transform: translateY(-12px); background: var(--color-info-soft); } 100% { opacity: 1; transform: none; } }

.demo-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--color-bg); font-size: 12.5px; color: var(--color-text-muted); }
.demo-foot.no-border { border-top: 0; }
.demo-foot .status-icon { width: 14px; height: 14px; color: var(--color-success); flex: none; }
.demo-foot .spacer { flex: 1; }
.demo-foot a { color: var(--color-primary-text); font-weight: 600; }
.demo-foot a:hover { text-decoration: underline; }

.demo-caption { text-align: center; font-size: 14px; color: #9fb6a9; margin-top: 18px; min-height: 22px; transition: opacity .3s ease; }
.demo-caption b { color: #e7f0e9; font-weight: 600; }

/* ============ Sections ============ */
.section { padding: 92px 0; }
.section.tight { padding: 72px 0; }
.section-alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-dark { background: #11201a; color: #eaf1ea; }
.sec-kicker { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-primary-text); margin-bottom: 14px; }
.section-dark .sec-kicker { color: #5fbd8b; }
.sec-head { max-width: 62ch; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
.sec-head p { font-size: 18px; color: var(--color-text-secondary); margin: 16px 0 0; line-height: 1.6; }
.section-dark .sec-head p { color: #b9cdc0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Pain list */
.pain-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-top: 48px; }
.pain-list { display: flex; flex-direction: column; gap: 2px; }
.pain-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.pain-item .x { width: 24px; height: 24px; border-radius: 999px; background: var(--color-danger-soft); color: var(--color-danger); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pain-item .x svg { width: 13px; height: 13px; }
.pain-item span { font-size: 16px; color: var(--color-text); }
.pain-visual {
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--r-md);
  padding: 26px; position: relative; overflow: hidden;
}
.pain-visual .pv-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-faint); margin-bottom: 16px; }
.pv-thread { display: flex; flex-direction: column; gap: 10px; }
.pv-bubble { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-sm); padding: 10px 13px; font-size: 13px; box-shadow: var(--shadow-1); }
.pv-bubble .pv-from { font-weight: 600; font-size: 12px; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.pv-bubble .pv-from .tag { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--color-danger); background: var(--color-danger-soft); border-radius: 3px; padding: 1px 6px; }
.pv-bubble .pv-from .tag.amber { color: var(--color-warning); background: var(--color-warning-soft); }
.pv-bubble p { margin: 0; color: var(--color-text-secondary); }
.pv-bubble.dup { border-style: dashed; opacity: 0.8; }

/* ============ Product tour (tabbed) ============ */
.tour { margin-top: 44px; }
.tour-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tour-tab {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--color-border);
  background: var(--color-surface); border-radius: 999px; padding: 9px 17px;
  font-size: 14px; font-weight: 600; color: var(--color-text-secondary); cursor: pointer;
  transition: all .14s ease;
}
.tour-tab svg { width: 15px; height: 15px; }
.tour-tab:hover { border-color: var(--color-border-strong); }
.tour-tab.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.tour-viewport {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-md);
  box-shadow: var(--shadow-2); overflow: hidden; display: grid; grid-template-columns: 1fr 360px; min-height: 380px;
}
.tour-panel { padding: 30px 34px; border-right: 1px solid var(--color-border); display: flex; flex-direction: column; justify-content: center; }
.tour-panel h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; }
.tour-panel p { font-size: 16px; color: var(--color-text-secondary); line-height: 1.6; margin: 0 0 18px; }
.tour-panel ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tour-panel li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--color-text); }
.tour-panel li svg { width: 17px; height: 17px; color: var(--color-primary); flex: none; margin-top: 1px; }
.tour-mock { background: var(--color-bg); padding: 22px; display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.tour-mock .mock-row, .tour-mock .mock-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-sm); padding: 11px 13px; box-shadow: var(--shadow-1); }
.mock-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.mock-row .bdot { width: 7px; height: 7px; border-radius: 999px; flex: none; }
.mock-row .mr-subj { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-note { background: #fdf6e0; border: 1px solid #e7d391; border-radius: var(--r-sm); padding: 11px 13px; }
.mock-note .mn-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #6d4a02; margin-bottom: 5px; }
.mock-note .mn-label svg { width: 11px; height: 11px; }
.mock-note p { margin: 0; font-size: 12.5px; color: #4a3a10; }
.mock-reply { background: #f7faf7; border: 1px solid #cfe3d4; border-radius: var(--r-sm); padding: 11px 13px; }
.mock-reply .mr-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--color-primary-text); margin-bottom: 5px; }
.mock-reply .mr-label svg { width: 11px; height: 11px; }
.mock-reply p { margin: 0; font-size: 12.5px; color: var(--color-text-secondary); }
.mock-dns { font-family: var(--font-mono); font-size: 11.5px; }
.mock-dns .md-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.mock-dns .md-row code { color: var(--color-text); }
.mock-bar { height: 5px; border-radius: 999px; background: var(--color-sunken); overflow: hidden; }
.mock-bar > i { display: block; height: 100%; background: var(--color-primary); border-radius: 999px; }

/* ============ Multi-brand band ============ */
.brand-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.brand-col { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-md); padding: 22px; }
.brand-col h4 { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; margin: 0 0 16px; color: #f3f8f3; }
.brand-col h4 .bdot { width: 10px; height: 10px; border-radius: 999px; }
.brand-note { margin-left: auto; font-size: 13px; font-weight: 400; color: #7e9a8a; }
.brand-mini { display: flex; flex-direction: column; gap: 8px; }
.bmini-row { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--r-sm); padding: 9px 12px; font-size: 13px; color: #cfe0d5; }
.bmini-row .bm-mailbox { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: #7e9a8a; }
.brand-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.bpoint { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-md); padding: 18px 20px; }
.bpoint h5 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; font-weight: 600; color: #f3f8f3; }
.bpoint h5 svg { width: 16px; height: 16px; color: #5fbd8b; }
.bpoint p { margin: 0; font-size: 13.5px; color: #a8bfb1; line-height: 1.55; }
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ============ Feature trio (permissions/setup/migration) ============ */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.trio-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-md); padding: 26px; }
.trio-card .tc-ico { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--color-primary-soft); color: var(--color-primary-text); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.trio-card .tc-ico svg { width: 20px; height: 20px; }
.trio-card h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.trio-card p { font-size: 14.5px; color: var(--color-text-secondary); line-height: 1.6; margin: 0 0 16px; }
.trio-card .tc-link { font-size: 14px; font-weight: 600; color: var(--color-primary-text); display: inline-flex; align-items: center; gap: 5px; }
.trio-card .tc-link svg { width: 14px; height: 14px; transition: transform .14s ease; }
.trio-card:hover .tc-link svg { transform: translateX(3px); }
.tc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip.muted { background: var(--color-sunken); color: var(--color-text-muted); }
.chip.ok-soft { background: var(--color-success-soft); color: var(--color-success); }
.chip.info-soft { background: var(--color-info-soft); color: var(--color-info); }

/* ============ Migration strip ============ */
.migrate { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 40px; }
.migrate-node { text-align: center; }
.migrate-logo { font-size: 18px; font-weight: 700; color: var(--color-text-muted); letter-spacing: -0.01em; }
.migrate-arrow { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--color-primary); }
.migrate-arrow svg { width: 30px; height: 30px; }
.migrate-arrow span { font-size: 11px; font-family: var(--font-mono); color: var(--color-text-muted); }
.migrate-solves { font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.migrate-solves .dot { color: var(--color-primary); }

/* ============ Moving over - live import module ============ */
.import-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; margin-top: 44px; align-items: center; }
.import-list { display: flex; flex-direction: column; gap: 12px; }
.import-point { display: flex; align-items: center; gap: 13px; font-size: 16px; color: var(--color-text); }
.import-point .ip-check { width: 26px; height: 26px; border-radius: 999px; background: var(--color-primary-soft); color: var(--color-primary-text); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.import-point .ip-check svg { width: 14px; height: 14px; }
.import-foot { font-size: 13.5px; color: var(--color-text-muted); margin: 10px 0 0; line-height: 1.6; max-width: 44ch; }
.import-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-md); box-shadow: var(--shadow-2); overflow: hidden; }
.ic-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--color-border); background: var(--color-bg); font-size: 14px; font-weight: 600; }
.ic-head .ic-from { color: var(--color-text-muted); }
.ic-head .ic-arrow { width: 16px; height: 16px; color: var(--color-primary); flex: none; }
.ic-head .ic-to { display: inline-flex; align-items: center; gap: 7px; }
.ic-head .ic-to .bdot { width: 9px; height: 9px; border-radius: 999px; }
.ic-head .ic-status { margin-left: auto; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-warning); display: inline-flex; align-items: center; gap: 6px; }
.ic-head .ic-status .blip { width: 6px; height: 6px; border-radius: 999px; background: var(--color-warning); animation: blip 1.4s infinite; }
.ic-head .ic-status.done { color: var(--color-success); }
.ic-head .ic-status.done .blip { background: var(--color-success); animation: none; }
.ic-bar { height: 5px; background: var(--color-sunken); }
.ic-bar > i { display: block; height: 100%; width: 0; background: var(--color-primary); }
.ic-rows { padding: 6px 18px; }
.ic-irow { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 14.5px; border-bottom: 1px solid var(--color-border); }
.ic-irow:last-child { border-bottom: 0; }
.ic-irow .ck { width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid var(--color-border-strong); flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--color-text-faint); transition: all .3s ease; }
.ic-irow .ck svg { width: 12px; height: 12px; }
.ic-irow.done .ck { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.ic-irow .ir-count { margin-left: auto; font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--color-primary-text); font-variant-numeric: tabular-nums; }
.ic-done { padding: 12px 18px; background: var(--color-bg); font-size: 13px; color: var(--color-text-secondary); display: flex; align-items: center; gap: 8px; opacity: 0; transition: opacity .35s ease; border-top: 1px solid var(--color-border); }
.ic-done svg { width: 14px; height: 14px; color: var(--color-success); flex: none; }
.ic-done.show { opacity: 1; }

/* ============ Honest comparison ============ */
.cmp { margin-top: 44px; }
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); }
.cmp-table { min-width: 720px; border: 1px solid var(--color-border); border-radius: var(--r-md); overflow: hidden; background: var(--color-surface); }
.cmp-row { display: grid; grid-template-columns: 1.5fr 1.25fr 1fr 1fr; }
.cmp-row + .cmp-row { border-top: 1px solid var(--color-border); }
.cmp-feat { padding: 17px 22px; font-weight: 600; font-size: 14.5px; display: flex; align-items: center; color: var(--color-text); }
.cmp-cell { padding: 17px 18px; font-size: 13.5px; display: flex; gap: 10px; align-items: center; border-left: 1px solid var(--color-border); line-height: 1.4; }
.cmp-cell .cmp-ico { width: 18px; height: 18px; flex: none; }
.cmp-cell.comp { color: var(--color-text-muted); }
.cmp-cell.comp .cmp-ico { color: var(--color-text-faint); }
.cmp-cell.solves { background: #f1faf4; color: var(--color-text); font-weight: 500; }
.cmp-cell.solves .cmp-ico { color: var(--color-primary); }
.cmp-headrow .cmp-feat { background: var(--color-bg); }
.cmp-headrow .cmp-cell { font-weight: 700; font-size: 15px; justify-content: flex-start; }
.cmp-headrow .cmp-cell.comp { background: var(--color-bg); color: var(--color-text-secondary); }
.cmp-headrow .cmp-cell.solves { background: var(--color-primary); color: #fff; }
.cmp-headrow .cmp-cell.solves .wm-sm { font-weight: 600; letter-spacing: -0.02em; font-size: 18px; }
.cmp-headrow .cmp-cell.solves .wm-sm .dot { color: #9fe6c0; }
.cmp-row.cmp-bestfor .cmp-feat,
.cmp-row.cmp-bestfor .cmp-cell { font-style: normal; font-size: 13px; align-items: flex-start; }
.cmp-row.cmp-bestfor .cmp-feat { color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.05em; font-size: 11.5px; }
.cmp-row.cmp-bestfor .cmp-cell.solves { font-weight: 600; }
.cmp-note { font-size: 13px; color: var(--color-text-muted); margin: 18px auto 0; max-width: 80ch; line-height: 1.65; text-align: center; }
.cmp-note b { color: var(--color-text-secondary); font-weight: 600; }

/* ============ Pricing teaser ============ */
.price-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 44px; }
.price-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-md); padding: 20px 18px; display: flex; flex-direction: column; }
.price-card.feature { border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); position: relative; }
.price-card .pc-badge { position: absolute; top: -10px; left: 18px; background: var(--color-primary); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.price-card .pc-name { font-size: 14px; font-weight: 600; }
.price-card .pc-price { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 2px; }
.price-card .pc-price small { font-size: 13px; font-weight: 500; color: var(--color-text-muted); }
.price-card .pc-best { font-size: 12px; color: var(--color-text-muted); line-height: 1.4; min-height: 32px; }
.price-card .pc-inc { font-size: 12px; color: var(--color-text-secondary); margin-top: 12px; line-height: 1.6; }
.price-note { text-align: center; margin-top: 20px; font-size: 14px; color: var(--color-text-muted); }
.price-note .offer { color: var(--color-accent); font-weight: 600; }

/* ============ Final CTA ============ */
.security-link { margin-top: 26px; }
.security-stack { display: flex; flex-direction: column; gap: 10px; }

.final-cta { text-align: center; position: relative; overflow: hidden; }
.final-cta .wrap { position: relative; z-index: 1; }
.final-cta h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.02em; font-weight: 700; margin: 0; color: #f7faf7; }
.final-cta p { font-size: 18px; color: #b9cdc0; margin: 16px auto 0; max-width: 50ch; }
.final-cta .hero-ctas { margin-top: 32px; }

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 920px) {
  .pain-grid { grid-template-columns: 1fr; gap: 36px; }
  .tour-viewport { grid-template-columns: 1fr; }
  .tour-panel { border-right: 0; border-bottom: 1px solid var(--color-border); }
  .brand-demo { grid-template-columns: 1fr; }
  .brand-points { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; gap: 32px; }
  .trio { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: 1fr 1fr; }
  .import-grid { grid-template-columns: 1fr; gap: 28px; }
}
/* Hide the inline nav links once the header would otherwise overflow (natural width ~644px). */
@media (max-width: 680px) {
  .nav-links { display: none; }
  .home-mobile-nav { display: block; margin-left: auto; }
  .nav-right { margin-left: 0; gap: 10px; }
  .nav-right .login { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .nav-inner { gap: 12px; }
  .btn { min-height: 40px; }
  .hero { padding: 52px 0 72px; }
  .hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .hero-ctas .btn { width: 100%; }
  .demo-counters { display: none; }
  .demo-head .dh-live, .demo-hint { display: none; }
  .demo-foot { align-items: flex-start; }
  .price-row { grid-template-columns: 1fr; }
  .drow { grid-template-columns: 26px minmax(0,1fr) auto; padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; }
}
