/* ============================================================
   SKYLINE — LANDING PAGE SECTIONS
   ============================================================ */

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background-color 0.25s;
}
.nav.scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.nav .container { display: flex; align-items: center; gap: var(--sp-6); width: 100%; }

.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--text); }
.brand .star { color: var(--accent); font-size: 1.3rem; line-height: 1; }
.brand .sub { color: var(--text-muted); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 0.3rem; margin-left: var(--sp-4); }
.nav-links a {
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary);
  padding: 0.5rem 0.7rem; border-radius: var(--r-sm); transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-subtle); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }

.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface);
  color: var(--text-secondary); transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }

.nav-burger { display: none; width: 40px; height: 40px; place-items: center; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: var(--sp-5); display: none; flex-direction: column; gap: var(--sp-2);
  box-shadow: var(--sh-lg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 0.8rem 0.6rem; border-radius: var(--r-sm); font-weight: 500; color: var(--text); font-family: var(--font-head); }
.mobile-menu a:hover { background: var(--bg-subtle); }
.mobile-menu .row { display: flex; gap: var(--sp-3); margin-top: var(--sp-3); }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.hero-glow {
  position: absolute; top: -25%; right: -12%; width: 72%; height: 95%;
  background:
    radial-gradient(ellipse at 70% 30%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(ellipse at 32% 62%, color-mix(in srgb, #8fc2ff 22%, transparent), transparent 62%);
  pointer-events: none; z-index: 0; filter: blur(4px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 55%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
.hero-copy { max-width: 36rem; }
.hero h1 { margin-bottom: var(--sp-5); }
.hero h1 .accent-text {
  position: relative;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: var(--fs-lg); color: var(--text-secondary); margin-bottom: var(--sp-6); line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--sp-5); color: var(--text-muted); font-size: var(--fs-sm); }
.hero-trust span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.hero-trust svg { width: 16px; height: 16px; color: var(--tier-auto); }

.announce {
  display: inline-flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5);
  padding: 0.35rem 0.35rem 0.35rem 0.9rem; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-xs);
  font-size: var(--fs-sm); color: var(--text-secondary);
}
.announce .tag { background: var(--accent-soft); color: var(--accent); font-weight: 600; font-family: var(--font-head); font-size: var(--fs-xs); padding: 0.25rem 0.6rem; border-radius: var(--r-full); }

/* ---------- HERO FLOW DIAGRAM ---------- */
.flow {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  padding: var(--sp-6) var(--sp-5);
  overflow: hidden;
}
.flow-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-5); }
.flow-head .title { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-base); display: flex; align-items: center; gap: var(--sp-2); }
.flow-head .live { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--text-muted); font-family: var(--font-head); }
.flow-head .live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--tier-auto); box-shadow: 0 0 0 0 color-mix(in srgb, var(--tier-auto) 60%, transparent); animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 color-mix(in srgb, var(--tier-auto) 55%, transparent);} 70%{ box-shadow: 0 0 0 9px transparent;} 100%{ box-shadow: 0 0 0 0 transparent;} }

.flow-stage { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: var(--sp-2); align-items: stretch; }
.flow-col { display: flex; flex-direction: column; gap: var(--sp-3); justify-content: center; }
.flow-col-label { font-size: var(--fs-xs); font-family: var(--font-head); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-1); text-align: center; }

.in-node {
  background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 0.7rem 0.8rem; display: flex; align-items: center; gap: var(--sp-3); box-shadow: var(--sh-xs);
}
.in-node .thumb { width: 34px; height: 42px; border-radius: 5px; background: var(--surface); border: 1px solid var(--border-strong); position: relative; flex: none; overflow: hidden; }
.in-node .thumb::before { content:""; position:absolute; left:5px; right:5px; top:6px; height:2px; background: var(--slate-300); box-shadow: 0 5px 0 var(--slate-200), 0 10px 0 var(--slate-200), 0 15px 0 var(--slate-200), 0 20px 0 var(--slate-200); border-radius: 2px;}
.in-node .meta .t { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); }
.in-node .meta .s { font-size: var(--fs-xs); color: var(--text-muted); }

.tier-node {
  border-radius: var(--r-md); padding: 0.65rem 0.7rem; border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--sh-xs); position: relative;
  display: flex; align-items: center; gap: var(--sp-3);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.tier-node.active { transform: translateX(3px) scale(1.015); box-shadow: var(--sh-md); }
.tier-node .ring { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); color: #fff; }
.tier-node .body { flex: 1; min-width: 0; }
.tier-node .body .n { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); line-height: 1.2; }
.tier-node .body .d { font-size: var(--fs-xs); color: var(--text-muted); }
.tier-node .count { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); }
.tier-node[data-tier="auto"]   { border-left: 3px solid var(--tier-auto); }
.tier-node[data-tier="auto"] .ring { background: var(--tier-auto); }
.tier-node[data-tier="auto"] .count { color: var(--tier-auto-fg); }
.tier-node[data-tier="bulk"]   { border-left: 3px solid var(--tier-bulk); }
.tier-node[data-tier="bulk"] .ring { background: var(--tier-bulk); }
.tier-node[data-tier="bulk"] .count { color: var(--tier-bulk-fg); }
.tier-node[data-tier="review"] { border-left: 3px solid var(--tier-review); }
.tier-node[data-tier="review"] .ring { background: var(--tier-review); }
.tier-node[data-tier="review"] .count { color: var(--tier-review-fg); }

.gradebook {
  background: linear-gradient(180deg, var(--surface), var(--bg-subtle));
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 0.8rem; box-shadow: var(--sh-sm);
}
.gradebook .gb-head { display: flex; align-items: center; gap: var(--sp-2); font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.gradebook .gb-head .gicon { width: 22px; height: 22px; border-radius: 5px; background: var(--tier-auto); display: grid; place-items: center; color: #fff; }
.gb-row { display: flex; align-items: center; justify-content: space-between; padding: 0.32rem 0; border-bottom: 1px dashed var(--border); font-size: var(--fs-xs); }
.gb-row:last-child { border-bottom: 0; }
.gb-row .name { color: var(--text-secondary); }
.gb-row .grade { font-family: var(--font-head); font-weight: 600; color: var(--text); padding: 0.1rem 0.45rem; border-radius: var(--r-sm); background: var(--tier-auto-bg); color: var(--tier-auto-fg); }
.gb-row .grade.in { animation: gradeIn 0.5s var(--ease-out); }
@keyframes gradeIn { from { opacity: 0; transform: translateY(-4px) scale(0.9); } to { opacity: 1; transform: none; } }

/* connector SVG overlay */
.flow-connectors { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.flow-connectors path { fill: none; stroke: var(--border-strong); stroke-width: 1.5; opacity: 0.5; }
.flow-dot { fill: var(--accent); }

/* ---------- PROBLEM ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-4); }
.problem-card { padding: var(--sp-5); }
.problem-card .icon-chip { margin-bottom: var(--sp-4); }
.problem-card h4 { margin-bottom: var(--sp-2); }
.problem-card p { font-size: var(--fs-sm); color: var(--text-secondary); }
.problem-stat { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-2xl); color: var(--accent); letter-spacing: -0.02em; }

/* ---------- HOW IT WORKS (tiers) ---------- */
.tier-tabs { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.tier-tab {
  display: flex; align-items: center; gap: var(--sp-3); padding: 0.7rem 1rem; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface); transition: all 0.2s var(--ease-out); flex: 1; min-width: 220px;
}
.tier-tab .num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); flex: none; }
.tier-tab .tt { text-align: left; }
.tier-tab .tt .l { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); }
.tier-tab .tt .r { font-size: var(--fs-xs); color: var(--text-muted); }
.tier-tab[data-tier="auto"] .num { background: var(--tier-auto); }
.tier-tab[data-tier="bulk"] .num { background: var(--tier-bulk); }
.tier-tab[data-tier="review"] .num { background: var(--tier-review); }
.tier-tab.active { box-shadow: var(--sh-md); }
.tier-tab[data-tier="auto"].active { border-color: var(--tier-auto); background: var(--tier-auto-bg); }
.tier-tab[data-tier="bulk"].active { border-color: var(--tier-bulk); background: var(--tier-bulk-bg); }
.tier-tab[data-tier="review"].active { border-color: var(--tier-review); background: var(--tier-review-bg); }

.tier-panel { display: none; }
.tier-panel.active { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; animation: fadeUp 0.4s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tier-panel .panel-copy h3 { margin-bottom: var(--sp-3); display: flex; align-items: center; gap: var(--sp-3); }
.tier-panel .panel-copy .conf { font-size: var(--fs-sm); color: var(--text-secondary); margin-bottom: var(--sp-4); }
.tier-panel .panel-copy ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.tier-panel .panel-copy li { display: flex; gap: var(--sp-3); font-size: var(--fs-base); color: var(--text-secondary); }
.tier-panel .panel-copy li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.referee-note { display: flex; align-items: flex-start; gap: var(--sp-3); margin-top: var(--sp-7); padding: var(--sp-4); border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid var(--accent-border); }
.referee-note svg { color: var(--accent); width: 22px; height: 22px; flex: none; }
.referee-note p { font-size: var(--fs-sm); color: var(--text); }
.referee-note strong { font-family: var(--font-head); }

/* ---------- PRODUCT MOCK (review queue) ---------- */
.mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: var(--sp-2); padding: 0.7rem 0.9rem; background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-bar .crumb { font-size: var(--fs-xs); color: var(--text-muted); font-family: var(--font-head); margin-left: var(--sp-2); }
.mock-body { padding: var(--sp-4); }
.queue-item { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--sp-4); padding: 0.8rem 0.9rem; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); margin-bottom: var(--sp-3); transition: border-color 0.2s, box-shadow 0.2s; }
.queue-item:last-child { margin-bottom: 0; }
.queue-item:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.queue-item .avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); background: var(--bg-sunken); color: var(--text-secondary); }
.queue-item .qmeta .qn { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); }
.queue-item .qmeta .qs { font-size: var(--fs-xs); color: var(--text-muted); }
.queue-item .conf-bar { width: 92px; }
.queue-item .conf-bar .track { height: 6px; border-radius: 3px; background: var(--bg-sunken); overflow: hidden; }
.queue-item .conf-bar .fill { height: 100%; border-radius: 3px; }
.queue-item .conf-bar .lbl { font-size: 0.66rem; color: var(--text-muted); font-family: var(--font-head); margin-top: 3px; }

/* ---------- ENGINE ---------- */
.engine-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.engine-layers { display: flex; flex-direction: column; gap: var(--sp-3); }
.layer {
  display: flex; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm);
  position: relative;
}
.layer .lnum { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); position: absolute; top: var(--sp-4); right: var(--sp-4); }
.layer h4 { margin-bottom: var(--sp-1); display: flex; align-items: center; gap: var(--sp-3); }
.layer p { font-size: var(--fs-sm); color: var(--text-secondary); }
.layer .tagx { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent); background: var(--accent-soft); padding: 0.1rem 0.45rem; border-radius: var(--r-sm); }
.subjects { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }

/* ---------- INTEGRATIONS (close the loop) ---------- */
.loop-section { background: var(--bg-subtle); }
.loop-diagram { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--sp-5); align-items: center; margin-top: var(--sp-7); }
.loop-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--sh-md); }
.loop-card h4 { margin-bottom: var(--sp-3); }
.loop-logos { display: flex; flex-direction: column; gap: var(--sp-3); }
.loop-logo { display: flex; align-items: center; gap: var(--sp-3); padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-subtle); font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); }
.loop-logo .glyph { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; font-family: var(--font-head); font-weight: 700; color: #fff; }
.loop-sync { display: grid; place-items: center; gap: var(--sp-3); }
.loop-sync .sync-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent); }
.loop-sync .sync-label { font-size: var(--fs-xs); font-family: var(--font-head); font-weight: 600; text-align: center; color: var(--text-secondary); }
.audit-strip { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-6); justify-content: center; }
.audit-strip .chip { font-family: var(--font-mono); font-size: var(--fs-xs); padding: 0.3rem 0.6rem; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary); }

/* ---------- TRUST ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--sp-4); }
.trust-card { padding: var(--sp-5); }
.trust-card .icon-chip { margin-bottom: var(--sp-4); }
.trust-card h4 { margin-bottom: var(--sp-2); }
.trust-card p { font-size: var(--fs-sm); color: var(--text-secondary); }
.audit-log-mock { margin-top: var(--sp-6); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.audit-log-mock .log-head { background: var(--slate-900); color: var(--slate-50); padding: 0.6rem 0.9rem; font-family: var(--font-mono); font-size: var(--fs-xs); display: flex; align-items: center; gap: var(--sp-3); }
[data-theme="dark"] .audit-log-mock .log-head { background: #060a12; }
.audit-log-mock .log-head .lc { display: flex; gap: 5px; }
.audit-log-mock .log-head .lc i { width: 9px; height: 9px; border-radius: 50%; }
.audit-log-mock .log-body { background: var(--surface); padding: var(--sp-2); }
.log-line { display: grid; grid-template-columns: 130px 1fr; gap: var(--sp-4); padding: 0.5rem 0.8rem; font-family: var(--font-mono); font-size: var(--fs-xs); border-bottom: 1px solid var(--border); }
.log-line:last-child { border-bottom: 0; }
.log-line .ts { color: var(--text-muted); }
.log-line .ev { color: var(--text-secondary); }
.log-line .ev b { color: var(--text); font-weight: 600; }

/* ---------- COMPARISON TABLE ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; background: var(--surface); }
table.compare th, table.compare td { padding: 1rem 1.1rem; text-align: center; border-bottom: 1px solid var(--border); }
table.compare thead th { font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 600; background: var(--bg-subtle); position: sticky; top: 0; }
table.compare thead th.feat { text-align: left; }
table.compare thead th.us { background: var(--accent-soft); color: var(--accent); border-bottom: 2px solid var(--accent); position: relative; }
table.compare tbody td.feat { text-align: left; font-weight: 500; font-size: var(--fs-sm); color: var(--text); }
table.compare tbody td.us { background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tbody tr:hover td { background: var(--bg-subtle); }
table.compare tbody tr:hover td.us { background: var(--accent-soft); }
.tick { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.tick.yes { background: var(--tier-auto-bg); color: var(--tier-auto-fg); }
.tick.no { color: var(--text-muted); }
.tick.partial { background: var(--tier-bulk-bg); color: var(--tier-bulk-fg); }
.cell-note { font-size: var(--fs-xs); color: var(--text-muted); display: block; margin-top: 2px; }

/* ---------- PRICING ---------- */
.billing-toggle { display: inline-flex; align-items: center; gap: var(--sp-3); padding: 0.3rem; border-radius: var(--r-full); background: var(--bg-sunken); border: 1px solid var(--border); margin-inline: auto; }
.billing-toggle button { border: 0; background: transparent; font-family: var(--font-head); font-weight: 500; font-size: var(--fs-sm); padding: 0.5rem 1rem; border-radius: var(--r-full); color: var(--text-secondary); transition: all 0.2s; }
.billing-toggle button.active { background: var(--surface); color: var(--text); box-shadow: var(--sh-sm); }
.billing-toggle .save { font-size: var(--fs-xs); color: var(--tier-auto-fg); font-weight: 600; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: var(--sp-5); position: relative; }
.price-card.featured { border-color: var(--accent); box-shadow: var(--sh-lg); }
.price-card.featured::before { content: "Most popular"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: var(--r-full); white-space: nowrap; }
.price-card .tier-name { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-lg); }
.price-card .tier-aud { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 2px; min-height: 2.6em; }
.price-card .price { display: flex; align-items: baseline; gap: 0.3rem; margin: var(--sp-4) 0 0.2rem; }
.price-card .price .amt { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-3xl); letter-spacing: -0.02em; }
.price-card .price .per { font-size: var(--fs-sm); color: var(--text-muted); }
.price-card .price-sub { font-size: var(--fs-xs); color: var(--text-muted); min-height: 1.4em; margin-bottom: var(--sp-4); }
.price-card .btn { margin-bottom: var(--sp-5); }
.price-card .feat-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.price-card .feat-list li { display: flex; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--text-secondary); }
.price-card .feat-list li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--tier-auto); }
.price-card .feat-list li.muted { color: var(--text-muted); }
.price-card .feat-list li.muted svg { color: var(--text-muted); }
.price-card .sis-flag { margin-top: auto; padding-top: var(--sp-4); }
.sis-tag { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); font-family: var(--font-head); font-weight: 600; color: var(--accent); }

/* ---------- SOCIAL PROOF / CA ---------- */
.ca-section { background: var(--bg-subtle); }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-6); }
.proof-card { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); }
.proof-card .ph-avatar { width: 44px; height: 44px; border-radius: 50%; background: repeating-linear-gradient(45deg, var(--bg-sunken), var(--bg-sunken) 6px, var(--border) 6px, var(--border) 7px); border: 1px dashed var(--border-strong); }
.proof-card .ph-quote { color: var(--text-muted); font-style: italic; font-size: var(--fs-sm); }
.proof-card .ph-name { font-size: var(--fs-xs); color: var(--text-muted); }
.placeholder-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); background: var(--bg-sunken); border: 1px dashed var(--border-strong); padding: 0.15rem 0.45rem; border-radius: var(--r-sm); }
.logo-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); justify-content: center; }
.logo-ph { width: 130px; height: 48px; border-radius: var(--r-md); border: 1px dashed var(--border-strong); display: grid; place-items: center; color: var(--text-muted); font-size: var(--fs-xs); font-family: var(--font-head); background: var(--surface); }

/* ---------- FINAL CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--slate-900); border-radius: var(--r-2xl); padding: clamp(2.5rem, 5vw, 4.5rem); text-align: center; }
[data-theme="dark"] .cta-band { background: var(--surface-2); border: 1px solid var(--border); }
.cta-band .cta-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%); pointer-events: none; }
.cta-band h2, .cta-band p { color: #fff; position: relative; }
[data-theme="dark"] .cta-band h2 { color: var(--text); }
[data-theme="dark"] .cta-band p { color: var(--text-secondary); }
.cta-band p { color: var(--slate-300); margin: var(--sp-4) auto var(--sp-6); max-width: 48ch; position: relative; }
.cta-band .cta-actions { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding-block: var(--sp-8) var(--sp-6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--sp-6); margin-bottom: var(--sp-8); }
.footer-brand p { font-size: var(--fs-sm); color: var(--text-secondary); margin-top: var(--sp-3); max-width: 30ch; }
.footer h5 { font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-4); }
.footer-col a { display: block; font-size: var(--fs-sm); color: var(--text-secondary); padding: 0.3rem 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4); padding-top: var(--sp-5); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-muted); }
.footer-bottom .legal { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer-disclaimer { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--sp-4); line-height: 1.5; max-width: 70ch; }
.part-of { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: var(--sp-4); font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); transition: opacity 0.2s var(--ease-out); }
.part-of img { height: 20px; width: auto; display: block; filter: saturate(1.08) contrast(1.04) drop-shadow(0 1px 1.5px rgba(10, 55, 45, 0.28)); }
[data-theme="dark"] .part-of img { filter: saturate(1.05) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)); }
.part-of:hover { opacity: 0.7; }

/* ---------- MOTION ---------- */
:root { --ease-spring: cubic-bezier(0.25, 1.05, 0.4, 1); }

/* Hero load-in (staggered) — transform-only so content is ALWAYS visible
   even if the animation timeline never advances (base opacity stays 1). */
.hero-copy > * { opacity: 1; }
body.loaded .hero-copy > * { animation: riseIn 0.85s var(--ease-out) both; }
body.loaded .hero-copy > *:nth-child(1) { animation-delay: 0.06s; }
body.loaded .hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
body.loaded .hero-copy > *:nth-child(3) { animation-delay: 0.22s; }
body.loaded .hero-copy > *:nth-child(4) { animation-delay: 0.30s; }
body.loaded .hero-copy > *:nth-child(5) { animation-delay: 0.38s; }
.flow { opacity: 1; }
body.loaded .flow { animation: flowIn 0.95s var(--ease-out) 0.22s both; }
@keyframes riseIn { from { transform: translateY(22px); } to { transform: none; } }
@keyframes flowIn { from { transform: translateY(26px) scale(0.975); } to { transform: none; } }

/* Idle float on the hero card + connectors */
body.loaded .flow { will-change: transform; }
@media (min-width: 981px) {
  body.loaded .flow.float { animation: flowIn 0.95s var(--ease-out) 0.22s both, floatY 7s ease-in-out 1.4s infinite; }
}
@keyframes floatY { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Scroll reveal — variants + spring + per-item stagger */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 0.95s var(--ease-spring); transition-delay: var(--rd, 0ms); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.rv-left  { transform: translateX(-34px); }
.reveal.rv-right { transform: translateX(34px); }
.reveal.rv-scale { transform: translateY(20px) scale(0.93); }
.reveal.rv-rot   { transform: translateY(30px) rotate(-1.3deg); }
.reveal.in.rv-left, .reveal.in.rv-right, .reveal.in.rv-scale, .reveal.in.rv-rot { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .flow { opacity: 1 !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .reveal.rv-left,
  .reveal.rv-right { transform: translateY(24px); }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 100%; }
  .engine-grid, .tier-panel.active { grid-template-columns: 1fr; }
  .loop-diagram { grid-template-columns: 1fr; }
  .loop-sync { transform: rotate(90deg); margin-block: var(--sp-2); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .desktop-only { display: none; }
  .nav-burger { display: grid; }
}
@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tier-tab { min-width: 100%; }
  .flow-stage { grid-template-columns: 1fr; gap: var(--sp-4); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav .container { gap: 0.5rem; }
  .nav-actions { gap: 0.4rem; }
  .brand { gap: 0.35rem; font-size: 1rem; }
  .brand .sub { display: none; }
  .nav-actions .btn-primary {
    padding: 0.68rem 0.85rem;
    font-size: 0.78rem;
  }
  .theme-toggle,
  .nav-burger { width: 36px; height: 36px; }
  .hero { padding-block: 2.25rem 3rem; }
  .hero h1 { font-size: 2.35rem; }
  .hero-sub { font-size: 1rem; }
  .hero-cta { align-items: center; gap: 0.8rem; }
  .hero-cta .btn { width: auto; }
  .announce { align-items: flex-start; }
  .flow { padding: 0.85rem; }
  .flow-head { align-items: flex-start; flex-wrap: wrap; gap: 0.6rem; }
  .queue-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding: 0.75rem;
  }
  .queue-item .conf-bar { display: none; }
  .log-line { grid-template-columns: 1fr; gap: 0.1rem; }
  .cta-band { border-radius: var(--r-xl); }
}

@media (max-width: 350px) {
  .nav-actions .theme-toggle { display: none; }
  .hero h1 { font-size: 2.1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

@media (min-width: 761px) and (max-height: 700px) {
  .hero { padding-block: 2.25rem 3rem; }
  .hero h1 { font-size: 3rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 1.25rem; }
  .hero-meta { margin-top: 1.25rem; }
}
