/* ==========================================================================
   RevUp corporate site — design system
   Ported from the Webv2 Claude Design canvas (dark theme, Figtree + IBM Plex Mono).
   ========================================================================== */

:root {
  --bg:        #0A0B14;
  --bg-alt:    #08090F;
  --bg-panel:  #101120;
  --bg-panel2: #16172A;
  --bg-card:   #121324;

  --ink:       #FFFFFF;
  --ink-1:     #EDEEF5;
  --ink-2:     #A0A3B8;   /* muted body */
  --ink-3:     #6E7190;   /* dim labels */
  --ink-4:     #7A7E9E;

  --line-1:    #1C1D2E;
  --line-2:    #22243A;
  --line-3:    #2A2C44;
  --line-4:    #33354E;

  --pink:      #CF0057;   /* primary */
  --pink-br:   #FF3D82;   /* bright accent */
  --pink-hi:   #F0176F;   /* hover */
  --orange:    #F7941D;
  --amber:     #FFB020;
  --green:     #2ECC8F;
  --red:       #FF5C5C;

  --font-sans: 'Figtree', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1200px;
  --pad:  32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--pink-br); text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--pink-hi); }

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* --- layout ------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section { border-bottom: 1px solid var(--line-1); }
.section--alt { background: var(--bg-alt); }
.section__inner { max-width: var(--wrap); margin: 0 auto; padding: 110px var(--pad); }
.section__inner--tight { padding: 64px var(--pad); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pink-br); margin-bottom: 20px;
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }

.lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.measure { max-width: 62ch; }
.measure-sm { max-width: 52ch; }

h2.h2 { font-family: var(--font-sans); font-weight: 600; font-size: 46px; line-height: 1.1; }
h3.h3 { font-family: var(--font-sans); font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.btn--lg { font-size: 16px; padding: 15px 28px; border-radius: 10px; }
.btn--primary { background: var(--pink); color: #fff; font-weight: 600; }
.btn--primary:hover { background: var(--pink-hi); color: #fff; }
.btn--outline { border-color: var(--line-4); color: var(--ink-1); background: rgba(255,255,255,0.02); }
.btn--outline:hover { border-color: #565A78; color: #fff; }
.btn--ghost { color: var(--ink-2); }
.btn--ghost:hover { color: var(--ink-1); }
.btn--block { display: flex; width: 100%; }

/* --- top nav ------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,11,20,0.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-1);
}
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad);
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav__links a { color: var(--ink-2); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink-1); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: 0; color: var(--ink-1); cursor: pointer; padding: 8px; }
.nav__toggle svg { width: 24px; height: 24px; }

/* --- hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-1); }
.hero__glow, .glow {
  position: absolute; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(207,0,87,0.24), rgba(10,11,20,0) 62%);
}
.glow--warm { background: radial-gradient(ellipse at center, rgba(247,148,29,0.11), rgba(10,11,20,0) 65%); }
.hero__inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 96px var(--pad) 0; }
.hero__title {
  font-family: var(--font-sans); font-weight: 700; font-size: 74px; line-height: 1.02;
  letter-spacing: -0.035em; margin: 0 0 28px; max-width: 15ch; color: #fff;
}
.hero__title .accent { color: var(--pink-br); }
.hero__sub { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; margin: 0 0 40px; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border: 1px solid var(--line-3); border-radius: 999px;
  background: rgba(207,0,87,0.10); margin-bottom: 32px;
}
.badge__tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: var(--pink); padding: 3px 8px; border-radius: 999px;
}
.badge__text { font-size: 13px; color: var(--ink-2); }

.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.trust-row {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}
.trust-row .sep { color: var(--line-4); }

/* --- panels / cards ----------------------------------------------------- */
.panel {
  border: 1px solid var(--line-3); border-radius: 16px;
  background: linear-gradient(180deg, var(--bg-panel2), var(--bg-panel));
}
.panel--pad { padding: 40px; }
.card {
  border: 1px solid var(--line-3); border-radius: 12px; padding: 24px; background: var(--bg-panel);
}
.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.feature-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-2); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
}
.feature-steps > div { background: var(--bg); padding: 32px; }
.step__n { font-family: var(--font-mono); font-size: 11px; color: var(--pink-br); margin-bottom: 18px; }
.step__t { font-family: var(--font-sans); font-size: 19px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.step__d { font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* --- footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line-1); background: var(--bg-alt); }
.footer__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 48px var(--pad);
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand img { height: 24px; width: auto; }
.footer__tag { font-size: 13px; color: var(--ink-4); margin-left: 10px; }
.footer__links { display: flex; gap: 26px; font-size: 13px; flex-wrap: wrap; }
.footer__links a { color: var(--ink-3); }
.footer__links a:hover { color: var(--ink-1); }

/* --- segmented control / pills ------------------------------------------ */
.seg { display: inline-flex; gap: 6px; padding: 5px; border: 1px solid var(--line-3); border-radius: 10px; background: var(--bg); }
.pill {
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  padding: 9px 16px; border-radius: 7px; border: 0; cursor: pointer;
  background: transparent; color: var(--ink-2); transition: background 160ms ease, color 160ms ease;
}
.pill.is-active { background: var(--pink-br); color: #fff; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabbtn {
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  padding: 11px 20px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-3); background: transparent; color: var(--ink-2);
  transition: all 160ms ease;
}
.tabbtn.is-active { border-color: var(--pink-br); background: rgba(255,61,130,0.10); color: var(--pink-br); }

/* --- range slider ------------------------------------------------------- */
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; width: 100%; height: 18px; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--line-4); border-radius: 2px; }
input[type=range]::-moz-range-track { height: 2px; background: var(--line-4); border-radius: 2px; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%;
  background: var(--pink-br); border: 0; cursor: grab; box-shadow: 0 0 0 6px rgba(255,61,130,0.18);
}
input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--pink-br); border: 0; cursor: grab;
  box-shadow: 0 0 0 6px rgba(255,61,130,0.18);
}

/* --- FAQ ---------------------------------------------------------------- */
.faq__item { border-bottom: 1px solid var(--line-2); padding: 24px 0; cursor: pointer; }
.faq__q { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.faq__q > span:first-child { font-size: 17px; color: #fff; font-weight: 500; line-height: 1.4; }
.faq__sign { font-family: var(--font-mono); font-size: 18px; color: var(--pink-br); line-height: 1; flex: none; }
.faq__a { font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 70ch; padding-top: 14px; }

/* --- pricing ------------------------------------------------------------ */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.price-card {
  border: 1px solid var(--line-3); border-radius: 14px; padding: 28px; background: var(--bg-panel);
  display: flex; flex-direction: column; position: relative;
}
.price-card--feat { border-color: var(--pink-br); background: linear-gradient(180deg, rgba(207,0,87,0.14), var(--bg-panel)); }
.price-card__name { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.price-card__desc { font-size: 13px; color: var(--ink-3); margin-bottom: 22px; min-height: 38px; line-height: 1.5; }
.price-card__amt { font-size: 34px; font-weight: 700; color: #fff; letter-spacing: -0.03em; margin-bottom: 4px; }
.price-card__per { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-bottom: 24px; }
.price-card__feats { display: grid; gap: 10px; font-size: 13.5px; color: #CCCEDE; line-height: 1.5; margin-bottom: 28px; flex: 1; }
.price-card__badge {
  position: absolute; top: -11px; left: 28px; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: var(--pink);
  padding: 4px 10px; border-radius: 999px;
}

/* --- responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --pad: 20px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  /* Open menu: links + CTAs wrap into the nav bar's own background in normal flow, so nothing
     spills outside the panel. The logo + toggle stay on the first row. */
  .nav.is-open { background: rgba(10,11,20,0.98); border-bottom: 1px solid var(--line-1); }
  .nav.is-open .nav__inner { height: auto; flex-wrap: wrap; padding-bottom: 16px; row-gap: 0; }
  .nav.is-open .nav__links,
  .nav.is-open .nav__cta { display: flex; flex-direction: column; flex-basis: 100%; width: 100%; }
  .nav.is-open .nav__links { gap: 0; align-items: stretch; margin-top: 8px; border-top: 1px solid var(--line-2); padding-top: 6px; }
  .nav.is-open .nav__links a { padding: 12px 2px; }
  .nav.is-open .nav__cta { gap: 10px; margin-top: 14px; }
  .nav.is-open .nav__cta .btn { width: 100%; }
  .hero__title { font-size: 44px; }
  .hero__sub, .lead { font-size: 17px; }
  h2.h2 { font-size: 32px; }
  .section__inner { padding: 64px var(--pad); }
  .grid--2, .grid--3, .grid--4, .feature-steps, .price-grid { grid-template-columns: 1fr; }
  .feature-steps { display: grid; }
  .mockup-cols, .calc-grid, .tab-cols { grid-template-columns: 1fr !important; }
  #faq .section__inner { grid-template-columns: 1fr !important; gap: 32px !important; }
  /* Value-calculator bars: stack instead of forcing ~380px of min-width across a phone. */
  .calc-bars { flex-wrap: wrap; height: auto !important; }
  .calc-bars > div { min-width: 0 !important; flex-basis: 100% !important; min-height: 76px; border-radius: 8px !important; }
}
@media (max-width: 1100px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- article / prose (blog & legal) ------------------------------------- */
.article-head { border-bottom: 1px solid var(--line-1); }
.article-head__inner { max-width: 820px; margin: 0 auto; padding: 72px var(--pad) 40px; }
.article-head__meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.article-head h1 { font-size: 44px; line-height: 1.1; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.article-hero-img { max-width: 1000px; margin: 0 auto; padding: 32px var(--pad) 0; }
.article-hero-img img { width: 100%; border-radius: 16px; border: 1px solid var(--line-2); }

.article-body { max-width: 820px; margin: 0 auto; padding: 48px var(--pad) 96px; }
.prose { color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { color: #fff; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin: 48px 0 16px; }
.prose h3 { color: #fff; font-size: 21px; line-height: 1.25; font-weight: 600; margin: 34px 0 12px; }
.prose h4 { color: var(--ink-1); font-size: 17px; font-weight: 600; margin: 26px 0 10px; }
.prose p { margin: 0 0 20px; }
.prose a { color: var(--pink-br); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--pink-hi); }
.prose strong, .prose b { color: var(--ink-1); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-2); margin: 28px 0; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--pink); color: var(--ink-1); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line-3); padding: 10px 14px; text-align: left; }
.prose th { background: var(--bg-panel2); color: var(--ink-1); }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 40px 0; }

@media (max-width: 900px) {
  .article-head h1 { font-size: 32px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 24px; }
}

/* --- video facade + lightbox -------------------------------------------- */
.video-facade {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9;
  border: 1px solid var(--line-3); border-radius: 16px; overflow: hidden;
  background: #000; cursor: pointer; padding: 0;
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.94; transition: opacity 220ms ease, transform 500ms ease; }
.video-facade::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10,11,20,0.28), rgba(10,11,20,0.05)); }
.video-facade:hover img, .video-facade:focus-visible img { opacity: 1; transform: scale(1.02); }
.video-facade:focus-visible { outline: 2px solid var(--pink-br); outline-offset: 3px; }
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
  background: var(--pink); color: #fff; display: flex; align-items: center; justify-content: center;
  z-index: 2; box-shadow: 0 8px 40px rgba(207,0,87,0.5); transition: transform 160ms ease, background 160ms ease;
}
.video-facade:hover .play-btn, .video-facade:focus-visible .play-btn { transform: scale(1.07); background: var(--pink-hi); }
.play-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.video-badge {
  position: absolute; bottom: 16px; left: 18px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-1); background: rgba(10,11,20,0.6); border: 1px solid var(--line-3);
  padding: 5px 10px; border-radius: 999px;
}

.vbox {
  position: fixed; inset: 0; z-index: 1090; display: none; align-items: center; justify-content: center;
  padding: 4vh 4vw; background: rgba(6,7,12,0.88); backdrop-filter: blur(6px);
}
.vbox.is-open { display: flex; }
.vbox__inner { position: relative; width: min(1100px, 100%); aspect-ratio: 16/9; }
.vbox__frame { width: 100%; height: 100%; }
.vbox__frame iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; box-shadow: 0 20px 80px rgba(0,0,0,0.6); }
.vbox__close {
  position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-4); background: rgba(255,255,255,0.06); color: #fff; cursor: pointer;
  font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.vbox__close:hover { background: rgba(255,255,255,0.14); }
@media (max-width: 900px) {
  .play-btn { width: 64px; height: 64px; }
  .play-btn svg { width: 24px; height: 24px; }
  .vbox__close { top: 0; right: 0; transform: translate(-8px, 8px); }
}
