/* ==========================================================================
   PRVNCE — landing page styles
   Shared by all four landing variants. Tokens first, then components.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #faf8f3;
  --band: #f1eee7;
  --field-bg: #fdfcfa;

  /* Ink */
  --ink: #111111;
  --text: #3d3d3b;
  --muted: #6f6e6b;
  --faint: #93918f;
  --placeholder: #a3a19c;

  /* Lines */
  --rule: #dddad5;
  --field-border: #e2ded7;
  --field-border-focus: #111111;

  /* Stone pedestals */
  --stone-top: #e6dfd2;
  --stone-top-edge: #f0ebe1;
  --stone-front: #d6cdbd;
  --stone-front-deep: #c4b9a5;

  /* Type */
  --font: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(20px, 3.9vw, 56px);
  --header-h: 84px;

  /* Radii */
  --r-card: 12px;
  --r-field: 12px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.wordmark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--ink);
  line-height: 1;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}

.display {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--ink);
  text-wrap: balance;
}

.display--xl { font-size: clamp(44px, 6.4vw, 92px); }
.display--lg { font-size: clamp(36px, 4.6vw, 66px); }
.display--md { font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -0.03em; line-height: 1.05; }

.lede {
  font-size: clamp(18px, 1.75vw, 25px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  text-wrap: pretty;
}

.note {
  font-size: 15px;
  font-weight: 500;
  color: var(--faint);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #faf8f3;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.btn:hover { background: #2a2a2a; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.btn svg { width: 22px; height: 22px; flex: 0 0 auto; }

.btn--sm {
  height: 46px;
  padding: 0 22px;
  font-size: 16px;
}

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

.site-header {
  height: var(--header-h);
  border-bottom: 1px solid var(--rule);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
}

.site-nav__link {
  white-space: nowrap;
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
  transition: color 160ms ease;
}

.site-nav__link:hover { color: var(--ink); }

.site-nav__status {
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Hero — split (text left, objects right)
   -------------------------------------------------------------------------- */

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 104px) clamp(48px, 6vw, 88px);
}

.hero-split--stage { align-items: end; padding-bottom: 0; }

/* Variant C: headline spans the page, then copy + podium share a row */
.hero-stage {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.2vw, 30px);
  padding-top: clamp(40px, 6vw, 88px);
}

.hero-stage .display { max-width: 12.5em; }

.hero-stage__row {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: end;
  margin-top: clamp(4px, 1vw, 12px);
}

.hero-stage__row .hero-copy {
  align-self: stretch;
  padding-bottom: clamp(24px, 3vw, 40px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 2.2vw, 30px);
  min-width: 0;
}

.hero-copy .display { max-width: 7.4em; }
.hero-copy .lede { max-width: 30ch; }

.hero-copy__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 6px;
}

.hero-copy__tagline {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--faint);
  max-width: 14ch;
  margin-top: auto;
  padding-top: clamp(40px, 7vw, 120px);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.hero-visual__caption {
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Hero — centered
   -------------------------------------------------------------------------- */

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(40px, 4.5vw, 64px) 0;
}

.hero-center .eyebrow { margin-bottom: clamp(20px, 2.4vw, 34px); }
.hero-center .display { max-width: 14ch; }
.hero-center .lede { max-width: 44ch; margin-top: clamp(18px, 2vw, 28px); }

.hero-center__caption {
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 500;
  color: var(--text);
  margin-top: clamp(24px, 3vw, 44px);
}

.hero-center .display--md { margin-top: clamp(16px, 2vw, 28px); }
.hero-center .lede--sub { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Objects — fanned cards (variant A)
   -------------------------------------------------------------------------- */

.fan {
  position: relative;
  width: min(100%, 640px);
  aspect-ratio: 32 / 23;
}

.fan__card {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: var(--r-card);
  filter: drop-shadow(0 22px 34px rgba(17, 17, 17, 0.22));
  transform-origin: center;
  will-change: transform;
}

.fan__card img { border-radius: var(--r-card); width: 100%; }

.fan__card--left {
  width: 41%;
  transform: translate(-124%, -40%) rotate(-12deg);
  z-index: 1;
}

.fan__card--center {
  width: 52%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.fan__card--right {
  width: 41%;
  transform: translate(24%, -40%) rotate(12deg);
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Objects — cards on stone pedestals (variants B, C, D)
   -------------------------------------------------------------------------- */

.podium {
  --card-w: clamp(92px, 19.5vw, 268px);
  --block-h: clamp(18px, 3.2vw, 44px);
  --gap: clamp(10px, 4.5vw, 64px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--gap);
  width: 100%;
  padding-bottom: clamp(24px, 3vw, 40px);
}

.pedestal {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(var(--card-w) + clamp(14px, 2.6vw, 40px));
  flex: 0 0 auto;
}

.pedestal__card {
  width: var(--card-w);
  border-radius: var(--r-card);
  filter: drop-shadow(0 20px 26px rgba(17, 17, 17, 0.20)) drop-shadow(0 2px 4px rgba(17, 17, 17, 0.08));
  position: relative;
  z-index: 2;
  margin-bottom: -2px; /* seat the card on the stone */
}

.pedestal__card img { border-radius: var(--r-card); width: 100%; }

.pedestal__block {
  --top-h: clamp(5px, 0.85vw, 12px);
  position: relative;
  width: 100%;
  height: var(--block-h);
  background: linear-gradient(180deg, var(--stone-front) 0%, #cfc5b3 55%, var(--stone-front-deep) 100%);
  border-radius: 3px;
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.18),
    inset -1px 0 0 rgba(0, 0, 0, 0.04),
    inset 0 -2px 3px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

/* top face — a lighter slab the card stands on */
.pedestal__block::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: var(--top-h);
  background: linear-gradient(180deg, var(--stone-top-edge), var(--stone-top));
  border-radius: 3px 3px 0 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07);
}

/* soft ground shadow */
.pedestal__block::after {
  content: "";
  position: absolute;
  left: -8%; right: -8%; bottom: -16px;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(17, 17, 17, 0.18) 0%, rgba(17, 17, 17, 0.07) 48%, rgba(17, 17, 17, 0) 72%);
  filter: blur(7px);
  z-index: -1;
}

/* featured (middle) card: a touch larger */
.pedestal--feature .pedestal__card { width: calc(var(--card-w) * 1.1); }
.pedestal--feature { width: calc(var(--card-w) * 1.1 + clamp(14px, 2.6vw, 40px)); }

/* stage variant (C): the featured card stands on a tall block */
.podium--stage {
  --card-w: clamp(84px, 16vw, 232px);
  --block-h: clamp(28px, 7vw, 100px);
  --gap: clamp(8px, 1.6vw, 24px);
  justify-content: flex-end;
}
.podium--stage .pedestal { width: calc(var(--card-w) + clamp(12px, 2.2vw, 32px)); }
.podium--stage .pedestal--feature { width: calc(var(--card-w) * 1.1 + clamp(12px, 2.2vw, 32px)); }
.podium--stage .pedestal--feature .pedestal__block { height: calc(var(--block-h) * 1.85); }

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

.section {
  padding-block: clamp(56px, 7vw, 104px);
}

.section--ruled { border-top: 1px solid var(--rule); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 28px);
  margin-bottom: clamp(40px, 4.5vw, 64px);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pillar__num {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 10px;
}

.pillar__title {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.pillar__title--lg { font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -0.03em; }

.pillar__text {
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  max-width: 26ch;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Early access band
   -------------------------------------------------------------------------- */

.band {
  background: var(--band);
  padding-block: clamp(56px, 6.5vw, 96px);
}

.band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.band__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 26px);
}

.band__copy .display { max-width: 16ch; }
.band__copy .lede { max-width: 30ch; font-size: clamp(18px, 1.55vw, 23px); }

/* --------------------------------------------------------------------------
   Invitation form
   -------------------------------------------------------------------------- */

.invite {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

.invite__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invite__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.invite__label small {
  font-size: inherit;
  font-weight: 500;
  color: var(--muted);
}

.invite__input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--field-border);
  border-radius: var(--r-field);
  background: var(--field-bg);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.invite__input::placeholder { color: var(--placeholder); }

.invite__input:focus {
  border-color: var(--field-border-focus);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.invite__note {
  font-size: 15px;
  font-weight: 500;
  color: var(--faint);
}

.invite__success {
  display: none;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.invite.is-done .invite__field,
.invite.is-done .btn,
.invite.is-done .invite__row,
.invite.is-done .invite__note { display: none; }

.invite.is-done .invite__success { display: block; }

/* inline layout: input beside the button (variants B and D) */
.invite--inline {
  align-items: center;
  max-width: 860px;
  margin-inline: auto;
  margin-top: clamp(24px, 2.6vw, 40px);
}

.invite--inline .invite__row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
}

.invite--inline .invite__field { flex: 1 1 auto; }
.invite--inline .btn { flex: 0 0 auto; }
.invite--inline .invite__note { text-align: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 36px 44px;
}

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

.site-footer .wordmark { font-size: 18px; }

.site-footer__tagline {
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .hero-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .hero-stage__row { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-stage__row .hero-copy { padding-bottom: 0; }
  .hero-stage .display { max-width: none; }
  .podium--stage { justify-content: center; }
  .hero-copy__tagline { padding-top: 8px; margin-top: 0; }

  .hero-visual { padding-top: 8px; }
  .fan { width: min(100%, 520px); margin-inline: auto; }

  .pillars { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pillar__text { max-width: 40ch; }

  .band__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 600px) {
  .btn { height: 52px; padding: 0 24px; font-size: 17px; }
  .btn--sm { height: 42px; padding: 0 18px; font-size: 15px; }
  .site-nav__link, .site-nav__status { font-size: 15px; }
  .site-nav__link + .btn { margin-left: 0; }

  .hero-copy .display { max-width: none; }
  .hero-copy .lede { max-width: none; }

  .invite--inline .invite__row { flex-direction: column; align-items: stretch; }
  .invite--inline .btn { width: 100%; }

  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .site-nav__link { display: none; }
}

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