/* ClearLink desktop — synced with /m/ design language */

:root {
  --bg: #f6f4f1;
  --header-tint: rgba(0, 0, 0, 0.85);
  --header-tint-border: #fff;
  --paper-warm: var(--bg);
  --line-warm: rgba(26, 24, 22, 0.1);
  --brand-mark: 48px;
  --header-tg-mark: 44px;
  --header-h: 80px;
  --card-radius: 16px;
}

html:not(.auth-ready) [data-auth-nav] {
  visibility: hidden;
}

/* Global UI typography — Manrope everywhere except brand badge */
main,
.site-footer,
.button,
.term-filter button,
.auth-toggle__btn,
.device-tile__name,
.device-tile__meta,
.footer-nav,
.footer-copy,
.auth-form,
.auth-panel,
.price-card,
.tariff-card-fallback,
.cookie-banner,
.devices-download__note {
  font-family: var(--font-text);
}

body {
  background: var(--bg);
  color: var(--ink);
}

main {
  background: var(--bg);
}

/* ── Header: brand + TG circle ── */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
  padding-top: 16px;
  padding-bottom: 14px;
}

.header-inner .brand {
  transform: translateY(-3px);
}

.site-header.site-header--over-hero .brand-label,
.site-header:not(.site-header--over-hero) .brand-label,
.site-header.is-scrolled:not(.site-header--over-hero) .brand-label {
  box-sizing: border-box;
  width: var(--brand-mark);
  height: var(--brand-mark);
  min-width: var(--brand-mark);
  min-height: var(--brand-mark);
  padding: 0 4px;
  border: 2px solid var(--header-tint-border);
  border-radius: 14px;
  background: var(--header-tint);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: background 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.header-tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: var(--header-tg-mark);
  height: var(--header-tg-mark);
  min-width: var(--header-tg-mark);
  min-height: var(--header-tg-mark);
  border: 2px solid var(--header-tint-border);
  border-radius: 50%;
  background: var(--header-tint);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transform: translateY(-3px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.32s ease, border-color 0.32s ease;
}

.header-tg-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.header-tg-btn__icon {
  display: block;
  width: 26px;
  height: 26px;
  transform: translateX(-1px);
}

.header-material {
  transition:
    opacity 0.34s ease-out,
    backdrop-filter 0.34s ease-out,
    -webkit-backdrop-filter 0.34s ease-out;
}

/* ── Hero typography — brand serif + geometric sans ── */
.hero-title {
  font-family: var(--font-text);
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-transform: none;
}

.hero-title-line--brand {
  margin-bottom: clamp(8px, 1.2vh, 14px);
  font-size: clamp(15px, 1.55vw, 21px);
  letter-spacing: 0.14em;
}

.hero-title-line--brand > span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: inherit;
  line-height: 1.08;
  letter-spacing: inherit;
  text-transform: uppercase;
}

.hero-title-line:nth-child(1) {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
}

.hero-title-line:nth-child(2),
.hero-title-line:nth-child(3) {
  font-family: var(--font-text);
  font-weight: 800;
  letter-spacing: -0.044em;
  text-transform: none;
  font-synthesis: none;
}

.hero-promo {
  display: inline-flex;
  margin-top: clamp(18px, 2.4vh, 26px);
  padding: 7px 14px;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: clamp(11px, 1.1vw, 12px);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-lead {
  margin-top: clamp(12px, 1.8vh, 16px);
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.54;
  letter-spacing: 0.012em;
}

.hero-lead-accent {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.88em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
}

/* ── Section eyebrows ── */
.section-eyebrow {
  margin: 0 0 10px;
  font: 600 11px/1.25 var(--font-text);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.bento-statement .section-eyebrow {
  margin-bottom: 8px;
}

/* ── Statement blocks — PayPal-style geometric sans ── */
.bento-statement h2,
.pricing-statement h2,
.cabinet-head h2,
.devices-block__head h2 {
  font-family: var(--font-text);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-transform: none;
  line-height: 1.02;
  color: var(--ink);
}

.bento-statement h2,
.pricing-statement h2 {
  font-size: clamp(28px, 4.4vw, 50px);
}

.statement-lead {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: clamp(15px, 1.15vw, 18px);
  letter-spacing: -0.018em;
  line-height: 1.48;
  color: var(--muted);
}

.bento-statement {
  padding-block: clamp(52px, 7vw, 88px);
}

/* ── Edge photo bands — PayPal-style edge words ── */
.edge-pin .edge-scene__frame--display {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding:
    clamp(80px, 21vh, 168px)
    clamp(20px, 4vw, 48px)
    clamp(56px, 12vh, 104px);
}

.edge-pin .edge-pair {
  width: 100%;
  max-width: 1320px;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  align-content: start;
  height: auto;
  flex: 0 0 auto;
  gap: clamp(2px, 0.65vw, 8px);
}

.edge-pin .edge-scene__frame--display .edge-word,
.edge-scene--photo.edge-pin__sticky .edge-word {
  font-family: var(--font-text);
  font-weight: 900;
  letter-spacing: -0.038em;
  text-transform: lowercase;
  line-height: 0.86;
  font-size: clamp(58px, 11.2vw, 172px);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.34);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
}

.edge-word--right {
  font-weight: 800;
}

/* Photo band → white headline band → content (black seam animates in on scroll) */
.edge-pin {
  background: #000;
}

.edge-pin + .pricing-showcase {
  background: #fff;
  margin-top: -1px;
}

.edge-pin + .pricing-showcase .pricing-showcase__inner {
  background: transparent;
  padding-top: clamp(28px, 4vw, 44px);
  gap: clamp(18px, 2.8vw, 28px);
}

.edge-pin--tall + .devices-block {
  padding-top: clamp(28px, 4vw, 44px);
}

.compact-paypal-stack .bento-statement {
  background: var(--bg);
}

/* ── Term filter: ink pill track ── */
.term-filter {
  display: flex;
  width: min(100%, 420px);
  margin: 0 auto 28px;
  padding: 4px;
  border-radius: 999px;
  background: var(--ink);
  gap: 0;
}

.term-filter button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font: 700 14px/1.1 var(--font-text);
  letter-spacing: -0.01em;
  transition: background 0.2s ease, color 0.2s ease;
}

.term-filter button.is-active {
  background: #fff;
  color: var(--ink);
}

/* ── Devices: white card panel ── */
.devices-block {
  background: #fff;
  padding-bottom: clamp(18px, 5mm, 28px);
}

.devices-panel {
  padding-bottom: 0;
}

.devices-panel__shell {
  padding-block: clamp(36px, 5vw, 52px) clamp(8px, 1.2vw, 12px);
}

.devices-panel-wrap {
  max-width: 920px;
  margin: clamp(24px, 3.5vw, 32px) auto 0;
  padding-bottom: clamp(10px, 2.5mm, 14px);
}

.devices-panel__card {
  padding: clamp(14px, 2vw, 18px) clamp(14px, 2vw, 18px) clamp(18px, 2.4vw, 22px);
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(26, 24, 22, 0.06);
  box-shadow:
    0 24px 56px rgba(26, 24, 22, 0.07),
    0 2px 10px rgba(26, 24, 22, 0.04);
}

.devices-grid {
  gap: clamp(10px, 1.4vw, 14px);
  margin: 0;
  max-width: none;
}

.device-tile {
  gap: 10px;
  min-height: 112px;
  padding: clamp(20px, 2.4vw, 24px) clamp(10px, 1.4vw, 14px) clamp(16px, 2vw, 20px);
  border-radius: 22px;
  background: #faf9f7;
  border: 1px solid rgba(26, 24, 22, 0.05);
  text-align: center;
  justify-content: center;
}

.device-tile:hover {
  background: #f5f3f0;
}

.device-tile__glyph {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-top: 4px;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 8px 20px rgba(26, 24, 22, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.device-tile--windows .device-tile__glyph {
  background: linear-gradient(145deg, #f4f9ff 0%, #e7f2fb 100%);
}

.device-tile--macos .device-tile__glyph,
.device-tile--ios .device-tile__glyph {
  background: linear-gradient(145deg, #f7f7f8 0%, #ececee 100%);
}

.device-tile--android .device-tile__glyph {
  background: linear-gradient(145deg, #f1faf4 0%, #e4f4ea 100%);
}

.device-tile__icon {
  width: 28px;
  height: 28px;
}

.device-tile__icon--ios {
  width: 26px;
  height: 26px;
}

.device-tile__name {
  font: 800 15px/1.15 var(--font-text);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.device-tile__meta {
  display: none;
}

/* Download strip */
.devices-download {
  margin-top: 16px;
  padding: 18px 4px clamp(14px, 2vw, 18px);
  border-top: 1px solid rgba(26, 24, 22, 0.08);
  text-align: center;
}

.devices-download__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.devices-download__eyebrow {
  margin-bottom: 0;
}

.devices-download__marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 24px);
}

.devices-download__sep {
  display: none;
}

.devices-download__mark {
  display: block;
  width: auto;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.82;
}

.devices-download__mark--happ {
  height: clamp(30px, 3.6vw, 38px);
}

.devices-download__mark--incy {
  height: clamp(20px, 2.4vw, 26px);
}

.devices-download__note {
  margin: 10px 0 14px;
  font: 500 13px/1.45 var(--font-text);
  color: var(--muted);
}

.devices-download__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 2px;
}

/* ── Features: pure black + mobile glass widgets ── */
.feature-scroll-pin,
.feature-scroll-pin.dark-run,
.feature-scroll-pin[data-feature-active="family"],
.feature-scroll-pin[data-feature-active="friends"],
.feature-scroll-pin[data-feature-active="business"] {
  background: #000;
}

.feature-scroll-pin .feature-visual-lens,
.feature-scroll-pin .feature-visual-glass-sweep {
  display: none !important;
}

.feature-scroll-pin .paypal-tabs .feature-visual {
  background: #0e0c0a;
}

.feature-scroll-pin .paypal-tabs .feature-visual-panel .feature-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 8, 6, 0.04) 0%,
    rgba(10, 8, 6, 0.08) 42%,
    rgba(8, 6, 4, 0.34) 100%
  );
}

.feature-scroll-pin .paypal-tabs .feature-visual-panel .feature-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.feature-scroll-pin .paypal-tabs .feature-visual-panel .feature-glass {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 3.5cqw, 18px);
  z-index: 5;
  margin: 0;
  width: min(92%, 276px);
  transform: translateX(-50%) translateY(5px) scale(0.982);
}

.feature-scroll-pin .paypal-tabs .feature-visual-panel.is-active .feature-glass {
  transform: translateX(-50%) translateY(0) scale(1);
}

.feature-scroll-pin .paypal-tabs .feature-visual-panel[data-panel="friends"] .feature-glass {
  bottom: clamp(10px, 3cqw, 16px);
}

/* Features copy — geometric sans like PayPal reference */
.feature-scroll-pin .paypal-tabs .feature-tab {
  font-family: var(--font-text);
  font-size: clamp(28px, 3.5vw, 54px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: none;
  text-shadow: none;
  color: rgba(255, 255, 255, 0.28);
}

.feature-scroll-pin .paypal-tabs .feature-tab.is-active {
  color: #fff;
  font-weight: 800;
}

.feature-scroll-pin .paypal-tabs .feature-meta-text {
  font-family: var(--font-text);
  font-size: clamp(15px, 1.12vw, 18px);
  font-weight: 500;
  line-height: 1.48;
  letter-spacing: -0.018em;
  color: rgba(255, 255, 255, 0.92);
}

.feature-scroll-pin .paypal-tabs .feature-cta.button-outline-light {
  min-height: 48px;
  padding: 0 28px;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.012em;
  border-width: 1.5px;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.feature-scroll-pin .paypal-tabs .feature-cta.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.72);
}

/* ── Cabinet / unified auth ── */
#cabinet.cabinet-section {
  background: var(--bg);
  border-top: 0;
  padding-block: clamp(56px, 8vw, 92px) clamp(44px, 5.5vw, 64px);
}

@media (min-width: 761px) {
  #cabinet.cabinet-section {
    scroll-margin-top: 0;
  }

  #cabinet.cabinet-section.cabinet-section--auth {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: calc(var(--header-h) + clamp(8px, 1.6vh, 16px));
    padding-bottom: clamp(24px, 4vh, 44px);
  }

  #cabinet.cabinet-section.cabinet-section--auth .cabinet-shell {
    width: min(440px, calc(100% - 2 * var(--gutter)));
    gap: clamp(16px, 2vh, 20px);
  }

  #cabinet.cabinet-section.cabinet-section--auth .cabinet-head h2 {
    font-size: clamp(32px, 3.1vw, 44px);
  }

  #cabinet.cabinet-section.cabinet-section--auth .cabinet-head__lead {
    margin-top: 10px;
    font-size: clamp(12px, 0.9vw, 14px);
  }

  #cabinet.cabinet-section.cabinet-section--auth .auth-shell {
    width: 100%;
    margin-top: 0;
  }
}

.cabinet-shell {
  gap: clamp(24px, 3.5vw, 36px);
}

.cabinet-head h2 {
  letter-spacing: -0.035em;
}

.cabinet-head__lead {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(26, 24, 22, 0.62);
}

.cabinet-head__eyebrow {
  margin: 0 0 8px;
  font: 600 11px/1.25 var(--font-text);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-shell {
  max-width: 440px;
  margin: clamp(8px, 1.5vw, 16px) auto 0;
}

.auth-panel {
  padding: clamp(18px, 2.2vw, 22px);
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(26, 24, 22, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 28px 72px rgba(26, 24, 22, 0.08),
    0 8px 24px rgba(26, 24, 22, 0.04);
}

.auth-panel--link {
  max-width: 440px;
  margin: clamp(8px, 1.5vw, 16px) auto 0;
}

.auth-toggle {
  display: flex;
  width: 100%;
  margin-bottom: 10px;
  padding: 3px;
  border-radius: 999px;
  background: var(--ink);
  gap: 0;
}

.auth-toggle__btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: 700 13px/1.1 var(--font-text);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.auth-toggle__btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.auth-panes {
  display: grid;
  align-items: start;
}

.auth-panes > .auth-form {
  grid-area: 1 / 1;
  width: 100%;
}

.auth-panes > .auth-form.is-idle {
  display: none;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form__lead {
  margin: 0;
  padding-top: 2px;
  font-size: 12.5px;
  line-height: 1.42;
  color: rgba(26, 24, 22, 0.58);
  text-align: center;
}

.auth-form__fields {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}

.auth-field {
  display: grid;
  gap: 5px;
}

.auth-field__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.auth-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(26, 24, 22, 0.12);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(26, 24, 22, 0.24);
  box-shadow: 0 0 0 3px rgba(26, 24, 22, 0.06);
}

.auth-consent {
  display: block;
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.auth-consent a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-form__submit {
  min-height: 44px;
}

.auth-form__meta {
  margin: -4px 0 0;
  text-align: center;
}

.auth-link {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(26, 24, 22, 0.58);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.auth-link:hover,
.auth-link:focus-visible {
  color: var(--ink);
}

.auth-panel__head h3 {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 24px);
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  text-align: center;
}

.auth-panel--link .link-code-display {
  text-align: center;
}

.auth-panel--link .muted {
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.auth-panel--link .button-outline {
  border-color: rgba(26, 24, 22, 0.14);
  color: var(--ink);
}

/* ── Footer: tight strip, original logo sizes ── */
.site-footer {
  background: #141210;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  padding: 12px 0 calc(4px + env(safe-area-inset-bottom, 0px));
}

.footer-strip {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  min-height: 0;
}

.footer-brand-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(12px, 1.4vw, 18px);
  flex: 0 0 auto;
  width: auto;
}

.footer-brand {
  flex: 0 0 auto;
  width: var(--brand-mark);
  height: var(--brand-mark);
  min-width: var(--brand-mark);
  color: #fff;
}

.footer-brand .brand-label {
  box-sizing: border-box;
  width: var(--brand-mark);
  height: var(--brand-mark);
  min-width: var(--brand-mark);
  min-height: var(--brand-mark);
  padding: 0 4px;
  border: 2px solid var(--header-tint-border);
  border-radius: 14px;
  background: var(--header-tint);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: background 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.footer-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px clamp(12px, 1.6vw, 18px);
  min-width: 0;
  font: 500 12px/1.25 var(--font-text);
  letter-spacing: -0.01em;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: #fff;
  opacity: 1;
}

.footer-payments {
  flex: 0 0 auto;
  width: clamp(100px, 9.5vw, 120px);
  margin: 0;
}

.footer-payments img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  opacity: 1;
  filter: brightness(0) invert(1) contrast(1.15);
}

.footer-copy {
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.48);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .footer-strip {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .footer-nav {
    flex-basis: 100%;
    justify-content: flex-start;
    order: 3;
  }

  .footer-copy {
    margin-left: auto;
  }
}

/* ── Cards & pricing on white bg ── */
.pricing-showcase {
  background: #fff;
}

.pricing-showcase__inner {
  background: transparent;
}

.card,
.price-card {
  border-radius: var(--card-radius);
  border-color: rgba(26, 24, 22, 0.1);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header.site-header--over-hero .brand-label,
  .site-header:not(.site-header--over-hero) .brand-label,
  .header-tg-btn {
    background: rgba(0, 0, 0, 0.72);
    border-color: #fff;
  }
}

.password-field {
  display: grid;
  align-items: center;
}

.password-field > input {
  grid-area: 1 / 1;
  width: 100%;
  box-sizing: border-box;
  padding-right: 44px;
}

.password-field > input[type="password"]::-ms-reveal,
.password-field > input[type="password"]::-ms-clear {
  display: none;
}

.password-field > input::-webkit-credentials-auto-fill-button,
.password-field > input::-webkit-strong-password-auto-fill-button {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.password-field > .password-toggle {
  grid-area: 1 / 1;
  justify-self: end;
  align-self: center;
  z-index: 1;
  width: 36px;
  height: 36px;
  margin-right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(26, 24, 22, 0.45);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
}

.password-field > .password-toggle:hover,
.password-field > .password-toggle.is-active {
  color: rgba(26, 24, 22, 0.82);
}

.password-field > .password-toggle:focus-visible {
  outline: none;
  color: rgba(26, 24, 22, 0.82);
  box-shadow: 0 0 0 2px rgba(26, 24, 22, 0.12);
}

.password-field > .password-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.auth-dialog {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--ink-deep, #1a1816);
}

.auth-dialog::backdrop {
  background: rgba(26, 24, 22, 0.42);
  backdrop-filter: blur(6px);
}

.auth-dialog__panel {
  position: relative;
  padding: clamp(22px, 4vw, 28px);
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(26, 24, 22, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 28px 72px rgba(26, 24, 22, 0.14);
}

.auth-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(26, 24, 22, 0.06);
  color: rgba(26, 24, 22, 0.72);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.auth-dialog__eyebrow {
  margin: 0 0 8px;
  font: 600 11px/1.25 var(--font-text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-dialog__title {
  margin: 0;
  font-size: clamp(24px, 4vw, 30px);
  letter-spacing: -0.03em;
}

.auth-dialog__lead {
  margin: 10px 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(26, 24, 22, 0.62);
}

.auth-dialog__form {
  margin: 0;
}

/* Desktop browser stability pass:
   keep geometry deterministic in browsers with partial svh/dvh/sticky support. */
:root {
  --site-width: 100%;
  --layout-width: min(100%, 1600px);
  --hero-overhang: 18px;
  --hero-height: calc(var(--cl-vh, 1vh) * 100 + var(--hero-overhang));
  --edge-pin-sticky-h: calc(var(--cl-vh, 1vh) * 100);
  --photo-band-height: clamp(160px, min(calc(var(--layout-width) * 0.5625), 76vh), 900px);
  --photo-band-height-tall: clamp(190px, min(calc(var(--layout-width) * 0.6667), 88vh), 980px);
  --pin-travel: clamp(168px, 36vh, 340px);
  --pin-travel-tall: clamp(188px, 40vh, 380px);
  --feature-sticky-h: max(560px, calc(var(--cl-vh, 1vh) * 100));
  --feature-scene-travel: clamp(420px, 50vh, 580px);
  --hero-content-shift-x: clamp(20px, 4.2vw, 68px);
  --hero-content-shift-y: clamp(-102px, -10vh, -46px);
  --hero-title-shift-y: clamp(-58px, -5.8vh, -22px);
}

@supports (height: 100svh) {
  :root {
    --hero-height: calc(100svh + var(--hero-overhang));
    --edge-pin-sticky-h: 100svh;
    --photo-band-height: clamp(160px, min(calc(var(--layout-width) * 0.5625), 76svh), 900px);
    --photo-band-height-tall: clamp(190px, min(calc(var(--layout-width) * 0.6667), 88svh), 980px);
    --pin-travel: clamp(168px, 36svh, 340px);
    --pin-travel-tall: clamp(188px, 40svh, 380px);
    --feature-sticky-h: max(560px, 100svh);
    --feature-scene-travel: clamp(420px, 50svh, 580px);
    --hero-content-shift-y: clamp(-102px, -10svh, -46px);
    --hero-title-shift-y: clamp(-58px, -5.8svh, -22px);
  }
}

@supports (height: 100dvh) {
  :root {
    --edge-pin-sticky-h: 100dvh;
  }
}

.site-header {
  left: 0;
  right: 0;
  width: 100%;
  transform: none;
}

.hero,
.edge-pin__sticky.photo-band,
.edge-pin--tall .edge-pin__sticky.photo-band,
.edge-pin--tall .edge-pin__sticky.photo-band.edge-scene {
  height: var(--edge-pin-sticky-h);
  min-height: calc(var(--cl-vh, 1vh) * 100);
}

.hero {
  height: var(--hero-height);
  min-height: var(--hero-height);
  min-height: max(var(--hero-height), calc(var(--cl-vh, 1vh) * 100 + var(--hero-overhang)));
}

.hero-inner {
  width: min(var(--shell-wide), calc(100% - 2 * var(--gutter)));
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.hero-copy {
  max-width: min(440px, calc(100vw - 2 * var(--gutter)));
}

.tariff-slider {
  --tariff-gap: 12px;
  overflow: visible;
}

.tariff-slider__viewport {
  overflow: hidden;
  padding-inline: 0;
}

.tariff-slider__track {
  gap: var(--tariff-gap);
}

.tariff-card-slide {
  flex-basis: calc((100% - (3 * var(--tariff-gap))) / 4);
  min-width: 0;
}

@media (max-width: 1240px) {
  .pricing-showcase__inner {
    width: min(100%, calc(100vw - 2 * var(--gutter)));
  }

  .tariff-card-slide {
    flex-basis: calc((100% - (2 * var(--tariff-gap))) / 3);
  }
}

@media (max-width: 980px) {
  :root {
    --hero-height: calc(100vh + var(--hero-overhang));
    --edge-pin-sticky-h: 100vh;
    --hero-content-shift-x: clamp(12px, 3vw, 28px);
    --hero-content-shift-y: clamp(-76px, -8vh, -28px);
    --hero-title-shift-y: clamp(-42px, -5vh, -14px);
  }

  @supports (height: 100svh) {
    :root {
      --hero-height: calc(100svh + var(--hero-overhang));
      --edge-pin-sticky-h: 100svh;
      --hero-content-shift-y: clamp(-76px, -8svh, -28px);
      --hero-title-shift-y: clamp(-42px, -5svh, -14px);
    }
  }

  .tariff-card-slide {
    flex-basis: calc((100% - var(--tariff-gap)) / 2);
  }
}

@media (max-width: 760px) {
  .tariff-card-slide {
    flex-basis: 100%;
  }
}

/* Cross-device layout guardrails for desktop/tablet browsers. */
html,
body {
  width: 100%;
  max-width: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.hero-bg,
.section-bg,
.feature-photo {
  max-width: none;
  object-fit: cover;
}

.devices-store img,
.hero-payment-logos img,
.footer-payment-logos img {
  height: auto;
  object-fit: contain;
}

.devices-download__mark--happ {
  width: auto;
  height: clamp(30px, 3.6vw, 38px);
  max-width: min(190px, 30vw);
}

.devices-download__mark--incy {
  width: auto;
  height: clamp(20px, 2.4vw, 26px);
  max-width: min(148px, 24vw);
}

.devices-store img {
  width: min(135px, 28vw);
}

@supports (height: 100dvh) {
  .hero {
    height: calc(100dvh + var(--hero-overhang));
    min-height: calc(100dvh + var(--hero-overhang));
  }

  .edge-pin__sticky.photo-band,
  .edge-pin--tall .edge-pin__sticky.photo-band,
  .edge-pin--tall .edge-pin__sticky.photo-band.edge-scene {
    height: 100dvh;
    min-height: 100dvh;
  }
}

@media (max-width: 1180px) {
  :root {
    --gutter: clamp(18px, 3.8vw, 40px);
    --hero-object-position: 58% 22%;
    --flow-object-position: center 42%;
    --cabinet-object-position: center 42%;
  }

  .hero-copy {
    max-width: min(420px, calc(100vw - 2 * var(--gutter)));
  }

  .hero-actions .button {
    min-width: min(100%, 164px);
  }

  .devices-panel-wrap,
  .devices-download,
  .feature-stage {
    max-width: min(100%, calc(100vw - 2 * var(--gutter)));
  }
}

@media (max-width: 900px) {
  :root {
    --hero-object-position: 54% 22%;
    --hero-content-shift-x: clamp(12px, 3vw, 24px);
    --hero-content-shift-y: clamp(-68px, -7svh, -24px);
    --hero-title-shift-y: clamp(-36px, -4svh, -12px);
  }

  .main-nav {
    gap: clamp(10px, 2vw, 16px);
  }

  .hero-title {
    font-size: clamp(34px, 6vw, 54px);
  }

  .hero-lead br {
    display: none;
  }

  .devices-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tariff-slider__viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tariff-slider__viewport::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .hero-copy {
    max-width: calc(100vw - 2 * var(--gutter));
  }

  .hero-actions {
    align-items: stretch;
    width: min(100%, 340px);
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .hero-payment-logos {
    width: min(240px, 70vw);
  }

  .devices-panel__card {
    padding-inline: 12px;
    border-radius: 24px;
  }

  .devices-grid {
    gap: 10px;
  }

  .device-tile {
    min-height: 104px;
    padding-inline: 8px;
  }

  .devices-download__marks {
    gap: 14px;
  }

  .devices-download__mark--happ {
    width: auto;
    height: clamp(28px, 8vw, 34px);
    max-width: min(156px, 42vw);
  }

  .devices-download__mark--incy {
    width: auto;
    height: clamp(19px, 5.6vw, 23px);
    max-width: min(126px, 36vw);
  }
}
