/* == Design tokens ======================================================= */

:root {
  /* color */
  --bg: #f6f8f8;
  --surface: #ffffff;
  --surface-tint: #eef4f3;
  --ink: #101820;
  --text: #172026;
  --muted: #4d5b61;
  --muted-soft: #607076;
  --line: #dfe7e5;
  --brand: #137f75;
  --brand-strong: #0f665e;
  --brand-deep: #0c4a43;
  --brand-deep-ink: #083732;
  --brand-tint: #dff4ef;
  --on-deep: #ffffff;
  --on-deep-soft: #c9e6e1;
  --on-deep-faint: #a9d4cd;
  --focus: #2fb6a6;
  --danger: #92272d;
  --danger-bg: #fdeaea;
  --danger-line: #f3c0c0;

  /* type */
  --font-body: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;

  /* spacing scale (4pt base) */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --section-pad: clamp(64px, 9vw, 112px);

  /* radius + elevation */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-frame: 0 10px 28px rgba(11, 58, 52, .16);

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --speed-fast: .15s;

  /* z-index scale */
  --z-header: 10;
}

/* == Base ================================================================= */

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
}

a {
  color: var(--brand);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

h1, h2, h3 {
  font-family: var(--font-display);
}

.container,
.page-frame {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

[id] {
  scroll-margin-top: 84px;
}

/* == Header =============================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-nav-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  min-height: 68px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--speed-fast) var(--ease-out), opacity var(--speed-fast);
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.nav-toggle-bars::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.menu-open .nav-toggle-bars {
  background: transparent;
}

.menu-open .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-left: auto;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: #3e4b52;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--speed-fast), background var(--speed-fast);
}

.nav-link:hover {
  color: var(--brand);
  background: var(--surface-tint);
}

.nav-sep {
  width: 1px;
  height: 22px;
  margin: 0 var(--space-xs);
  background: var(--line);
}

.nav-login-link {
  color: #fff;
  background: var(--brand);
}

.nav-login-link:hover {
  color: #fff;
  background: var(--brand-strong);
}

/* Signed-in user chip in header */
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  box-sizing: border-box;
}

.nav-user-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.nav-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: #0f5f57;
  background: var(--brand-tint);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
}

.nav-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-user-name {
  font-weight: 700;
  font-size: 14px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-signout {
  min-height: 44px;
  padding: 6px 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid #cfdad7;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.nav-signout:hover {
  border-color: var(--brand);
  color: var(--brand);
}

@media (max-width: 719.98px) {
  .nav-toggle {
    display: block;
  }

  .site-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0 0 var(--space-sm);
    gap: 2px;
  }

  .menu-open .site-menu {
    display: flex;
  }

  .nav-sep {
    display: none;
  }

  .nav-login-link {
    justify-content: center;
    margin-top: var(--space-xs);
  }

  .nav-user {
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--line);
  }
}

/* == Buttons ============================================================== */

.btn-light,
.btn-ghost,
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  transition: background var(--speed-fast) var(--ease-out), color var(--speed-fast), transform var(--speed-fast) var(--ease-out);
}

.btn-light {
  color: var(--brand-deep);
  background: #fff;
}

.btn-light:hover {
  color: var(--brand-deep-ink);
  background: #eaf6f3;
}

.btn-ghost {
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .45);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.btn-brand {
  color: #fff;
  background: var(--brand);
}

.btn-brand:hover {
  color: #fff;
  background: var(--brand-strong);
}

.btn-light:active,
.btn-ghost:active,
.btn-brand:active {
  transform: translateY(1px);
}

/* == Hero ================================================================= */

.hero {
  background: var(--brand-deep);
  color: var(--on-deep);
}

.hero a:focus-visible {
  outline-color: var(--on-deep-soft);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.hero-copy {
  max-width: 560px;
}

h1 {
  margin: 0;
  color: var(--on-deep);
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.lead {
  margin: var(--space-lg) 0 0;
  max-width: 46ch;
  color: var(--on-deep-soft);
  font-size: 20px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.hero-note {
  margin: var(--space-md) 0 0;
  color: var(--on-deep-faint);
  font-size: 15px;
  font-weight: 600;
}

.hero-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-frame);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hero entrance — one orchestrated moment, then done */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero h1 {
  animation: rise-in .6s var(--ease-out) .05s backwards;
}

.hero .lead {
  animation: rise-in .6s var(--ease-out) .12s backwards;
}

.hero .hero-actions {
  animation: rise-in .6s var(--ease-out) .19s backwards;
}

.hero .hero-note {
  animation: rise-in .6s var(--ease-out) .26s backwards;
}

.hero .hero-art {
  animation: rise-in .7s var(--ease-out) .16s backwards;
}

/* == Feature moments ====================================================== */

.moments {
  padding: var(--section-pad) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.moment {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.moment + .moment {
  margin-top: clamp(64px, 9vw, 112px);
}

.moment-flip .moment-copy {
  order: 2;
}

.moment-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.moment-copy p {
  margin: var(--space-md) 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.moment-list {
  display: grid;
  gap: 10px;
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.moment-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.moment-list li::before {
  content: "✓";
  flex: 0 0 auto;
  color: var(--brand);
  font-weight: 800;
}

.moment-art {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-frame);
  transition: box-shadow .2s var(--ease-out);
}

.moment-art:hover {
  box-shadow: 0 16px 40px rgba(11, 58, 52, .2);
}

.moment-art img {
  display: block;
  width: 100%;
  height: auto;
  background: #e8f0ee;
}

/* == Privacy band ========================================================= */

.privacy-band {
  padding: var(--section-pad) 0;
  background: var(--surface-tint);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.privacy-band h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -.015em;
}

.privacy-band > .page-frame > p {
  margin: var(--space-lg) auto 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  text-wrap: pretty;
}

.privacy-fineprint {
  font-size: 15px !important;
}

/* == Download band ======================================================== */

.download-band {
  padding: var(--section-pad) 0;
  background: var(--brand-deep);
  color: var(--on-deep);
  text-align: center;
}

.download-band a:focus-visible {
  outline-color: var(--on-deep-soft);
}

.download-band h2 {
  margin: 0;
  color: var(--on-deep);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 780;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.download-band > .page-frame > p {
  margin: var(--space-md) auto 0;
  max-width: 48ch;
  color: var(--on-deep-soft);
  font-size: 18px;
  line-height: 1.6;
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.download-alt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 var(--space-sm);
  color: var(--on-deep-soft);
  font-size: 15px;
  font-weight: 600;
}

.download-alt:hover {
  color: var(--on-deep);
}

.download-alt span {
  color: var(--on-deep-faint);
  font-weight: 500;
}

.download-reassure {
  margin: var(--space-lg) auto 0;
  max-width: 52ch;
  color: var(--on-deep-faint);
  font-size: 14px;
  line-height: 1.6;
}

.coming-soon {
  max-width: 520px;
  margin: var(--space-3xl) auto 0;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.coming-soon h3 {
  margin: 0;
  color: var(--on-deep);
  font-size: 20px;
  font-weight: 700;
}

.coming-soon p {
  margin: var(--space-sm) 0 0;
  color: var(--on-deep-soft);
  font-size: 16px;
  line-height: 1.6;
}

.coming-soon a {
  color: var(--on-deep);
  font-weight: 700;
}

/* == Error page =========================================================== */

.error-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 196px);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.error-shell h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.error-shell p {
  margin: var(--space-md) auto 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.error-request-id {
  margin-top: var(--space-xl);
  color: var(--muted-soft);
  font-size: 13px;
}

/* == Content pages (privacy) ============================================= */

.content-page {
  max-width: 840px;
  padding: 72px 0;
}

.content-page h1 {
  color: var(--ink);
  font-size: 44px;
}

.content-page h2 {
  margin: 34px 0 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: 0;
}

.content-page p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.content-page ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.content-page li::marker {
  color: var(--brand);
}

/* == Security page ======================================================== */

.security-page {
  max-width: 1040px;
  padding-block: clamp(56px, 8vw, 96px);
}

.security-intro {
  max-width: 850px;
}

.security-label {
  margin: 0 0 var(--space-sm);
  color: var(--brand-strong);
  font-size: 15px;
  font-weight: 800;
}

.security-page h1 {
  max-width: 17ch;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.security-page .security-lead {
  max-width: 68ch;
  margin-top: var(--space-lg);
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.security-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-xl);
}

.security-jump-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  color: var(--brand-deep);
  background: var(--surface-tint);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.security-jump-links a:hover {
  color: #fff;
  background: var(--brand);
}

.security-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 4vw, 48px);
  margin-top: clamp(44px, 7vw, 72px);
  padding-block: clamp(24px, 4vw, 36px);
  border-block: 1px solid var(--line);
}

.security-summary div {
  display: grid;
  gap: 7px;
}

.security-summary strong {
  color: var(--ink);
  font-size: 17px;
}

.security-summary span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.security-section {
  scroll-margin-top: 92px;
  padding-top: clamp(60px, 9vw, 96px);
}

.security-section-heading {
  display: flex;
  gap: clamp(18px, 3vw, 30px);
  align-items: flex-start;
  margin-bottom: var(--space-lg);
}

.security-section-heading .security-step {
  flex: 0 0 auto;
  margin: 4px 0 0;
  color: var(--brand);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.security-section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -.02em;
  text-wrap: balance;
}

.security-section-heading p:not(.security-step) {
  margin: 8px 0 0;
  color: var(--muted-soft);
  font-size: 16px;
  line-height: 1.5;
}

.security-page h3 {
  margin: var(--space-xl) 0 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -.01em;
}

.security-page h3 + p {
  margin-top: var(--space-sm);
}

.security-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 6vw, 72px);
}

.security-columns h3 {
  margin-top: 0;
}

.security-columns p,
.security-section > p,
.security-note p,
.security-footer p {
  max-width: 72ch;
}

.security-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: var(--space-xl);
  border-block: 1px solid var(--line);
}

.security-flow div {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 150px;
  padding: 22px 20px 24px 0;
}

.security-flow div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.security-flow span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.security-flow strong {
  color: var(--ink);
  font-size: 17px;
}

.security-flow small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.security-note {
  margin-top: var(--space-xl);
  padding: clamp(22px, 4vw, 32px);
  background: var(--surface-tint);
  border-radius: var(--radius-lg);
}

.security-note strong {
  color: var(--ink);
  font-size: 18px;
}

.security-note p {
  margin-top: 8px;
  font-size: 16px;
}

.security-future {
  position: relative;
  margin-top: clamp(60px, 9vw, 96px);
  padding: clamp(34px, 6vw, 64px);
  background: var(--brand-deep);
  border-radius: var(--radius-lg);
}

.security-future .security-section-heading {
  padding-top: 0;
}

.security-future .security-step,
.security-future h2,
.security-future h3,
.security-future .transfer-sequence strong,
.security-future .security-specs strong {
  color: var(--on-deep);
}

.security-future .security-section-heading p:not(.security-step),
.security-future > p,
.security-future .transfer-sequence span,
.security-future .security-specs span {
  color: var(--on-deep-soft);
}

.transfer-sequence {
  display: grid;
  gap: 0 !important;
  margin-top: var(--space-xl) !important;
  padding: 0 !important;
  list-style: none;
  counter-reset: transfer-step;
}

.transfer-sequence li {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(0, 1.4fr);
  gap: clamp(20px, 4vw, 46px);
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, .17);
  counter-increment: transfer-step;
}

.transfer-sequence strong::before {
  content: counter(transfer-step, decimal-leading-zero) "  ";
  color: #82d9cc;
}

.transfer-sequence span {
  font-size: 15px;
  line-height: 1.6;
}

.security-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-xl);
  border-block: 1px solid rgba(255, 255, 255, .2);
}

.security-specs div {
  display: grid;
  gap: 5px;
  padding: 18px 14px 18px 0;
}

.security-specs span {
  font-size: 13px;
}

.security-specs strong {
  font-size: 15px;
}

.security-caveat {
  margin-top: var(--space-lg) !important;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, .17);
  font-size: 15px !important;
}

.security-limit-list {
  display: grid;
  gap: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.security-limit-list li {
  padding-block: 16px;
  border-top: 1px solid var(--line);
}

.technology-list {
  margin: 0;
}

.technology-list div {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 64px);
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.technology-list dt {
  color: var(--ink);
  font-weight: 800;
}

.technology-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.security-footer {
  margin-top: clamp(64px, 10vw, 110px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 2px solid var(--brand);
}

.security-footer h2 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -.02em;
}

@media (max-width: 760px) {
  .security-summary,
  .security-columns,
  .security-flow,
  .security-specs {
    grid-template-columns: 1fr;
  }

  .security-flow div {
    min-height: auto;
    padding: 18px 0;
  }

  .security-flow div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .security-future {
    margin-inline: calc(var(--page-gutter) * -.45);
    padding: 30px 22px;
  }

  .transfer-sequence li,
  .technology-list div {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

.policy-updated {
  margin-top: 12px;
  color: var(--muted-soft);
  font-size: 15px;
  font-weight: 700;
}

/* == Account / auth page ================================================== */

.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 196px);
  padding: 48px 0;
}

.auth-card {
  position: relative;
  width: min(440px, 100%);
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #8a979c;
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
  border-radius: var(--radius-sm);
}

.auth-close:hover {
  color: var(--text);
  background: #eef3f2;
}

.auth-head {
  text-align: center;
  margin-bottom: 22px;
}

.auth-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  background: #e6f7f4;
  border: 1px solid #b8e5dd;
  border-radius: 16px;
}

.auth-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.auth-title {
  margin: 0;
  font-size: 24px;
  font-weight: 850;
  color: var(--ink);
}

.auth-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-message {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.auth-message.is-error {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
}

.auth-message.is-success {
  color: #0f5f57;
  background: var(--brand-tint);
  border: 1px solid #b8e5dd;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-label {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.auth-input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #cfdad7;
  border-radius: var(--radius-sm);
  font: inherit;
  box-sizing: border-box;
}

.auth-input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 182, 166, .25);
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.auth-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

.auth-submit:hover:not(:disabled) {
  background: var(--brand-strong);
}

.auth-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.auth-secondary-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #cfdad7;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

.auth-secondary-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
  color: #8a979c;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.auth-google-native {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 44px;
}

.auth-google-native > div {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 400px !important;
  margin: 0 auto !important;
}

.auth-google-native iframe {
  display: block !important;
  margin: 0 auto !important;
  max-width: 100% !important;
}

.auth-switch {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.auth-link {
  padding: 0;
  color: #0969da;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-sep {
  margin: 0 6px;
  color: #b6c0c2;
}

.auth-help {
  margin: 0;
  color: var(--muted-soft);
  font-size: 12px;
  line-height: 1.45;
}

.auth-note {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.auth-signedin {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.auth-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  color: #0f5f57;
  background: var(--brand-tint);
  border-radius: 50%;
  font-weight: 850;
  overflow: hidden;
}

.auth-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-signedin-name {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
}

.auth-signedin-email {
  margin: 2px 0 0;
  color: var(--muted-soft);
  font-size: 14px;
}

/* == Footer =============================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  min-height: 64px;
  padding: var(--space-sm) 0;
  color: var(--muted-soft);
}

.footer-nav,
.footer-links,
.social-links {
  display: flex;
  align-items: center;
}

.footer-nav {
  gap: var(--space-lg);
}

.footer-links {
  gap: var(--space-lg);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.social-links {
  gap: var(--space-2xs);
}

.social-links a {
  width: 44px;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--muted-soft);
  transition: color var(--speed-fast), background-color var(--speed-fast);
}

.social-links a:hover {
  background: var(--surface-tint);
  color: var(--brand);
}

.social-links svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.social-links a:last-child svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-links .social-icon-dot {
  fill: currentColor;
  stroke: none;
}

/* == Responsive =========================================================== */

@media (max-width: 900px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .moment {
    grid-template-columns: 1fr;
  }

  .moment-flip .moment-copy {
    order: 0;
  }

  .moment-art {
    order: 1;
  }
}

@media (max-width: 560px) {
  .container,
  .page-frame {
    width: min(100% - 24px, 1180px);
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions,
  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-light,
  .hero-actions .btn-ghost {
    width: 100%;
    box-sizing: border-box;
  }

  .site-footer .container,
  .footer-nav {
    justify-content: center;
  }

  .site-footer .container {
    flex-direction: column;
    gap: var(--space-2xs);
  }
}

/* == Reduced motion ======================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero h1,
  .hero .lead,
  .hero .hero-actions,
  .hero .hero-note,
  .hero .hero-art {
    animation: none;
  }

  .moment-art,
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after,
  .btn-light,
  .btn-ghost,
  .btn-brand {
    transition: none;
  }

  .platform-tab {
    transition: none;
  }
}

/* == Platforms (client switcher) ========================================== */

.platforms {
  padding: var(--section-pad) 0;
  background: var(--surface);
}

.platforms > .page-frame > h2 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 780;
  letter-spacing: -.015em;
  text-align: center;
  text-wrap: balance;
}

.platforms-lead {
  margin: var(--space-md) auto 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
}

/* Segmented tab control */
.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xs);
  margin: var(--space-2xl) auto 0;
  padding: 6px;
  max-width: max-content;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--speed-fast) var(--ease-out), color var(--speed-fast);
}

.platform-tab:hover {
  color: var(--ink);
}

.platform-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--brand-deep);
  box-shadow: 0 2px 8px rgba(11, 58, 52, .12);
}

.platform-tab-name {
  white-space: nowrap;
}

.status-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}

.status-ready {
  background: var(--brand-tint);
  color: var(--brand-strong);
}

.status-early {
  background: #fdf0dc;
  color: #8a5a12;
}

.status-soon {
  background: #e9edf0;
  color: #566169;
}

/* Per-platform panel */
.platform-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: var(--space-2xl);
}

.platform-panel[hidden] {
  display: none;
}

.platform-copy h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 760;
  letter-spacing: -.01em;
}

.inline-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
}

.inline-badge.status-ready {
  background: var(--brand-tint);
  color: var(--brand-strong);
}

.platform-copy > p {
  margin: var(--space-md) 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.platform-copy .moment-list {
  margin-top: var(--space-lg);
}

.platform-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.platform-actions .btn-brand span {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 700;
}

.platform-actions .btn-brand {
  gap: .35em;
}

/* download-alt is styled for dark bands; recolor it for this light section */
.platform-actions .download-alt {
  color: var(--brand-strong);
}

.platform-actions .download-alt:hover {
  color: var(--brand-deep-ink);
}

.platform-actions .download-alt span {
  color: var(--muted-soft);
}

.platform-note {
  margin: var(--space-md) 0 0;
  max-width: 46ch;
  color: var(--muted-soft);
  font-size: 14px;
  line-height: 1.55;
}

.platform-shot {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-frame);
}

.platform-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.android-shot-gallery {
  display: grid;
  grid-template-columns: minmax(190px, .86fr) minmax(142px, .58fr);
  gap: clamp(12px, 2vw, 20px);
  align-items: center;
  padding: clamp(16px, 2.5vw, 24px);
  overflow: visible;
  background:
    radial-gradient(circle at 18% 16%, rgba(19, 142, 126, .14), transparent 30%),
    linear-gradient(145deg, #f3faf8, #e8f0ef);
  border: 1px solid rgba(19, 127, 117, .14);
  box-shadow: 0 18px 44px rgba(11, 58, 52, .14);
}

.android-phone-stack {
  display: grid;
  gap: clamp(10px, 1.7vw, 16px);
  align-self: center;
}

.android-phone {
  position: relative;
  overflow: hidden;
  aspect-ratio: 573 / 1271;
  background: #f7fbfa;
  border: 6px solid #111d21;
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(11, 58, 52, .2);
}

.android-phone-main {
  justify-self: center;
  width: min(100%, 280px);
  transform: rotate(-2deg);
}

.android-phone-stack .android-phone {
  border-width: 4px;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(11, 58, 52, .16);
}

.android-phone-stack .android-phone:nth-child(2) {
  transform: translateX(-10px);
}

.android-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Screenshot placeholder for not-yet-shipped clients */
.platform-shot-placeholder {
  box-shadow: none;
  border: 1.5px dashed var(--line);
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(19, 127, 117, .045) 14px 28px),
    var(--surface-tint);
}

.shot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  color: var(--muted-soft);
}

.shot-placeholder-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 2px solid var(--brand);
  opacity: .45;
}

.shot-placeholder-text {
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .platform-panel {
    grid-template-columns: 1fr;
  }

  .platform-tabs {
    max-width: none;
  }

  .platform-tab {
    flex: 1 1 auto;
    justify-content: center;
  }

  .platform-actions .btn-brand {
    flex-direction: column;
    gap: 2px;
    width: 100%;
    min-height: 56px;
    padding-block: 8px;
    line-height: 1.15;
  }

  .android-shot-gallery {
    grid-template-columns: 1fr;
    max-width: 430px;
    margin-inline: auto;
  }

  .android-phone-main {
    max-width: 260px;
    margin-inline: auto;
  }

  .android-phone-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .android-phone-stack .android-phone,
  .android-phone-stack .android-phone:nth-child(2) {
    transform: none;
  }
}

/* == Lightbox (screenshot zoom) =========================================== */

/* Real screenshots are clickable to enlarge; placeholders are not. */
.platform-shot:not(.platform-shot-placeholder) img,
.moment-art img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(8, 30, 27, .62);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--speed-fast) var(--ease-out), visibility var(--speed-fast);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: min(1200px, 100%);
  max-height: 100%;
  transform: scale(.98);
  transition: transform var(--speed-fast) var(--ease-out);
}

.lightbox.is-open .lightbox-figure {
  transform: none;
}

.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  background: var(--surface);
  cursor: default;
}

.lightbox-caption {
  margin: 0;
  color: var(--on-deep-soft);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: clamp(12px, 3vw, 24px);
  right: clamp(12px, 3vw, 24px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--speed-fast) var(--ease-out);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .26);
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox-figure {
    transition: none;
  }
}
