/*
 * rollkink.com: the public page.
 *
 * Hand-written CSS rather than a framework, on purpose. This is one page with
 * no build step, so what ships is what is in the repo: no toolchain to break,
 * and nothing to install before a one-line copy fix can go out.
 *
 * The palette is lifted from the app (tailwind.config.js) so the two read as
 * one product. Keep them in step: a visitor reads this page and then lands in
 * that app a few seconds later.
 */

:root {
  --ink: #050505;
  --ink-2: #0d0d0d;
  --ink-3: #141414;

  --pink: #ff1493;
  --pink-bright: #ff5cb0;
  --pink-glow: #ff8ac9;
  --pink-deep: #c2185b;

  --purple-bright: #c99bff;
  --blue-bright: #7dc0ff;

  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.10);

  --display: Montserrat, system-ui, -apple-system, Segoe UI, sans-serif;
  --body: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  --seductive: Playfair Display, Georgia, serif;

  --wrap: 1080px;
  --radius: 18px;
}

/* --------------------------------------------------------------- fonts --- */
/* Self-hosted, the same files the app ships. No request ever leaves for a font
   CDN, so no third party sees who read this page. */
@font-face {
  font-family: Montserrat;
  src: url(/assets/fonts/Montserrat-Variable.woff2) format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url(/assets/fonts/Inter-Variable.woff2) format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: Playfair Display;
  src: url(/assets/fonts/PlayfairDisplay-Italic-Variable.woff2) format("woff2");
  font-weight: 500 700;
  font-style: italic;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background-color: var(--ink);
  /* The app's own backdrop: dark, lit faintly pink from top and bottom. */
  background-image:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255, 20, 147, 0.18), transparent 70%),
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(255, 20, 147, 0.10), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--pink-bright); text-decoration: none; }
a:hover { color: var(--pink-glow); }

::selection { background: var(--pink); color: #fff; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip:focus { left: 0; color: #fff; }

/* -------------------------------------------------------------- header --- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 5, 5, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 15px;
}
.brand:hover { color: var(--text); }

.brand-dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--pink-bright), var(--pink));
  box-shadow: 0 0 18px rgba(255, 20, 147, 0.55);
  flex: none;
}

.head-links {
  display: none;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
}
.head-links a { color: var(--muted); }
.head-links a:hover { color: var(--text); }

@media (min-width: 820px) {
  .head-links { display: flex; }
}

/* ------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink-bright), var(--pink) 55%, var(--pink-deep));
  color: #fff;
  box-shadow: 0 8px 30px rgba(255, 20, 147, 0.38);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 38px rgba(255, 20, 147, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 92, 176, 0.42);
}
.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 20, 147, 0.14);
  border-color: var(--pink-bright);
}

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 11.5px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------------------------------------------------------------- type --- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

h2 { font-size: clamp(27px, 5.2vw, 42px); }
h3 { font-size: 19px; letter-spacing: 0.005em; line-height: 1.25; }

.eyebrow {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink-bright);
  margin: 0 0 14px;
}

.lede { font-size: clamp(16px, 2.2vw, 18.5px); color: var(--muted); }

.gradient {
  background: linear-gradient(135deg, var(--pink-bright) 0%, var(--pink) 45%, var(--pink-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.section-head { margin-bottom: clamp(30px, 5vw, 48px); }
.section-head p { margin: 16px 0 0; max-width: 62ch; }

/* ---------------------------------------------------------------- hero --- */
.hero { padding-top: clamp(48px, 8vw, 86px); padding-bottom: clamp(40px, 7vw, 76px); }

.hero-grid {
  display: grid;
  gap: clamp(36px, 6vw, 60px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; }
}

.hero h1 {
  font-size: clamp(38px, 8.4vw, 72px);
  margin-bottom: 20px;
}

.hero .lede { margin: 0 0 30px; max-width: 54ch; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-note {
  margin: 0;
  font-size: 13.5px;
  color: var(--faint);
}

/* The roll disc: the app's own hero shape, breathing. */
.disc-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: min(74vw, 340px);
  margin-inline: auto;
}

.disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: radial-gradient(circle at 34% 28%, var(--pink-glow), var(--pink) 46%, #8c0a52 100%);
  box-shadow:
    0 0 70px rgba(255, 20, 147, 0.45),
    inset 0 -18px 50px rgba(0, 0, 0, 0.42);
  display: grid;
  place-items: center;
  animation: breathe 3.2s ease-in-out infinite;
}

.disc span {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(42px, 11vw, 76px);
  letter-spacing: 0.1em;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.45);
}

.disc-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(255, 20, 147, 0.5);
  animation: pulse-ring 2.4s ease-out infinite;
  pointer-events: none;
}
.disc-ring.delayed { animation-delay: 1.2s; }

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.7; }
  70%, 100% { transform: scale(1.3); opacity: 0; }
}

/* --------------------------------------------------------------- cards --- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 940px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.92), rgba(13, 13, 13, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { transform: translateY(-2px); }

.card p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.card .tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* One accent per card, each spelled out rather than generated, so every colour
   is visible in the source and searchable. The app keeps the same rule for
   Tailwind, where a name built at runtime never reaches the stylesheet. */
.accent-pink { border-color: rgba(255, 20, 147, 0.26); }
.accent-pink:hover { border-color: rgba(255, 20, 147, 0.6); }
.accent-pink .tag { background: rgba(255, 20, 147, 0.14); color: var(--pink-bright); }

.accent-purple { border-color: rgba(168, 85, 247, 0.26); }
.accent-purple:hover { border-color: rgba(168, 85, 247, 0.6); }
.accent-purple .tag { background: rgba(168, 85, 247, 0.14); color: var(--purple-bright); }

.accent-blue { border-color: rgba(31, 143, 255, 0.26); }
.accent-blue:hover { border-color: rgba(31, 143, 255, 0.6); }
.accent-blue .tag { background: rgba(31, 143, 255, 0.14); color: var(--blue-bright); }

.accent-plain { border-color: var(--line); }
.accent-plain:hover { border-color: rgba(255, 255, 255, 0.26); }
.accent-plain .tag { background: rgba(255, 255, 255, 0.07); color: var(--faint); }

/* ---------------------------------------------------------------- band --- */
.band {
  background:
    linear-gradient(180deg, rgba(74, 10, 36, 0.42), rgba(37, 4, 15, 0.22)),
    rgba(13, 13, 13, 0.6);
  border-block: 1px solid rgba(255, 20, 147, 0.18);
}

.band-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .band-grid { grid-template-columns: 0.9fr 1.1fr; } }

.quote {
  font-family: var(--seductive);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(21px, 3.6vw, 31px);
  line-height: 1.42;
  color: var(--pink-glow);
  margin: 0;
}

.band-grid p.lede { margin: 0; }

/* --------------------------------------------------------------- steps --- */
.steps { counter-reset: step; display: grid; gap: 18px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  counter-increment: step;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: rgba(13, 13, 13, 0.7);
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  margin-bottom: 16px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 16px;
  color: var(--pink-bright);
  background: rgba(255, 20, 147, 0.12);
  border: 1px solid rgba(255, 20, 147, 0.34);
}
.step p { margin: 9px 0 0; color: var(--muted); font-size: 15px; }

/* -------------------------------------------------------------- signup --- */
.signup-card {
  border: 1px solid rgba(255, 20, 147, 0.3);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(255, 20, 147, 0.15), transparent 70%),
    rgba(13, 13, 13, 0.88);
  padding: clamp(28px, 5vw, 46px);
}

.signup-card p { max-width: 58ch; }

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

.field-row input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 50px;
  padding: 0 18px;
  font-family: var(--body);
  /* 16px exactly, or iOS zooms the whole page when the field takes focus. */
  font-size: 16px;
  color: var(--text);
  background: rgba(5, 5, 5, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}
.field-row input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.34); }
.field-row input[type="email"]:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.2);
}
.field-row .btn { flex: 0 0 auto; min-height: 50px; }

/* The honeypot. Bots fill in every field they find; nobody else sees this one.
   Moved off screen rather than display:none, which some bots check for.
   `.sr-only` is the same geometry but a different thing entirely: a real label
   a screen reader should read out. They are kept apart so that changing how
   the trap hides can never quietly hide a label from the people who need it. */
.hp,
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note { margin: 16px 0 0; font-size: 13.5px; color: var(--faint); max-width: 58ch; }

.form-msg {
  margin: 18px 0 0;
  font-size: 15px;
  font-weight: 500;
  min-height: 1.6em;
}
.form-msg[data-state="ok"] { color: var(--pink-glow); }
.form-msg[data-state="error"] { color: #ff9c9c; }

/* ----------------------------------------------------------------- faq --- */
.faq { display: grid; gap: 12px; }

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 13, 13, 0.7);
  padding: 2px 20px;
}
details[open] { border-color: rgba(255, 20, 147, 0.3); }

summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 30px 17px 0;
  font-weight: 600;
  font-size: 16px;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--pink-bright);
  line-height: 1;
}
details[open] summary::after { content: "\2013"; }

details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; max-width: 64ch; }

/* -------------------------------------------------------------- footer --- */
.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 40px 52px;
  font-size: 14px;
  color: var(--faint);
}
.site-foot .wrap { display: grid; gap: 22px; }
@media (min-width: 760px) {
  .site-foot .wrap { grid-template-columns: 1fr auto; align-items: start; }
}
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-block: -8px; }
/* Padded out to a 40px box rather than left at the 23px the text alone makes.
   Measured on a 375px viewport, these were the only things on the page small
   enough for a thumb to miss. The negative margin above keeps the extra
   height from reading as a gap. */
.foot-links a {
  color: var(--muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
.foot-links a:hover { color: var(--text); }

.age {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ------------------------------------------------------------- reveals --- */
/* Entrances are additive. The class is added by script, so with JavaScript off
   or motion reduced the page is simply already in place rather than blank:
   nothing here is ever hidden by CSS alone. */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
