/* ============================================================
   /get/<slug> — free resource pages (Instagram comment → DM → here)
   Builds on site.css: .page frame, .callout card, .signup pill.
   ============================================================ */

/* nothing flashes before the content arrives */
.get[data-state="loading"] .page__inner { visibility: hidden; }

.get .page__inner { max-width: 600px; }

/* ---------- before the email ---------- */
/* the subheader carries the pitch: one bold phrase, one underlined payoff */
.get .page__lead strong { color: var(--white); font-weight: 500; }
.get .page__lead u {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(109, 194, 120, 0.8);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.get__card { max-width: 540px; margin: 0 auto; }

/* sign-in box: Google, "or", then email → 6-digit code */
.get__step[hidden] { display: none; }
/* Our own "Continue with Google" pill (signin.js) in a glass tray the same
   shape as the email row, with a faint light that sweeps across now and then. */
.get__google {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 64px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(120% 140% at 50% -40%, rgba(150, 176, 255, 0.16), transparent 60%),
    rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color-scheme: normal;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.get__google:hover {
  border-color: rgba(176, 196, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 22px rgba(62, 108, 255, 0.28);
}
.get__google::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: skewX(-18deg);
  animation: google-sheen 7s ease-in-out 1.5s infinite;
  pointer-events: none;
}
@keyframes google-sheen {
  0%, 70% { left: -40%; }
  100% { left: 130%; }
}
.get__arrow { flex-shrink: 0; transition: transform 0.2s ease; }
.get__send:hover .get__arrow { transform: translateX(3px); }
.get__google[hidden] { display: none; }
.get__or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 8px;
  color: #8a8fa8;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.get__or[hidden] { display: none; }
.get__or::before,
.get__or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.14); }
.get__send { gap: 9px; }
.get__code-intro {
  margin: 4px 8px 12px;
  color: rgba(214, 224, 255, 0.78);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: center;
}
.get__code-intro strong { display: block; color: var(--white); font-weight: 500; }
.get__code-intro [data-field="code-email"] { color: var(--white); word-break: break-all; }
.get__code-input {
  letter-spacing: 0.4em;
  font-variant-numeric: tabular-nums;
}
.get__code-input::placeholder { letter-spacing: 0.4em; }
.get__links {
  margin: 12px 0 0;
  color: rgba(214, 224, 255, 0.5);
  font-size: 0.8125rem;
  text-align: center;
}
.get__links button {
  padding: 4px 2px;
  border: 0;
  background: none;
  color: rgba(214, 224, 255, 0.78);
  font: inherit;
  cursor: pointer;
}
.get__links button:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.get__legal {
  max-width: 420px;
  margin: 16px auto 0;
  color: #7a7a7a;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}
.get__legal a { color: var(--gray); text-decoration: underline; text-underline-offset: 2px; }
.get__legal a:hover { color: var(--white); }
.get__account-link { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(109, 194, 120, 0.8); }
.get__card .signup { max-width: 100%; }
.get__card .signup__input { font-size: max(16px, 1.0625rem); }
.get__card .btn--primary { padding: 14px 26px; }

.get__card .get__note { margin-top: 8px; }
.get__card .get__note:empty { display: none; }

/* Unlock button: a padlock whose shackle swings open on submit */
.get__unlock { gap: 9px; }
.get__unlock:disabled { opacity: 1; cursor: default; }
.get__lock { flex-shrink: 0; overflow: visible; }
.get__shackle {
  transform-box: fill-box;
  transform-origin: 0% 100%;
}
/* two clean beats: the shackle lifts straight up, then swings open */
.get__unlock.is-unlocking .get__shackle { animation: lock-open 0.55s cubic-bezier(0.3, 0.55, 0.2, 1) forwards; }
@keyframes lock-open {
  0%   { transform: translateY(0) rotate(0); }
  40%  { transform: translateY(-3px) rotate(0); }
  100% { transform: translateY(-3px) rotate(-30deg); }
}
/* as it releases, three short lines flash out from the latch */
.get__rays path { stroke-dasharray: 3 9; stroke-dashoffset: 3; opacity: 0; }
.get__unlock.is-unlocking .get__rays path { animation: lock-ray 0.45s 0.2s ease-out forwards; }
.get__unlock.is-unlocking .get__rays path:nth-child(2) { animation-delay: 0.24s; }
.get__unlock.is-unlocking .get__rays path:nth-child(3) { animation-delay: 0.16s; }
@keyframes lock-ray {
  0%   { stroke-dashoffset: 3; opacity: 0; }
  25%  { opacity: 1; }
  100% { stroke-dashoffset: -5; opacity: 0; }
}
.get__note.is-error { color: var(--ember); }

/* ---------- after the email ---------- */
.get__unlocked { text-align: left; }

/* the guide: heading, a short paragraph, then the diagram */
.get__guide { display: flex; flex-direction: column; gap: clamp(48px, 8vw, 72px); margin-bottom: clamp(56px, 9vw, 88px); }
.get__section-title,
.get__setup-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.get__section-title em,
.get__setup-title em { font-family: var(--font-accent); font-style: italic; }
.get__setup-title { margin-bottom: 20px; }
.get__section-body { margin: 0 0 22px; color: var(--gray); line-height: 1.6; }
.get__section-body strong { color: var(--white); font-weight: 500; }
.get__section-body u {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(109, 194, 120, 0.8);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.get__section-img { display: block; width: 100%; height: auto; }
.get__sent {
  margin: 0 0 24px;
  color: var(--gray);
  text-align: center;
  font-size: 0.9375rem;
}
.get__items { display: flex; flex-direction: column; gap: 16px; }

.get__item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--raised);
  overflow: hidden;
}
.get__item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  border-bottom: 1px solid var(--line);
}
.get__item-label { font-weight: 500; }
.get__item-head .btn { flex-shrink: 0; }
.get__prompt {
  margin: 0;
  padding: 16px 18px 18px;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}
.get__item--file .get__item-head,
.get__item--link .get__item-head { border-bottom: 0; }

.get__steps { margin-bottom: clamp(28px, 4vw, 36px); }
.get__steps .kicker { margin-bottom: 14px; }
.get__steps ol {
  margin: 0;
  padding-left: 1.4em;
  color: var(--gray);
  line-height: 1.6;
}
.get__steps li + li { margin-top: 8px; }
.get__steps li::marker { color: var(--white); }

.get__more { display: block; margin-top: clamp(36px, 6vw, 48px); text-align: center; }

/* desktop: scale the whole pitch up so it fills the wider screen */
@media (min-width: 900px) {
  .get .page__inner { max-width: 760px; }
  .get .section__title { font-size: 4.5rem; margin-bottom: 22px; }
  .get .kicker { font-size: 0.8125rem; margin-bottom: 20px; }
  .get .page__lead {
    max-width: 620px;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 48px;
  }
  .get__card { max-width: 640px; padding: 16px 16px 20px; }
  .get__card .signup__input { font-size: 1.1875rem; }
  .get__card .btn--primary { padding: 17px 32px; font-size: 1.0625rem; }
  .get__card .get__note { font-size: 0.9375rem; margin-top: 10px; }
  .get__lock { width: 17px; height: 19px; }
}

@media (max-width: 600px) {
  /* phones: sit the pitch and the email box in the middle of the screen
     instead of pinned under the nav (the long unlocked guide just scrolls) */
  .get.page { align-items: center; padding-top: 16px; padding-bottom: 76px; }
  .get__item-head { padding-left: 14px; }
  .get__prompt { padding: 14px; max-height: 260px; }
}


@media (prefers-reduced-motion: reduce) {
  .get__unlock.is-unlocking .get__shackle { animation: none; transform: translateY(-3px) rotate(-30deg); }
  .get__unlock.is-unlocking .get__rays path { animation: none; }
  .get__google::after { animation: none; display: none; }
}

/* ---------- /account (signed in): your email, then a few plain rows ---------- */
.account__email {
  margin: 0 0 32px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.account__rows { margin: 0; border-top: 1px solid var(--line); text-align: left; }
.account__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.account__row dt { color: var(--white); font-weight: 500; }
.account__row dd { margin: 0; color: var(--gray); line-height: 1.5; }
.account__row a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(109, 194, 120, 0.8); }
@media (max-width: 600px) {
  .account__row { grid-template-columns: 1fr; gap: 4px; }
}
.account__foot { margin: 36px 0 0; color: #7a7a7a; font-size: 0.875rem; }
.account__foot a,
.account__foot button {
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--gray);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.account__foot a:hover,
.account__foot button:hover { color: var(--white); }
.account__out[hidden],
.account__in[hidden] { display: none; }

/* ---------- /privacy ---------- */
.legal { padding: clamp(48px, 8vw, 96px) var(--pad) clamp(64px, 9vw, 112px); }
.legal__inner { max-width: 680px; margin: 0 auto; }
.legal .kicker { margin-bottom: 16px; }
.legal .section__title { text-align: left; margin-bottom: 20px; }
.legal__lead { color: var(--gray); font-size: 1.125rem; line-height: 1.6; margin: 0 0 40px; }
.legal h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 40px 0 12px;
}
.legal p,
.legal li { color: var(--gray); line-height: 1.65; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0; padding-left: 1.2em; }
.legal li + li { margin-top: 8px; }
.legal strong { color: var(--white); font-weight: 500; }
.legal a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(109, 194, 120, 0.8); }

/* ---------- /resources (the free library) ---------- */
.library[data-state="loading"] .page__inner { visibility: hidden; }
.library .page__inner { max-width: 760px; }
.library__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; text-align: left; }
.library__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 70, 196, 0.14), rgba(30, 70, 196, 0.02)), var(--raised);
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.library__card:hover { border-color: rgba(150, 176, 255, 0.7); transform: translateY(-2px); }
.library__kicker { color: var(--gray); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.library__title { font-family: var(--font-head); font-size: clamp(1.75rem, 3.6vw, 2.25rem); line-height: 1.1; letter-spacing: -0.01em; }
.library__title em { font-family: var(--font-accent); font-style: italic; }
.library__lead { color: var(--gray); line-height: 1.55; }
.library__lead strong { color: var(--white); font-weight: 500; }
.library__lead u { color: var(--white); text-decoration-color: rgba(109, 194, 120, 0.8); text-underline-offset: 4px; }
.library__open { margin-top: 6px; color: #b8f5c0; font-weight: 500; font-size: 0.9375rem; }
/* "Coming soon" placeholders: an empty card, gray bars where the words go */
.library__soon {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 28px 30px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.015);
}
.library__bar { display: block; height: 12px; width: 88%; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.library__bar--title { height: 26px; width: 46%; margin: 2px 0 6px; background: rgba(255, 255, 255, 0.09); }
.library__bar--short { width: 62%; }

/* ---------- /subscribe steps (signed in, done) ---------- */
.home__step { padding: 14px 8px 6px; text-align: center; }
.home__line { margin: 0 0 14px; color: rgba(214, 224, 255, 0.82); }
.home__line strong { color: var(--white); font-weight: 500; overflow-wrap: anywhere; }
.home__done-title { margin: 0 0 6px; font-family: var(--font-head); font-size: 2rem; line-height: 1.1; color: var(--white); }
.home__done-title em { font-family: var(--font-accent); font-style: italic; }
.home__join { width: 100%; justify-content: center; }

/* ---------- /subscribe: the homepage hero, sign-in box where the button was ---------- */
.hero--subscribe[data-state="loading"] .hero__card { visibility: hidden; }
.subscribe__card.hero__card { width: 100%; max-width: 460px; text-align: left; }
.hero__after { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: -8px; }
.hero__after[hidden] { display: none; }
.hero__after .get__legal { margin: 0; }
.hero--subscribe .hero__proof { margin-top: 0; }

/* ---------- the split sign-up page (parked in archive/subscribe-split/) ----------
   Desktop: the form on the left, our art on the right.
   Phones: a strip of the art on top, then the form. */
.subscribe {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - 73px);
}
.subscribe__form {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 72px) var(--pad);
  background: radial-gradient(90% 70% at 0% 100%, rgba(30, 70, 196, 0.22), transparent 60%), var(--black);
}
.subscribe[data-state="loading"] .subscribe__inner { visibility: hidden; }
.subscribe__inner { width: 100%; max-width: 460px; }
.subscribe .kicker { margin-bottom: 14px; }
.subscribe__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.25rem, 3.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.subscribe__title em { font-family: var(--font-accent); font-style: italic; }
.subscribe__lead { margin: 0 0 28px; color: var(--gray); line-height: 1.55; }
.subscribe__card { max-width: none; margin: 0; }
/* a narrow column: the email field sits over its button */
.subscribe__card .signup { flex-direction: column; align-items: stretch; padding: 6px; border-radius: 24px; }
.subscribe__card .signup__input { padding: 12px 16px; }
.subscribe__card .signup .btn--primary { justify-content: center; }
.subscribe__legal { margin: 16px 0 0; text-align: left; max-width: none; }
.subscribe__signin { margin: 10px 0 0; color: var(--gray); font-size: 0.875rem; }
.subscribe__signin a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(109, 194, 120, 0.8); }
.subscribe__proof { margin-top: 28px; text-align: left; }
.subscribe__after[hidden] { display: none; }

.subscribe__art {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: url(/assets/img/subscribe-art.jpg) 50% 80% / cover no-repeat, #000;
}
.subscribe__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 38%);
}
.subscribe__art-title {
  position: absolute;
  /* small, in the black space left of the Earth, about a third down */
  top: 36%;
  left: clamp(24px, 3.5vw, 56px);
  margin: 0;
  text-align: center; /* "is here." centered under "Superintelligence" */
  /* a faint dark edge so it reads over the clouds, then a cobalt glow */
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.6),
    0 0 16px rgba(0, 0, 0, 0.4),
    0 0 34px rgba(120, 155, 255, 0.55),
    0 0 90px rgba(30, 70, 196, 0.6);
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.7vw, 1.625rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
}
.subscribe__art-title em { font-family: var(--font-accent); font-style: italic; }

@media (max-width: 900px) {
  .subscribe { grid-template-columns: 1fr; min-height: 0; }
  .subscribe__art {
    order: -1;
    height: 190px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    background-image: url(/assets/img/subscribe-art-wide.jpg);
    background-position: 50% 70%;
  }
  .subscribe__art-title { top: auto; bottom: calc(20% + 20px); left: var(--pad); font-size: 1.125rem; }
  .subscribe__form { align-items: flex-start; padding: 32px var(--pad) 48px; }
}

/* the pill itself: glass, same size as the email row's button */
.get__google-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: var(--white);
  font: 500 1.0625rem/1.2 var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.get__google-btn:disabled { cursor: progress; opacity: 0.7; }
.get__google-btn:hover { border-color: rgba(214, 224, 255, 0.55); background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)); }
.get__g { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; }

