/* Tokens from Figma "Couple Cards" design */
:root {
  --ink: #111;
  --canvas: #fffcf2;
  --border: #000;
  --couple: #ff4d8b;
  --convo: #6c5ce7;
  --fun: #ffd23f;
  --deep: #3d5afe;
  --mental: #00c896;

  --border-default: 2.5px;
  --border-thin: 2px;
  --radius-button: 14px;
  --radius-card: 18px;
  --radius-hero: 22px;

  --shadow-3: 3px 3px 0 0 var(--ink);
  --shadow-4: 4px 4px 0 0 var(--ink);
  --shadow-5: 5px 5px 0 0 var(--ink);
  --shadow-6: 6px 6px 0 0 var(--ink);

  --font-display: "Archivo Black", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }

.bg-couple { background: var(--couple); }
.bg-convo  { background: var(--convo); }
.bg-fun    { background: var(--fun); }
.bg-deep   { background: var(--deep); }
.bg-mental { background: var(--mental); }
.bg-canvas { background: var(--canvas); }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section { scroll-margin-top: 70px; padding: 96px 0; border-top: var(--border-default) solid var(--border); }

/* Type */
.display, .h2, .h3, .logo, .phone__title, .q-card__header, .q-card__body p, .review strong {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.5px;
}
.display { font-size: clamp(42px, 7vw, 84px); line-height: 1.05; }
.h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin-bottom: 12px; }
.h3 { font-size: 22px; line-height: 1.05; }
.lead { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.3; }
.label { font-weight: 700; font-size: 12px; letter-spacing: 1.2px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px 24px;
  background: var(--canvas);
  border-bottom: var(--border-default) solid var(--border);
}
.nav > .logo { justify-self: start; }
.nav > .btn { justify-self: end; white-space: nowrap; }
.nav__links { display: flex; gap: 20px; font-weight: 700; font-size: 14px; }
.nav__links a { text-decoration: none; }
.nav__links a:hover { text-decoration: underline; }
.logo { font-size: 28px; line-height: 0.95; text-decoration: none; }
.logo--sm { font-size: 18px; }

/* Buttons (BrutalButton) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px; padding: 0 24px;
  border: var(--border-default) solid var(--border);
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-5);
  font: 700 18px/1 var(--font-body);
  letter-spacing: 1.2px; text-transform: uppercase; text-decoration: none;
  color: var(--ink); cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 0 var(--ink); }
.btn--couple { background: var(--couple); color: var(--canvas); }
.btn--fun    { background: var(--fun); }
.btn--canvas { background: var(--canvas); }
.btn--ink    { background: var(--ink); color: var(--canvas); }
.btn--sm { height: 44px; font-size: 14px; padding: 0 16px; box-shadow: var(--shadow-4); }
.btn--icon { flex: 1; padding: 0 12px; }

/* Pill */
.pill {
  display: inline-block;
  background: var(--canvas);
  border: var(--border-thin) solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700; font-size: 12px; letter-spacing: 1.5px;
}
.pill--sm { padding: 6px 10px; border-radius: 10px; }

/* Hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.hero__ctas--center { justify-content: center; }
.hero__visual { position: relative; display: flex; justify-content: center; }

.heart-card {
  position: absolute; left: -20px; top: 200px; z-index: 2;
  width: 200px; height: 110px;
  display: grid; place-items: center;
  background: var(--canvas);
  border: 3px solid var(--border);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-6);
  transform: rotate(-6deg);
}
.heart-card img { width: 64px; height: 64px; }

/* Phone mock (Figma screen 06) */
.phone {
  width: 340px;
  padding: 10px;
  background: var(--ink);
  border-radius: 48px;
  box-shadow: 10px 10px 0 0 var(--ink);
  transform: rotate(2deg);
}
.phone__screen {
  border-radius: 38px;
  padding: 28px 16px 20px;
  display: flex; flex-direction: column; gap: 16px;
  overflow: hidden;
}
.phone__top { display: flex; align-items: center; gap: 10px; }
.phone__title { flex: 1; text-align: center; font-size: 17px; line-height: 1.05; }
.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--canvas);
  border: var(--border-thin) solid var(--border);
  border-radius: 12px;
}
.phone__actions { display: flex; gap: 12px; }
.phone__actions .btn { font-size: 15px; height: 52px; }

/* QuestionCard */
.q-card {
  background: var(--canvas);
  border: 3px solid var(--border);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-6);
  overflow: hidden;
  height: 400px;
  display: flex; flex-direction: column;
  transition: transform .25s ease, opacity .25s ease;
}
.q-card.is-swapping { transform: translateX(-24px) rotate(-3deg); opacity: 0; }
.q-card__header {
  border-bottom: 3px solid var(--border);
  padding: 14px 16px;
  text-align: center; font-size: 16px;
}
.q-card__body { flex: 1; display: grid; place-items: center; padding: 24px; }
.q-card__body p { font-size: 24px; line-height: 1.2; text-align: center; }

/* Chips (TypeChip) */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--canvas);
  border: var(--border-default) solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-3);
  font-weight: 700; font-size: 13px; letter-spacing: 1.2px;
}
.chip { color: var(--ink); font-family: inherit; cursor: pointer; transition: transform .1s ease, box-shadow .1s ease; }
.chip:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-4); }
.chip:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 var(--ink); }
.chip:focus-visible, .pack:focus-visible { outline: 3px solid var(--canvas); outline-offset: 3px; }
.chip--active { background: var(--ink); color: var(--canvas); }
.swatch { width: 12px; height: 12px; border: 1.5px solid var(--border); border-radius: 3px; }

/* PackCard */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pack {
  background: var(--canvas);
  border: var(--border-default) solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-5);
  overflow: hidden;
  transition: transform .15s ease;
}
button.pack {
  display: flex; flex-direction: column; align-items: stretch;
  padding: 0; margin: 0; width: 100%;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
.pack:hover { transform: rotate(0) translateY(-4px); }
.pack__body > * { display: block; }
.pack__body .pack__footer { display: flex; margin-top: auto; padding-top: 6px; }
.pack__text { font-size: 14px; line-height: 1.3; }
.pack.is-peeking .pack__text { font-family: var(--font-display); font-size: 17px; line-height: 1.2; }
.pack.is-peeking { background: #fff; }
.packs { transition: opacity .15s ease; }
.packs.is-swapping { opacity: 0; }
.vibe { background: var(--vibe); transition: background-color .25s ease; }
.vibe__more { margin-top: 28px; text-align: center; }
.pack__header {
  position: relative; height: 120px;
  display: grid; place-items: center;
  border-bottom: var(--border-default) solid var(--border);
}
.pack__emoji { font-size: 56px; }
.pack__lock { position: absolute; left: 16px; bottom: 14px; }
.badge {
  position: absolute; top: 14px; right: 16px;
  padding: 5px 10px;
  background: var(--canvas);
  border: var(--border-thin) solid var(--border);
  border-radius: 6px;
  font-weight: 700; font-size: 12px; letter-spacing: 1.5px;
  transform: rotate(4.6deg);
}
.badge--pro { background: var(--ink); color: var(--canvas); }
.pack__body { flex: 1; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.pack__body p { font-size: 14px; line-height: 1.3; }
.pack__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }

.tilt-l  { transform: rotate(-1.15deg); }
.tilt-r  { transform: rotate(0.86deg); }
.tilt-l2 { transform: rotate(-0.57deg); }

/* Reviews */
.stars { display: flex; margin: 4px 0 40px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
.review {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px;
  border: var(--border-default) solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-5);
}
.review__avatar { flex-shrink: 0; border-radius: 50%; }
.review strong { display: block; font-size: 18px; line-height: 1.05; margin-bottom: 4px; }
.review p { font-size: 14px; line-height: 1.3; }

/* Footer */
.footer { background: var(--ink); color: var(--canvas); padding: 28px 0; }
.footer__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.footer__row > .logo { justify-self: start; }
.footer nav { display: flex; gap: 20px; font-weight: 700; font-size: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { align-items: center; text-align: center; }
  .hero__ctas { justify-content: center; }
  .heart-card { left: 0; top: 220px; width: 150px; height: 84px; }
  .heart-card img { width: 48px; height: 48px; }
  .packs, .reviews { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .chip { flex-shrink: 0; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .nav { padding: 12px 16px; gap: 12px; }
  .nav__links { gap: 12px; font-size: 13px; }
  .nav > .logo { font-size: 22px; }
  .footer__row { grid-template-columns: 1fr; justify-items: center; }
  .footer__row > .logo { justify-self: center; }
}
@media (max-width: 440px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
}
@media (max-width: 400px) {
  .phone { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Legal pages (privacy / terms) */
.legal { border-top: 0; padding: 56px 0 96px; }
.legal__wrap { max-width: 760px; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin-bottom: 28px; }
.legal__doc {
  background: #fff;
  border: var(--border-default) solid var(--border);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-6);
  padding: clamp(24px, 5vw, 48px);
  line-height: 1.55;
}
.legal__doc h1 { margin-bottom: 8px; }
.legal__doc h2 { margin: 36px 0 10px; }
.legal__doc h3 { margin: 24px 0 8px; }
.legal__doc p, .legal__doc ul, .legal__doc ol { margin: 0 0 14px; }
.legal__doc ul, .legal__doc ol { padding-left: 22px; }
.legal__doc li { margin-bottom: 6px; }
.legal__doc a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal__doc a:hover { background: var(--fun); }
.legal__doc code { font-size: 0.92em; background: var(--canvas); border: 1.5px solid var(--border); border-radius: 6px; padding: 0 5px; }
.legal__doc hr { border: 0; border-top: var(--border-thin) solid var(--border); margin: 28px 0; }
