/* Love-40 website. Colours match the app (Design/Theme.swift): OLED black, optic-yellow, clay, floodlit navy. */
:root {
  --bg: #050605;
  --bg-alt: #0b0d0a;
  --surface: #151714;
  --surface-raised: #1f221d;
  --line: #2a2e27;
  --text: #f5f7f0;
  --text-dim: #a3a898;
  --lime: #d7ff00;
  --clay: #ff6a3d;
  --heart: #ff4d66;
  --navy: #08142a;
  --on-accent: #0d0f00;
  --radius: 22px;
  --max: 1120px;
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "Nunito", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--lime); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
.lime { color: var(--lime); }
.clay { color: var(--clay); }
.dim { color: var(--text-dim); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(5, 6, 5, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.wordmark { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; letter-spacing: -0.02em; }
.wordmark span { color: var(--lime); }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--text-dim); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } .nav { gap: 18px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--lime); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn svg { width: 20px; height: 20px; }
.btn small { display: block; font-size: 0.7rem; font-weight: 700; opacity: .75; line-height: 1; margin-bottom: 2px; }
.btn .stack { line-height: 1.1; text-align: left; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(215, 255, 0, 0.16), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; position: relative; }
.hero p.lead { font-size: 1.22rem; color: var(--text-dim); margin: 22px 0 32px; max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 18px; font-size: 0.9rem; color: var(--text-dim); }
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
}

/* Watch frame around the real screenshots (416×496, 45 mm) */
.watch {
  position: relative; width: 100%; max-width: 300px; margin: 0 auto;
  padding: 22px; border-radius: 74px;
  background: linear-gradient(145deg, #3a3d38, #121311 55%, #262824);
  box-shadow: 0 40px 80px rgba(0,0,0,.6), inset 0 0 0 2px #4a4e46, inset 0 0 0 9px #050505;
}
.watch img { border-radius: 52px; width: 100%; height: auto; aspect-ratio: 416 / 496; object-fit: cover; }
.watch::after {
  content: ""; position: absolute; right: -9px; top: 26%;
  width: 12px; height: 54px; border-radius: 6px;
  background: linear-gradient(90deg, #2c2e2a, #6b6f66); box-shadow: inset 0 0 0 1px #000;
}
.watch.small { max-width: 230px; padding: 17px; border-radius: 58px; }
.watch.small img { border-radius: 42px; }
.watch.small::after { height: 42px; right: -8px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .watch { transform: rotate(-4deg); }
.hero-visual .chip {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 10px 14px; font-size: 0.85rem; font-weight: 700;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.hero-visual .chip.hr { left: 0; top: 18%; }
.hero-visual .chip.live { right: 0; bottom: 14%; }
@media (max-width: 480px) { .hero-visual .chip { display: none; } }

/* Sections */
section { padding: 96px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head p { color: var(--text-dim); font-size: 1.12rem; margin-top: 16px; }
@media (max-width: 600px) { section { padding: 68px 0; } .section-head { margin-bottom: 36px; } }

/* Stats strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -40px; position: relative; }
.strip div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-align: center; }
.strip b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; }
.strip span { font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
@media (max-width: 720px) { .strip { grid-template-columns: repeat(2, 1fr); margin-top: -24px; } }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.card .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(215,255,0,.1); color: var(--lime); margin-bottom: 18px;
}
.card .icon.clay { background: rgba(255,106,61,.12); color: var(--clay); }
.card .icon.heart { background: rgba(255,77,102,.12); color: var(--heart); }
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--text-dim); margin-top: 8px; font-size: 0.98rem; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .split + .split { margin-top: 72px; }
}
.split p.body { color: var(--text-dim); font-size: 1.08rem; margin-top: 18px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230d0f00' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.duo { display: flex; gap: 20px; justify-content: center; align-items: flex-end; }
.duo .watch.small:nth-child(2) { transform: translateY(-36px); }
@media (max-width: 480px) { .duo .watch.small:nth-child(2) { display: none; } }

/* Comment modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .modes { grid-template-columns: 1fr; } }
.mode { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.mode h3 { font-size: 1rem; color: var(--lime); text-transform: uppercase; letter-spacing: .08em; }
.mode q { display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; quotes: "“" "”"; }
.mode p { color: var(--text-dim); font-size: .9rem; margin-top: 8px; }

/* Phone live scoreboard, built in HTML */
.phone {
  width: 100%; max-width: 340px; margin: 0 auto; border-radius: 48px; padding: 14px;
  background: #111; box-shadow: 0 40px 80px rgba(0,0,0,.6), inset 0 0 0 2px #3b3e38;
}
.phone .screen { background: #000; border-radius: 36px; padding: 52px 14px 22px; position: relative; overflow: hidden; }
.phone .screen::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; background: #111; border-radius: 20px; }
.sb { background: var(--surface); border-radius: 20px; padding: 14px; }
.sb-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.live-tag { display: flex; align-items: center; gap: 6px; color: var(--heart); font-family: var(--font-display); font-weight: 900; font-size: .72rem; letter-spacing: .1em; }
.live-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--heart); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .live-tag i { animation: none; } html { scroll-behavior: auto; } }
.status { background: var(--lime); color: var(--on-accent); font-family: var(--font-display); font-weight: 900; font-size: .68rem; letter-spacing: .08em; padding: 3px 8px; border-radius: 99px; }
.sb-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-family: var(--font-display); font-weight: 900; }
.sb-row + .sb-row { border-top: 1px solid var(--surface-raised); }
.sb-row .serve { width: 7px; height: 7px; border-radius: 50%; }
.sb-row .who { width: 62px; font-size: .92rem; }
.sb-row .sets { margin-left: auto; display: flex; gap: 12px; font-variant-numeric: tabular-nums; }
.sb-row .pts { min-width: 46px; text-align: center; border-radius: 9px; padding: 2px 0; color: var(--on-accent); font-size: 1.25rem; }
.sb-meta { text-align: center; color: var(--text-dim); font-size: .72rem; margin-top: 8px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.tile { background: var(--surface); border-radius: 14px; padding: 10px; text-align: center; }
.tile b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; }
.tile span { font-size: .62rem; letter-spacing: .08em; color: var(--text-dim); font-weight: 800; }
.spark { background: var(--surface); border-radius: 14px; padding: 12px; margin-top: 10px; }
.spark span { font-size: .7rem; color: var(--text-dim); font-weight: 700; }
.spark svg { width: 100%; height: 56px; margin-top: 6px; }

/* Privacy band */
.privacy-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .privacy-band { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .privacy-band { grid-template-columns: 1fr; } }
.privacy-band div { border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.privacy-band b { font-family: var(--font-display); display: block; font-size: 1.05rem; }
.privacy-band p { color: var(--text-dim); font-size: .92rem; margin-top: 6px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-dim); margin-top: 12px; }

/* CTA */
.cta-box {
  border-radius: 32px; padding: 64px 40px; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, #1a3a68 0%, var(--navy) 60%);
  border: 1px solid #1b3058;
}
.cta-box img { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.cta-box p { color: #b9c7de; margin: 16px auto 28px; max-width: 34em; font-size: 1.1rem; }
@media (max-width: 600px) { .cta-box { padding: 44px 20px; border-radius: 24px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--text-dim); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.legal-small { width: 100%; font-size: .8rem; margin-top: 8px; }

/* Long-form pages (privacy, support) */
.doc { padding: 72px 0 96px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.doc .updated { color: var(--text-dim); margin-top: 12px; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin: 36px 0 12px; }
.doc .summary h2 { font-size: 1.2rem; margin-bottom: 10px; }
.doc .summary ul { margin: 0; padding-left: 20px; color: var(--text-dim); }
.doc .summary li { margin: 6px 0; }
.doc h2 { font-size: 1.5rem; margin: 48px 0 14px; }
.doc h3 { margin: 28px 0 8px; }
.doc p, .doc li { color: #d3d7cb; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-family: var(--font-display); color: var(--text); font-weight: 800; white-space: nowrap; }
.doc td { color: #d3d7cb; }
.doc td:first-child { color: var(--text); font-weight: 600; min-width: 140px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.toc a { font-size: .85rem; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--text-dim); }
.toc a:hover { color: var(--text); border-color: var(--text-dim); }
.contact-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-top: 28px; }
.contact-card p { color: var(--text-dim); }

@media (max-width: 600px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr { border: 1px solid var(--line); border-radius: 16px; padding: 6px 16px; margin-bottom: 12px; background: var(--surface); }
  .doc td { border: 0; padding: 8px 0; }
  .doc td:first-child { font-family: var(--font-display); font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .doc td:not(:first-child)::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 2px; }
}
