/* Mindset Mastery — shared styles */

:root {
  --bg: #0b0b0d;
  --bg-raised: #141418;
  --line: #26262d;
  --text: #f4f1ea;
  --text-muted: #a19d94;
  --accent: #f2b544;
  --accent-ink: #1a1405;
  --error: #ff8a7a;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 5vw, 48px);
  --maxw: 1080px;
  --radius: 14px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(242, 181, 68, 0.6);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  box-shadow: none;
}

.btn--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.arrow {
  transition: transform 0.15s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Type ---------- */

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
}

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

/* ---------- Sections ---------- */

.section {
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid var(--line);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 90%;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(242, 181, 68, 0.22),
    rgba(242, 181, 68, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero .lede {
  margin-top: 28px;
  max-width: 40ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 44px;
}

.hero-cta .muted {
  font-size: 15px;
}

/* The gap */

.gap-lines {
  display: grid;
  gap: 8px;
}

.gap-lines .h2:nth-child(2) {
  color: var(--text-muted);
}

.gap-lines .h2:nth-child(3) {
  margin-top: 24px;
  color: var(--accent);
}

/* Seven mindsets */

.mindsets {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.mindsets li {
  margin: 0 -1px -1px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 28px;
  transition: background 0.2s ease;
}

.mindsets li:hover {
  background: var(--bg-raised);
}

@media (min-width: 640px) {
  .mindsets li:last-child {
    grid-column: 1 / -1;
  }
}

.mindsets .num {
  display: block;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.mindsets h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.mindsets p {
  margin: 0;
  color: var(--text-muted);
}

/* How it works */

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.steps li {
  padding-top: 24px;
  border-top: 1px solid var(--accent);
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.steps h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* From Peter */

.letter {
  max-width: 760px;
}

.letter blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.letter blockquote p {
  margin: 0 0 0.8em;
}

.letter blockquote p:last-of-type {
  color: var(--accent);
}

.letter .sig {
  margin-top: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--text-muted);
}

/* Free tools */

.tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.tool {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.tool h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
}

.tool p {
  margin: 0;
  color: var(--text-muted);
}

.tools-note {
  margin: 28px 0 0;
  font-weight: 500;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.link-arrow:hover {
  border-bottom-color: var(--accent);
}

.link-arrow:hover .arrow {
  transform: translateX(3px);
}

@media (max-width: 720px) {
  .tools {
    grid-template-columns: 1fr;
  }
}

/* Final CTA */

.final {
  text-align: center;
}

.final .h2 span {
  display: block;
}

.final .h2 span:last-child {
  color: var(--text-muted);
}

.final .btn {
  margin-top: 40px;
}

/* Footer */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- Waitlist / Thanks (single-column pages) ---------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.page main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.page main::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(242, 181, 68, 0.14), transparent 70%);
  pointer-events: none;
}

.narrow {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow .display {
  font-size: clamp(44px, 9vw, 72px);
}

.narrow .lede {
  margin-top: 20px;
}

/* Form */

.form {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.field input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
  color: var(--text);
  font: 400 17px/1 var(--sans);
  transition: border-color 0.15s ease;
}

.field input::placeholder {
  color: #5e5b55;
}

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

.field input:focus {
  outline: none;
  border-color: var(--accent);
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
}

.field .error {
  min-height: 0;
  margin: 6px 0 0;
  color: var(--error);
  font-size: 14px;
}

.field .error:empty {
  display: none;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.5;
}

.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-raised);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.check:hover .check-box {
  border-color: var(--text-muted);
}

.check input:focus-visible + .check-box {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.check input:checked + .check-box {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%231a1405' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.form .btn {
  width: 100%;
  margin-top: 4px;
}

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

.form-status {
  margin: 0;
  color: var(--error);
  font-size: 14px;
  text-align: center;
}

.form-status:empty {
  display: none;
}

/* Thanks */

.block {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.block-title {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 500;
}

.optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.chip label:hover {
  border-color: var(--text-muted);
}

.chip input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.chip input:checked + label {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.alpha {
  padding: 28px;
  border: 1px solid rgba(242, 181, 68, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(242, 181, 68, 0.1), rgba(242, 181, 68, 0.03));
}

.alpha .eyebrow {
  margin-bottom: 12px;
}

.alpha-text {
  margin: 0 0 20px;
  font-size: 17px;
}

.alpha-note {
  margin-top: 12px;
  text-align: left;
}

.pick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 20px;
}

.confirm {
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: var(--bg-raised);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.confirm-title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  color: var(--accent);
}

.confirm-text {
  margin: 0;
  font-size: 17px;
}

.link-btn {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: 500 14px/1.4 var(--sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--text);
}

.saved {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.saved:empty {
  display: none;
}

.question {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 4.4vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.share-row p {
  margin: 0;
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .arrow {
    transition: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
