/* Rexum.Alo - Base + shared components (site + app) */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle at 12% 6%, rgba(200,162,77,.08), transparent 28rem), radial-gradient(circle at 92% 18%, rgba(14,43,34,.05), transparent 32rem);
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: var(--lh-tight); margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-1); }
h3 { font-size: var(--fs-2); }
h4 { font-size: var(--fs-3); }
p  { margin: 0 0 1em; }
a  { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a.btn, a.brand, a.tab, a.nav-burger { text-decoration: none; }
a:hover { text-decoration: underline; }
ul,ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
img,svg { max-width: 100%; display: inline-block; vertical-align: middle; }
.ri { width: 1em; height: 1em; fill: currentColor; }
code,kbd { font-family: var(--font-mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

::selection { background: var(--rex-gold); color: var(--rex-black); }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--max-site); margin: 0 auto; padding: 0 var(--sp-5); }
.section { padding: var(--sp-8) 0; }
.section--tight { padding: var(--sp-6) 0; }
.section--brand { background: var(--brand); color: var(--brand-ink); }
.section--brand h2, .section--brand h3 { color: var(--rex-white); }
.section--brand .card h2 { color: var(--ink); }

/* Eyebrow + section heads */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: var(--fs-meta); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: var(--sp-3);
}
.section--brand .eyebrow { color: var(--rex-gold); }
.lede { font-size: 1.08em; color: var(--ink-2); max-width: 640px; }
.section--brand .lede { color: rgba(242,239,230,.82); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  line-height: 1; padding: 13px 22px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn svg { width: 17px; height: 17px; }

.btn--gold    { background: var(--rex-gold); color: var(--rex-black); }
.btn--gold:hover { background: var(--rex-gold-600); color: var(--rex-black); box-shadow: var(--shadow-2); }
.btn--dark    { background: var(--rex-green); color: var(--rex-cream); }
.btn--dark:hover { background: var(--rex-green-600); color: var(--rex-white); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); }
.btn--outline-dark { background: transparent; color: var(--rex-cream); border-color: rgba(242,239,230,.4); }
.btn--outline-dark:hover { border-color: var(--rex-cream); color: var(--rex-white); }
.btn--light  { background: var(--rex-cream); color: var(--rex-green); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn--icon { padding: 10px; border-radius: var(--r-md); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-meta); font-weight: 700; line-height: 1;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.badge--gold   { background: var(--rex-gold-50); color: var(--rex-gold-600); border-color: #E3D4AC; }
.badge--green  { background: var(--rex-green-50); color: var(--rex-green-600); border: none; }
.badge--success{ background: var(--success-bg); color: var(--success); border: none; }
.badge--warning{ background: var(--warning-bg); color: var(--warning); border: none; }
.badge--danger { background: var(--danger-bg); color: var(--danger); border: none; }
.badge--info   { background: var(--info-bg); color: var(--info); border: none; }
.badge--dark   { background: var(--rex-green); color: var(--rex-cream); border: none; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.card--hover { transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card--tint  { background: var(--surface-2); }
.card--brand { background: var(--rex-green); color: var(--rex-cream); border-color: var(--rex-green); }
.card--brand h2 { color: var(--rex-white); }
.card h2, article.card h2 { font-size: var(--fs-2); }
.rows h2 { font-size: var(--fs-3); }

/* Grid helpers */
.grid { display: grid; gap: var(--sp-5); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 639px)  { .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

.bento { display: grid; grid-template-columns: repeat(6,1fr); gap: var(--sp-4); }
.bento .card { margin: 0; }
.bento-span-2 { grid-column: span 2; }
.bento-span-3 { grid-column: span 3; }
.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2,1fr); }
  .bento-span-2,.bento-span-3,.bento-span-4,.bento-span-6 { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav .vertical-menu-panel { transition: none; }
}
@media (max-width: 639px) { .bento { grid-template-columns: 1fr; } .bento .card { grid-column: span 1 !important; } }

/* Forms */
.field { display: block; margin-bottom: var(--sp-4); }
.field-advanced { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0 2px; }
.field-advanced summary { cursor: pointer; font-size: var(--fs-small); font-weight: 700; color: var(--brand); }
.field-advanced summary::marker { color: var(--accent-strong); }
.field label { display: block; font-size: var(--fs-small); font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field .hint { font-size: var(--fs-meta); color: var(--ink-3); margin-top: 4px; }
.input, select.input, textarea.input {
  width: 100%; font-family: var(--font-body); font-size: 15px;
  padding: 11px 14px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(200,162,77,.18); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: var(--fs-meta); margin-top: 4px; }
.checkbox, .radio { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.checkbox input, .radio input { margin-top: 2px; accent-color: var(--rex-gold-600); width: 17px; height: 17px; }

/* Stepper */
.stepper { display: flex; align-items: center; list-style: none; padding: 0; margin: 0 0 var(--sp-6); }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: var(--fs-small); font-weight: 600; }
.stepper .dot {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--ink-2);
  font-size: var(--fs-meta); font-weight: 700;
}
.stepper li::after { content: ""; flex: 1; height: 1.5px; background: var(--line); margin: 0 8px; }
.stepper li:last-child::after { display: none; }
.stepper li.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.stepper li.active { color: var(--ink); }
.stepper li.active .dot { background: var(--rex-gold); border-color: var(--rex-gold); color: var(--rex-black); }
.stepper li.error .dot { background: var(--danger); border-color: var(--danger); color: #fff; }
@media (max-width: 639px) { .stepper li span:not(.dot) { display: none; } .stepper li { justify-content: center; } }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: var(--sp-5); overflow-x: auto; }
.tabs-wrap { flex-wrap: wrap; }
.tab {
  padding: 10px 16px; font-size: 14px; font-weight: 700; color: var(--ink-2);
  border: 0; background: none; cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand); border-bottom-color: var(--rex-gold); }

/* Alerts */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: var(--r-md); padding: 14px 16px;
  font-size: 14px; line-height: 1.5; margin-bottom: var(--sp-4);
}
.alert svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }
.alert b { display: block; }
.alert--success { background: var(--success-bg); color: var(--success); }
.alert--warning { background: var(--warning-bg); color: var(--warning); }
.alert--danger  { background: var(--danger-bg);  color: var(--danger); }
.alert--info    { background: var(--info-bg);    color: var(--info); }
.alert--brand   { background: var(--rex-green);  color: var(--rex-cream); }

/* Structured rows */
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { display: flex; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); margin: 0; }
.rows li:last-child { border-bottom: 0; }
.row-ico { width: 40px; height: 40px; border-radius: var(--r-md); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: var(--rex-green-50); color: var(--rex-green-600); }
.row-ico--gold { background: var(--rex-gold-50); color: var(--rex-gold-600); }
.row-ico--slate { background: #E8EDF2; color: var(--rex-slate); }
.rows h4 { margin-bottom: 2px; }
.rows p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* Stats */
.stat b { display: block; font-family: var(--font-display); font-size: 34px; letter-spacing: -.02em; color: var(--ink); }
.stat span { color: var(--ink-2); font-size: var(--fs-small); }
.section--brand .stat b { color: var(--rex-white); }
.section--brand .stat span { color: rgba(242,239,230,.75); }

/* Demo banner */
.demo-note { max-width: var(--max-site); margin: var(--sp-4) auto 0; padding: 0 var(--sp-5); }
.demo-note .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--info-bg); color: var(--info); border: 1px dashed #9FBFD8;
  border-radius: var(--r-md); padding: 10px 14px; font-size: var(--fs-meta);
}
.demo-note b { font-weight: 800; }

/* Table */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line-strong); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.cal-grid > * { min-width: 0; overflow-wrap: anywhere; }

/* Site header / nav */
.site-nav { position: sticky; top: 0; z-index: 50; isolation: isolate; background: rgba(242,239,230,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-nav .inner { position: relative; max-width: var(--max-site); margin: 0 auto; padding: 0 var(--sp-5); display: flex; align-items: center; gap: var(--sp-4); height: 64px; min-width: 0; }
.site-nav .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--rex-green); letter-spacing: -.01em; text-decoration: none; }
.site-nav .brand small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong); line-height: 1; }
.site-nav .links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.site-nav .links a { padding: 8px 13px; border-radius: var(--r-pill); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.site-nav .links a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.site-nav .links a.active { color: var(--brand); background: var(--rex-green-50); }
.site-nav details { position: relative; }
.site-nav details summary { list-style: none; cursor: pointer; padding: 8px 13px; border-radius: var(--r-pill); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.site-nav details summary::-webkit-details-marker { display: none; }
.site-nav details summary svg { width: 14px; height: 14px; }
.site-nav details summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.site-nav details[open] summary { background: var(--rex-green-50); color: var(--brand); }
.site-nav .vertical-menu-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; display: grid; min-width: 220px; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast); visibility: hidden; }
.site-nav details[open] .vertical-menu-panel { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; }
.site-nav .vertical-menu-panel a { display: block; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink-2); white-space: nowrap; }
.site-nav .vertical-menu-panel a:hover, .site-nav .vertical-menu-panel a:focus-visible { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.site-nav .cta { margin-left: var(--sp-2); }
.nav-burger { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); padding: 6px; }
@media (max-width: 1199px) {
  .site-nav .links { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: var(--sp-3) var(--sp-5) calc(var(--sp-3) + env(safe-area-inset-bottom)); box-shadow: var(--shadow-2); }
  .site-nav .links.open { display: flex; }
  .site-nav .links a { min-height: 44px; padding: 12px; }
  .site-nav .links details { width: 100%; }
  .site-nav .links .vertical-menu-panel { position: static; display: none; min-width: 0; padding: 0 0 0 12px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; pointer-events: auto; transform: none; visibility: visible; }
  .site-nav .links details[open] .vertical-menu-panel { display: grid; }
  .site-nav .links .vertical-menu-panel a { padding: 10px 12px; white-space: normal; }
  .site-nav .cta { margin-left: auto; }
  .nav-burger { display: inline-flex; }
}

/* Footer */
.site-foot { background: var(--rex-green); color: rgba(242,239,230,.75); padding: var(--sp-7) 0 var(--sp-5); margin-top: var(--sp-8); }
.site-foot .grid { gap: var(--sp-6); }
.site-foot h2, .site-foot h3 { color: var(--rex-cream); font-size: 14px; margin-bottom: var(--sp-3); }
.site-foot ul { list-style: none; padding: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: rgba(242,239,230,.75); font-size: 14px; }
.site-foot a:hover { color: var(--rex-white); }
.site-foot .legal { border-top: 1px solid rgba(242,239,230,.14); margin-top: var(--sp-6); padding-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: var(--fs-meta); justify-content: space-between; }
.site-foot .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--rex-cream); margin-bottom: var(--sp-3); text-decoration: none; }

/* Hero */
.hero { padding: var(--sp-8) 0 var(--sp-7); position: relative; overflow: hidden; }
.hero--brand { background: var(--rex-green); color: var(--rex-cream); }
.hero--brand::before { content: ""; position: absolute; width: 42rem; height: 42rem; right: -12rem; top: -18rem; border-radius: 50%; background: radial-gradient(circle, rgba(200,162,77,.17), transparent 66%); pointer-events: none; }
.hero--brand::after { content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none; background-image: linear-gradient(rgba(242,239,230,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(242,239,230,.18) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(90deg, transparent, #000 30%, #000 72%, transparent); }
.hero--brand h1 { color: var(--rex-white); }
.hero--brand .lede { color: rgba(242,239,230,.8); }
.hero .container { position: relative; z-index: 2; }
.hero--brand h1 { max-width: 760px; font-size: clamp(42px, 5.2vw, 72px); letter-spacing: -.045em; }
.hero-disclosure { color: rgba(242,239,230,.56); font-size: 12px; margin: 14px 0 0; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero-asset { margin-top: var(--sp-7); }

/* Phone mock */
.phone { width: min(320px, 100%); margin: 0 auto; background: var(--rex-black); border-radius: 36px; padding: 10px; box-shadow: 20px 24px 50px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.18); transform: rotate(1.4deg); }
.phone .screen { background: var(--surface); border-radius: 28px; overflow: hidden; min-height: 560px; display: flex; flex-direction: column; }
.phone .call-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--rex-green); color: var(--rex-cream); }
.phone .call-head b { font-size: 14px; }
.phone .call-head span { font-size: 11px; opacity: .75; }
.phone .call-body { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.call-identity { display: flex; align-items: center; gap: 10px; padding: 10px 0 4px; }
.call-avatar { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--rex-green-50); color: var(--rex-green); flex: 0 0 auto; }
.call-avatar svg { width: 21px; height: 21px; }
.call-identity b { display: block; font-size: 14px; }
.call-identity span { color: var(--ink-3); font-size: 11px; }
.call-meta { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); font-size: 11px; border-top: 1px solid var(--line); padding-top: 10px; }
.call-caption { color: var(--ink-2); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.call-result { display: flex; align-items: flex-start; gap: 8px; background: var(--success-bg); color: var(--success); border-radius: var(--r-md); padding: 10px; font-size: 12px; line-height: 1.4; }
.call-result svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.call-console { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: var(--sp-4); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 12px 26px rgba(14,43,34,.07); }
.call-console__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.call-console__head svg { width: 19px; height: 19px; color: var(--success); }
.call-console__head b { display: block; font-size: 14px; }
.call-console__head span { display: block; color: var(--ink-3); font-size: 11px; }
.call-console__transcript { display: grid; gap: 8px; }
.transcript-line { display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.45; }
.transcript-line strong { color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.transcript-line span { color: var(--ink); }
.call-console__result { display: flex; align-items: flex-start; gap: 9px; background: var(--success-bg); color: var(--success); border-radius: var(--r-md); padding: 11px 12px; font-size: 13px; line-height: 1.4; }
.call-console__result svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.call-console--compact { padding: 0; border: 0; background: transparent; gap: 11px; }
.call-console--compact .call-console__head { background: var(--surface-2); border-radius: var(--r-md); padding: 10px 12px; border-bottom: 0; }
.call-console--compact .transcript-line { grid-template-columns: 64px 1fr; font-size: 12px; }
.call-console--dashboard { margin-top: 12px; }
@media (max-width: 639px) { .transcript-line { grid-template-columns: 1fr; gap: 2px; } .transcript-line strong { padding-top: 0; } }
.bubble { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.45; }
.bubble--in  { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; color: var(--ink); }
.bubble--out { align-self: flex-end; background: var(--rex-green); color: var(--rex-cream); border-bottom-right-radius: 4px; }
.bubble .ref { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 6px; background: var(--success-bg); color: var(--success); font-weight: 700; font-size: 11px; }

/* Call thread - signature */
.call-thread { display: flex; align-items: center; gap: 6px; height: 34px; }
.call-thread .seg { flex: 1; height: 4px; border-radius: 4px; background: currentColor; opacity: .18; }
.call-thread .seg.on { opacity: 1; }
.call-thread--live .seg { animation: segpulse 1.1s ease-in-out infinite; opacity: .35; }
.call-thread--live .seg:nth-child(2){ animation-delay:.12s } .call-thread--live .seg:nth-child(3){ animation-delay:.24s }
.call-thread--live .seg:nth-child(4){ animation-delay:.36s } .call-thread--live .seg:nth-child(5){ animation-delay:.48s }
.call-thread--live .seg:nth-child(6){ animation-delay:.6s } .call-thread--live .seg:nth-child(7){ animation-delay:.72s }
.call-thread--live .seg:nth-child(8){ animation-delay:.84s }
@keyframes segpulse { 0%,100% { opacity:.25; transform:scaleY(1) } 50% { opacity:1; transform:scaleY(2) } }

/* Editorial context blocks */
.section--soft { background: var(--surface-2); }
.editorial-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 7vw, 96px); align-items: center; }
.photo-frame { position: relative; padding: 8px; border-radius: 28px; background: rgba(14,43,34,.12); box-shadow: 0 20px 48px rgba(14,43,34,.14); }
.photo-frame::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,253,247,.62); border-radius: 21px; pointer-events: none; }
.photo-frame img { width: 100%; height: clamp(280px, 32vw, 480px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 21px; display: block; filter: saturate(.78) contrast(.98); }
.image-note { color: var(--ink-3); font-size: 11px; margin: 10px 4px 0; }
.editorial-copy h2 { max-width: 620px; }
.editorial-copy > p:not(.eyebrow):not(.image-note) { color: var(--ink-2); max-width: 570px; }
.editorial-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.editorial-list li { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--ink); font-weight: 700; }
.editorial-list svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--success); margin-top: 2px; }
.hero-image-panel { position: relative; max-width: 520px; margin-left: auto; }
.hero-image-panel .photo-frame { background: rgba(242,239,230,.12); }
.hero-image-panel .photo-frame img { height: min(42vw, 520px); aspect-ratio: 5 / 4; filter: saturate(.72) contrast(1.02); }
.hero-image-panel .call-float { position: absolute; left: -34px; bottom: 26px; max-width: 260px; padding: 14px 16px; border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 42px rgba(0,0,0,.2); }
.hero-image-panel .call-float b { display: block; font-family: var(--font-display); font-size: 15px; }
.hero-image-panel .call-float span { display: block; color: var(--ink-2); font-size: 12px; margin-top: 4px; }
.proof-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-rail > div { padding: 18px 22px 18px 0; border-right: 1px solid var(--line); }
.proof-rail > div + div { padding-left: 22px; }
.proof-rail > div:last-child { border-right: 0; }
.proof-rail b { display: block; font-family: var(--font-display); font-size: 18px; }
.proof-rail span { display: block; color: var(--ink-2); font-size: 13px; margin-top: 4px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: var(--sp-4) 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); }
.faq summary::after { content: "+"; font-size: 20px; color: var(--accent-strong); flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-a { color: var(--ink-2); font-size: 14px; padding: var(--sp-3) var(--sp-6) 0 0; }

/* Pricing */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card .price { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.price-card .price small { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.price-card ul { list-style: none; padding: 0; margin: var(--sp-4) 0 var(--sp-5); flex: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.price-card li svg { width: 16px; height: 16px; color: var(--success); flex: 0 0 auto; margin-top: 2px; }
.price-card--feature { border: 2px solid var(--rex-gold); box-shadow: var(--shadow-2); }
.price-card--feature .flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.price-note { font-size: var(--fs-meta); color: var(--ink-3); }

/* Logo cloud */
.logo-cloud { display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: center; justify-content: center; opacity: .7; }
.logo-cloud .logo-item { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.logo-item svg { width: 20px; height: 20px; }

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: steps; display: grid; gap: var(--sp-6); }
.steps--2 { grid-template-columns: repeat(2,1fr); } .steps--3 { grid-template-columns: repeat(3,1fr); } .steps--4 { grid-template-columns: repeat(4,1fr); }
.step { counter-increment: steps; position: relative; padding-left: 56px; }
.step::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--rex-green); color: var(--rex-gold);
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
}
@media (max-width: 1023px){ .steps--3,.steps--4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 767px){
  .site-nav .inner { height: 64px; min-height: 64px; padding: 0 14px; gap: 8px; }
  .site-nav .brand { min-width: 0; flex: 1 1 auto; font-size: 16px; }
  .site-nav .brand small { display: none; }
  .site-nav .cta { margin-left: 0; padding: 10px 11px; font-size: 11px; }
  .nav-burger { width: 36px; min-width: 36px; padding: 8px 5px; }
  .editorial-grid { grid-template-columns: 1fr; gap: 28px; }
  .photo-frame img, .hero-image-panel .photo-frame img { height: 320px; }
  .hero-image-panel .call-float { left: 14px; bottom: 14px; }
  .proof-rail { grid-template-columns: 1fr; }
  .proof-rail > div, .proof-rail > div + div { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-rail > div:last-child { border-bottom: 0; }
}
@media (max-width: 639px){ .steps--2,.steps--3,.steps--4 { grid-template-columns: 1fr; } }
@media (max-width: 639px){
  .hero-actions .btn,
  .container.center > .btn--lg { width: 100%; max-width: 100%; white-space: normal; text-align: center; }
  .cal-grid { grid-template-columns: minmax(70px, .9fr) repeat(2, minmax(0, 1fr)) !important; }
}

/* Utility */
.muted { color: var(--ink-2); }
.center { text-align: center; }
.mt-1{margin-top:var(--sp-2)} .mt-2{margin-top:var(--sp-4)} .mt-3{margin-top:var(--sp-5)} .mt-4{margin-top:var(--sp-6)} .mt-5{margin-top:var(--sp-7)}
.mb-0{margin-bottom:0} .mb-1{margin-bottom:var(--sp-2)} .mb-2{margin-bottom:var(--sp-4)} .mb-3{margin-bottom:var(--sp-5)}
.flex{display:flex;gap:var(--sp-3);align-items:center} .flex--wrap{flex-wrap:wrap} .flex--between{justify-content:space-between}
.grow{flex:1}
@media (max-width:639px){ .hide-sm{display:none !important} }
@media (max-width:1023px){ .hide-md{display:none !important} }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }


/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 12px);
  background: var(--rex-green); color: var(--rex-cream);
  padding: 12px 20px; border-radius: var(--r-md); font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-3); opacity: 0; transition: opacity var(--t-med), transform var(--t-med);
  z-index: 100; pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast--success { background: var(--success); color: #fff; }
.toast--danger { background: var(--danger); color: #fff; }
