/* Revenia RGM one-pager, built to look like the sales deck it is made from:
   the deck's two page grounds (warm grey #F3F2F1 and pale blue #E1EEFB)
   alternate as bands, the app's blue #118DFF marks eyebrows and buttons, and
   the deck's own screens are placed as images. Open Sans is the deck's face.
   One light theme, deliberately. */

:root {
  color-scheme: light;
  --ink: #252423;
  --ink-2: #605e5c;
  --faint: #8a8886;
  --line: #e1dfdd;
  --paper: #ffffff;
  --grey: #f3f2f1;
  --sky: #e1eefb;
  --accent: #118dff;
  --accent-deep: #0f548c;
  --accent-soft: #deecf9;
  --dark: #252423;
  --font: "Open Sans", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(37, 36, 35, 0.06), 0 6px 20px rgba(37, 36, 35, 0.08);
  --wrap: 1120px;
  --gutter: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
dl,
dd,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
}
svg {
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- type, as in the deck ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
h2 {
  font-size: clamp(24px, 2.9vw, 34px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 960px;
  margin-bottom: 32px;
  text-wrap: balance;
}
h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}
.text {
  max-width: 840px;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.note {
  font-size: 13.5px;
  color: var(--faint);
  margin-top: 20px;
}

/* ---------- bands ---------- */
.band {
  padding-block: 72px;
  scroll-margin-top: 72px;
}
.band--paper {
  background: var(--paper);
}
.band--grey {
  background: var(--grey);
}
.band--sky {
  background: var(--sky);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn:hover {
  background: #0b7be0;
}
.btn--lg {
  padding: 14px 24px;
  font-size: 16px;
  white-space: normal;
  text-align: center;
}

/* ---------- top bar ---------- */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.top.is-scrolled {
  box-shadow: 0 2px 12px rgba(37, 36, 35, 0.08);
}
.top__row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.brand {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand span {
  color: var(--accent);
}
.top__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.top__nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 4px;
  white-space: nowrap;
}
.top__nav a:hover {
  color: var(--ink);
  background: var(--grey);
}
.top__nav a.is-active {
  color: var(--accent-deep);
}
.top__nav .btn {
  color: #fff;
  margin-left: 10px;
}
.top__nav .btn:hover {
  background: #0b7be0;
}
.top__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}
.top__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition:
    transform 0.2s,
    opacity 0.2s;
}

/* ---------- hero ---------- */
.hero {
  padding-block: 64px 72px;
}
.hero__title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 900px;
  text-wrap: balance;
}
.hero__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-top: 20px;
  max-width: 720px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}
.hero__date {
  font-size: 13px;
  color: var(--faint);
}
.shot--hero {
  margin-top: 44px;
}

/* ---------- deck screens ---------- */
.shot {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper);
  border: 1px solid rgba(37, 36, 35, 0.08);
}
.shot img {
  width: 100%;
}
.shot--card {
  max-width: 460px;
}
.shot--center {
  max-width: 720px;
  margin-inline: auto;
}
.shot--wide {
  margin-bottom: 28px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px 48px;
  align-items: start;
}
.split--shots-first {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.split--text-first {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
}
.split__text {
  min-width: 0;
  color: var(--ink-2);
}
.split__text > p + p {
  margin-top: 14px;
}
.split__shots {
  min-width: 0;
  display: grid;
  gap: 16px;
}

/* ---------- bullets, as in the deck ---------- */
.bullets {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.bullets div {
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}
.bullets dt {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
}
.bullets dd {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-top: 3px;
}
.bullets--row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 0;
}

/* ---------- features dropdown ---------- */
.menu {
  position: relative;
}
.menu__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 11px;
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
}
.menu__btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}
.menu__btn:hover,
.menu.is-open .menu__btn {
  color: var(--ink);
  background: var(--grey);
}
.menu.is-open .menu__btn svg {
  transform: rotate(180deg);
}
.menu__list {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 260px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(37, 36, 35, 0.14);
  flex-direction: column;
  gap: 1px;
}
.menu.is-open .menu__list {
  display: flex;
}
.menu__list a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.btn--outline {
  background: var(--paper);
  color: var(--accent-deep) !important;
  border: 1px solid var(--accent);
}
.btn--outline:hover {
  background: var(--accent-soft) !important;
}
.top__nav .btn--outline {
  margin-left: 10px;
}

/* ---------- problem cards (deck page 3) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
  min-width: 0;
}
.card__icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  margin: 16px 0 10px;
  text-wrap: balance;
}
.card p {
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ---------- questions (deck page 4) ---------- */
.questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 40px;
}
.questions li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid rgba(37, 36, 35, 0.06);
}
.questions p {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.num {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  flex: none;
  margin-top: 1px;
}

/* ---------- retailers (deck page 5) ---------- */
.retailers {
  display: grid;
  gap: 14px;
  margin-bottom: 44px;
}
.retailers div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px 24px;
  align-items: center;
}
.retailers dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.retailers dd {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
}
.chip--dark {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.chip--blue {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- three numbered views (deck page 8) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}
.steps li {
  min-width: 0;
}
.steps h3 {
  margin: 12px 0 6px;
}
.steps p {
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}
.faq__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
  min-width: 0;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  margin-right: 4px;
  transition: transform 0.15s;
}
.faq__item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 6px;
}
.faq__item p {
  padding: 0 0 18px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ---------- contact (deck page 12) ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}
.contact h2 {
  margin-bottom: 24px;
}
.ticks {
  display: grid;
  gap: 12px;
  font-size: 17px;
}
.ticks li {
  position: relative;
  padding-left: 22px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.vcard {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 32px;
  min-width: 0;
}
.vcard__name {
  font-size: 22px;
  font-weight: 700;
}
.vcard__brand {
  font-size: 14px;
  font-weight: 700;
  margin: 2px 0 20px;
}
.vcard__brand span {
  color: var(--accent);
}
.vcard__line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  margin-top: 6px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.vcard__line + .vcard__line {
  margin-top: 14px;
}
.vcard__icon {
  display: inline-flex;
  flex: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--paper);
  color: var(--accent);
}
.vcard__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vcard__line a {
  text-decoration: none;
  font-weight: 600;
}
.vcard__line a:hover {
  color: var(--accent);
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 28px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand--foot {
  font-size: 16px;
}
.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.foot__nav a {
  text-decoration: none;
  font-weight: 600;
}
.foot__nav a:hover {
  color: var(--accent-deep);
}
.foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--faint);
}
.foot__legal a {
  text-decoration: none;
}
.foot__legal a:hover {
  color: var(--accent-deep);
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split,
  .split--shots-first,
  .split--text-first {
    grid-template-columns: minmax(0, 1fr);
  }
  .split--shots-first .split__shots {
    order: 2;
  }
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }
  .band {
    padding-block: 52px;
  }
  .hero {
    padding-block: 40px 48px;
  }
  .top__toggle {
    display: flex;
  }
  .top__nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 16px;
    box-shadow: 0 12px 24px rgba(37, 36, 35, 0.1);
  }
  .top.is-open .top__nav {
    display: flex;
  }
  .top.is-open .top__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .top.is-open .top__toggle span:nth-child(2) {
    opacity: 0;
  }
  .top.is-open .top__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .top__nav a {
    padding: 10px 8px;
  }
  .top__nav .btn {
    margin: 6px 0 0;
    align-self: flex-start;
  }
  .menu__btn {
    width: 100%;
    justify-content: space-between;
    padding: 10px 8px;
  }
  .menu__list {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--accent-soft);
    border-radius: 0;
    margin-left: 8px;
    padding: 2px 0 6px 6px;
  }
  .cards,
  .questions,
  .steps,
  .bullets--row {
    grid-template-columns: minmax(0, 1fr);
  }
  .retailers div {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .shot--card {
    max-width: none;
  }
}

/* Phones: the deck screens keep a readable size and scroll sideways inside
   their frame instead of shrinking to a thumbnail. */
@media (max-width: 760px) {
  .shot {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .shot img {
    min-width: 640px;
  }
  .shot--hero img,
  .shot--wide img {
    min-width: 900px;
  }
  .shot--card img {
    min-width: 0;
  }
}
