/* Revenue Alchemy: shared styles
   Brand tokens: charcoal background, gold accent, electric blue secondary,
   Cormorant Garamond headings, Montserrat body, skewed gold buttons. */

:root {
  --bg: #1c1c1e;
  --surface: #252527;
  --surface-2: #2e2e30;
  --text: #fafaf8;
  --muted: #bdbdb7;
  --gold: #ffd700;
  --gold-deep: #c9a800;
  --electric: #00d4ff;
  --electric-deep: #0099cc;
  --electric-glow: rgba(0, 212, 255, 0.25);
  --gold-glow: rgba(255, 215, 0, 0.25);
  --line: rgba(255, 255, 255, 0.12);
  --gold-line: rgba(255, 215, 0, 0.38);
  --electric-line: rgba(0, 212, 255, 0.35);
  --radius: 4px;
  --wrap: 1120px;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff3a3; }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 300; line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 400; }
h1 em, h2 em, h3 em { color: var(--gold); font-style: italic; font-weight: 300; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.prose { max-width: 66ch; color: var(--muted); }
.prose strong, .lead strong { color: var(--text); font-weight: 600; }
.small { font-size: 0.875rem; color: var(--muted); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--electric); margin: 0 0 1.4rem;
}
.eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--electric); flex: none; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; margin: 2rem 0 1.4rem; }
.btn {
  display: inline-block; position: relative;
  padding: 15px 30px; border: 0; cursor: pointer;
  font: 700 0.76rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: var(--bg); background: var(--gold);
  transform: skewX(-12deg);
  transition: background .2s, color .2s, box-shadow .2s;
}
.btn > span { display: inline-block; transform: skewX(12deg); }
.btn:hover { background: #fff3a3; color: var(--bg); box-shadow: 0 0 20px var(--gold-glow); }
.btn.ghost { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.btn.ghost:hover { background: rgba(255, 215, 0, 0.1); color: #fff3a3; box-shadow: inset 0 0 0 1px var(--gold), 0 0 20px var(--gold-glow); }
.btn.sm { padding: 12px 20px; font-size: 0.68rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(28, 28, 30, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { height: 42px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-size: 1.45rem; letter-spacing: 0.02em; }
.brand-tag { font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--electric); text-shadow: 0 0 8px var(--electric-glow); transition: text-shadow 0.3s ease; }
.brand:hover .brand-tag { text-shadow: 0 0 12px rgba(0, 212, 255, 0.5); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav a.link { color: var(--muted); text-decoration: none; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; padding: 8px 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--text); border-bottom-color: var(--electric); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); padding: 10px 14px; font: 600 0.72rem var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; border-radius: var(--radius); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 24px; display: none; }
  .nav.open, .no-js .nav { display: flex; }
  .no-js .nav-toggle { display: none; }
  .no-js .nav { position: static; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a.link { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
  .nav .btn { align-self: flex-start; margin: 20px 0 0 8px; }
}

/* Sections */
.section { padding-block: clamp(56px, 9vw, 108px); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.hero { padding-block: clamp(64px, 12vw, 148px) clamp(56px, 9vw, 112px); background: radial-gradient(1000px 420px at 85% -10%, var(--electric-glow), transparent 70%), radial-gradient(800px 360px at 15% -20%, var(--gold-glow), transparent 60%); }
.hero h1 { max-width: 14ch; }
.page-hero { padding-block: clamp(56px, 9vw, 108px) clamp(40px, 6vw, 72px); background: radial-gradient(900px 360px at 90% -20%, var(--electric-glow), transparent 70%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); max-width: 18ch; }
.audience { font-size: 0.86rem; color: var(--muted); border-left: 2px solid var(--electric); padding-left: 14px; max-width: 52ch; margin-top: 2.2rem; }

/* Grids and cards */
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.three { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid.two { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 28px 26px 26px; border-radius: 0 0 var(--radius) var(--radius); display: flex; flex-direction: column; transition: border-top-color 0.3s ease, box-shadow 0.3s ease; }
.card:hover { border-top-color: var(--electric); box-shadow: 0 0 30px rgba(0, 212, 255, 0.08); }
.section.alt .card { background: var(--bg); }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.9em; }
.card .more { margin-top: auto; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.card .more:hover { text-decoration: underline; color: var(--electric); }
.num { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; color: var(--gold); opacity: 0.85; margin-bottom: 14px; }
.tick-list { list-style: none; margin: 0 0 1.2em; padding: 0; }
.tick-list li { position: relative; padding: 0 0 12px 30px; color: var(--muted); }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 12px; height: 1px; background: var(--electric); box-shadow: 0 0 0 0 transparent; }
.tick-list li strong { color: var(--text); font-weight: 600; }

/* Stat band */
.stat { display: grid; grid-template-columns: auto 1fr; gap: 12px 40px; align-items: center; }
.stat .big { font-family: var(--font-head); font-weight: 300; font-size: clamp(4.5rem, 12vw, 8rem); line-height: 0.9; color: var(--gold); text-shadow: 0 0 30px var(--gold-glow); }
.stat p { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 40ch; margin: 0; color: var(--text); }
@media (max-width: 640px) { .stat { grid-template-columns: 1fr; } }

/* Diagonal line diagram */
.diag { list-style: none; margin: 0; padding: 0; counter-reset: layer; position: relative; }
.diag li { position: relative; margin: 0 0 18px; padding: 22px 24px 22px 26px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); transition: border-left-color 0.3s ease, box-shadow 0.3s ease; }
.diag li:hover { border-left-color: var(--electric); box-shadow: 0 0 24px rgba(0, 212, 255, 0.1); }
.section.alt .diag li { background: var(--bg); }
.diag .tag { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-bottom: 8px; }
.diag .layer { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--electric); }
.diag .vendor { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.08em; }
.diag h3 { margin: 0 0 6px; font-size: 1.5rem; }
.diag p { margin: 0 0 0.6em; color: var(--muted); font-size: 0.95rem; }
.diag p:last-child { margin-bottom: 0; }
.diag .opp { color: var(--text); }
.diag .opp b { color: var(--gold); font-weight: 600; letter-spacing: 0.06em; font-size: 0.72rem; text-transform: uppercase; margin-right: 6px; }
@media (min-width: 900px) {
  .diag li { width: min(620px, calc(100% - 216px)); }
  .diag li:nth-child(2) { margin-left: 72px; }
  .diag li:nth-child(3) { margin-left: 144px; }
  .diag li:nth-child(4) { margin-left: 216px; }
  .diag.compact li { width: min(560px, calc(100% - 216px)); }
  .diag li:not(:last-child)::after { content: ""; position: absolute; left: 106px; bottom: -19px; width: 1px; height: 19px; background: linear-gradient(to bottom, var(--gold), var(--electric)); }
}
@media (max-width: 899px) {
  .diag li:not(:last-child)::after { content: ""; position: absolute; left: 34px; bottom: -19px; width: 1px; height: 19px; background: linear-gradient(to bottom, var(--gold), var(--electric)); }
}

.quote { border-left: 2px solid var(--electric); padding: 6px 0 6px 26px; margin: 2rem 0; max-width: 62ch; }
.quote p { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.35; font-weight: 300; color: var(--text); margin: 0; }

/* Timeline */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 150px 1fr; gap: 12px 32px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .when { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--electric); padding-top: 0.5rem; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; max-width: 62ch; font-size: 0.95rem; }
@media (max-width: 640px) { .steps li { grid-template-columns: 1fr; gap: 4px; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.92rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); background: var(--surface); font-weight: 700; }
td { color: var(--muted); }
td:first-child { color: var(--text); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* FAQ */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-family: var(--font-head); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.25; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--electric); font: 300 1.8rem var(--font-body); transition: transform .2s; }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 0 26px; color: var(--muted); max-width: 68ch; }
details > div p:last-child { margin-bottom: 0; }
details ul { padding-left: 1.2em; }
details li { margin-bottom: 0.5em; }
.prompt { font-family: var(--font-head); font-style: italic; font-size: 1.15rem; color: var(--electric); }

/* Callouts and CTA band */
.callout { background: var(--surface-2); border: 1px solid var(--electric-line); padding: 24px 26px; border-radius: var(--radius); box-shadow: inset 0 0 30px rgba(0, 212, 255, 0.04); }
.callout p:last-child { margin-bottom: 0; }
.cta-band { text-align: left; background: linear-gradient(120deg, #2a2a2c, #1c1c1e); border-block: 1px solid var(--gold-line); }
.cta-band h2 { max-width: 20ch; }
.cta-band .lead { margin-bottom: 0; }

/* Form embed */
.embed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.embed iframe { width: 100%; min-height: 600px; border: 0; display: block; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k { display: block; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 2px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 36px; background: #171719; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--electric); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer p { color: var(--muted); font-size: 0.86rem; margin-bottom: 0.6em; }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.78rem; color: #8f8f89; }

/* Prevent grid children from forcing horizontal page scroll (tables) */
.grid > *, .grid.two > * { min-width: 0; }
.visually-hidden { position: absolute; left: -9999px; }