/* Brivo landing · values mirrored from apps/mobile/src/constants/theme.ts.
   Display scale adapts the UI_SPEC families to a full-screen editorial web. */
:root {
  --brand: #7c3aed;
  --brand-dark: #5b21b6;
  --brand-deep: #3b0f7d;
  --brand-700: #6d28d9;
  --brand-300: #c4b5fd;
  --accent: #84cc16;
  --accent-text: #2b4708;
  --paper: #faf9ff;
  --surface: #ffffff;
  --surface-2: #f4f2fa;
  --tint: #ede7fb;
  --ink: #1e0a3c;
  --muted: #6b47a8;
  --line: rgba(59, 15, 125, 0.14);
  --display: "Space Grotesk", sans-serif;
  --body: "Inter", sans-serif;
  --gutter: clamp(24px, 5.4vw, 104px);
  --header: 88px;
  --radius: 22px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
}
h1,
h2 {
  letter-spacing: -0.065em;
  line-height: 1.04;
}
p {
  line-height: 1.65;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: var(--accent);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 16px;
  background: var(--surface);
  z-index: 100;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1.6;
}
.soft-text {
  color: var(--brand-300);
}
.violet-text {
  color: var(--brand);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 56px;
  padding: 16px 24px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(
    160deg,
    #8b5cf6 0%,
    var(--brand) 42%,
    var(--brand-dark) 100%
  );
  box-shadow:
    inset 0 1px 0 #ffffff40,
    0 8px 24px #1e0a3c18;
  border: 1px solid #ffffff20;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.button:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 #ffffff55,
    0 12px 30px #1e0a3c30;
}
.button span {
  font-size: 22px;
  line-height: 1;
}
.button-small {
  min-height: 44px;
  padding: 12px 18px;
  font-size: 12px;
  border-radius: 12px;
  gap: 20px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid currentColor;
  padding: 8px 0;
}
.text-link span {
  font-size: 23px;
  transition: transform 0.2s;
}
.text-link:hover span {
  transform: translate(3px, 2px);
}
.section-pad {
  padding: 112px var(--gutter);
}

/* Floating brand and two controls. No full-width navigation bar. */
.services {
  position: relative;
  background: var(--paper);
  padding-top: 128px;
  padding-bottom: 72px;
}
.section-heading {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: end;
  column-gap: 12%;
  margin-bottom: 64px;
}
.section-heading .eyebrow {
  grid-column: 1/-1;
}
.section-heading h2,
.trust h2,
.join h2 {
  font-size: clamp(44px, 4.9vw, 76px);
}
.section-heading > p:last-child {
  max-width: 370px;
  font-size: 16px;
  color: var(--muted);
  padding-bottom: 8px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.service {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 110px;
  border-bottom: 1px solid var(--line);
  padding: 24px 12px 24px 0;
  font-size: 15px;
  font-family: var(--display);
  font-weight: 500;
}
.service img {
  width: 40px;
  height: 40px;
}
.service-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}
.service-bottom .text-link {
  color: var(--brand-dark);
  font-size: 12px;
}
.trust {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12%;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}
.trust-intro > p:last-child {
  color: var(--muted);
  font-size: 15px;
  margin-top: 24px;
}
.trust-details {
  padding-top: 40px;
}
.trust details {
  border-bottom: 1px solid var(--line);
}
.trust details:first-child {
  border-top: 1px solid var(--line);
}
.trust summary {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 88px;
  list-style: none;
  cursor: pointer;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.trust summary::-webkit-details-marker {
  display: none;
}
.detail-number {
  font: 10px var(--body);
  color: var(--muted);
}
.plus {
  position: relative;
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex-shrink: 0;
}
.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 8px;
  height: 1px;
  background: var(--brand);
}
.plus::after {
  transform: rotate(90deg);
  transition: transform 0.2s;
}
details[open] .plus::after {
  transform: rotate(0);
}
.trust details p {
  padding: 0 32px 28px;
  color: var(--muted);
  font-size: 14px;
  max-width: 550px;
}
.provider {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 15%;
  background: var(--brand-deep);
  color: white;
  padding-top: 120px;
  padding-bottom: 120px;
}
.provider h2 {
  font-size: clamp(56px, 6vw, 94px);
}
.provider-copy > p:not(.eyebrow) {
  font-size: 15px;
  max-width: 340px;
  color: #ede7fb;
  margin: 32px 0;
}
.provider .button {
  font-size: 13px;
}
.provider-path {
  display: grid;
  gap: 32px;
  align-content: center;
}
.provider-path > div {
  position: relative;
  padding-left: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid #ffffff24;
}
.provider-path > div:last-child {
  border: 0;
  padding-bottom: 0;
}
.path-number {
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--display);
  font-size: 14px;
  color: var(--accent);
}
.provider h3 {
  font-size: 23px;
  letter-spacing: -0.035em;
  max-width: 280px;
}
.provider-path p {
  margin-top: 12px;
  font-size: 13px;
  color: #ede7fb;
  max-width: 310px;
}
.provider-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #c4b5fd12;
  z-index: -1;
  transform: rotate(-18deg) scale(1.2);
}
.join {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
  background: var(--paper);
  padding-top: 128px;
  padding-bottom: 128px;
}
.join-copy > p:not(.eyebrow) {
  font-size: 15px;
  max-width: 365px;
  color: var(--muted);
  margin-top: 24px;
}
.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 32px;
  max-width: 370px;
}
.zone-list span::before {
  content: "·";
  margin-right: 8px;
  color: var(--brand);
}
.join-form {
  align-self: center;
  background: var(--surface);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 16px 64px #3b0f7d06;
}
.join fieldset {
  border: 0;
  margin: 0 0 28px;
  padding: 0;
}
.join legend,
.email-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.role-options {
  display: flex;
  gap: 8px;
}
.role-options label {
  position: relative;
  flex: 1;
  cursor: pointer;
}
.role-options input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.role-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
  color: var(--muted);
  transition:
    background 0.2s,
    color 0.2s;
}
.role-options input:checked + span {
  background: var(--tint);
  border-color: var(--brand);
  color: var(--brand-dark);
  font-weight: 600;
}
.role-options input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.email-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.email-row input {
  flex: 1;
  min-width: 130px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  height: 56px;
  padding: 0 16px;
  color: var(--ink);
  font-size: 14px;
}
.email-row input::placeholder {
  color: var(--muted);
}
.email-row .button {
  font-size: 12px;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
}
.form-message {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 16px;
  color: var(--brand-dark);
}
.form-message:empty {
  margin-top: 0;
}
.form-legal {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 20px;
}
.form-legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.site-footer {
  background: var(--ink);
  color: white;
  padding-top: 64px;
  padding-bottom: 48px;
  overflow: hidden;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-top > div {
  display: flex;
  gap: 32px;
  font-size: 12px;
}
.footer-top a:not(.brand) {
  padding: 12px 0;
}
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--brand-300);
  font-size: 10px;
  padding-top: 24px;
  border-top: 1px solid #ffffff20;
}
.footer-legal nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.footer-legal a:hover,
.footer-top a:hover {
  color: var(--accent);
}
.final-word {
  position: relative;
  margin-top: 96px;
}
.final-word p {
  font-family: var(--display);
  font-size: clamp(60px, 9.3vw, 152px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.03;
}
.final-word p > span:not(.final-dot) {
  color: var(--brand-300);
}
.final-dot {
  color: var(--accent);
}
.back-top {
  position: absolute;
  right: 0;
  bottom: 8px;
  border: 1px solid #ffffff50;
  border-radius: 50%;
  height: 64px;
  width: 64px;
  display: grid;
  place-items: center;
  font-size: 26px;
  transition: background 0.2s;
}
.back-top:hover {
  background: var(--brand);
}
@media (prefers-reduced-motion: no-preference) {
  .reveal.observe {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.7s,
      transform 0.7s;
  }
  .reveal.observe.in-view {
    opacity: 1;
    transform: none;
  }
}
