/* Revivio site. Visual language borrowed from the app: wide uppercase labels,
   heavy italic display type, off-white cards, black panels and pill buttons. */
:root {
  --ink: #0d0d0d;
  --paper: #ffffff;
  --card: #f3f2f0;
  --line: #e3e1dd;
  --muted: #7d786f;
  --soft-on-ink: #c9c4bb;
  --gold: #8a6a12;
  --gold-bg: #f6eed9;
  --radius: 22px;
  --wrap: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px;
}
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Type */
.label {
  font-stretch: 125%; font-weight: 800; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.display {
  font-stretch: 112%; font-weight: 900; font-style: italic;
  letter-spacing: -.02em; line-height: .98; text-wrap: balance;
}
.lede { font-size: clamp(18px, 2.2vw, 21px); color: #3a3833; max-width: 34em; }

/* Header */
header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding-block: 14px;
}
.brand {
  font-stretch: 125%; font-weight: 900; font-size: 20px; letter-spacing: .16em;
  text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.brand i {
  width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--paper);
  display: grid; place-content: center; font-size: 17px; letter-spacing: 0; font-stretch: 112%;
}
nav.links { display: flex; gap: 6px; justify-content: center; }
nav.links a {
  text-decoration: none; font-weight: 800; font-size: 15px; padding: 8px 14px; border-radius: 999px;
}
nav.links a:hover { background: var(--card); }
nav.links a[aria-current="page"] { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) {
  .bar { grid-template-columns: 1fr auto; row-gap: 10px; }
  nav.links {
    grid-column: 1 / -1; grid-row: 2; justify-content: flex-start;
    overflow-x: auto; scrollbar-width: none; margin: 0 -6px;
  }
  nav.links::-webkit-scrollbar { display: none; }
  nav.links a { flex: none; font-size: 14px; }
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--paper);
}

/* Buttons */
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  border-radius: 999px; padding: 18px 30px;
  font-stretch: 125%; font-weight: 900; font-size: 15px; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  background: var(--ink); color: var(--paper); border: 3px solid var(--ink);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.sm { padding: 10px 18px; font-size: 12px; border-width: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section.block { padding-block: clamp(48px, 8vw, 96px); }
section.block + section.block { padding-top: 0; }
.head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 44em; }
.head h2 { font-size: clamp(34px, 5.5vw, 56px); }
.card { background: var(--card); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.card.dark { background: var(--ink); color: var(--paper); }
.card.dark .label { color: var(--soft-on-ink); }
.pill {
  display: inline-block; background: var(--gold-bg); color: var(--gold);
  border-radius: 8px; padding: 6px 12px;
  font-stretch: 125%; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}

/* Home: hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: stretch; padding-top: clamp(36px, 6vw, 72px); }
.hero-copy { display: grid; gap: 24px; align-content: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 92px); }
.hero .panel { display: grid; align-content: space-between; gap: 28px; }
.panel ul { list-style: none; display: grid; }
.panel li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 0; border-top: 2px solid #2a2a2a;
  font-stretch: 112%; font-weight: 900; font-style: italic; font-size: clamp(22px, 2.6vw, 30px);
}
.panel li span { font-style: normal; font-stretch: 125%; font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--soft-on-ink); }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } }

/* Home: features */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid4, .grid2 { grid-template-columns: minmax(0, 1fr); } }
.feature { display: grid; gap: 12px; align-content: start; }
.feature .icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--paper);
  display: grid; place-content: center;
}
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 22px; font-weight: 900; }
.feature p { color: #4a4740; }

/* Home: why */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.why .card p + p { margin-top: 14px; }
.why .big { font-size: clamp(30px, 4vw, 44px); }
.compare { list-style: none; display: grid; gap: 0; }
.compare li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 2px solid var(--line); }
.compare li:first-child { border-top: 0; }
.compare b { font-weight: 800; }
.compare span { color: var(--muted); }
@media (max-width: 760px) { .why { grid-template-columns: minmax(0, 1fr); } }

/* People */
.person {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: center;
  background: var(--card); border-radius: 18px; padding: 18px;
  border-left: 6px solid var(--ink);
}
.avatar {
  width: 72px; height: 72px; border-radius: 14px; background: var(--paper);
  display: grid; place-content: center;
  font-stretch: 112%; font-weight: 900; font-style: italic; font-size: 26px;
}
.person b { display: block; font-size: 22px; font-weight: 900; }
.person span { color: var(--muted); }

/* CTA band */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.cta h2 { font-size: clamp(32px, 5vw, 52px); }
.cta p { color: var(--soft-on-ink); margin-top: 12px; max-width: 34em; }
@media (max-width: 760px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* Page titles (inner pages) */
.page-title { padding-top: clamp(36px, 6vw, 64px); padding-bottom: 8px; display: grid; gap: 14px; }
.page-title h1 { font-size: clamp(44px, 8vw, 84px); }

/* Footer */
footer.site { border-top: 2px solid var(--line); margin-top: clamp(48px, 8vw, 96px); background: var(--card); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; padding-block: 44px 28px; }
.foot p { color: var(--muted); margin-top: 12px; max-width: 24em; }
.foot ul { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.foot ul a { text-decoration: none; font-weight: 700; }
.foot ul a:hover { text-decoration: underline; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 18px 28px; border-top: 2px solid var(--line); }
@media (max-width: 760px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot > div:first-child { grid-column: 1 / -1; } }

/* Document pages (privacy, terms, support, contact, about) */
.doc-main { max-width: 800px; margin: 0 auto; padding-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.doc-main .card p, .doc-main .card li { font-size: 17px; }
.doc-main .card > * + * { margin-top: 14px; }
.doc-main h2 {
  font-stretch: 125%; font-weight: 900; font-size: 15px;
  letter-spacing: .14em; text-transform: uppercase; text-wrap: balance;
}
.doc-main h3 { font-weight: 900; font-size: 18px; }
.doc-main ul, .doc-main ol { padding-left: 22px; display: grid; gap: 8px; }
.doc-main .card a { font-weight: 700; }
.doc-intro p { color: var(--soft-on-ink); }
.meta { display: flex; flex-wrap: wrap; gap: 10px; }
.meta .pill { background: #2a2a2a; color: #e6e1d8; }
.toc { display: grid; gap: 0; padding: 0 !important; list-style: none; }
.toc li { border-top: 2px solid var(--line); }
.toc li:first-child { border-top: 0; }
.toc a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; text-decoration: none; font-weight: 800 !important;
}
.toc a::after { content: "›"; color: var(--muted); font-weight: 400; font-size: 22px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 12px 10px 12px 0; border-top: 2px solid var(--line); }
table.data th {
  font-stretch: 125%; font-weight: 800; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); border-top: 0;
}
.contact-box {
  background: var(--paper); border-radius: 18px; padding: 18px 20px;
  border-left: 6px solid var(--ink); display: grid; gap: 4px;
}
.contact-box b { font-size: 20px; font-weight: 900; }
.contact-box span { color: #4a4740; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.steps li::before {
  content: counter(step); width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--paper); display: grid; place-content: center;
  font-weight: 900; font-size: 15px;
}
details.faq { border-top: 2px solid var(--line); padding: 14px 0; }
details.faq:first-of-type { border-top: 0; }
details.faq summary { font-weight: 800; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--muted); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: 10px; color: #3a3833; }
.fill { background: var(--gold-bg); color: var(--gold); font-weight: 800; padding: 0 4px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
.doc-main h2.display { font-size: clamp(28px, 4vw, 40px); font-stretch: 112%; letter-spacing: -.02em; text-transform: none; }
.btn.sm { white-space: nowrap; }
.panel .statement { font-size: clamp(30px, 3.6vw, 44px); margin-top: 14px; }
@media (max-width: 420px) {
  .bar { gap: 12px; }
  .brand { font-size: 18px; letter-spacing: .12em; }
  .btn.sm { padding: 9px 14px; letter-spacing: .08em; }
}
@media (max-width: 359px) { .bar .brand .word { display: none; } }
