/* Rhymelights site. Self-hosted fonts only; no scripts. Colours follow the app's brand (DESIGN_SYSTEM.md): dark context,
   lime for active, pink for the one primary action, and the rhyme palette for highlights. */

@font-face { font-family: "Anton"; src: url("assets/fonts/anton.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("assets/fonts/archivo-narrow-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("assets/fonts/archivo-narrow-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("assets/fonts/space-mono.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --bg: #0b0d0e;
  --bg-2: #121517;
  --panel: #171b1d;
  --panel-2: #1f2427;
  --line: #2c3336;
  --text: #f1f3ef;
  --muted: #a2aaad;
  --lime: #a7ff55;
  --pink: #ff2d5f;
  --paper: #efebe1;
  --ink: #111416;
  /* Rhyme palette (RhymeColors.palette in the app) */
  --r-lime: #b7ff00;
  --r-pink: #ff2d92;
  --r-blue: #4f8cff;
  --r-orange: #ff8a00;
  --r-teal: #00d9c0;
  --r-gold: #ffd166;
  --r-lilac: #c77dff;
  --r-red: #ff4d4d;
  --r-green: #21c55d;
  --display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --narrow: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 18px;
  --wrap: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  overflow-x: hidden;
  overflow-wrap: break-word;
}

/* Film grain over everything, like a worn mixtape cover. Decorative only. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  /* A plain image, not an SVG noise filter: Safari stops painting the page below the first screen when it has to
     re-run a filter over the whole window on every scroll. */
  background-image: url("assets/img/grain.png");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; }
.skip:focus { left: 16px; background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 14, 0.84);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font: 700 1.3rem/1 var(--narrow); letter-spacing: 0.01em; }

.nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--muted); text-decoration: none; font: 700 0.98rem/1 var(--narrow); letter-spacing: 0.04em; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .nav-cta a { display: inline-block; color: var(--ink); background: var(--lime); padding: 11px 15px; border-radius: 999px; }
.nav .nav-cta a:hover { background: #fff; color: var(--ink); }
@media (max-width: 760px) { .nav li:not(.nav-cta) { display: none; } }

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font: 400 0.82rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }

.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.04;
  margin: 0;
}
h1.display { font-size: clamp(3rem, 8.2vw, 6.3rem); }
h2.display { font-size: clamp(2.3rem, 5.6vw, 4.2rem); }
h3 { font: 700 1.3rem/1.2 var(--narrow); letter-spacing: 0.01em; margin: 0 0 8px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d4d8d6; max-width: 34em; margin: 22px 0 0; }
.muted { color: var(--muted); }

/* Rhyme highlight boxes: the app's signature look, used in headings. */
.hl { display: inline-block; padding: 0.04em 0.14em 0; margin: 0 0.02em; color: var(--ink); line-height: 0.98; transform: rotate(-1.2deg); }
.hl.tilt { transform: rotate(1.1deg); }
.hl-lime { background: var(--r-lime); }
.hl-pink { background: var(--r-pink); color: #fff; }
.hl-blue { background: var(--r-blue); color: #fff; }
.hl-orange { background: var(--r-orange); }
.hl-teal { background: var(--r-teal); }
.hl-gold { background: var(--r-gold); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  font: 700 1.05rem/1 var(--narrow);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--line);
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--text); color: var(--text); }

/* App Store link: a placeholder until launch (see README, "Launch checklist"). Swap in Apple's official badge then. */
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 22px 8px 16px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(167, 255, 85, 0.28); }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font: 400 0.7rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #4b5154; }
.store strong { display: block; font: 700 1.25rem/1.1 var(--narrow); }
.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--pink);
  color: var(--ink);
  font: 400 0.66rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 3px;
}
.fine { margin: 18px 0 0; font: 400 0.8rem/1.6 var(--mono); color: var(--muted); letter-spacing: 0.02em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 64px; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.hero::before { top: -30%; right: -20%; width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(255, 45, 95, 0.26), transparent 70%); }
.hero::after { left: -25%; bottom: -45%; width: 760px; height: 760px; background: radial-gradient(closest-side, rgba(167, 255, 85, 0.13), transparent 70%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 64px; } .hero { padding-top: 48px; } }

/* Phone mock-up holding a frame drawn by the app's own lyric renderer. */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(330px, 76vw);
  aspect-ratio: 9 / 19.3;
  padding: 12px;
  border-radius: 50px;
  background: linear-gradient(160deg, #2b3134, #0d0f10 60%);
  box-shadow: 0 0 0 2px #3a4246, 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(255, 45, 95, 0.18);
  transform: rotate(3deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 39px; }
.phone::before { content: ""; position: absolute; top: 24px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 999px; background: #000; z-index: 2; }
.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(31, 36, 39, 0.94);
  border: 1px solid #343c40;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  font: 700 0.92rem/1 var(--narrow);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.chip i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chip-a { top: 12%; left: 0; transform: rotate(-4deg); }
.chip-b { bottom: 14%; right: 0; transform: rotate(3deg); }
.sw-pink { background: var(--r-pink); }
.sw-lime { background: var(--r-lime); }
.sw-blue { background: var(--r-blue); }
.sw-teal { background: var(--r-teal); }
.sw-orange { background: var(--r-orange); }
.sw-lilac { background: var(--r-lilac); }
.sw-red { background: var(--r-red); }
.sw-green { background: var(--r-green); }
.sw-gold { background: var(--r-gold); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker ul { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.ticker li {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 17px 0 15px 26px;
  font: 400 1.5rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.ticker li::after { content: "\2726"; font-size: 0.9rem; color: var(--pink); }
.ticker li:nth-child(4n + 1) { color: var(--r-lime); }
.ticker li:nth-child(4n + 3) { color: var(--r-pink); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 112px 0; }
.section-head { max-width: 780px; margin-bottom: 54px; }
@media (max-width: 640px) { .section { padding: 76px 0; } }

.paper { background: var(--paper); color: var(--ink); }
.paper .eyebrow { color: #4b5154; }
.paper .lede, .paper .muted { color: #4b5154; }
.paper a { color: #b00d28; }

/* The signature verse */
.verse-band { padding: 96px 0 100px; background: radial-gradient(80% 120% at 85% 0%, rgba(255, 45, 95, 0.16), transparent 60%), var(--bg); }
.verse { margin: 0; }
.verse p { margin: 0; font: 400 clamp(1.9rem, 4.6vw, 3.6rem)/1.32 var(--display); text-transform: uppercase; letter-spacing: 0.005em; overflow-wrap: normal; }
.verse .w { white-space: nowrap; }
/* Pieces of one word sit flush, so a word split across families still reads as one word. */
.verse .w > span + span { padding-left: 0; }
.verse .w > span:has(+ span) { padding-right: 0; }
.verse span:not(.w) { padding: 0 0.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* One colour per rhyme family the engine found, in the app's palette order (as the demo video colours them). The rhyme text
   keeps the verse's own colour on every highlight (user, 2026-11-26). */
.verse .r0 { background: var(--r-lime); }
.verse .r1 { background: var(--r-pink); }
.verse .r2 { background: var(--r-blue); }
.verse .r3 { background: var(--r-orange); }
.verse .r4 { background: var(--r-teal); }
.verse .r5 { background: var(--r-lilac); }
.verse .r6 { background: var(--r-red); }
.verse .r7 { background: var(--r-green); }
.verse .r8 { background: var(--r-gold); }
.verse-band .lede { margin-top: 30px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0 0 18px; }
.steps li { padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.steps li:nth-child(even) { transform: translateY(18px); }
.step-no { display: block; margin-bottom: 14px; font: 400 3.4rem/0.9 var(--display); -webkit-text-stroke: 2px var(--ink); }
.steps li:nth-child(1) .step-no { color: var(--r-lime); }
.steps li:nth-child(2) .step-no { color: var(--r-pink); }
.steps li:nth-child(3) .step-no { color: var(--r-blue); }
.steps li:nth-child(4) .step-no { color: var(--r-orange); }
.steps p { margin: 0; color: #3d4346; font-size: 0.98rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li:nth-child(even) { transform: none; } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 28px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.feature p { margin: 0; color: var(--muted); }
.feature .icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 12px; background: var(--panel-2); color: var(--lime); }
.feature .icon svg { width: 24px; height: 24px; }
.feature:nth-child(3n + 2) .icon { color: var(--r-pink); }
.feature:nth-child(3n) .icon { color: var(--r-blue); }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* Looks gallery */
.looks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.looks figure { margin: 0; }
.looks img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); transition: transform 0.2s ease; }
.looks li:hover img { transform: scale(1.03) rotate(-0.6deg); }
.looks figcaption { margin-top: 10px; font: 400 0.8rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.looks-more { margin: 28px 0 0; color: var(--muted); }
@media (max-width: 960px) { .looks { grid-template-columns: repeat(2, 1fr); } }

/* Formats */
.formats { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 30px 40px; list-style: none; margin: 0; padding: 0; }
.format { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.frame { border: 3px solid var(--ink); border-radius: 10px; background: repeating-linear-gradient(-45deg, #fff 0 10px, #f4f1ea 10px 20px); box-shadow: 5px 5px 0 var(--ink); }
.f-916 { width: 90px; height: 160px; }
.f-169 { width: 200px; height: 112px; }
.f-45 { width: 112px; height: 140px; }
.f-11 { width: 130px; height: 130px; }
.format strong { font: 400 1.6rem/1 var(--display); }
.format span { font: 400 0.8rem/1.4 var(--mono); color: #4b5154; }

/* Privacy band */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding: 16px 18px 16px 52px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; border-radius: 5px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111416' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.plan h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.price { margin: 6px 0 4px; font: 400 3.4rem/1 var(--display); }
.price small { font: 400 0.9rem/1 var(--mono); color: var(--muted); letter-spacing: 0.02em; }
.plan .note { margin: 0 0 20px; font: 400 0.82rem/1.5 var(--mono); color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 26px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border-radius: 3px; background: var(--r-blue); }
.plan-pro { border: 2px solid var(--lime); box-shadow: 0 0 0 6px rgba(167, 255, 85, 0.08), 0 30px 60px rgba(0, 0, 0, 0.4); }
.plan-pro li::before { background: var(--r-lime); }
.plan-pro .price { color: var(--lime); }
.ribbon { position: absolute; top: -14px; right: 20px; padding: 7px 10px; border-radius: 8px; background: var(--pink); color: var(--ink); font: 700 0.8rem/1 var(--narrow); letter-spacing: 0.06em; text-transform: uppercase; transform: rotate(2deg); }
.credits { margin-top: 22px; padding: 22px 24px; border-radius: 18px; border: 1px dashed #3d464a; color: var(--muted); }
.credits p { margin: 0; }
.credits strong { color: var(--text); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .plan-pro { order: -1; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid #d8d1c0; }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font: 700 1.25rem/1.3 var(--narrow); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 2rem/1 var(--display); color: #b00d28; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: #3d4346; max-width: 44em; }

/* Contact */
.contact-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 44px; border-radius: 28px; background: linear-gradient(135deg, #1b2023, #121517); border: 1px solid var(--line); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { padding: 16px 18px; border-radius: 14px; background: var(--panel-2); }
.contact-list span { display: block; font: 400 0.75rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-list a { font: 700 1.2rem/1.2 var(--narrow); }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; padding: 28px 22px; } }

/* Final call */
.outro { text-align: center; padding: 120px 0 130px; overflow: hidden; }
.outro .display { font-size: clamp(2.6rem, 7vw, 5.6rem); }
.outro .lede { margin-left: auto; margin-right: auto; }
.outro .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 40px; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text); text-decoration: none; font: 700 0.98rem/1 var(--narrow); letter-spacing: 0.04em; text-transform: uppercase; }
.footer-links a:hover { color: var(--lime); }
.legal-line { margin: 26px 0 0; font-size: 0.8rem; line-height: 1.6; }

/* ---------- Documents (privacy, terms, support, 404) ---------- */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.04; margin: 0 0 12px; }
.doc h2 { font: 700 1.5rem/1.25 var(--narrow); margin: 2.2em 0 0.5em; }
.doc h3 { font-size: 1.2rem; margin: 1.6em 0 0.4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 0.35em 0; }
.doc .meta { font: 400 0.85rem/1.5 var(--mono); color: var(--muted); }
.doc .lede { max-width: none; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 18px 0; }
.notice { margin-top: 44px; padding: 14px 18px; border-left: 3px solid var(--lime); background: var(--panel); color: var(--muted); font-size: 0.95rem; border-radius: 0 12px 12px 0; }
.lost { text-align: center; padding: 110px 0 140px; }
.lost .display { font-size: clamp(4rem, 16vw, 10rem); }
.lost p { color: var(--muted); }
.lost .lede { margin-left: auto; margin-right: auto; }
.lost .actions { justify-content: center; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .actions .btn, .actions .store { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
