/* 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;
}

/* 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);
}

.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 {
  visibility: hidden;
  pointer-events: none;
  user-select: 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: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.auth-consent a {
  color: var(--ink);
  font-weight: 600;
}

.auth-form__submit {
  min-height: 44px;
}

.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;
  }
}
