:root {
  /* ---- White theme -------------------------------------------------------
     Paper-white surfaces, near-black text, and a purple→red pair used for
     highlights and for the gradient boundaries that edge every card.        */
  --accent: #7c3aed;          /* purple */
  --accent-700: #6d28d9;
  --accent-300: #a78bfa;
  --accent-900: #4c1d95;
  --accent-soft: rgba(124, 58, 237, .10);
  --accent-glow: rgba(124, 58, 237, .38);

  --red: #e11d48;             /* the second highlight */
  --red-soft: rgba(225, 29, 72, .10);
  --red-glow: rgba(225, 29, 72, .32);

  /* The signature: a purple→red edge, used as a border via padding-box. */
  --edge: linear-gradient(135deg, var(--accent) 0%, #a855f7 42%, var(--red) 100%);
  --edge-soft: linear-gradient(135deg, rgba(124,58,237,.42) 0%, rgba(225,29,72,.34) 100%);

  --surf-0: #ffffff;          /* page */
  --surf-1: #ffffff;          /* cards */
  --surf-2: #f7f5fb;          /* tinted panels */
  --surf-3: #efeafa;          /* chips */
  --line-soft: rgba(17, 16, 26, .10);
  --line-2: rgba(17, 16, 26, .20);

  --contrast: #0d0c14;        /* the few deliberately dark blocks */
  --contrast-2: #17151f;

  --fg: #111018;              /* primary text */
  --fg-2: rgba(17, 16, 26, .66);
  --fg-3: rgba(17, 16, 26, .45);

  --gold: #b45309;
  --green: #15803d;
  --amber: #b45309;

  --display: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Inter, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --page: 1280px;
  color-scheme: light;
}

/* A card with a purple→red gradient boundary. The background paints over the
   padding box so only the 1px edge shows the gradient. */
.edged {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surf-1), var(--surf-1)) padding-box,
    var(--edge-soft) border-box;
  transition: background .25s, box-shadow .25s, transform .22s cubic-bezier(.2,.8,.2,1);
}
.edged:hover {
  background:
    linear-gradient(var(--surf-1), var(--surf-1)) padding-box,
    var(--edge) border-box;
  box-shadow: 0 16px 40px -22px var(--accent-glow), 0 6px 18px -12px var(--red-glow);
}

* { box-sizing: border-box; }
/* Author display rules outrank the UA stylesheet, so hidden needs to shout. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surf-0);
  color: var(--fg);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ==========================================================================
   Type
   ========================================================================== */
.display { font-family: var(--display); font-weight: 800; letter-spacing: -.045em; line-height: .92; margin: 0; }
.d1 { font-size: clamp(2.75rem, 8.5vw, 7rem); }
.d2 { font-size: clamp(2.1rem, 5.4vw, 4.25rem); }
.d3 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
.thin { font-weight: 300; letter-spacing: -.03em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--edge);
}
.lede { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--fg-2); max-width: 60ch; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-pill {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 7px 7px 7px 26px;
  border: none; border-radius: 999px;
  background: var(--edge); color: #fff;
  font-weight: 650; font-size: 15px; letter-spacing: -.01em;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, filter .18s;
  box-shadow: 0 10px 26px -14px var(--accent-glow);
}
.btn-pill:hover { transform: translateY(-2px); filter: saturate(1.1); box-shadow: 0 16px 34px -14px var(--red-glow); }
.btn-pill:active { transform: translateY(0); }
.btn-pill .badge {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--fg);
  display: grid; place-items: center; font-size: 15px; flex: none;
  transition: transform .18s;
}
.btn-pill:hover .badge { transform: rotate(45deg); }
.btn-pill.ghost {
  background: var(--surf-1); color: var(--fg); box-shadow: none;
  border: 1px solid var(--line-2);
}
.btn-pill.ghost:hover { background: var(--surf-2); }
.btn-pill.ghost .badge { background: var(--edge); color: #fff; }
.btn-pill.dark {
  background: linear-gradient(var(--surf-1), var(--surf-1)) padding-box, var(--edge) border-box;
  border: 1px solid transparent; color: var(--fg); box-shadow: none;
}
.btn-pill.dark .badge { background: var(--edge); color: #fff; }
.btn-pill.sm { padding: 5px 5px 5px 18px; font-size: 13.5px; gap: 10px; }
.btn-pill.sm .badge { width: 28px; height: 28px; font-size: 12px; }

.btn-plain {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--edge); color: #fff; border: none;
  font-weight: 650; transition: filter .16s, transform .12s, box-shadow .16s;
  box-shadow: 0 8px 22px -14px var(--accent-glow);
}
.btn-plain:hover { filter: saturate(1.12) brightness(1.04); }
.btn-plain:active { transform: translateY(1px); }
.btn-plain.outline {
  background: var(--surf-1); border: 1px solid var(--line-2); color: var(--fg); box-shadow: none;
}
.btn-plain.outline:hover { background: var(--surf-2); border-color: var(--accent); }
.btn-plain:disabled { opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   Shell + nav
   ========================================================================== */
.frame { padding: 10px; background: var(--edge); }
.frame-inner { border-radius: var(--r-xl); overflow: hidden; background: var(--surf-0); }

.wrap { width: min(var(--page), 100% - 48px); margin-inline: auto; }

.nav {
  position: absolute; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 26px;
  padding: 22px clamp(20px, 3.5vw, 44px);
}
.nav.solid {
  position: sticky; top: 0; background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft);
}
.logo { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.logo i { color: var(--red); font-style: normal; }
.nav-links { display: flex; gap: 30px; margin-inline: auto; font-size: 13.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nav-links a { color: var(--fg-2); transition: color .15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { color: var(--fg); }
.nav-links a.on { position: relative; }
.nav-links a.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 2px; background: var(--edge); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; background: var(--surf-1); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 10px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: min(92vh, 880px); display: flex; flex-direction: column; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
/* Shown when no photo has been dropped into public/img yet. */
.hero-media::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(110% 85% at 80% 12%, rgba(124,58,237,.20), transparent 60%),
    radial-gradient(95% 80% at 10% 88%, rgba(225,29,72,.16), transparent 62%),
    repeating-linear-gradient(115deg, rgba(17,16,26,.028) 0 2px, transparent 2px 22px),
    linear-gradient(165deg, #ffffff, #f6f3fc 72%);
}
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
/* A photo needs a light scrim so black type stays readable over it. */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.35) 36%, rgba(255,255,255,.86) 100%);
}
.hero-body {
  position: relative; z-index: 10; margin-top: auto;
  display: grid; grid-template-columns: minmax(0, 360px) 1fr;
  gap: 40px; align-items: end;
  padding: 0 clamp(20px, 3.5vw, 44px) clamp(34px, 5vw, 66px);
}
.hero-left { display: flex; flex-direction: column; gap: 22px; }
.hero-rule { width: 3px; height: 58px; background: var(--edge); border-radius: 3px; }
.hero-note { font-size: 15px; line-height: 1.55; color: var(--fg-2); max-width: 34ch; }
.hero-headline { text-align: right; }
.hero-tag {
  display: inline-block; padding: 9px 20px; border-radius: 999px;
  background: var(--surf-1); border: 1px solid transparent;
  background: linear-gradient(var(--surf-1), var(--surf-1)) padding-box, var(--edge) border-box;
  font-size: 14px; margin-bottom: 16px; font-weight: 600;
}
.hero-cta { margin-top: 26px; display: flex; justify-content: flex-end; }

.avatars { display: flex; align-items: center; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%; margin-right: -11px;
  border: 2px solid var(--surf-0); display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--accent-900));
}
.avatars span:nth-child(2) { background: linear-gradient(140deg, var(--red), #9f1239); }
.avatars span:nth-child(3) { background: linear-gradient(140deg, #a855f7, var(--accent)); }
.avatars span:nth-child(4) { background: linear-gradient(140deg, var(--accent), var(--red)); }
.stat-line { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-top: 14px; }
.stat-line b { color: var(--red); }
.stat-line span { display: block; color: var(--fg-3); font-weight: 600; }

.scroll-dot {
  width: 30px; height: 48px; border: 1.5px solid var(--line-2);
  border-radius: 999px; display: grid; justify-items: center; padding-top: 8px;
}
.scroll-dot i { width: 5px; height: 9px; border-radius: 3px; background: var(--accent); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(11px); opacity: .3; } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(64px, 8vw, 118px) 0; }
/* Every section is white. Rhythm comes from a faint purple→red wash and the
   gradient rules above and below, never from a dark ground. */
.section.invert {
  background:
    radial-gradient(90% 70% at 12% 0%, rgba(124,58,237,.07), transparent 60%),
    radial-gradient(80% 70% at 92% 100%, rgba(225,29,72,.06), transparent 62%),
    var(--surf-0);
  position: relative;
}
.section.invert::before, .section.invert::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--edge);
}
.section.invert::before { top: 0; }
.section.invert::after { bottom: 0; }
.section.tight { padding: clamp(44px, 5vw, 70px) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: 46px; }
.section-head.split { grid-template-columns: 1fr auto; align-items: end; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.tile {
  border-radius: var(--r-lg); padding: 30px 28px;
  border: 1px solid transparent;
  background: linear-gradient(var(--surf-1), var(--surf-1)) padding-box, var(--edge-soft) border-box;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s, background .22s;
}
.tile:hover {
  transform: translateY(-4px);
  background: linear-gradient(var(--surf-1), var(--surf-1)) padding-box, var(--edge) border-box;
  box-shadow: 0 18px 40px -24px var(--accent-glow), 0 8px 20px -14px var(--red-glow);
}
.tile .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 22px; margin-bottom: 20px;
}
.tile h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 9px; }
.tile p { margin: 0; color: var(--fg-2); font-size: 14.5px; line-height: 1.62; }
.section.invert .tile p { color: var(--fg-2); }

.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.number {
  padding: 26px 24px; border-radius: var(--r); border: 1px solid transparent;
  background: linear-gradient(var(--surf-1), var(--surf-1)) padding-box, var(--edge-soft) border-box;
}
.number b { display: block; font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.number span { display: block; margin-top: 9px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.number.hot b {
  background: var(--edge); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.shot {
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  background: linear-gradient(150deg, #f4f0fb, #fdf2f6);
  border: 1px solid var(--line-soft);
  min-height: 280px;
}
.shot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.shot::after {
  content: attr(data-label); position: absolute; left: 18px; bottom: 16px; z-index: 2;
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-3);
}
.shot.has-img::after { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.section.invert .shot { border-color: var(--line-2); }

.split-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }

.cta-band {
  background: var(--edge); color: #fff; border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 64px); text-align: center;
  box-shadow: 0 30px 70px -40px var(--accent-glow);
}
.cta-band .lede { color: rgba(255,255,255,.9); margin-inline: auto; }

.footer { padding: 48px 0 40px; border-top: 1px solid var(--line-soft); color: var(--fg-2); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }

/* ==========================================================================
   Auth
   ========================================================================== */
.auth-grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; }
.auth-art .hero-media { position: absolute; inset: 0; }
.auth-art > * { position: relative; z-index: 2; }
.auth-quote { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.04em; line-height: 1.02; max-width: 16ch; }
.auth-panel { display: grid; place-items: center; padding: 40px 28px; background: var(--surf-0); border-left: 1px solid var(--line-soft); }
.auth-card { width: min(420px, 100%); }
.auth-tabs { display: flex; gap: 6px; background: var(--surf-2); padding: 5px; border-radius: 999px; margin-bottom: 26px; }
.auth-tab {
  flex: 1; padding: 10px; border-radius: 999px; border: none; background: none;
  color: var(--fg-2); font-weight: 650; font-size: 14px; transition: background .16s, color .16s;
}
.auth-tab.on { background: var(--edge); color: #fff; }

.field-row { display: grid; gap: 14px; }
.field-row.two { grid-template-columns: 1fr 1fr; }
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld label { font-size: 12.5px; font-weight: 650; color: var(--fg-2); letter-spacing: .02em; }
.fld input, .fld select, .fld textarea {
  background: var(--surf-1); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 13px 15px; color: var(--fg);
  font: inherit; outline: none; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.fld input:focus, .fld select:focus, .fld textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.fld input::placeholder { color: var(--fg-3); }
.fld .hint { font-size: 12px; color: var(--fg-3); }

.alert {
  padding: 12px 15px; border-radius: 12px; font-size: 14px; margin-bottom: 18px;
  border: 1px solid; display: flex; gap: 10px; align-items: flex-start;
}
.alert.err { background: var(--red-soft); border-color: rgba(225,29,72,.35); color: #9f1239; }
.alert.ok { background: rgba(21,128,61,.08); border-color: rgba(21,128,61,.3); color: #15803d; }
.alert.info { background: var(--surf-2); border-color: var(--line-2); color: var(--fg-2); }

/* ==========================================================================
   App chrome shared by the members pages
   ========================================================================== */
.app-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 22px;
  padding: 14px clamp(16px, 3vw, 34px);
}
.app-nav .nav-links { font-size: 13px; gap: 24px; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.who .ring {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--edge); font-weight: 800; color: #fff;
}

.page-wrap { width: min(1180px, 100% - 40px); margin: 0 auto; padding: 34px 0 90px; }
.page-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-art { min-height: 230px; padding: 28px; }
  .auth-panel { border-left: none; border-top: 1px solid var(--line-soft); }
  .split-two { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 12px; right: 12px;
    flex-direction: column; gap: 4px; margin: 0; padding: 14px;
    background: var(--surf-1); border: 1px solid var(--line-2); border-radius: var(--r);
    box-shadow: 0 20px 40px -26px rgba(17,16,26,.35);
  }
  .nav.open .nav-links a { padding: 9px 6px; }
  .hero-body { grid-template-columns: 1fr; gap: 26px; }
  .hero-headline { text-align: left; }
  .hero-cta { justify-content: flex-start; }
  .frame { padding: 6px; }
  .frame-inner { border-radius: 26px; }
  .wrap { width: min(var(--page), 100% - 32px); }
}
@media (max-width: 560px) {
  .field-row.two { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .section-head.split { grid-template-columns: 1fr; }
  .nav { padding: 16px; gap: 12px; }
  .logo { font-size: 18px; }
}

/* ==========================================================================
   Google sign-in
   ========================================================================== */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  width: 100%; padding: 13px 18px; border-radius: 999px;
  background: var(--surf-1); border: 1px solid var(--line-2);
  color: var(--fg); font-weight: 650; font-size: 14.5px;
  transition: background .16s, border-color .16s, box-shadow .16s;
}
.btn-google:hover {
  background: var(--surf-2); border-color: var(--accent);
  box-shadow: 0 8px 22px -16px var(--accent-glow);
}
.or-rule {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0; color: var(--fg-3); font-size: 12px;
  text-transform: uppercase; letter-spacing: .14em;
}
.or-rule::before, .or-rule::after {
  content: ""; flex: 1; height: 1px; background: var(--line-soft);
}

.access-note {
  margin: 16px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--fg-3);
  padding: 12px 14px; border-radius: 12px;
  background: var(--surf-2); border: 1px solid var(--line-soft);
}
.access-note b { color: var(--fg-2); font-weight: 650; }
