/* Angelo Vasquez · Priority Waitlist
   Dark page. Inter for text. Playfair Display Italic in blue for accent words. */

:root {
  --bg: #0b0b0c;
  --raised: #151517;
  --text: #f4f3f0;
  --muted: #b1b0ac;
  --faint: #86857f;
  --accent: #a7c4e0;
  --accent-ink: #0b1622;
  --hairline: rgb(255 255 255 / 0.1);

  --radius-card: 24px;
  --radius-btn: 14px;
  --gutter: 20px;
  --measure: 34rem;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-accent: "Playfair Display", Georgia, "Times New Roman", serif;

  --step-label: 0.75rem;
  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-h3: 1.375rem;
  --step-h2: clamp(2rem, 8.4vw, 3.25rem);
  --step-h1: clamp(2.875rem, 13.5vw, 5.25rem);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -64px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

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

/* ---------- type ---------- */

.label {
  font-size: var(--step-label);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2 {
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-h1);
  line-height: 1;
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--step-h2);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h3 {
  font-size: var(--step-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* The accent word: Playfair Display Italic, blue. */
em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 1.07em;
  letter-spacing: -0.015em;
  color: var(--accent);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text);
  max-width: var(--measure);
  text-wrap: pretty;
}

.prose {
  max-width: var(--measure);
  color: var(--muted);
}

.prose p {
  text-wrap: pretty;
}

.prose p + p {
  margin-top: 1em;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.small {
  font-size: var(--step-small);
  line-height: 1.5;
  color: var(--faint);
  text-wrap: pretty;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    0 1px 2px rgb(0 0 0 / 0.4),
    0 10px 28px rgb(167 196 224 / 0.16);
  transition-property: scale, background-color, box-shadow;
  transition-duration: 0.15s;
  transition-timing-function: ease-out;
}

.btn:active {
  scale: 0.96;
}

@media (hover: hover) {
  .btn:hover {
    background: #bcd4ea;
  }
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--quiet {
  background: rgb(255 255 255 / 0.08);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 0 0 1px rgb(255 255 255 / 0.1);
}

@media (hover: hover) {
  .btn--quiet:hover {
    background: rgb(255 255 255 / 0.13);
  }
}

.btn .arrow {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
}

.hero__media {
  position: relative;
  z-index: -1;
}

.hero__img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: 50% 0%;
}

/* Dark at the very top for the name, clear over the faces, then a smooth fade into the page. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(11 11 12 / 0.55) 0%,
    rgb(11 11 12 / 0) 18%,
    rgb(11 11 12 / 0) 46%,
    rgb(11 11 12 / 0.62) 68%,
    rgb(11 11 12 / 0.92) 86%,
    var(--bg) 100%
  );
}

.hero__top {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  padding-top: max(18px, env(safe-area-inset-top));
}

.hero__top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

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

.handle {
  font-size: var(--step-small);
  color: var(--text);
  text-decoration: none;
  opacity: 0.85;
}

.hero__body {
  margin-top: -128px;
  padding-bottom: 48px;
}

.hero__body h1 {
  margin-top: 14px;
}

.hero__body .lead {
  margin-top: 18px;
}

.hero__cta {
  margin-top: 26px;
}

.hero__cta .small {
  margin-top: 14px;
  color: var(--muted);
}

/* ---------- sections ---------- */

.section {
  padding-block: 64px;
}

.section + .section {
  border-top: 1px solid var(--hairline);
}

.section h2 {
  margin-top: 12px;
}

.section .prose,
.section .steps,
.section .rules,
.section .faq,
.section .tiers {
  margin-top: 26px;
}

/* how it works */

.steps {
  list-style: none;
  padding: 0;
  max-width: var(--measure);
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-inline-start: 52px;
  counter-increment: step;
}

.steps li + li {
  margin-top: 22px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--accent);
  box-shadow: 0 0 0 1px rgb(167 196 224 / 0.4);
}

.steps strong {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.steps span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  text-wrap: pretty;
}

.after-steps {
  margin-top: 26px;
  max-width: var(--measure);
  color: var(--muted);
  text-wrap: pretty;
}

/* tiers */

.tiers {
  display: grid;
  gap: 14px;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--raised);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.06),
    0 0 0 1px rgb(255 255 255 / 0.07),
    0 12px 32px rgb(0 0 0 / 0.35);
}

.tier--top {
  background: linear-gradient(180deg, #1a2029 0%, var(--raised) 62%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.1),
    0 0 0 1px rgb(167 196 224 / 0.55),
    0 16px 44px rgb(167 196 224 / 0.1);
}

.tier__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.tier__name {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.tier__price {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.tier__price small {
  font-size: var(--step-small);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.tier__pitch {
  margin-top: 12px;
  color: var(--text);
  text-wrap: pretty;
}

.tier__list {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.tier__list li {
  position: relative;
  padding-inline-start: 26px;
  text-wrap: pretty;
}

.tier__list li + li {
  margin-top: 8px;
}

.tier__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 0.42em;
  width: 13px;
  height: 7px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  rotate: -45deg;
  transform-origin: center;
}

.tier__foot {
  margin-top: auto;
  padding-top: 20px;
}

.spots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: var(--step-small);
  color: var(--muted);
}

.spots::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(167 196 224 / 0.16);
}

.badge {
  position: absolute;
  top: -11px;
  inset-inline-start: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.tiers-note {
  margin-top: 20px;
  max-width: var(--measure);
}

/* the cut */

.cut {
  display: grid;
  gap: 28px;
}

.cut__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-card);
  outline: 1px solid rgb(255 255 255 / 0.1);
  outline-offset: -1px;
}

/* rules */

.rules {
  list-style: none;
  padding: 0;
  max-width: var(--measure);
}

.rules li {
  padding-block: 16px;
  color: var(--muted);
  text-wrap: pretty;
}

.rules li + li {
  border-top: 1px solid var(--hairline);
}

.rules li:first-child {
  padding-top: 0;
}

.rules strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

/* faq */

.faq {
  max-width: 44rem;
}

.faq details {
  border-top: 1px solid var(--hairline);
}

.faq details:last-child {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-inline-end: 4px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  rotate: 45deg;
  translate: 0 -3px;
  transition-property: rotate, translate;
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
}

.faq details[open] summary::after {
  rotate: -135deg;
  translate: 0 3px;
}

.faq details p {
  padding-bottom: 20px;
  max-width: var(--measure);
  color: var(--muted);
  text-wrap: pretty;
}

/* final call */

.final {
  text-align: center;
}

.final h2 {
  margin-top: 0;
}

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

.final .small {
  margin-top: 14px;
  color: var(--muted);
}

/* footer */

.footer {
  padding-block: 36px max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  font-size: var(--step-small);
  line-height: 1.6;
  color: var(--faint);
}

.footer p + p {
  margin-top: 6px;
}

.footer a {
  white-space: nowrap;
  color: var(--muted);
  text-decoration-color: rgb(255 255 255 / 0.3);
  text-decoration-thickness: from-font;
  text-underline-offset: 3px;
}

.footer .forma {
  margin-top: 22px;
  color: var(--muted);
}

.footer .forma em {
  font-size: 1.15em;
}

/* ---------- legal pages ---------- */

.legal {
  padding-block: 28px 72px;
}

.legal .back {
  display: inline-block;
  font-size: var(--step-small);
  color: var(--muted);
  text-decoration: none;
}

.legal h1 {
  margin-top: 28px;
  font-size: clamp(2rem, 8.4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.legal .updated {
  margin-top: 12px;
  font-size: var(--step-small);
  color: var(--faint);
}

.legal h2 {
  margin-top: 44px;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.legal p,
.legal ul,
.legal .table {
  margin-top: 14px;
  max-width: 40rem;
  color: var(--muted);
}

.legal p {
  text-wrap: pretty;
}

.legal ul {
  padding-inline-start: 1.15em;
}

.legal li + li {
  margin-top: 8px;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal a {
  color: var(--accent);
  text-decoration-thickness: from-font;
  text-underline-offset: 3px;
}

.legal .table {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--hairline);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.legal th,
.legal td {
  padding: 12px 14px;
  text-align: start;
  vertical-align: top;
}

.legal th {
  font-weight: 600;
  color: var(--text);
  background: rgb(255 255 255 / 0.04);
}

.legal tr + tr td {
  border-top: 1px solid var(--hairline);
}

/* ---------- wider screens ---------- */

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }

  .section {
    padding-block: 88px;
  }

  .hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
  }

  .hero__cta .small {
    margin-top: 0;
    max-width: 20rem;
  }

  .cut {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
  }
}

@media (min-width: 960px) {
  .tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    align-items: center;
    gap: 24px;
    max-width: 72rem;
    margin-inline: auto;
    padding-block: 96px 72px;
  }

  .hero__media {
    order: 2;
    margin-inline-end: var(--gutter);
    border-radius: var(--radius-card);
    overflow: hidden;
    outline: 1px solid rgb(255 255 255 / 0.1);
    outline-offset: -1px;
  }

  .hero__img {
    aspect-ratio: 4 / 5;
  }

  .hero__media::after {
    background: linear-gradient(180deg, rgb(11 11 12 / 0) 60%, rgb(11 11 12 / 0.45) 100%);
  }

  .hero__body {
    order: 1;
    margin-top: 0;
    padding-bottom: 0;
  }

  .hero__cta .btn--block {
    display: inline-flex;
    width: auto;
  }
}

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

  .btn,
  .faq summary::after {
    transition-duration: 0s;
  }

  .btn:active {
    scale: 1;
  }
}
