/*
 * Wordnest landing page.
 *
 * Same tokens as the app in src/styles/tokens.css, so the page and the product are
 * unmistakably one thing. It commits to the album's paper look rather than offering
 * a dark variant: the app itself is light-only by design, and a dark landing page
 * handing off to a paper-white app would be a worse seam than no dark mode at all.
 */

@font-face {
  font-family: 'Andika';
  src: url('fonts/andika-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Andika';
  src: url('fonts/andika-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --paper: #faefd8;
  --paper-shade: #f1e1c0;
  --paper-edge: #e4cea3;
  --bark: #3a2e27;
  --bark-soft: #7a6555;
  --moss: #4e7a3f;
  --moss-deep: #315226;
  --robin: #64c4d2;
  --robin-deep: #2a93a5;
  --yolk: #ffc53d;
  --yolk-pale: #ffe6a8;
  --berry: #d5527a;
  --berry-deep: #a83457;

  --face-letter: 'Andika', system-ui, sans-serif;
  --face-display: 'Fraunces', Georgia, serif;
  --face-ui: 'Nunito', system-ui, sans-serif;

  --egg: 50% 50% 47% 47% / 62% 62% 38% 38%;
  --pebble: 1.6rem;
  --lift-sm: 0 3px 0 rgba(58, 46, 39, 0.16);
  --lift: 0 5px 0 rgba(58, 46, 39, 0.18);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --measure: 40rem;
}

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

body {
  margin: 0;
  font-family: var(--face-ui);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--bark);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(122, 101, 85, 0.1) 0 1.2px, transparent 1.4px),
    radial-gradient(circle at 70% 65%, rgba(122, 101, 85, 0.08) 0 1.6px, transparent 1.8px),
    radial-gradient(circle at 45% 85%, rgba(122, 101, 85, 0.07) 0 1px, transparent 1.2px);
  background-size: 90px 90px, 130px 130px, 70px 70px;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--bark);
  color: var(--paper);
  border-radius: 0.6rem;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bark-soft);
}

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

.band-inner {
  max-width: var(--measure);
  margin-inline: auto;
}

.hero {
  padding: clamp(2.5rem, 8vw, 5rem) 1.4rem 1rem;
  text-align: center;
}

.wordmark {
  margin: 0.4rem 0 0;
  font-family: var(--face-display);
  font-variation-settings: 'SOFT' 80, 'WONK' 1, 'opsz' 144;
  font-weight: 700;
  font-size: clamp(3rem, 14vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.wordmark span {
  color: var(--moss);
}

.tagline {
  margin: 0.2rem 0 0;
  font-family: var(--face-display);
  font-variation-settings: 'SOFT' 60, 'WONK' 1, 'opsz' 20;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--bark-soft);
}

.pitch {
  max-width: 34rem;
  margin: 1.6rem auto 0;
  font-size: 1.12rem;
}

/* --- the clutch: the app's own mechanic, on the page --------------------- */

.clutch {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}

.egg {
  position: relative;
  display: block;
  width: clamp(3.1rem, 14.5vw, 4.8rem);
  aspect-ratio: 0.79;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-spring);
}

.egg[aria-pressed='true'] {
  transform: rotateY(180deg);
}

.egg-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: var(--egg);
  backface-visibility: hidden;
  font-size: clamp(1.5rem, 6.5vw, 2rem);
  line-height: 1;
}

.egg-front {
  background-color: var(--robin);
  background-image:
    radial-gradient(circle at 26% 22%, rgba(58, 46, 39, 0.26) 0 6%, transparent 6.5%),
    radial-gradient(circle at 72% 34%, rgba(58, 46, 39, 0.2) 0 4%, transparent 4.5%),
    radial-gradient(circle at 38% 66%, rgba(58, 46, 39, 0.22) 0 5%, transparent 5.5%);
  box-shadow:
    inset 0 -0.6rem 1rem rgba(42, 147, 165, 0.45),
    var(--lift-sm);
}

.egg-back {
  transform: rotateY(180deg);
  background-image: linear-gradient(178deg, #fffdf6 0%, #f7e8ca 100%);
  box-shadow:
    inset 0 0 0 0.14rem rgba(212, 182, 128, 0.75),
    var(--lift-sm);
  font-family: var(--face-letter);
  font-weight: 700;
  color: var(--bark);
}

.clutch-hint {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bark-soft);
  min-height: 1.4rem;
  transition: color 0.3s ease;
}
.clutch-hint.done {
  color: var(--moss-deep);
}

/* --- actions ------------------------------------------------------------- */

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--pebble);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: var(--lift);
  transition:
    transform 0.12s var(--ease-spring),
    box-shadow 0.12s ease;
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgba(58, 46, 39, 0.18);
}
.btn-primary {
  background: var(--berry);
  color: #fff;
}
.btn-secondary {
  background: var(--moss);
  color: #fff;
}
.btn-note {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.actions-note {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--bark-soft);
}

/* --- bands --------------------------------------------------------------- */

.band {
  padding: clamp(2.5rem, 7vw, 4rem) 1.4rem;
}

.band-tint {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--paper-edge);
}

.band h2 {
  margin: 0 0 1.4rem;
  font-family: var(--face-display);
  font-variation-settings: 'SOFT' 70, 'WONK' 1, 'opsz' 60;
  font-weight: 700;
  font-size: clamp(1.6rem, 5.5vw, 2.2rem);
  line-height: 1.1;
}

.band h3 {
  margin: 0 0 0.35rem;
  font-size: 1.14rem;
}

.lede {
  margin: -0.6rem 0 1.4rem;
  font-family: var(--face-display);
  font-variation-settings: 'SOFT' 60, 'WONK' 1, 'opsz' 20;
  font-style: italic;
  color: var(--bark-soft);
}

/* Numbered because these genuinely are a sequence: hear it, earn it, make it yours. */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.6rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.2rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.7rem;
  border-radius: var(--egg);
  background: var(--yolk-pale);
  box-shadow: inset 0 0 0 2px var(--yolk);
  font-family: var(--face-letter);
  font-weight: 700;
  font-size: 1.1rem;
}
.steps p {
  margin: 0;
}

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}
.facts li {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 0.9rem;
  align-items: baseline;
}
/* The description is ONE element on purpose: as bare inline markup its <b> and <i>
   would each become a grid item and the row would shatter into a column. */
.fact-text {
  display: block;
}
.fact-key {
  font-family: var(--face-letter);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--berry-deep);
  text-align: center;
  overflow-wrap: anywhere;
}

.privacy p {
  margin: 0 0 1rem;
}

.get {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.get-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1.2rem;
  border-radius: var(--pebble);
  background: #fffaf0;
  box-shadow: var(--lift-sm);
}
.get-card p {
  margin: 0;
  flex: 1;
  font-size: 0.98rem;
}
.get-card .btn {
  font-size: 1rem;
  min-height: 3rem;
}

/* --- footer -------------------------------------------------------------- */

.foot {
  padding: 3rem 1.4rem 4rem;
  text-align: center;
  color: var(--bark-soft);
  font-size: 0.94rem;
}
.foot p {
  margin: 0 0 0.5rem;
}
.foot-mark {
  font-family: var(--face-display);
  font-variation-settings: 'SOFT' 80, 'WONK' 1, 'opsz' 144;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bark);
}
.foot-mark span {
  color: var(--moss);
}
.foot-fine {
  font-size: 0.8rem;
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
