@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css");

@font-face {
  font-family: "Redaction 35 Italic";
  src: url("fonts/Redaction35-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* ==========================================================================
   Drifty — shared design system, mirrored from index.html so every subpage
   inherits the home page's tokens, header, footer, fonts, and button shapes.
   Olive #778647 is the accent; CTA olive #5b6735 matches the old gradient tone.
   Pills (999px), Pretendard, fixed blurred header.
   ========================================================================== */

:root {
  --ink: rgba(0, 0, 0, 0.875);
  --muted: rgba(0, 0, 0, 0.608);
  --soft: rgba(0, 0, 0, 0.56);
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.14);
  --surface: #fff;
  --panel: #f7f7f6;
  --panel-2: #fbfbfa;
  --black: #080808;
  --olive: #778647;
  --olive-cta: #5b6735;
  --olive-dark: #465126;
  --olive-soft: #eef2dc;
  --olive-warm: #9a8544;
  --warn: #9e4238;
  --radius: 12px;
  --shadow: 0 18px 70px rgba(30, 28, 45, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 14px 46px rgba(72, 82, 40, 0.10), 0 2px 10px rgba(0, 0, 0, 0.045);
  --shadow-card: 0 16px 48px rgba(0, 0, 0, 0.055);
  --container: 1200px;
  font-family: "Pretendard Variable", Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: white;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: white; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 15px/1.45 "Pretendard Variable", Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; font-family: inherit; }

.italic, em.italic { font-family: "Pretendard Variable", Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-style: italic; font-weight: 400; letter-spacing: -0.045em; }
.headline-italic {
  font-family: "Pretendard Variable", Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.075em;
}
.redaction-drift { font-family: "Redaction 35 Italic", "Times New Roman", Georgia, serif; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Header — identical to index.html ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 64px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(0, 0, 0, 0.055);
  backdrop-filter: blur(18px);
}
.header-inner {
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 97px;
  min-width: 97px;
  height: 36px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: none;
  outline-offset: 4px;
  line-height: 0;
}
.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 97px;
  height: auto;
}
.site-header .brand-logo { transform: translateY(4px); }
.site-footer .brand {
  width: 98px;
  min-width: 98px;
  height: 32px;
}
.site-footer .brand-logo { width: 98px; }

.nav-links, .nav-actions, .nav-auth-actions { display: flex; align-items: center; gap: 4px; }
.nav-links { justify-self: center; }
.nav-actions { justify-self: end; gap: 8px; }
.nav-auth-actions { gap: 8px; }

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 450;
  letter-spacing: -0.01em;
  text-transform: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: color .14s ease, background .14s ease;
}
.nav-link:hover { color: var(--ink); background: rgba(0, 0, 0, 0.045); }
.nav-link.is-current { color: var(--olive-dark); background: var(--olive-soft); }

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link--has-menu {
  gap: 6px;
  padding-right: 8px;
}

.nav-item--language .nav-menu {
  left: 0;
  right: auto;
  width: 148px;
  transform-origin: 0 0;
}

.nav-language-trigger {
  width: 32px;
  min-width: 32px;
  padding: 0;
  gap: 0;
  justify-content: center;
}

.nav-language-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-language-current {
  display: none;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.nav-caret {
  width: 6px;
  height: 6px;
  margin-top: -2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .14s ease;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 90;
  width: 240px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(248, 248, 247, .98);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(.98);
  transform-origin: 0 0;
  transition: opacity .14s ease, transform .14s ease;
  backdrop-filter: blur(18px);
}

.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-item.is-open .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav-item.is-open .nav-caret {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nav-menu-link {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  transition: color .14s ease, background .14s ease;
}

.nav-menu-link:hover,
.nav-menu-link:focus-visible {
  color: var(--ink);
  background: rgba(0, 0, 0, .045);
  outline: 0;
}

.nav-menu-link span {
  color: rgba(0, 0, 0, .78);
  font-size: 13px;
  font-weight: 560;
  letter-spacing: -0.006em;
}

.key {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  margin-left: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--soft);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  background: #fff;
}

/* ---------- Buttons — rounded, identical to home ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  gap: 8px;
  border-radius: 999px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 520;
  letter-spacing: -0.012em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-sm { height: 30px; gap: 4px; padding: 0 8px; border-radius: 10px; font-size: 12.5px; }
.btn-lg { height: 33.25px; padding: 0 18px; border-radius: 11.4px; font-size: 14.5px; }
.btn-light { background: rgba(255, 255, 255, 0.82); color: var(--ink); box-shadow: inset 0 -1px rgba(0,0,0,.045); }
.btn-dark { background: var(--black); color: white; border-color: #000; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.btn-ghost { border-color: transparent; color: var(--muted); background: transparent; }
.btn-olive {
  background: var(--olive-cta);
  color: rgba(255,255,255,.96);
  border-color: var(--olive-cta);
  border-radius: 11.4px;
  box-shadow: none;
}
.btn-olive:hover { background: var(--olive-dark); }
.btn-waitlist {
  position: relative;
  isolation: isolate;
  box-shadow:
    inset 0 1px rgba(255,255,255,.20),
    inset 0 -1px rgba(0,0,0,.12),
    0 13px 28px rgba(55, 64, 31, .18),
    0 0 0 1px rgba(119, 134, 71, .18);
  animation: waitlistBreath 3.8s ease-in-out infinite;
}
.btn-waitlist::before {
  content: "";
  position: absolute;
  inset: -10px -13px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(ellipse at center, rgba(167, 180, 99, .18) 0%, rgba(167, 180, 99, .08) 42%, rgba(167, 180, 99, 0) 72%);
  opacity: .72;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.btn-waitlist:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(82, 97, 42, .22), 0 0 0 1px rgba(119, 134, 71, .28);
}
.btn-waitlist:hover::before { opacity: 1; transform: scale(1.04); }
.btn-light.btn-waitlist { background: rgba(255,255,255,.96); }
.btn-olive.btn-waitlist,
.btn-olive.btn-haze {
  position: relative;
  isolation: isolate;
  animation: none;
  overflow: visible;
  box-shadow:
    0 0 0 1px rgba(238, 242, 220, .20),
    0 12px 28px rgba(91, 103, 53, .16),
    0 0 34px rgba(167, 180, 99, .20);
}
.btn-olive.btn-waitlist::before,
.btn-olive.btn-haze::before {
  content: "";
  position: absolute;
  display: block;
  inset: -12px -16px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at center, rgba(238, 242, 220, .30) 0%, rgba(167, 180, 99, .18) 44%, rgba(167, 180, 99, 0) 74%);
  filter: blur(10px);
  opacity: .74;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity .18s ease, transform .18s ease;
}
.btn-olive.btn-waitlist::after,
.btn-olive.btn-haze::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 1px;
  border-radius: 999px;
  background: rgba(238, 242, 220, .34);
  opacity: .32;
  pointer-events: none;
  transform: scaleY(.7);
  transform-origin: top center;
  transition: opacity .18s ease, transform .18s ease;
}
.btn-olive.btn-waitlist:hover,
.btn-olive.btn-haze:hover {
  box-shadow:
    0 0 0 1px rgba(238, 242, 220, .24),
    0 14px 30px rgba(91, 103, 53, .20),
    0 0 40px rgba(167, 180, 99, .24);
  transform: translateY(-1px);
}
.btn-olive.btn-waitlist:hover::before,
.btn-olive.btn-haze:hover::before {
  opacity: .88;
  transform: translateY(2px) scale(1.03);
}
.btn-olive.btn-waitlist:hover::after,
.btn-olive.btn-haze:hover::after { opacity: .37; transform: scaleY(.7); }
.hero-ctas { display: flex; gap: 14px; }
.hero-ctas.hero-download {
  display: grid;
  justify-items: end;
  gap: 9px;
}
.hero-download__button,
.btn.btn-lg.hero-download__button {
  height: 38px;
  min-height: 38px;
  padding: 0 17px 0 15px;
  gap: 9px;
  border-radius: 10.5px;
  font-size: 14.5px;
}
.hero-download__apple,
.hero-download__icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transform: translateY(-1px);
}
.hero-download__icon {
  width: 17.6px;
  height: 17.6px;
  transform: translateY(.5px);
}
.hero-download__label { line-height: 1; }
.hero-download__meta {
  max-width: 280px;
  margin: 0;
  color: rgba(0, 0, 0, .48);
  font-size: 12.5px;
  line-height: 1.38;
  font-weight: 480;
  letter-spacing: 0;
  text-align: right;
  text-wrap: balance;
}
.hero-ctas.final-download { justify-items: center; gap: 18px; }
.final-download .hero-download__meta {
  max-width: 360px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}
.hero-download__meta-separator { color: rgba(0, 0, 0, .34); }

.auth-menu { position: relative; display: inline-flex; align-items: center; }
.auth-menu-trigger { max-width: 148px; overflow: hidden; text-overflow: ellipsis; }
.auth-menu-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  min-width: 148px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(.98);
  transition: opacity .14s ease, transform .14s ease;
}
.auth-menu.is-open .auth-menu-popover { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.auth-menu-popover a,
.auth-menu-popover button {
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  border: 0;
  border-radius: 9px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: left;
}
.auth-menu-popover a:hover,
.auth-menu-popover button:hover { color: var(--ink); background: rgba(0,0,0,.045); }

@keyframes waitlistBreath {
  0%, 100% {
    box-shadow:
      inset 0 1px rgba(255,255,255,.20),
      inset 0 -1px rgba(0,0,0,.12),
      0 12px 26px rgba(55, 64, 31, .16),
      0 0 0 1px rgba(119, 134, 71, .16);
  }
  50% {
    box-shadow:
      inset 0 1px rgba(255,255,255,.24),
      inset 0 -1px rgba(0,0,0,.13),
      0 16px 34px rgba(55, 64, 31, .22),
      0 0 0 3px rgba(167, 180, 99, .08);
  }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: none;
  justify-self: end;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.mobile-menu span, .mobile-menu::before, .mobile-menu::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}
.mobile-menu span { margin: 5px 0; }

/* ---------- Footer ---------- */
.final-cta-band {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 40svh, 430px);
  margin-top: 0;
  padding: 72px 0 64px;
  background: #fff;
  color: var(--ink);
  border-top: 0;
  border-bottom: 0;
  display: grid;
  align-items: center;
}
html.drifty-final-cta-pending:not(.drifty-final-cta-ready) .final-cta-band {
  opacity: 0;
  transform: translateY(18px);
  visibility: hidden;
  pointer-events: none;
}
html.drifty-final-cta-ready .final-cta-band {
  visibility: visible;
  pointer-events: auto;
}
.final-cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1600px, 110vw);
  height: 400px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 70% 100% at 28% 0%, rgba(167, 180, 99, .38), transparent 60%),
    radial-gradient(ellipse 55% 100% at 60% 0%, rgba(121, 143, 67, .32), transparent 55%),
    radial-gradient(ellipse 80% 90% at 45% 0%, rgba(200, 210, 150, .24), transparent 50%),
    radial-gradient(ellipse 40% 80% at 80% 0%, rgba(150, 170, 80, .18), transparent 45%);
  filter: blur(46px);
  opacity: .72;
  pointer-events: none;
}
.final-cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.5) 72%, #fff 88%);
  pointer-events: none;
}
.final-cta-band__inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--container));
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}
.final-cta-band h2 {
  margin: 0;
  max-width: 860px;
  color: var(--ink);
  font-size: clamp(44px, 4.9vw, 64px);
  line-height: .98;
  letter-spacing: -0.062em;
  font-weight: 540;
  text-wrap: pretty;
}
.final-cta-band h2 .headline-italic { display: inline-block; }
.final-cta-band .hero-ctas { justify-content: center; position: relative; gap: 18px; }
.final-cta-band .btn-olive {
  background: var(--olive-cta);
  color: rgba(255,255,255,.96);
  border-color: var(--olive-cta);
  border-radius: 11.4px;
  box-shadow:
    0 0 0 1px rgba(238, 242, 220, .20),
    0 12px 28px rgba(91, 103, 53, .16),
    0 0 34px rgba(167, 180, 99, .20);
  transition: background .18s ease, transform .16s ease, box-shadow .18s ease;
}
.final-cta-band .btn-olive:hover {
  background: var(--olive-dark);
  box-shadow:
    0 0 0 1px rgba(238, 242, 220, .24),
    0 14px 30px rgba(91, 103, 53, .20),
    0 0 40px rgba(167, 180, 99, .24);
  transform: translateY(-1px);
}
.final-cta-band .hero-download__button {
  width: auto;
  height: 38px;
  min-height: 38px;
  padding: 0 17px 0 15px;
  gap: 9px;
  border-radius: 10.5px;
}
.final-cta-band .btn.btn-waitlist:hover { transform: translateY(-1px); }

.site-footer {
  position: relative;
  border-top: 0;
  padding: 0 0 58px;
  color: var(--muted);
  margin-top: 96px;
  background: #fff;
}
body[data-page="leaderboard"] .site-footer,
body[data-page="blog"] .site-footer,
body[data-page="home"] .site-footer,
body[data-page="login"] .site-footer,
body[data-page="changelog"] .site-footer,
body[data-page="privacy"] .site-footer {
  margin-top: 0;
  padding-top: 32px;
}
.site-footer > .container {
  position: relative;
  width: min(100%, var(--container));
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: var(--gutter, 48px);
  right: var(--gutter, 48px);
  top: 0;
  height: 1px;
  background: rgba(0,0,0,.06);
  pointer-events: none;
}
.footer-social-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 26px;
}
.footer-social-bar__left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--muted);
  transition: color .15s;
}
.footer-social-icons a:hover { color: var(--ink); }
.footer-social-icons svg { width: 18px; height: 18px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 32px;
  padding-top: 28px;
  justify-content: start;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-links a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.footer-col-links a:hover { color: var(--olive-dark); }
.footer-brand-col {
  position: absolute;
  right: 0;
  bottom: 58px;
}
.site-footer .brand { margin-bottom: 28px; }
.footer-legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.footer-legal p {
  margin: 0;
  color: var(--soft);
  font-size: 12.5px;
  line-height: 1.45;
}

/* ---------- Type primitives ---------- */
.eyebrow {
  color: var(--soft);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.label-mono {
  font-family: "Pretendard Variable", Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--olive);
}
.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--olive-soft);
  color: var(--olive-dark);
  border: 1px solid rgba(119, 134, 71, .22);
  font-size: 12px;
  font-weight: 540;
}

/* ---------- Page header (used on every subpage) ---------- */
.page-shell, .page-header {
  position: relative;
  padding: 128px 0 16px;
  overflow: visible;
}
.page-shell::before, .page-header::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40px;
  width: min(1280px, 96vw);
  height: 820px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 50% 38% at 28% 30%, rgba(167, 180, 99, .42), transparent 70%),
    radial-gradient(ellipse 55% 42% at 70% 36%, rgba(121, 143, 67, .32), transparent 72%),
    radial-gradient(ellipse 60% 40% at 50% 60%, rgba(218, 203, 142, .24), transparent 72%);
  filter: blur(60px);
  opacity: .9;
  pointer-events: none;
  z-index: 0;
}
.page-shell > .container, .page-header__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.page-eyebrow {
  color: var(--olive-dark);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-header h1,
.page-title {
  margin: 0 0 18px;
  font-size: 56px;
  line-height: 1;
  font-weight: 520;
  letter-spacing: -0.062em;
  max-width: 760px;
  text-wrap: balance;
}
.page-header h1 em,
.page-title em {
  font-family: "Pretendard Variable", Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.075em;
  color: var(--olive-dark);
}
.page-header p.lead,
.page-lead {
  max-width: 600px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
  margin: 0;
}

/* ---------- Forms (mirroring home tone — rounded inputs) ---------- */
.field { display: grid; gap: 6px; }
.field-label {
  font-size: 13px;
  font-weight: 540;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.field-hint { color: var(--soft); font-size: 12.5px; }
.input, .textarea, .select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 4px rgba(119, 134, 71, .15);
}
.input::placeholder, .textarea::placeholder { color: rgba(0,0,0,.36); }

.signin-shell {
  position: relative;
  display: grid;
  min-height: calc(100vh - 64px);
  place-items: center;
  overflow: hidden;
  padding: 108px 24px 72px;
  background:
    linear-gradient(180deg, rgba(247, 247, 246, .76) 0%, rgba(255, 255, 255, 0) 38%),
    #fff;
}
.signin-shell::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 0;
  width: min(760px, 90vw);
  height: 420px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 24% 34%, rgba(119, 134, 71, .13), transparent 36%),
    radial-gradient(circle at 78% 62%, rgba(238, 242, 220, .62), transparent 42%);
  filter: blur(42px);
  opacity: .86;
  pointer-events: none;
}
.signin-shell::after {
  content: "";
  position: absolute;
  inset: 64px 0 auto;
  z-index: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .08), transparent);
  pointer-events: none;
}
.signin-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  text-align: center;
}
.signin-shell h1 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0;
}
.signin-shell .auth-form-panel {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: min(424px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 24px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .07), 0 1px 0 rgba(255, 255, 255, .9) inset;
  text-align: left;
  backdrop-filter: blur(18px);
}
.signin-shell .form-stack,
.signin-shell .oauth-row,
.signin-shell .signin-submit { display: grid; }
.signin-shell .form-stack[hidden],
.signin-shell .oauth-row[hidden],
.signin-shell .divider[hidden],
.signin-shell .auth-session-panel[hidden],
.signin-shell [data-auth-password-field][hidden],
.signin-shell .auth-mode-switch[hidden] {
  display: none;
}
.signin-shell .form-stack {
  gap: 11px;
  margin: 0;
}
.signin-shell .signin-submit { gap: 12px; margin-top: 6px; }
.signin-shell .oauth-row { gap: 8px; }
.signin-shell .auth-input,
.signin-shell .auth-submit,
.signin-shell .oauth-btn {
  width: 100%;
  height: 38px;
  font-size: 14px;
  letter-spacing: 0;
}
.signin-shell .auth-input {
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  border-color: rgba(0, 0, 0, .13);
  font-weight: 500;
}
.signin-shell .auth-submit {
  border-radius: 12px;
  border-color: #000;
  background: var(--black);
  color: #fff;
  font-weight: 620;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}
.signin-shell .auth-submit:hover {
  background: #1d1d1d;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
}
.signin-shell .oauth-btn {
  gap: 10px;
  border-radius: 12px;
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}
.signin-shell .oauth-btn:hover {
  border-color: rgba(0, 0, 0, .22);
  background: rgba(247, 247, 246, .88);
}
.signin-shell .oauth-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.signin-shell .auth-submit:disabled,
.signin-shell .oauth-btn:disabled {
  cursor: wait;
  opacity: .7;
  transform: none;
}
.signin-shell .divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--soft);
  font-size: 13px;
  letter-spacing: 0;
}
.signin-shell .divider::before,
.signin-shell .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.signin-shell .auth-feedback {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--olive-soft);
  color: var(--olive-dark);
  font-size: 13px;
  line-height: 1.5;
}
.signin-shell .auth-feedback--error {
  background: var(--panel);
  color: var(--warn);
  border-color: rgba(158, 66, 56, .20);
}
.signin-shell .auth-feedback--success {
  background: var(--olive-soft);
  color: var(--olive-dark);
  border-color: rgba(119, 134, 71, .22);
}
.signin-shell .auth-session-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
}
.signin-shell .auth-session-kicker {
  margin: 0;
  color: var(--soft);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.signin-shell .auth-session-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.signin-shell .auth-session-copy {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.signin-shell .auth-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.signin-shell .auth-mode-switch {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.signin-shell .auth-mode-switch--fallback {
  margin-top: 2px;
}
.signin-shell .auth-inline-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 540;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.signin-shell .auth-inline-button:hover {
  color: var(--black);
  text-decoration-thickness: 2px;
}
.signin-shell .auth-inline-button:disabled {
  cursor: wait;
  opacity: .65;
}
.signin-shell .auth-legal-notice {
  margin: 16px auto 0;
  max-width: 46ch;
  color: var(--soft);
  font-size: 12.5px;
  line-height: 1.55;
  text-align: center;
}
.signin-shell .auth-legal-notice a {
  color: var(--ink);
  font-weight: 540;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.signin-shell .auth-legal-notice a:hover {
  color: var(--olive-dark);
}

/* ---------- Animations ---------- */
@keyframes pageRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(119, 134, 71, .10); }
  50% { box-shadow: 0 0 0 7px rgba(119, 134, 71, .02); }
}
.rise { animation: pageRise .55s cubic-bezier(.2,.8,.2,1) both; }
.rise-1 { animation-delay: .04s; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .20s; }
.rise-4 { animation-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html.drifty-final-cta-pending:not(.drifty-final-cta-ready) .final-cta-band {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .site-header.is-open { height: 100svh; background: rgba(255, 255, 255, 0.98); }
  .site-header.is-open::before {
    content: "";
    position: absolute;
    inset: 64px 0 0;
    z-index: 0;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    pointer-events: none;
  }
  .header-inner { grid-template-columns: 1fr auto; position: relative; padding: 0 24px; }
  .site-header.is-open .header-inner { position: static; }
  .nav-links, .nav-actions { display: none; }
  .mobile-menu { display: inline-flex; }
  .site-header.is-open .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: start;
    height: 100svh;
    padding: 0 24px 20px;
  }
  .site-header.is-open .brand { margin-right: auto; }
  .site-header.is-open .nav-links,
  .site-header.is-open .nav-actions {
    position: static;
    display: grid;
    width: 100%;
    order: 4;
    justify-items: stretch;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .08);
    backdrop-filter: blur(18px);
    border-radius: 16px;
    z-index: 1;
  }
  .site-header.is-open .nav-actions {
    order: 3;
    margin: 12px 0 8px;
  }
  .site-header.is-open .nav-links {
    order: 4;
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: none;
    min-height: 0;
    align-content: start;
    grid-auto-rows: min-content;
  }
  .site-header.is-open .nav-link,
  .site-header.is-open .nav-actions .btn { width: 100%; justify-content: center; height: 40px; }
  .site-header.is-open .nav-auth-actions {
    display: grid;
    gap: 8px;
    width: 100%;
  }
  .site-header.is-open .nav-item {
    display: grid;
    width: 100%;
    gap: 6px;
  }
  .site-header.is-open .nav-link--has-menu {
    width: 100%;
    justify-content: center;
  }
  .site-header.is-open .nav-menu {
    position: static;
    display: none;
    width: 100%;
    padding: 6px;
    border-radius: 12px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .site-header.is-open .nav-item.is-open .nav-menu { display: grid; }
  .site-header.is-open .nav-menu::before { display: none; }
  .site-header.is-open .nav-menu-link {
    min-height: 38px;
    padding: 9px 10px;
    justify-content: center;
  }
  .page-shell { padding-top: 104px; }
  .page-title { font-size: 40px; }
  .final-cta-band { min-height: auto; padding: 46px 0 42px; margin-top: 0; }
  .final-cta-band h2 { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-brand-col { display: none; }
  .footer-social-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (min-width: 561px) {
  .signin-shell {
    place-items: start center;
    padding-top: clamp(180px, 21vh, 250px);
  }
}

@media (max-width: 560px) {
  .container, .header-inner { padding-left: 24px; padding-right: 24px; }
  .header-inner { height: 68px; }
  .site-header.is-open .header-inner { height: auto; min-height: 100svh; }
  .page-title { font-size: 32px; }
  .final-cta-band { padding: 38px 0 40px; }
  .final-cta-band h2 { font-size: 32px; line-height: 1.02; }
  .final-cta-band .btn { height: 33.25px; padding: 0 14px; font-size: 15px; }
  .hero-ctas { width: 100%; gap: 12px; flex-wrap: wrap; }
  .hero-ctas .btn-lg { width: 100%; max-width: 204px; height: 33.25px; min-height: 33.25px; }
  .hero-ctas .hero-download__button { max-width: 216px; height: 38px; min-height: 38px; }
  .final-cta-band .hero-download__button { width: auto; }
  .hero-ctas.final-download { gap: 14px; }
  .final-download .hero-download__meta { font-size: 12.5px; gap: 10px; }
  .site-footer { padding-bottom: 38px; }
  .footer-grid { grid-template-columns: 120px 120px; gap: 24px 20px; }
  .footer-col-links a { font-size: 12.5px; }
  .signin-shell { padding: 96px 18px 56px; }
  .signin-content { max-width: 100%; }
  .signin-shell h1 { margin-bottom: 24px; font-size: 34px; }
  .signin-shell .auth-form-panel {
    width: 100%;
    max-width: calc(100vw - 48px);
    padding: 24px;
    border-radius: 20px;
  }
  .signin-shell .auth-session-actions .btn { width: 100%; }
}

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}
.hero-mobile-email {
  display: none;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
html.drifty-download-mobile .hero-mobile-email,
html.drifty-download-mobile .download-mobile-email {
  display: grid;
}
@media (max-width: 768px) {
  html.drifty-download-mobile .download-mobile-email { display: grid; }
}
.hero-mobile-email__copy { display: grid; gap: 5px; }
.hero-mobile-email h3 { margin: 0; font-size: 18px; line-height: 1.2; font-weight: 620; }
.hero-mobile-email__helper,
.hero-mobile-email__feedback {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.hero-mobile-email__fields { display: grid; gap: 8px; }
.hero-mobile-email__input,
.hero-mobile-email__submit,
.hero-mobile-email__edit {
  width: 100%;
  min-height: 44px;
  border-radius: 11px;
  font: inherit;
  font-size: 14px;
}
.hero-mobile-email__input {
  border: 1px solid var(--line-strong);
  padding: 10px 13px;
}
.hero-mobile-email__submit {
  border: 1px solid var(--olive-cta);
  background: var(--olive-cta);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}
.hero-mobile-email__trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.hero-mobile-email__success[hidden] { display: none !important; }
