/* Rizzpond site. Tokens from Design/design_handoff_rizzpond/README.md: Void, Surface 1 and 2, Ink, Rizz Coral.
   Flat surfaces, no gradients, no shadows. Space Grotesk Bold for display (self-hosted), system text for body.
   Dark is the brand; light is the same system on paper. Text on coral is always Void. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --coral: #FF4D6D;
  --coral-pressed: #E63E5C;
  --void: #0B0B0F;
  --sent: #3DDC84;

  --bg: #0B0B0F;
  --surface-1: #15151A;
  --surface-2: #1F1F26;
  --ink: #F5F5F7;
  --ink-60: rgba(245, 245, 247, .6);
  --ink-35: rgba(245, 245, 247, .35);
  --stroke: rgba(245, 245, 247, .08);
  /* Coral as small text. On Void the brand coral passes; on paper it needs to be deeper. */
  --coral-text: #FF4D6D;

  --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;

  --inset: 20px;
  --max: 1120px;
  --section: 96px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F5F5F7;
    --surface-1: #FFFFFF;
    --surface-2: #E9E9EE;
    --ink: #0B0B0F;
    --ink-60: rgba(11, 11, 15, .66);
    --ink-35: rgba(11, 11, 15, .4);
    --stroke: rgba(11, 11, 15, .1);
    --coral-text: #C4274A;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F5F5F7;
  --surface-1: #FFFFFF;
  --surface-2: #E9E9EE;
  --ink: #0B0B0F;
  --ink-60: rgba(11, 11, 15, .66);
  --ink-35: rgba(11, 11, 15, .4);
  --stroke: rgba(11, 11, 15, .1);
  --coral-text: #C4274A;
  color-scheme: light;
}

/* The phone is the app, and the app is always dark. */
.app {
  --bg: #0B0B0F;
  --surface-1: #15151A;
  --surface-2: #1F1F26;
  --ink: #F5F5F7;
  --ink-60: rgba(245, 245, 247, .6);
  --ink-35: rgba(245, 245, 247, .35);
  --stroke: rgba(245, 245, 247, .08);
  --coral-text: #FF4D6D;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

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

/* ---------- Header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand svg { width: 28px; height: 28px; color: var(--coral); --eye: var(--void); }
.wordmark { font: 700 22px/1 var(--display); letter-spacing: -.05em; }
.wordmark b { font-weight: 700; color: var(--coral); }
.top nav { display: flex; gap: 4px; }
.top nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-weight: 500; font-size: 15px; color: var(--ink-60); text-decoration: none; border-radius: 999px;
}
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
.top nav a.extra { display: none; }
@media (min-width: 560px) { .top nav a.extra { display: inline-flex; } }

/* ---------- Type ---------- */
.display {
  font: 700 clamp(44px, 11.5vw, 88px)/.98 var(--display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.h2 { font: 700 clamp(34px, 6.4vw, 56px)/1.02 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.eyebrow { font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--coral-text); }
.lede { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; color: var(--ink-60); max-width: 34em; text-wrap: pretty; }
.coral { color: var(--coral-text); }

/* ---------- Buttons and pills ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--coral); color: var(--void);
  font: 600 17px/1 var(--body); letter-spacing: -.01em; text-decoration: none;
}
a.cta:hover { background: var(--coral-pressed); }
.cta svg { width: 18px; height: 18px; }
.cta-note { margin-top: 12px; font-size: 14px; color: var(--ink-60); }

.says {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink);
  font: 600 15px/1.2 var(--body);
}

/* ---------- Hero ---------- */
.hero { padding-block: 28px var(--section); display: grid; gap: 56px; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-stage { position: relative; display: grid; justify-items: center; }
.hero-wink { position: absolute; left: 50%; top: -34px; translate: 78px 0; z-index: 2; display: grid; justify-items: center; gap: 8px; }
.hero-wink .wink { width: 92px; height: 92px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-block: 56px 128px; }
  .hero-wink { translate: 124px 0; top: -46px; }
  .hero-wink .wink { width: 120px; height: 120px; }
}

/* ---------- Wink ---------- */
.wink { color: var(--coral); --eye: var(--void); overflow: visible; transform-origin: 30% 85%; animation: breathe 4s ease-in-out infinite; }
.wink .face > g { display: none; }
.wink[data-mood="idle"] .m-idle, .wink[data-mood="wink"] .m-wink, .wink[data-mood="thinking"] .m-thinking,
.wink[data-mood="hype"] .m-hype, .wink[data-mood="asleep"] .m-asleep, .wink[data-mood="sad"] .m-sad { display: block; }
.wink[data-mood="thinking"] { animation: think 2.4s ease-in-out infinite; }
.wink[data-mood="wink"] { animation: winkTilt 1.4s cubic-bezier(.3, 1.3, .5, 1) 1; }
.wink[data-mood="hype"] { animation: jump .8s cubic-bezier(.3, 1.3, .5, 1) 2; }
.wink .m-idle circle { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
.wink .dots circle { animation: pulse 1.2s ease-in-out infinite; }
.wink .dots circle:nth-child(2) { animation-delay: .15s; }
.wink .dots circle:nth-child(3) { animation-delay: .3s; }
@keyframes breathe { 50% { transform: scale(1.025, .985); } }
@keyframes think { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(-7deg) translateY(-3px); } }
@keyframes winkTilt { 30% { transform: rotate(-9deg) scale(1.05); } 60% { transform: rotate(4deg); } 100% { transform: none; } }
@keyframes jump { 20% { transform: scale(1.14, .84); } 50% { transform: translateY(-22px) scale(.9, 1.14); } 78% { transform: scale(1.08, .93); } 100% { transform: none; } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.08); } }
@keyframes pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- The phone ---------- */
.phone {
  width: min(100%, 340px); border-radius: 46px; padding: 10px;
  background: #000; border: 1px solid rgba(245, 245, 247, .14);
}
.screen {
  border-radius: 37px; background: var(--bg); overflow: hidden;
  display: flex; flex-direction: column; min-height: 610px; padding: 16px 16px 18px;
}
.island { width: 92px; height: 26px; border-radius: 999px; background: #000; margin: 0 auto 14px; flex: none; }
.bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bar .title { font: 600 16px/1 var(--body); }
.round { width: 36px; height: 36px; border-radius: 999px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink); }
.round svg { width: 16px; height: 16px; }

.thread { background: var(--surface-1); border: 1px solid var(--stroke); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.who { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--stroke); font: 600 15px/1 var(--body); }
.avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--surface-2); display: grid; place-items: center; font: 700 14px/1 var(--display); color: var(--ink-60); }
.bubble { max-width: 84%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.them { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.you { align-self: flex-end; background: #2B2B34; border-bottom-right-radius: 6px; }
.reply { align-self: flex-end; background: var(--coral); color: var(--void); border-bottom-right-radius: 6px; font-weight: 500; min-height: 38px; }
.reply.typing { display: inline-flex; gap: 5px; align-items: center; padding-block: 14px; }
.reply.typing i { width: 7px; height: 7px; border-radius: 999px; background: var(--void); animation: pulse 1s ease-in-out infinite; }
.reply.typing i:nth-child(2) { animation-delay: .15s; }
.reply.typing i:nth-child(3) { animation-delay: .3s; }

.chips { display: flex; gap: 8px; margin: 14px -16px 0; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--surface-1); border: 1px solid var(--stroke); color: var(--ink);
  font: 500 15px/1 var(--body); display: inline-flex; align-items: center; gap: 6px;
}
.chip[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: var(--void); font-weight: 600; }
.chip svg { width: 13px; height: 13px; }
.screen .spacer { flex: 1; min-height: 14px; }
.copy {
  width: 100%; min-height: 54px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--coral); color: var(--void); font: 600 17px/1 var(--body);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.copy[data-done="true"] { background: var(--sent); }
.copy svg { width: 18px; height: 18px; }
.hint { text-align: center; font-size: 13px; color: var(--ink-35); margin-top: 10px; }

/* Home, reading state */
.shot { position: relative; align-self: center; width: 118px; height: 210px; border-radius: 16px; background: var(--surface-1); border: 1px solid var(--stroke); padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
.shot span { height: 12px; border-radius: 6px; background: var(--surface-2); }
.shot span.r { align-self: flex-end; background: #34343F; }
.shot::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--coral); animation: sweep 2.6s ease-in-out infinite; }
@keyframes sweep { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(208px); opacity: 0; } }
.read-line { display: flex; align-items: center; gap: 8px; font: 600 14px/1 var(--body); color: var(--coral-text); margin-top: 2px; }
.read-line svg { width: 16px; height: 16px; }

/* ---------- Facts strip ---------- */
.facts { border-block: 1px solid var(--stroke); }
.facts ul { display: grid; grid-template-columns: 1fr 1fr; }
.facts li { padding: 22px 0; font: 600 15px/1.3 var(--body); display: flex; gap: 10px; align-items: flex-start; }
.facts li:nth-child(odd) { padding-right: 14px; }
.facts li:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--stroke); }
.facts li:nth-child(n+3) { border-top: 1px solid var(--stroke); }
.facts svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--coral-text); }
@media (min-width: 900px) {
  .facts ul { grid-template-columns: repeat(4, 1fr); }
  .facts li, .facts li:nth-child(odd), .facts li:nth-child(even) { padding: 26px 22px; border-top: 0; border-left: 1px solid var(--stroke); }
  .facts li:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- The problem, set large ---------- */
.problem { padding-block: var(--section); }
.problem p { font: 700 clamp(36px, 8vw, 84px)/1 var(--display); letter-spacing: -.045em; text-wrap: balance; max-width: 13em; }
.problem p + p { margin-top: .35em; color: var(--coral-text); }

/* ---------- Benefits ---------- */
.benefit { padding-block: 56px; display: grid; gap: 40px; align-items: center; }
.benefit-copy { display: grid; gap: 18px; justify-items: start; }
.benefit-visual { display: grid; justify-items: center; }
@media (min-width: 900px) {
  .benefit { grid-template-columns: 1fr 1fr; gap: 72px; padding-block: 88px; }
  .benefit.flip .benefit-copy { order: 2; }
}

.voice { width: min(100%, 420px); display: grid; gap: 12px; }
.voice-card { background: var(--surface-1); border: 1px solid var(--stroke); border-radius: 20px; padding: 18px; display: grid; gap: 12px; }
.voice-card.mine { border: 1.5px solid var(--coral); }
.voice-card .label { font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-35); }
.voice-card.mine .label { color: var(--coral-text); }
.voice-card .text { font-size: 19px; line-height: 1.35; }
.voice-card:not(.mine) .text { color: var(--ink-60); }
.traits { display: flex; flex-wrap: wrap; gap: 6px; }
.traits span { padding: 6px 11px; border-radius: 999px; background: var(--surface-2); font: 500 13px/1 var(--body); color: var(--ink-60); }

/* ---------- Who it is for ---------- */
.forwho { padding-block: var(--section); display: grid; gap: 36px; }
.forwho ul { display: grid; gap: 0; border-top: 1px solid var(--stroke); }
.forwho li { padding: 22px 0; border-bottom: 1px solid var(--stroke); font-size: clamp(18px, 2.4vw, 24px); line-height: 1.35; display: grid; grid-template-columns: 40px 1fr; align-items: baseline; text-wrap: pretty; }
.forwho li span { font: 700 14px/1 var(--display); color: var(--coral-text); }
@media (min-width: 900px) { .forwho { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; } }

/* ---------- Plans, plainly ---------- */
.plans { display: grid; gap: 12px; padding-bottom: var(--section); }
.plan { background: var(--surface-1); border: 1px solid var(--stroke); border-radius: 24px; padding: 26px 22px; display: grid; gap: 10px; align-content: start; }
.plan h3 { font: 700 26px/1.1 var(--display); letter-spacing: -.03em; }
.plan p { color: var(--ink-60); max-width: 36em; }
@media (min-width: 900px) { .plans { grid-template-columns: 1fr 1fr; } .plan { padding: 34px 32px; } }

/* ---------- Closing ---------- */
.closing { background: var(--coral); color: var(--void); }
.closing .wrap { padding-block: 88px; display: grid; gap: 28px; justify-items: start; }
.closing .wink { color: var(--void); --eye: var(--coral); width: 96px; height: 96px; }
.closing .cta { background: var(--void); color: #F5F5F7; }
.closing .cta-note { color: rgba(11, 11, 15, .72); }
@media (min-width: 900px) { .closing .wrap { padding-block: 128px; } }

/* ---------- Footer ---------- */
.foot { padding-block: 40px 56px; display: grid; gap: 24px; font-size: 15px; color: var(--ink-60); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 500; }
.foot nav a:hover { color: var(--coral-text); }
.foot .small { font-size: 14px; line-height: 1.55; max-width: 46em; }
.theme { justify-self: start; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface-1); cursor: pointer; font: 500 14px/1 var(--body); color: var(--ink); }
@media (min-width: 900px) { .foot { grid-template-columns: 1fr auto; align-items: start; } .foot .small { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll (only when the script is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Documents: privacy, terms, support ---------- */
.doc { padding-block: 24px var(--section); display: grid; gap: 40px; }
.doc-head { display: grid; gap: 18px; max-width: 44em; }
.doc-head .display { font-size: clamp(40px, 9vw, 72px); }
.notice { border: 1px dashed var(--coral-text); border-radius: 16px; padding: 14px 16px; font-size: 15px; line-height: 1.5; max-width: 44em; }
.notice strong { color: var(--coral-text); }
.short { background: var(--surface-1); border: 1px solid var(--stroke); border-radius: 24px; padding: 24px 22px; max-width: 46em; display: grid; gap: 14px; }
.short h2 { font: 700 24px/1.1 var(--display); letter-spacing: -.03em; }
.short li { padding-left: 28px; position: relative; }
.short li + li { margin-top: 10px; }
.short li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--coral-text); border-bottom: 2.5px solid var(--coral-text); rotate: -45deg; }
.prose { max-width: 42em; display: grid; gap: 14px; }
.prose h2 { font: 700 clamp(26px, 4vw, 34px)/1.1 var(--display); letter-spacing: -.035em; margin-top: 34px; scroll-margin-top: 20px; }
.prose h3 { font: 600 19px/1.3 var(--body); margin-top: 14px; }
.prose ul { display: grid; gap: 8px; }
.prose ul li { padding-left: 20px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 3px; top: .68em; width: 6px; height: 6px; border-radius: 999px; background: var(--coral-text); }
.prose a { color: var(--coral-text); text-underline-offset: 3px; }
.prose .muted { color: var(--ink-60); }
.table { overflow-x: auto; border: 1px solid var(--stroke); border-radius: 16px; background: var(--surface-1); }
.table table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.45; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--stroke); }
.table tr:last-child td { border-bottom: 0; }
.table th { font: 600 12px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60); }

/* A value only David can give. Loud on purpose, so it cannot ship by accident. */
.placeholder { display: inline-block; padding: 2px 8px; border-radius: 8px; border: 1.5px dashed var(--coral-text); color: var(--coral-text); font: 600 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

.faq { max-width: 46em; border-top: 1px solid var(--stroke); }
.faq details { border-bottom: 1px solid var(--stroke); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font: 600 18px/1.35 var(--body); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 9px; height: 9px; border-right: 2.5px solid var(--coral-text); border-bottom: 2.5px solid var(--coral-text); rotate: 45deg; transition: rotate .2s ease-out; }
.faq details[open] summary::after { rotate: -135deg; top: 30px; }
.faq .answer { padding: 0 0 22px; color: var(--ink-60); display: grid; gap: 10px; max-width: 40em; }
.faq .answer a { color: var(--coral-text); }
.contact { background: var(--surface-1); border: 1px solid var(--stroke); border-radius: 24px; padding: 24px 22px; max-width: 46em; display: grid; gap: 12px; }
.contact h2 { font: 700 26px/1.1 var(--display); letter-spacing: -.03em; }
.contact dl { display: grid; gap: 12px; }
.contact dt { font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-60); margin-bottom: 6px; }

.lost { min-height: 62vh; display: grid; align-content: center; justify-items: start; gap: 22px; padding-block: 56px; }
.lost .wink { width: 120px; height: 120px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Wink's ink, and the not-yet-released call to action ---------- */
.wink .e, .brand svg .e { fill: var(--eye); }
.wink .a, .brand svg .a { fill: none; stroke: var(--eye); stroke-width: 6.5; stroke-linecap: round; }
.wink .a.thin { stroke-width: 5; }
.hero-stage { padding-top: 96px; }
.hero-wink { top: 0; }
@media (min-width: 900px) { .hero-stage { padding-top: 110px; } .hero-wink { top: 0; } }
/* Until the app is on the App Store this is a status, not a button, so it must not look pressable. */
.cta.soon { background: transparent; color: var(--ink); border: 1.5px solid var(--coral); }
.closing .cta.soon { background: transparent; color: var(--void); border-color: var(--void); }
.demo-note { margin-top: 14px; font-size: 13px; color: var(--ink-35); text-align: center; }
