:root {
  /* Palette - Dawnlight / Emberglow / Sunstone / Sienna / Umber / Obsidian */
  --dawnlight: #fff1ee;
  --emberglow: #ff9d00;
  --sunstone: #ec842f;
  --sienna: #c85502;
  --umber: #843919;
  --obsidian: #2a1a0b;

  /* Surfaces */
  --cream: #faf3ee;
  --cream-2: #f6e9df;
  --surface: #ffffff;

  /* Brand */
  --orange: var(--sunstone);
  --orange-dark: var(--sienna);
  --orange-soft: rgba(236, 132, 47, 0.10);
  --orange-tint: rgba(236, 132, 47, 0.16);

  /* Ink & text */
  --ink: var(--obsidian);
  --ink-soft: #6b5644;
  --muted: #9c8a78;

  /* Lines */
  --border: #efe2d6;
  --border-strong: #e3d3c2;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(74, 55, 30, 0.04), 0 1px 3px rgba(74, 55, 30, 0.06);
  --shadow-md: 0 4px 12px rgba(74, 55, 30, 0.06), 0 2px 4px rgba(74, 55, 30, 0.04);
  --shadow-lg: 0 12px 32px rgba(74, 55, 30, 0.10), 0 4px 8px rgba(74, 55, 30, 0.05);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  display: flex;
  font-family: var(--sans);
  color: var(--ink);
  min-height: 100vh;
  background-color: var(--cream);
  background-image:
    radial-gradient(1100px 520px at 88% -8%, rgba(255, 157, 0, 0.10), transparent 60%),
    radial-gradient(900px 500px at -5% 105%, rgba(236, 132, 47, 0.06), transparent 55%);
  background-attachment: fixed;
}

/* ============ Sidebar ============ */
.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 268px;
  height: 100vh;
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.sidebar-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 44px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}

.logo-word {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--orange-dark);
  white-space: nowrap;
  font-variation-settings: "opsz" 40;
}

.logout-btn {
  align-self: flex-start;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 14px;
  margin-top: 4px;
  border-radius: 10px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.logout-btn:hover { color: var(--orange); background: var(--orange-soft); }

nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--sans);
  margin-top: 8px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-link:hover { background: var(--orange-soft); color: var(--orange-dark); }

.nav-link.active {
  background: var(--orange-tint);
  color: var(--orange-dark);
  font-weight: 600;
  text-decoration: none;
}
.nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 3px;
  background: var(--orange);
}

.user-info {
  margin-top: 40px;
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.6;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ============ Main ============ */
.main {
  flex: 1;
  padding: 56px 64px;
  max-width: 920px;
}

.main h2 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.subtitle {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14.5px;
  margin-bottom: 26px;
}

section { margin-bottom: 8px; }
.section-title-spaced { margin-top: 56px; }

/* ============ Contact rows ============ */
.contact-list, .connector-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-row, .connector-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.contact-row:hover, .connector-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.icon-messages { background: #34c759; }
.icon-whatsapp { background: #25d366; }
.icon-email { background: #007aff; }

.contact-info { flex: 1; font-family: var(--sans); }
.contact-name { font-weight: 600; font-size: 15px; margin-bottom: 3px; letter-spacing: -0.01em; }
.contact-value {
  color: var(--ink-soft);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.copy-btn:hover { color: var(--orange); background: var(--orange-soft); }

/* Tappable phone number (click to copy) */
.number-copy {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--ink-soft);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  border-radius: 4px;
  transition: color 0.15s var(--ease);
}
.number-copy:hover { color: var(--orange); }
.number-copy:active { color: var(--orange-dark); }

/* Redirection / open-chat link */
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease), transform 0.15s var(--ease);
}
.contact-link:hover {
  color: var(--orange);
  background: var(--orange-soft);
  transform: translateY(-1px);
}

.chevron-right { color: var(--muted); font-size: 20px; }

/* ============ On-call humans ============ */
.human-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.human-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.human-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.human-emoji {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  background: var(--cream-2);
  border: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.human-emoji:hover {
  border-color: var(--orange);
  transform: scale(1.05);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.human-body { flex: 1; font-family: var(--sans); min-width: 0; }

.human-name-link {
  display: inline-block;
  text-decoration: none;
}
.human-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.15s var(--ease);
}
.human-name-link:hover .human-name { color: var(--orange-dark); }
.human-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-top: 2px;
}
.human-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 8px;
}
.human-desc a {
  color: var(--orange-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--orange-tint);
  transition: border-color 0.15s var(--ease);
}
.human-desc a:hover { border-bottom-color: var(--orange); }

/* ============ Connectors ============ */
.connector-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--cream);
  border: 1px solid var(--border);
  overflow: hidden;
}
.connector-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
/* Wordmark-style logos read small in the square tile - let them fill more */
.connector-icon img.logo-wide {
  width: 40px;
  height: 40px;
}
/* Square app-icon logos fill the whole tile */
.connector-icon img.logo-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
}

.connector-info { flex: 1; font-family: var(--sans); }
.connector-name { font-weight: 600; font-size: 15px; margin-bottom: 3px; letter-spacing: -0.01em; }
.connector-desc { color: var(--muted); font-size: 13px; line-height: 1.5; }

.connect-btn {
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.22);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}
.connect-btn:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.28);
}
.connect-btn:active { transform: translateY(0); }

/* Coming-soon (non-interactive) */
.coming-soon-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--cream-2);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

/* Connected (non-interactive) -- a connector whose login is already in the vault */
.connected-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-dark);
  background: var(--orange-soft);
  border: 1px solid var(--orange-tint);
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

/* ============ Vault ============ */
.vault-section {
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.vault-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.vault-section-header h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.add-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-soft);
  border: none;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--orange-dark);
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.add-btn:hover { background: var(--orange-tint); transform: scale(1.05); }
.add-btn:active { transform: scale(0.96); }

.empty-state {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 14.5px;
  padding: 8px 0 2px;
}

.vault-list {
  list-style: none;
  font-family: var(--sans);
  font-size: 15px;
}
.vault-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.vault-list li:last-child { border-bottom: none; }

.collapsible { cursor: pointer; }
.chevron {
  font-size: 20px;
  color: var(--orange);
  transition: transform 0.22s var(--ease);
}
.chevron.open { transform: rotate(180deg); }

.section-desc {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.55;
}
.vault-list-wrapper { margin-top: 14px; }

/* ============ Trust & Backing ============ */
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px 13px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.trust-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.backing-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.backing-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.backing-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.backing-logo {
  height: 34px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.95;
  transition: opacity 0.2s var(--ease);
}
.backing-logo:hover { opacity: 1; }

/* Logo supplied on a dark background - present as a rounded badge */
.backing-logo-badge {
  height: 40px;
  border-radius: 8px;
  opacity: 1;
}

.backing-logo-link {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  transition: transform 0.18s var(--ease);
}
.backing-logo-link:hover { transform: translateY(-1px); }
/* GIFT logo has a two-line tagline, so give it more height to stay legible */
.backing-logo-link .backing-logo {
  height: 50px;
  max-width: 180px;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 36px;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 620px;
}
.security-note::before {
  content: "🔒";
  font-size: 11.5px;
  line-height: 1.65;
  flex-shrink: 0;
}

/* Upright ampersand (Fraunces default is very calligraphic) */
.amp {
  font-family: var(--sans);
  font-weight: 500;
  font-style: normal;
}

/* ============ Entrance animations ============ */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes logoIn {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes splashSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Pre-paint hidden state - only while awaiting reveal */
  html.preload .contact-row:not(.shown),
  html.preload .human-card:not(.shown),
  html.preload .connector-row:not(.shown),
  html.preload .trust-pill:not(.shown),
  html.preload .backing-strip:not(.shown),
  html.preload .security-note:not(.shown),
  html.preload .vault-section:not(.shown),
  html.preload .tab-content > section > h2:not(.shown),
  html.preload .tab-content > section > .subtitle:not(.shown) {
    opacity: 0;
  }

  .reveal-in { animation: revealUp 0.6s var(--ease) both; }

  /* Layered sidebar entrance on load */
  html.preload .logo-img { animation: logoIn 0.6s var(--ease) both; }
  html.preload .logo-word { animation: fadeIn 0.6s var(--ease) 0.08s both; }
  html.preload nav > * { animation: fadeIn 0.5s var(--ease) both; }
  html.preload nav > *:nth-child(1) { animation-delay: 0.14s; }
  html.preload nav > *:nth-child(2) { animation-delay: 0.20s; }
  html.preload nav > *:nth-child(3) { animation-delay: 0.26s; }
  html.preload nav > *:nth-child(4) { animation-delay: 0.32s; }
  html.preload .user-info { animation: fadeIn 0.6s var(--ease) 0.38s both; }
}

/* ============ Splash (brief branded load) ============ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--cream);
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
#splash.hide {
  opacity: 0;
  visibility: hidden;
}
.splash-logo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(255, 255, 255, 0.9);
}
@media (prefers-reduced-motion: no-preference) {
  .splash-logo { animation: splashSpin 1.1s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  /* No fade - reveal app immediately */
  #splash { display: none; }
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 760px) {
  body { flex-direction: column; }

  /* Header: logo row on top, nav row beneath */
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-top { margin-bottom: 0; justify-content: flex-start; }
  .logo-img { width: 48px; height: 48px; }
  .logo-word { font-size: 19px; }
  nav {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 0;
    gap: 6px;
  }
  .nav-link { padding: 8px 13px; }
  .logout-btn { margin-top: 0; padding: 8px 13px; font-size: 14px; }
  .user-info { display: none; }

  .main { padding: 30px 20px; max-width: 100%; }
  .main h2 { font-size: 27px; }

  /* Connector / contact cards: button drops below the text */
  .connector-row { flex-wrap: wrap; }
  .connector-info { flex: 1 1 60%; min-width: 0; }
  .connector-row .connect-btn,
  .connector-row .coming-soon-btn,
  .connector-row .connected-btn {
    flex-basis: 100%;
    margin-top: 12px;
    justify-content: center;
    text-align: center;
    padding: 11px 22px;
  }

  .trust-pill { width: 100%; }
  .backing-strip { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ============ Sign-in page ============ */
.login-body {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 22px;
}

.login-card {
  width: 100%;
  max-width: 430px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 56px;
}
.login-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}
.login-brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--orange-dark);
  font-variation-settings: "opsz" 40;
}

.login-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 12px;
}
.login-sub {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
}

.login-form { display: flex; flex-direction: column; }

.phone-group {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 3px 6px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.phone-group:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.country-select {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 10px;
  border-radius: 8px;
  color: var(--muted);
  transition: background 0.15s var(--ease);
}
.country-select:hover { background: var(--cream-2); }
.country-select .flag { font-size: 20px; line-height: 1; }
.country-select .dial-code {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.phone-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin: 9px 4px;
}

.phone-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  padding: 13px 8px;
  font-variant-numeric: tabular-nums;
}
.phone-input::placeholder { color: var(--muted); }

.login-legal {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 16px;
}
.login-legal a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.login-legal a:hover { color: var(--orange-dark); }

/* Sign-in errors and the "Send a new code" link-style button (code step) */
.login-error {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: #b3261e;
  margin-top: 12px;
}
.login-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.login-link-btn:hover { color: var(--orange-dark); }
.login-link-btn:disabled {
  color: var(--muted);
  text-decoration: none;
  cursor: default;
  font-variant-numeric: tabular-nums;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  background: #1a1a1a;
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 24px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.22);
  transition: background 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.login-btn:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26, 26, 26, 0.28);
}
.login-btn:active { transform: translateY(0); }
.login-btn svg { transition: transform 0.15s var(--ease); }
.login-btn:hover svg { transform: translateX(3px); }

/* Submitted, waiting on the server: locked, spinner in place of the arrow */
.login-btn.is-loading,
.login-btn.is-loading:hover {
  background: #1a1a1a;
  transform: none;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.22);
  cursor: progress;
  opacity: 0.88;
}
.login-btn.is-loading svg { display: none; }
.login-btn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 0.7s linear infinite;
}
@keyframes login-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .login-title { font-size: 30px; }
  .login-brand { margin-bottom: 44px; }
}

/* ============ Sign-in supported-by marquee ============ */
.login-marquee {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 0 26px;
  background: linear-gradient(to top, var(--cream) 55%, transparent);
  pointer-events: none;
}
.marquee-label {
  text-align: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.marquee-viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  padding-right: 60px;
  animation: marquee 26s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  flex-shrink: 0;
}
.marquee-logo-gift { height: 44px; }
.marquee-logo-badge {
  height: 38px;
  border-radius: 8px;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

@media (max-width: 760px) {
  .marquee-track { gap: 40px; padding-right: 40px; }
  .marquee-logo { height: 26px; }
  .marquee-logo-gift { height: 38px; }
  .marquee-logo-badge { height: 32px; }
}
