/* The Tribe Maker — AI training funnel
   Tokens from the brand guide and ttm-globals.css */
:root {
  --blue: #0729aa;
  --blue-deep: #051e80;
  --honey: #ffaf00;
  --honey-deep: #f59e00;
  --ink: #131419;
  --cream: #faf6ee;
  --paper: #f3ede0;
  --line: #e7dfce;
  --muted: #6b6557;
  --white: #ffffff;
  --danger: #8c1d1d;
  --danger-bg: #fdf2f2;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 18px 50px rgba(19, 20, 25, 0.08);
  --radius: 12px;
  --header-offset: 0px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure,
blockquote,
dl {
  margin: 0;
}

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 144;
  letter-spacing: -0.03em;
  text-wrap: balance;
  line-height: 1.05;
  font-weight: 500;
  margin: 0;
}

p {
  margin: 0;
}

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

a:hover {
  color: var(--blue-deep);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--honey);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
}

.ph {
  display: inline-block;
  margin: 0 0.35rem 0.15rem 0;
  padding: 0.18rem 0.42rem 0.14rem;
  border-radius: 3px;
  background: var(--ink);
  color: var(--honey);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  vertical-align: middle;
}

.ph-light {
  background: var(--honey);
  color: var(--ink);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section {
  padding: 4.5rem 0;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1rem;
}

.section h2 em,
.hero h1 em,
.hook h2 em {
  font-style: italic;
  font-weight: 500;
}

.lede {
  font-size: 1.125rem;
  color: var(--ink);
  max-width: 42rem;
}

.muted {
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.85rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}

.btn-honey {
  background: var(--honey);
  color: var(--ink);
  width: 100%;
}

.btn-honey:hover {
  background: var(--honey-deep);
  color: var(--ink);
}

.btn-honey:focus-visible {
  outline-color: var(--ink);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--blue-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.cta-row {
  margin-top: 1.75rem;
}

.cta-row .btn {
  width: auto;
  min-width: min(100%, 280px);
}

/* Urgency bar */

.urgency {
  background: var(--ink);
  color: var(--white);
  font-size: 0.875rem;
  line-height: 1.45;
}

.urgency .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.75rem;
  padding: 0.55rem 0;
  text-align: center;
}

.urgency strong {
  color: var(--honey);
  font-weight: 700;
}

/* Header */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
}

.header-cta {
  width: auto;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  font-size: 0.95rem;
}

/* Hero */

.hero {
  padding: 1rem 0 2.25rem;
}

.prehead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.7rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.marker {
  display: inline-block;
  padding: 0.15rem 0.55rem 0.22rem;
  border-radius: 4px;
  background: var(--honey);
  color: var(--ink);
  font-weight: 700;
  transform: rotate(-1.25deg);
}

.hero h1 {
  max-width: 15em;
  font-size: clamp(2.35rem, 3.6vw, 3.7rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 em {
  color: var(--blue);
}

.subhead {
  max-width: 40rem;
  margin-top: 0.9rem;
  font-size: 1.125rem;
  color: var(--ink);
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.video {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.video-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 175, 0, 0.16), transparent 42%),
    var(--ink);
  color: var(--white);
  text-align: center;
}

.video-frame > * {
  position: relative;
  z-index: 1;
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  pointer-events: none;
}

.play {
  width: 64px;
  height: 64px;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  background: var(--honey);
  position: relative;
  z-index: 1;
}

.play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--ink);
}

.video-kicker {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
}

.video-note {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.form-card,
#opt-in,
#thanks {
  scroll-margin-top: 20px;
  scroll-margin-bottom: 96px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--honey);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.15rem 1.2rem;
}

.form-card h2 {
  font-size: 1.85rem;
  margin: 0.35rem 0 0.85rem;
}

.field {
  margin-bottom: 0.75rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 2px solid #d9d0c0;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field input:hover {
  border-color: #b7ad9b;
}

.field input:focus-visible {
  border-color: var(--blue);
  outline-color: var(--blue);
}

.field.has-error input {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.error {
  margin-top: 0.3rem;
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.form-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.thanks {
  padding: 0.4rem 0 0.2rem;
}

.thanks h2 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.thanks p + p {
  margin-top: 0.75rem;
}

.form-alert {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Hook */

.hook {
  background: var(--ink);
  color: var(--white);
}

.hook .eyebrow {
  color: var(--honey);
}

.hook h2 em {
  color: var(--honey);
}

.hook .lede {
  color: rgba(255, 255, 255, 0.88);
}

.hso {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hso article {
  padding: 1.15rem 1.15rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.hso .step {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--honey);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hso h3 {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
  color: var(--white);
}

.hso p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.98rem;
}

.split {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.split article {
  padding: 1.1rem 1.15rem;
  border-radius: 10px;
}

.split h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.split ul {
  margin: 0;
  padding-left: 1.1rem;
}

.split li + li {
  margin-top: 0.35rem;
}

.for {
  background: rgba(255, 175, 0, 0.1);
}

.for h3 {
  color: var(--honey);
}

.not {
  background: rgba(255, 255, 255, 0.04);
}

.hook .btn-ghost {
  margin-top: 0.25rem;
}

/* Story */

.story {
  background: var(--cream);
}

.template-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-left: 6px solid var(--honey);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 600;
}

.beats {
  display: grid;
  gap: 0.85rem;
}

.beat {
  padding: 1.15rem 1.15rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.beat h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.45rem;
}

.prompt {
  display: block;
  margin-top: 0.85rem;
  color: var(--ink);
  background: var(--paper);
  padding: 0.7rem 0.8rem;
  border-radius: 6px;
}

/* Secrets */

.secrets {
  background: var(--paper);
}

.secret-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.secret {
  padding: 1.35rem 1.25rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.secret-no {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0;
}

.secret h3 {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  margin-bottom: 0.85rem;
}

.belief,
.break {
  margin-top: 0.7rem;
}

.belief dt,
.break dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.belief dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.25;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--honey-deep);
}

.break dd {
  margin: 0.25rem 0 0;
}

/* Offer */

.offer {
  background: var(--cream);
}

.stack {
  margin-top: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stack-legend {
  margin: 0;
  padding: 0.85rem 1.15rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 600;
}

.stack-item {
  display: grid;
  gap: 0.65rem;
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.stack-item h3 {
  font-size: 1.35rem;
  margin: 0.3rem 0 0.25rem;
}

.stack-item p {
  color: var(--muted);
  font-size: 0.98rem;
}

.money {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.money small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stack-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem;
  background: var(--ink);
  color: var(--white);
}

.stack-total p {
  margin: 0;
  font-size: 0.95rem;
}

.stack-total .money {
  color: var(--honey);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.price-band {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  padding: 1.4rem 1.15rem 1.5rem;
  text-align: center;
  background: var(--white);
}

.price-band .today {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.price-now {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.price-band .btn {
  max-width: 420px;
}

/* Proof */

.proof {
  background: var(--white);
}

.cards {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.quote {
  margin: 0;
  padding: 1.2rem 1.15rem 1.15rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.quote blockquote {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.quote figcaption {
  margin-top: 0.9rem;
  font-size: 0.95rem;
}

.quote .who {
  font-weight: 700;
}

/* Guarantee, countdown, FAQ, close */

.guarantee-wrap {
  background: var(--paper);
}

.guarantee {
  padding: 1.4rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--cream);
  box-shadow: 8px 8px 0 var(--honey);
}

.guarantee h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.timer-block {
  margin-top: 1.5rem;
  padding: 1.25rem 1rem 1.3rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.timer-block h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 0.4rem;
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 520px;
  margin: 1rem auto 0;
}

.timer div {
  padding: 0.7rem 0.25rem 0.55rem;
  border-radius: 8px;
  background: #1d1e24;
}

.timer b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--honey);
  font-variant-numeric: tabular-nums;
}

.timer span {
  display: block;
  margin-top: 0.1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timer-note {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.faq-list {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.15rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-item button:hover {
  color: var(--blue);
}

.chev {
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.faq-item button[aria-expanded="true"] .chev {
  transform: rotate(225deg);
  margin-top: 6px;
}

.faq-panel {
  padding: 0 0 1rem;
  color: var(--ink);
}

.faq-panel p + p {
  margin-top: 0.6rem;
}

.close {
  background: var(--blue);
  color: var(--white);
  text-align: center;
}

.close h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  color: var(--white);
}

.close h2 em {
  color: var(--honey);
  font-style: italic;
}

.close .lede {
  margin: 0.8rem auto 0;
  color: rgba(255, 255, 255, 0.9);
}

.close .cta-row {
  display: flex;
  justify-content: center;
}

.ps {
  background: var(--cream);
}

.ps-card {
  padding: 0.2rem 0 0.2rem;
}

.ps-card .label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--blue);
}

.ps-card p {
  margin-top: 0.55rem;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 2rem 0 2.4rem;
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: grid;
  gap: 0.7rem;
}

.site-footer strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.site-footer a {
  color: var(--honey);
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: none;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(250, 246, 238, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(19, 20, 25, 0.08);
}

.sticky-cta .btn {
  width: 100%;
}

body.has-sticky {
  padding-bottom: 84px;
}

@media (min-width: 800px) {
  .wrap,
  .wrap-narrow {
    width: min(var(--max), calc(100% - 64px));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: start;
    gap: 1.5rem;
  }

  .hso,
  .split,
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .stack-item {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.5rem;
  }

  .money {
    text-align: right;
  }

  .sticky-cta {
    display: none !important;
  }

  body.has-sticky {
    padding-bottom: 0;
  }
}

@media (max-width: 799px) {
  .header-cta {
    display: none;
  }

  .play {
    width: 46px;
    height: 46px;
    margin-bottom: 0;
  }

  .play::before {
    border-width: 8px 0 8px 13px;
  }

  .video-kicker {
    font-size: 1.35rem;
  }

  .video-frame {
    padding: 0.7rem;
    gap: 0.15rem;
  }

  .video-frame::after {
    inset: 8px;
  }

  .section {
    padding: 3.25rem 0;
  }

  .sticky-cta.is-on {
    display: block;
  }
}

@media (max-width: 380px) {
  .brand span {
    font-size: 1rem;
  }
}
