/* Couragy — same paper, same inks, same faces as the app (src/theme/themes.ts). */
@font-face { font-family: "Jost"; src: url(/fonts/jost.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Pinyon Script"; src: url(/fonts/pinyon-script.woff2) format("woff2"); font-display: swap; }

:root {
  --cream: #F2E7D0;
  --cream-deep: #E8D9BC;
  --ink: #2B2721;
  --card: #FFFFFF;
  --red: #D6432A;
  --orange: #E8863C;
  --navy: #1F3566;
  --pink: #C64577;
  --mustard: #E0A83A;
  --plum: #5C2A4D;
  --label: Futura, "Jost", "Century Gothic", sans-serif;
  --script: "Snell Roundhand", "Pinyon Script", cursive;
  --radius: 14px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 18px/1.6 var(--label);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The risograph grain the app lays over everything. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url(/img/grain.png);
  opacity: .09;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 100;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

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

.eyebrow {
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .6;
  margin: 0;
}

.rule {
  width: 54px;
  height: 1px;
  background: var(--ink);
  opacity: .28;
  border: 0;
  margin: 18px 0;
  transform: rotate(.8deg);
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 24px;
  letter-spacing: .01em;
}
.logo img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 6px rgb(43 39 33 / .18); }

.site-header nav { display: flex; gap: 24px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.site-header nav a { text-decoration: none; opacity: .7; }
.site-header nav a:hover { opacity: 1; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font: inherit;
  font-size: 15px;
  letter-spacing: .04em;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 18px rgb(43 39 33 / .22);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(43 39 33 / .28); }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; line-height: 1.2; }
.btn span { line-height: 1.2; text-align: left; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(43 39 33 / .35);
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: none; }

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
  padding-block: 48px 96px;
}

.wordmark {
  font-weight: 400;
  font-size: clamp(64px, 11vw, 132px);
  line-height: 1;
  margin: 0 0 6px -4px;
  transform: rotate(-1.2deg);
  transform-origin: left;
}

.hero h2 {
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.25;
  margin: 28px 0 14px;
  max-width: 18ch;
}
.hero h2 em { font-family: var(--script); font-style: normal; font-size: 1.25em; color: var(--red); }

.hero p.lede { font-size: 18px; opacity: .8; max-width: 44ch; margin: 0 0 32px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.cta-note { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .55; }

/* ---------- the playable deck ---------- */

.table {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.pile {
  position: relative;
  width: 300px;
  height: 420px;
  perspective: 1400px;
}

.card {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.2, .9, .25, 1.15), opacity .5s;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
}
.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; border-radius: var(--radius); }

.face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  background: var(--card);
  box-shadow: 3px 10px 22px rgb(43 39 33 / .26), 0 0 0 1px rgb(43 39 33 / .08);
}
.face img { width: 100%; height: 100%; object-fit: cover; }

.face.front {
  transform: rotateY(180deg);
  display: grid;
  place-items: center;
  padding: 40px 34px;
  text-align: center;
  font-size: 25px;
  line-height: 1.35;
}
.face.front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(/img/grain.png);
  opacity: .06;
  mix-blend-mode: multiply;
}
.face.front .deck-tag {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .45;
}

/* Plain gradient back — the For Lovers deck, and any deck without art. */
.gradient-back {
  position: absolute;
  inset: 21px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--from), var(--to));
  color: var(--cream);
  font-size: 15px;
  letter-spacing: .45em;
  text-indent: .45em;
}
.gradient-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(/img/grain.png);
  opacity: .3;
  mix-blend-mode: overlay;
}

.card.flipped { transform: var(--rest) rotateY(180deg); }
.card.gone { transform: translate(140%, -8%) rotate(24deg); opacity: 0; pointer-events: none; }

.table-controls { display: flex; gap: 12px; align-items: center; }
.table-hint { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .5; min-width: 12ch; }

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

section { padding-block: 88px; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.12;
  margin: 12px 0 0;
}
.section-head h2 em { font-family: var(--script); font-style: normal; font-size: 1.2em; }

.band { background: var(--cream-deep); }

/* how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px 30px;
  box-shadow: 2px 8px 20px rgb(43 39 33 / .12), 0 0 0 1px rgb(43 39 33 / .06);
  transform: rotate(var(--tilt, 0deg));
}
.steps li:nth-child(1) { --tilt: -1deg; }
.steps li:nth-child(2) { --tilt: .8deg; }
.steps li:nth-child(3) { --tilt: -.5deg; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font-family: var(--script);
  font-size: 54px;
  line-height: 1;
  color: var(--red);
  margin-bottom: 12px;
}
.steps li:nth-child(2)::before { color: var(--navy); }
.steps li:nth-child(3)::before { color: var(--pink); }
.steps h3 { font-weight: 400; font-size: 22px; margin: 0 0 8px; }
.steps p { margin: 0; opacity: .75; font-size: 16px; }

/* decks */
.decks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }

.deck { text-align: center; }
.fan { position: relative; height: 280px; margin-bottom: 18px; }
.fan > * {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 170px;
  height: 238px;
  margin-left: -85px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 1px 5px 12px rgb(43 39 33 / .22), 0 0 0 1px rgb(43 39 33 / .08);
  transition: transform .45s cubic-bezier(.2, .9, .25, 1.2);
}
.fan img { width: 100%; height: 100%; object-fit: cover; }
.fan > :nth-child(1) { transform: translateX(-14px) rotate(-6deg); }
.fan > :nth-child(2) { transform: translateX(-4px) rotate(-1.8deg); }
.fan > :nth-child(3) { transform: translateX(8px) rotate(3.4deg); }
.deck:hover .fan > :nth-child(1) { transform: translateX(-52px) rotate(-11deg); }
.deck:hover .fan > :nth-child(2) { transform: translateX(-4px) rotate(-1deg) translateY(-6px); }
.deck:hover .fan > :nth-child(3) { transform: translateX(46px) rotate(9deg); }
.fan .gradient-back { inset: 12px; font-size: 10px; }

.deck h3 { font-weight: 400; font-size: 18px; letter-spacing: .22em; text-transform: uppercase; margin: 0; }
.deck .sub { font-size: 12px; letter-spacing: .12em; opacity: .6; margin: 6px 0 0; }
.deck .desc { font-size: 16px; opacity: .8; margin: 16px auto 0; max-width: 32ch; }
.deck .sample { font-family: var(--script); font-size: 22px; line-height: 1.3; margin: 18px auto 0; max-width: 26ch; }
.badge {
  display: inline-block;
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(43 39 33 / .3);
  opacity: .75;
}

/* promises */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.promises h3 { font-weight: 400; font-size: 20px; margin: 0 0 8px; }
.promises p { margin: 0; font-size: 15px; opacity: .75; }
.promises .dot { width: 14px; height: 14px; border-radius: 50%; margin-bottom: 16px; }

/* closing call */
.closing { text-align: center; padding-block: 120px; }
.closing h2 { font-weight: 400; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.1; margin: 0 auto 16px; max-width: 16ch; }
.closing h2 em { font-family: var(--script); font-style: normal; color: var(--pink); font-size: 1.15em; }
.closing p { opacity: .75; margin: 0 auto 36px; max-width: 42ch; }
.closing .cta-row { justify-content: center; }

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

.site-footer {
  border-top: 1px solid rgb(43 39 33 / .15);
  padding-block: 36px 48px;
  font-size: 13px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; letter-spacing: .16em; text-transform: uppercase; }
.site-footer nav a { text-decoration: none; opacity: .7; }
.site-footer nav a:hover { opacity: 1; }
.site-footer .fine { opacity: .5; }

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

.doc { max-width: 720px; padding-block: 40px 96px; }
.doc h1 { font-weight: 400; font-size: clamp(38px, 6vw, 56px); line-height: 1.1; margin: 12px 0 6px; }
.doc .updated { font-size: 13px; letter-spacing: .12em; opacity: .55; margin: 0 0 40px; }
.doc h2 { font-weight: 400; font-size: 26px; margin: 48px 0 12px; }
.doc h3 { font-weight: 400; font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { font-size: 17px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc a { text-underline-offset: 3px; text-decoration-color: rgb(43 39 33 / .35); overflow-wrap: anywhere; }
.doc a:hover { text-decoration-color: var(--ink); }
.doc .callout {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: 2px 8px 20px rgb(43 39 33 / .1), 0 0 0 1px rgb(43 39 33 / .06);
  margin: 24px 0;
}
.doc .callout ul { margin: 0; }
.doc details {
  border-bottom: 1px solid rgb(43 39 33 / .15);
  padding: 18px 0;
}
.doc summary { cursor: pointer; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; opacity: .5; }
.doc details[open] summary::after { content: "–"; }
.doc details p { margin: 12px 0 0; opacity: .8; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 64px; padding-top: 24px; }
  .decks, .steps { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .promises { grid-template-columns: 1fr 1fr; }
  section { padding-block: 64px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .site-header nav { display: none; }
  .promises { grid-template-columns: 1fr; }
  .pile { width: 260px; height: 364px; }
  .face.front { font-size: 22px; padding: 36px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
