/* RV Ring — shared stylesheet for rvring.com
   Tokens + components extracted from the original one-page site, plus the
   offer-sheet components (pillars, diagram, compare, price cards) restyled
   onto the same design language. Charcoal + navy on white, dark mode via
   prefers-color-scheme. No JS anywhere except the /demo/ widget embed. */

:root {
  --ground: #FFFFFF;
  --surface: #F7F8F9;
  --ink: #25292D;
  --muted: #5B646E;
  --faint: #8A939D;
  --line: #E4E7EB;
  --navy: #1E3A5F;
  --navy-ink: #FFFFFF;
  --navy-tint: #EBF0F6;
  --navy-tint-ink: #1E3A5F;
  --charcoal: #2B2F33;
  --chip-grey-bg: #EFF1F3;
  --chip-grey-ink: #5B646E;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #101418;
    --surface: #171C21;
    --ink: #E8EAED;
    --muted: #9AA4AD;
    --faint: #6E7883;
    --line: #262C33;
    --navy: #8FB4DE;
    --navy-ink: #101418;
    --navy-tint: #1A2733;
    --navy-tint-ink: #A9C6E8;
    --charcoal: #D5D9DD;
    --chip-grey-bg: #1D2329;
    --chip-grey-ink: #9AA4AD;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, table { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* ---------- Nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navrow { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 30px; height: auto; display: block; flex: none; }
.brand span { font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; }
.navlinks { display: flex; gap: 26px; }
.navlinks a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; white-space: nowrap; }
.navlinks a:hover { color: var(--ink); }
.navlinks a[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
  .navrow { gap: 16px; }
  .navlinks { gap: 18px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .navlinks::-webkit-scrollbar { display: none; }
}
@media (max-width: 420px) { .brand span { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 24px; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.btn.primary { background: var(--navy); color: var(--navy-ink); }
.btn.primary:hover { opacity: 0.88; }
.btn.ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn.ghost:hover { background: var(--surface); }
.btn.small { padding: 9px 18px; font-size: 0.88rem; }

/* ---------- Hero / page head ---------- */
.hero { padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 104px); }
.herogrid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
@media (max-width: 880px) { .herogrid { grid-template-columns: 1fr; } }

.pagehead { padding: clamp(56px, 8vw, 104px) 0 0; max-width: 720px; }
.pagehead .sub { margin-bottom: 0; }

.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--navy); margin: 0 0 22px;
}
h1 {
  font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.06; font-weight: 700;
  letter-spacing: -0.03em; margin: 0 0 26px; text-wrap: balance;
}
h1 .quiet { color: var(--faint); }
/* Stacked hero: one sentence per line, sized so no sentence wraps mid-phrase */
h1.stack { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.12; }
h1.stack > span { display: block; white-space: nowrap; }
@media (max-width: 560px) { h1.stack > span { white-space: normal; } }
.sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 36em; margin: 0 0 38px; }
.ctarow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ctanote { font-size: 0.85rem; color: var(--faint); margin: 16px 0 0; }

/* ---------- Phone mock ---------- */
.phone {
  border: 1px solid var(--line); border-radius: 20px; background: var(--ground);
  box-shadow: 0 24px 60px -32px rgba(30, 58, 95, 0.25);
  overflow: hidden; max-width: 420px; justify-self: end; width: 100%;
}
@media (max-width: 880px) { .phone { justify-self: start; } }
.phonehead {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); background: var(--surface);
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted);
}
.livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); flex: none; }
.phonebody { padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.bubble {
  max-width: 88%; padding: 11px 15px; border-radius: 16px;
  font-size: 0.92rem; line-height: 1.5;
  opacity: 0; transform: translateY(6px);
  animation: rise 0.5s ease forwards;
}
.bubble.caller { background: var(--chip-grey-bg); color: var(--ink); border-bottom-left-radius: 5px; align-self: flex-start; }
.bubble.bot { background: var(--navy); color: var(--navy-ink); border-bottom-right-radius: 5px; align-self: flex-end; }
.bubble .who {
  display: block; font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.65; margin-bottom: 4px;
}
.handoff {
  margin-top: 6px; padding: 10px 14px; border: 1px dashed color-mix(in srgb, var(--navy) 45%, transparent);
  border-radius: 10px; background: var(--navy-tint); color: var(--navy-tint-ink);
  font-family: var(--mono); font-size: 0.74rem; line-height: 1.5;
  opacity: 0; transform: translateY(6px); animation: rise 0.5s ease forwards;
}
.b1 { animation-delay: 0.3s; } .b2 { animation-delay: 1.1s; } .b3 { animation-delay: 2s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .bubble, .handoff { animation: none; opacity: 1; transform: none; }
  .arc1, .arc2 { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Logo mark ---------- */
.ringmark .ring { stroke: var(--charcoal); }
.ringmark .arc { stroke: var(--navy); }
.heromark .arc1 { animation: ping 3.2s ease-in-out infinite; }
.heromark .arc2 { animation: ping 3.2s ease-in-out 0.25s infinite; }
@keyframes ping { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 11vw, 140px) 0 0; }
section.last { padding-bottom: clamp(72px, 11vw, 140px); }

/* Full-bleed surface band — chunks the page so sections don't blend together.
   Bands carry their own inner padding; the margin-top is the gap outside. */
section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 8vw, 104px) 0;
  margin-top: clamp(72px, 11vw, 140px);
}
section.alt.last { margin-bottom: clamp(72px, 11vw, 140px); }
.shead { max-width: 660px; margin-bottom: clamp(36px, 5vw, 60px); }
h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.12; margin: 0 0 16px; text-wrap: balance;
}
h3 { font-weight: 700; letter-spacing: -0.01em; }
.shead p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillar { border-top: 2px solid var(--ink); padding-top: 20px; }
.pillar .cap {
  display: block; font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; margin-bottom: 8px;
}
.pillar b { display: block; font-size: 1.02rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.pillar span { color: var(--muted); font-size: 0.93rem; line-height: 1.55; display: block; }

/* ---------- Call table ---------- */
.calls { border-top: 1px solid var(--line); }
.callrow {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto;
  gap: 10px 28px; align-items: center; padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .callrow { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
}
.callrow .kind { font-weight: 600; font-size: 1.02rem; }
.callrow .ex { color: var(--muted); font-size: 0.92rem; }
.chip {
  justify-self: end; font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px;
}
@media (max-width: 760px) { .chip { justify-self: start; margin-top: 4px; } }
.chip.answer { background: var(--navy); color: var(--navy-ink); }
.chip.text { background: var(--navy-tint); color: var(--navy-tint-ink); }
.chip.human { background: transparent; color: var(--navy-tint-ink); border: 1px solid color-mix(in srgb, var(--navy) 45%, transparent); }
.chip.grey { background: var(--chip-grey-bg); color: var(--chip-grey-ink); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 2px solid var(--ink); padding-top: 22px; }
.step .n {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; color: var(--navy); display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.2rem; margin: 0 0 10px; }
.step p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- Fit / keeps / standards bullets ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 44px) clamp(32px, 5vw, 64px); }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }
.fititem { display: flex; gap: 16px; align-items: flex-start; }
.fititem .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy-tint); color: var(--navy-tint-ink);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; margin-top: 2px;
}
.fititem h3 { font-size: 1.05rem; margin: 0 0 5px; }
.fititem p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Navy band (demo invite / built-around / final banners) ---------- */
.band {
  background: var(--navy); color: var(--navy-ink); border-radius: 20px;
  padding: clamp(30px, 5vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } }
.band .eyebrow { color: color-mix(in srgb, var(--navy-ink) 70%, transparent); margin-bottom: 14px; }
.band h2, .band h3 { color: var(--navy-ink); }
.band h3 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
.band p { opacity: 0.92; }
.band .btn { background: var(--navy-ink); color: var(--navy); }
.band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.band li { display: flex; gap: 12px; font-size: 0.98rem; line-height: 1.5; }
.band li::before { content: "—"; opacity: 0.55; flex: none; }

/* ---------- Ramp / callout ---------- */
.callout {
  border: 1px dashed color-mix(in srgb, var(--navy) 45%, transparent);
  background: var(--navy-tint); color: var(--navy-tint-ink);
  border-radius: 14px; padding: 22px 26px; max-width: 780px;
}
.callout b { display: block; margin-bottom: 6px; font-size: 1.02rem; }
.callout span, .callout p { font-size: 0.95rem; line-height: 1.6; color: inherit; opacity: 0.9; }

/* ---------- Call-flow diagram ---------- */
.diagram { display: flex; flex-direction: column; align-items: center; }
.diagram .node {
  border: 1px solid var(--line); border-radius: 14px; background: var(--ground);
  padding: 18px 24px; max-width: 560px; width: 100%; text-align: center;
}
.diagram .node.solid { background: var(--charcoal); border-color: var(--charcoal); color: var(--ground); }
.diagram .node b { display: block; font-size: 1.02rem; letter-spacing: -0.01em; }
.diagram .node span { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.diagram .node.solid span { color: color-mix(in srgb, var(--ground) 75%, transparent); }
.diagram .link { width: 1px; height: 28px; background: var(--line); }
.fan {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  width: 100%; margin: 0;
}
@media (max-width: 880px) { .fan { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fan { grid-template-columns: 1fr; } }
.path { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.path .label {
  display: inline-block; font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 11px; border-radius: 999px; margin-bottom: 10px;
  background: var(--navy-tint); color: var(--navy-tint-ink);
}
.path.urgent { border-color: color-mix(in srgb, var(--navy) 50%, transparent); }
.path.urgent .label { background: var(--navy); color: var(--navy-ink); }
.path p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.delivery { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0; }
.delivery .dchip {
  font-size: 0.88rem; padding: 8px 16px; border-radius: 999px;
  background: var(--chip-grey-bg); color: var(--chip-grey-ink);
}
.delivery .dchip b { color: var(--ink); font-weight: 600; }

/* ---------- Included groups ---------- */
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 64px); }
@media (max-width: 820px) { .groups { grid-template-columns: 1fr; } }
.group .group-title {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--navy);
  border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 4px;
}
.items { list-style: none; margin: 0; padding: 0; }
.items li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; line-height: 1.5; }
.items b { font-weight: 600; }
.items em { font-style: normal; color: var(--muted); }
.items .tag {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; background: var(--navy-tint); color: var(--navy-tint-ink);
  border-radius: 999px; padding: 3px 9px; margin-left: 6px; vertical-align: 2px; white-space: nowrap;
}
.outcome { color: var(--muted); font-size: 0.9rem; margin: 14px 0 0; }
.outcome b { color: var(--ink); }
.legend { color: var(--faint); font-size: 0.85rem; margin: 28px 0 0; }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare caption { text-align: left; color: var(--muted); font-size: 0.95rem; padding-bottom: 18px; }
.compare th {
  text-align: left; font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  padding: 0 18px 12px 0; border-bottom: 1px solid var(--ink);
}
.compare td { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.95rem; }
.compare td:first-child { font-weight: 600; white-space: nowrap; }
.compare td:last-child { color: var(--muted); }
.compare .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.compare tr.us td { background: var(--navy-tint); color: var(--navy-tint-ink); }
.compare tr.us td { padding-left: 14px; }
.compare tr.us td:first-child { border-radius: 10px 0 0 10px; }
.compare tr.us td:last-child { border-radius: 0 10px 10px 0; }

/* ---------- Pricing ---------- */
.pricegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .pricegrid { grid-template-columns: 1fr; } }
.price-card { border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 4vw, 40px); background: var(--ground); }
.price-card .label {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); display: block; margin-bottom: 14px;
}
.price-card .amount { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-card .amount .per { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--faint); }
.price-card p { margin: 14px 0 0; color: var(--muted); font-size: 0.97rem; }
.price-card .btn { margin-top: 22px; }
.price-card.feature { background: var(--navy); color: var(--navy-ink); border-color: var(--navy); }
.price-card.feature .label { color: color-mix(in srgb, var(--navy-ink) 70%, transparent); }
.price-card.feature .amount .per { color: color-mix(in srgb, var(--navy-ink) 65%, transparent); }
.price-card.feature p { color: color-mix(in srgb, var(--navy-ink) 88%, transparent); }
.price-card.feature .btn { background: var(--navy-ink); color: var(--navy); }
.strike { text-decoration: line-through; opacity: 0.7; }

.promise {
  border: 1px solid var(--line); border-left: 3px solid var(--navy);
  border-radius: 12px; padding: 22px 26px; margin-top: 18px; background: var(--ground);
}
.promise b { display: block; margin-bottom: 6px; }
.promise span { color: var(--muted); font-size: 0.95rem; }

.terms { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; max-width: 780px; }
.terms li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; color: var(--muted); }
.terms li::before { content: "—"; color: var(--navy); flex: none; }
.terms b { color: var(--ink); font-weight: 600; }

/* ---------- Demo page ---------- */
.demopanels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 820px) { .demopanels { grid-template-columns: 1fr; } }
.demopanel { border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; background: var(--ground); }
.demopanel .demo-label {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); display: block; margin-bottom: 14px;
}
.demo-phone {
  font-family: var(--mono); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.01em; color: var(--ink); text-decoration: none; display: inline-block;
  font-variant-numeric: tabular-nums;
}
a.demo-phone:hover { color: var(--navy); }
.demopanel .note { color: var(--faint); font-size: 0.88rem; margin-top: auto; padding-top: 18px; }
.trylist { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.trylist li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.98rem; }
.trylist li::before { content: "→"; color: var(--navy); flex: none; }
.trylist b { color: var(--ink); font-weight: 600; }
.disclosure { color: var(--faint); font-size: 0.85rem; max-width: 62ch; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 780px; }
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 20px; padding: 22px 0;
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--faint); font-size: 1.3rem; font-weight: 400; flex: none; transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* ---------- Final CTA / footer ---------- */
.final { text-align: center; padding: clamp(72px, 11vw, 140px) 0 clamp(40px, 6vw, 72px); }
.final .heromark { width: 64px; height: auto; margin: 0 auto 28px; display: block; }
.final h2 { margin-bottom: 14px; }
.final p { color: var(--muted); margin: 0 auto 34px; max-width: 34em; }
footer.site {
  border-top: 1px solid var(--line); padding: 28px 0 44px;
  font-size: 0.85rem; color: var(--faint);
}
footer.site .frow { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
footer.site .fbrand { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; margin-right: auto; }
footer.site .fbrand svg { width: 20px; height: 20px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
