/* Renvoro — components. Depends on base.css tokens. */

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;              /* comfortably over the 44px touch floor */
  padding: 0 var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: .9688rem;
  font-weight: 600;
  letter-spacing: .002em;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--brand-ink); color: #fff; box-shadow: var(--shadow-md); }

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover { background: var(--paper-edge); color: var(--ink); border-color: rgba(22,24,31,.16); }

.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: rgba(22,24,31,.05); color: var(--ink); }

.btn--onbrand { background: #fff; color: var(--brand-deep); }
.btn--onbrand:hover { background: rgba(255,255,255,.9); color: var(--brand-deep); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn--sm { min-height: 44px; padding: 0 var(--s-4); font-size: .9063rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  /* The only backdrop-filter on the site. It exists because content
     scrolls under a translucent bar, not as decoration. */
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease),
              background var(--t-base) var(--ease);
}
.masthead.is-stuck {
  border-bottom-color: var(--line-soft);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}
@supports not (backdrop-filter: blur(1px)) { .masthead { background: var(--paper); } }

.masthead__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__word {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -.015em;
}

.nav { display: none; gap: var(--s-1); margin-inline-end: auto; }
@media (min-width: 960px) { .nav { display: flex; } }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;              /* touch-sized even on large touchscreens */
  padding: 0 var(--s-3);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 500;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav__link:hover { background: rgba(22,24,31,.05); color: var(--ink); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }

.masthead__actions { display: none; gap: var(--s-2); margin-inline-start: auto; }
@media (min-width: 960px) { .masthead__actions { display: flex; } }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: none;
  margin-inline-start: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}
@media (min-width: 960px) { .burger { display: none; } }

/* Mobile sheet */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet[data-open] { display: block; }
.sheet__scrim {
  position: absolute; inset: 0;
  background: rgba(22,24,31,.4);
  animation: fade-in 180ms var(--ease) both;
}
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--s-3) var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom));
  box-shadow: 0 -16px 44px rgba(22,24,31,.2);
  animation: sheet-up 300ms cubic-bezier(.32,.72,0,1) both;
  max-height: 88vh; overflow-y: auto;
}
.sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto var(--s-4); }
.sheet__link {
  display: block; padding: 14px var(--s-3);
  border-radius: var(--radius); color: var(--ink);
  font-size: 1.0625rem; font-weight: 500;
}
.sheet__link:hover { background: var(--sunk); text-decoration: none; color: var(--ink); }
.sheet__actions { display: grid; gap: var(--s-2); margin-top: var(--s-4); }

@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes sheet-up { from { transform: translateY(100%) } to { transform: none } }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 88px); }
.hero__grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1fr 1.02fr; } }

.hero__note {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: .875rem; color: var(--label);
  margin-bottom: var(--s-4);
}
.hero__note::before {
  content: ""; width: 22px; height: 1px; background: var(--line); flex: none;
}
.hero h1 { margin-bottom: var(--s-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__fineprint { margin-top: var(--s-4); font-size: .9063rem; color: var(--ink-3); }

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.card--lift:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line); }

.card__icon {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  margin-bottom: var(--s-4);
}
.card :is(h3, h4) { margin-bottom: 6px; }
.card p { font-size: .9688rem; color: var(--ink-3); }

.grid { display: grid; gap: var(--s-4); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Five benefits: 1 / 2 / 3+2 / 5 — never a four-card bento. */
.grid--5 { grid-template-columns: 1fr; }
@media (min-width: 620px)  { .grid--5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px)  { .grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .grid--5 { grid-template-columns: repeat(5, 1fr); } }

.tick { display: flex; gap: 10px; align-items: flex-start; font-size: .9688rem; color: var(--ink-2); }
.tick svg { flex: none; margin-top: 5px; color: var(--brand-ink); }
.ticks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

/* ---------- Alternating feature rows ---------- */

.featurerow { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; }
@media (min-width: 960px) {
  .featurerow { grid-template-columns: 1fr 1.06fr; }
  .featurerow--flip .featurerow__text { order: 2; }
  .featurerow--flip .featurerow__panel { order: 1; }
}
.featurerow + .featurerow { margin-top: clamp(48px, 6vw, 80px); }
.featurerow h2 { margin-bottom: var(--s-3); }
.featurerow .ticks { margin-top: var(--s-5); }

/* A flat, upright panel — deliberately not a tilted floating screenshot. */
.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-edge);
}
.panel__title { font-size: .9688rem; font-weight: 600; color: var(--ink); }
.panel__body { padding: var(--s-4); display: grid; gap: 8px; }

.tag {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 10px;
  border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .01em;
  background: var(--sunk); color: var(--label);
}
.tag--brand { background: var(--brand-wash); color: var(--brand-deep); }
.tag--pos   { background: var(--pos-wash);  color: var(--pos); }
.tag--warn  { background: var(--warn-wash); color: var(--warn); }
.tag--neg   { background: var(--neg-wash);  color: var(--neg); }

.line-item {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 12px var(--s-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}
.line-item__glyph {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  font-size: .8125rem; font-weight: 700;
}
.line-item__main { flex: 1; min-width: 0; }
.line-item__title { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.line-item__sub { font-size: .8125rem; color: var(--ink-3); margin-top: 1px; }
.line-item__amt { font-size: .9375rem; font-weight: 700; color: var(--ink); flex: none; }

/* ---------- Split calculator (hero) ---------- */

.calc__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.calc__controls { display: grid; gap: var(--s-4); padding: var(--s-5); }
.calc__field label { display: block; font-size: .8125rem; color: var(--label); font-weight: 600; margin-bottom: 6px; }
.calc__value { font-size: 1.0625rem; font-weight: 700; color: var(--ink); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; background: transparent; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px; border-radius: 3px;
  background: linear-gradient(var(--brand), var(--brand)) 0/var(--fill, 50%) 100% no-repeat, var(--sunk);
}
input[type="range"]::-moz-range-track { height: 5px; border-radius: 3px; background: var(--sunk); }
input[type="range"]::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--brand); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -8.5px;
  border-radius: 50%; background: var(--surface);
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast) var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--brand);
  box-shadow: var(--shadow-sm);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }

.split { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.split__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4);
  padding: 13px var(--s-5);
}
.split__row + .split__row { border-top: 1px solid var(--line-soft); }
.split__label { font-size: .9375rem; color: var(--ink-3); }
.split__amt { font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.split__row--total { background: var(--paper-edge); }
.split__row--total .split__label { color: var(--ink); font-weight: 600; }
.split__row--total .split__amt { font-size: 1.25rem; }
.split__amt--brand { color: var(--brand-deep); }
.split__amt--pos { color: var(--pos); }

/* Bars under the calculator show the same numbers as proportions. */
.bars { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--sunk); }
.bars__seg { transition: flex-grow var(--t-base) var(--ease); min-width: 2px; }

/* ---------- Steps ---------- */

.step__n {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brand-wash); color: var(--brand-deep);
  font-weight: 700; font-size: .9375rem;
  margin-bottom: var(--s-4);
}

/* ---------- Pricing ---------- */

.toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--sunk); border-radius: var(--radius);
}
.toggle__btn {
  min-height: 38px; padding: 0 var(--s-5);
  border: 0; border-radius: 9px; background: transparent;
  color: var(--ink-3); font-size: .9375rem; font-weight: 600;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.toggle__btn[aria-pressed="true"] {
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm);
}

.plans { display: grid; gap: var(--s-4); align-items: start; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan { display: flex; flex-direction: column; padding: var(--s-5); }
.plan--featured { border-color: var(--brand-line); box-shadow: var(--shadow-md); }
.plan__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.plan__name { font-size: 1.25rem; font-weight: 600; color: var(--ink); font-family: var(--font-display); }
.plan__tagline { font-size: .9063rem; color: var(--ink-3); margin-top: 6px; min-height: 2.8em; }
.plan__price { display: flex; align-items: last baseline; gap: 7px; margin-top: var(--s-4); }
.plan__amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.plan__per { font-size: .9063rem; color: var(--ink-3); }
.plan__billing { font-size: .8125rem; color: var(--ink-3); margin-top: 8px; min-height: 2.6em; }
.plan .btn { margin: var(--s-4) 0 var(--s-5); }
.plan .ticks { font-size: .9375rem; }

.compare th, .compare td { padding: 12px 10px; border-top: 1px solid var(--line-soft); font-size: .9375rem; }
.compare thead th { border-top: 0; padding-top: 0; }
.compare th[scope="col"] { font-weight: 600; color: var(--ink); text-align: center; }
.compare th[scope="col"]:first-child {
  text-align: left; font-size: .75rem; text-transform: uppercase;
  letter-spacing: .09em; color: var(--label);
}
.compare td { text-align: center; font-weight: 600; color: var(--ink); }
.compare td:first-child { text-align: left; font-weight: 400; color: var(--ink-2); }
.compare .is-yes { color: var(--pos); }
.compare .is-no  { color: var(--ink-3); font-weight: 400; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line-soft); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding: 18px 0; min-height: 56px;
  background: transparent; border: 0; text-align: left;
  font-size: 1.0625rem; font-weight: 600; color: var(--ink);
}
.faq__q:hover { color: var(--brand-ink); }
.faq__chev { flex: none; color: var(--ink-3); transition: transform var(--t-base) var(--ease); }
.faq__q[aria-expanded="true"] .faq__chev { transform: rotate(180deg); }
.faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-base) var(--ease);
}
.faq__a[data-open] { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 20px; color: var(--ink-3); max-width: var(--measure); }

/* ---------- CTA band ---------- */

.cta {
  background: var(--brand-deep);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 56px);
  color: #fff;
}
.cta h2 { color: #fff; max-width: 18ch; }
.cta p { color: rgba(255,255,255,.82); margin-top: var(--s-4); max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* ---------- Callout ---------- */

.callout {
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--s-4) var(--s-5);
  font-size: .9688rem;
  color: var(--ink-2);
}
.callout--warn { border-left-color: var(--warn); background: var(--warn-wash); }
.callout strong { color: var(--ink); }

/* ---------- Legal / prose pages ---------- */

.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.75rem); margin-top: var(--s-8); margin-bottom: var(--s-3); }
.prose h3 { margin-top: var(--s-6); margin-bottom: var(--s-2); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-top: var(--s-3); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose dl { margin-top: var(--s-3); }
.prose dt { font-weight: 600; color: var(--ink); margin-top: var(--s-3); }
.prose table { margin-top: var(--s-4); font-size: .9375rem; }
.prose th, .prose td { padding: 10px; border: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.prose th { background: var(--sunk); font-weight: 600; color: var(--ink); }

.toc { position: sticky; top: 96px; align-self: start; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: var(--radius-sm); font-size: .9063rem; color: var(--ink-3); }
.toc a:hover { background: var(--sunk); color: var(--ink); text-decoration: none; }
.toc a.is-active { background: var(--brand-wash); color: var(--brand-deep); font-weight: 600; }

.legal-layout { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 230px 1fr; gap: var(--s-8); } }
@media (max-width: 999px) { .toc { position: static; } }

/* Placeholder markers that must be replaced before launch — see
   COMPANY-DETAILS.md. Styled so they cannot be missed on the page. */
.fill-me {
  background: #FFF3C4;
  border-bottom: 2px solid #C89A00;
  color: #4A3800;
  padding: 0 3px;
  border-radius: 2px;
  font-weight: 600;
  font-size: .95em;
}

/* ---------- Contact ---------- */

.contact-card { display: grid; gap: var(--s-2); }
.contact-card dt { font-size: .8125rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--label); }
.contact-card dd { margin: 0 0 var(--s-4); font-size: 1.0625rem; color: var(--ink); }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line-soft); background: var(--paper-edge); }
.footer__grid { display: grid; gap: var(--s-6); padding-block: var(--s-8) var(--s-6); }
@media (min-width: 760px)  { .footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.footer h5 {
  margin: 0 0 var(--s-3); font-size: .75rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--label);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--ink-2); font-size: .9375rem; }
.footer a:hover { color: var(--brand-ink); }
.footer__about { font-size: .9063rem; color: var(--ink-3); max-width: 34ch; margin-top: var(--s-3); }
.footer__base {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  align-items: center; justify-content: space-between;
  padding-block: var(--s-4) var(--s-7);
  border-top: 1px solid var(--line-soft);
  font-size: .875rem; color: var(--ink-3);
}
