/* ─── RankIt landing — DA matched to the mobile app ───────────────────────────
 *
 * Palette mirrors client/src/theme/tokens.ts.
 * No external CSS dependencies (Tailwind CDN was dropped — Subresource
 * Integrity is unstable on the play CDN and a build pipeline is overkill
 * for a 3-page site). All styles handwritten.
 * ────────────────────────────────────────────────────────────────────────── */

:root {
  --navy: #133B50;
  --gold: #F6B139;
  --orange: #E59024;
  --cream: #FEF4D7;
  --red: #E9543A;
  --teal: #2BB7C0;
  --pink: #EC4899;
  --purple: #8B5CF6;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--cream);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.font-display {
  font-family: 'Chewy', cursive;
  letter-spacing: 0.5px;
}

/* ─── Decorative grain background ─────────────────────────────────────────── */

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(246, 177, 57, 0.20) 0%, transparent 42%),
    radial-gradient(circle at 82% 28%, rgba(229, 144, 36, 0.18) 0%, transparent 46%),
    radial-gradient(circle at 50% 92%, rgba(43, 183, 192, 0.14) 0%, transparent 48%);
  pointer-events: none;
}

/* ─── Layout primitives ──────────────────────────────────────────────────── */

.container {
  max-width: 1120px;
  margin: 96px auto;
  padding: 0 24px;
}

.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: block;
  object-fit: contain;
}

.brand-name {
  font-family: 'Chewy', cursive;
  font-size: 26px;
  color: var(--navy);
}

.site-nav {
  display: none;
  gap: 28px;
  font-weight: 800;
}

.site-nav a { color: var(--navy); }
.site-nav a:hover { color: var(--orange); }

@media (min-width: 880px) {
  .site-nav { display: inline-flex; }
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 10px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  font-family: 'Chewy', cursive;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--navy);
  box-shadow: 2px 2px 0 #000;
}

.lang-switch:hover { background: var(--gold); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 16px;
  border: 3px solid var(--navy);
  box-shadow: 6px 6px 0 #000;
  font-family: 'Chewy', cursive;
  font-size: 22px;
  transition: transform .08s ease, box-shadow .08s ease;
}

.btn:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 #000; }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 #000; }

.btn-primary { background: var(--navy); color: var(--white); }
/* Ghost keeps the same height as primary so hero CTA row aligns. */
.btn-ghost { background: var(--white); color: var(--navy); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-sm { padding: 10px 16px; font-size: 16px; box-shadow: 3px 3px 0 #000; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding: 72px 0 48px;
  text-align: center;
  position: relative;
}

/* Floating decorative shapes that match the mobile app sticker vibe.
   Hidden on small screens to keep the hero compact. */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  border: 4px solid var(--navy);
  box-shadow: 6px 6px 0 #000;
  display: none;
}

.hero::before {
  background: var(--gold);
  top: 24px;
  left: 4%;
  transform: rotate(-12deg);
}

.hero::after {
  background: var(--teal);
  top: 80px;
  right: 4%;
  transform: rotate(10deg);
}

@media (min-width: 1000px) {
  .hero::before, .hero::after { display: block; }
}

.hero-logo {
  display: block;
  width: clamp(140px, 20vw, 200px);
  height: auto;
  margin: 0 auto 28px;
  padding: 18px;
  background: var(--white);
  border: 4px solid var(--navy);
  border-radius: 32px;
  box-shadow: 8px 8px 0 #000;
  transform: rotate(-2deg);
}

.hero-emoji-row {
  display: flex;
  width: fit-content;
  margin: 8px auto 28px;
  gap: 12px;
  font-size: 40px;
  line-height: 1;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 880px) {
  .hero-emoji-row { gap: 16px; font-size: 48px; margin-bottom: 32px; }
}

.hero-emoji-row span {
  display: inline-block;
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: 18px;
  box-shadow: 4px 4px 0 #000;
  padding: 8px 14px;
}

.hero-emoji-row span:nth-child(1) { transform: rotate(-8deg); background: var(--gold); }
.hero-emoji-row span:nth-child(2) { transform: rotate(4deg); }
.hero-emoji-row span:nth-child(3) { transform: rotate(-3deg); background: var(--teal); }
.hero-emoji-row span:nth-child(4) { transform: rotate(8deg); background: var(--pink); }

.hero-badge {
  display: flex;
  width: fit-content;
  margin: 0 auto 28px;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 3px 3px 0 #000;
}

.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(233, 84, 58, 0.25);
}

.hero h1 {
  font-family: 'Chewy', cursive;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1;
  margin: 0 0 18px;
}

.hero h1 .accent {
  background: linear-gradient(180deg, transparent 60%, var(--gold) 60%);
  padding: 0 4px;
}

.hero p.lead {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  color: rgba(19, 59, 80, 0.85);
}

.hero-ctas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.trust-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  font-weight: 800;
  color: rgba(19, 59, 80, 0.7);
}

@media (min-width: 640px) {
  .trust-row { gap: 14px; }
}

.trust-row .pill {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
}

/* ─── Sections ───────────────────────────────────────────────────────────── */

section { padding: 56px 0; }

@media (min-width: 880px) {
  section { padding: 80px 0; }
}

.section-eyebrow {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--orange);
  text-align: center;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Chewy', cursive;
  font-size: clamp(32px, 4.5vw, 52px);
  text-align: center;
  margin: 0 0 12px;
}

.section-lead {
  text-align: center;
  font-weight: 700;
  max-width: 620px;
  margin: 0 auto 48px;
  color: rgba(19, 59, 80, 0.78);
  line-height: 1.55;
}

.section-title + .section-lead { margin-top: 16px; }

/* ─── Mode cards (Situations / Social) ───────────────────────────────────── */

.modes-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  .modes-grid { grid-template-columns: 1fr 1fr; }
}

.mode-card {
  background: var(--white);
  border: 4px solid var(--navy);
  border-radius: 28px;
  box-shadow: 8px 8px 0 #000;
  padding: 32px;
  position: relative;
  transform: rotate(-1deg);
}

.mode-card:nth-child(2) { transform: rotate(1deg); }

.mode-card .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 3px solid var(--navy);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: 'Chewy', cursive;
  font-size: 18px;
  margin-bottom: 18px;
}

.mode-card h3 + p { margin-top: 4px; }

.mode-card h3 {
  font-family: 'Chewy', cursive;
  font-size: 32px;
  margin: 0 0 12px;
}

.mode-card p { font-weight: 700; color: rgba(19, 59, 80, 0.85); margin: 0 0 18px; }

.mode-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mode-card li { padding-left: 28px; position: relative; font-weight: 700; }
.mode-card li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--gold);
  border: 2px solid var(--navy);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center; justify-content: center;
}

.mode-card.social .chip { background: rgba(236, 72, 153, 0.18); border-color: var(--pink); }
.mode-card.social li::before { background: var(--pink); color: var(--white); border-color: var(--navy); }

/* ─── How it works ───────────────────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  /* Make room above for the .num badge that pokes out of every step. */
  padding-top: 12px;
}

@media (min-width: 780px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.step {
  background: var(--white);
  border: 4px solid var(--navy);
  border-radius: 22px;
  box-shadow: 6px 6px 0 #000;
  /* Extra top padding clears the absolutely-positioned `.num` badge,
     which sticks 28px above the card and is 56px tall (so it overlaps
     the top edge by 28px). */
  padding: 44px 26px 26px;
  position: relative;
}

.step .num {
  position: absolute;
  top: -28px; left: 22px;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--gold);
  border: 4px solid var(--navy);
  box-shadow: 4px 4px 0 #000;
  font-family: 'Chewy', cursive;
  font-size: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  transform: rotate(-6deg);
}

.step:nth-child(2) .num { background: var(--teal); color: var(--white); transform: rotate(4deg); }
.step:nth-child(3) .num { background: var(--pink); color: var(--white); transform: rotate(-3deg); }

.step h4 {
  font-family: 'Chewy', cursive;
  font-size: 22px;
  margin: 12px 0 8px;
}

.step p { font-weight: 700; color: rgba(19, 59, 80, 0.85); margin: 0; }

/* ─── Features bullets ───────────────────────────────────────────────────── */

.features {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .features { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}

.feature {
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: 18px;
  box-shadow: 4px 4px 0 #000;
  padding: 22px;
  display: flex; gap: 14px;
}

.feature .ico {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 3px solid var(--navy);
  box-shadow: 2px 2px 0 #000;
  background: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Chewy', cursive;
  font-size: 22px;
}

.feature.teal .ico { background: var(--teal); color: var(--white); }
.feature.pink .ico { background: var(--pink); color: var(--white); }
.feature.purple .ico { background: var(--purple); color: var(--white); }
.feature.red .ico { background: var(--red); color: var(--white); }
.feature.orange .ico { background: var(--orange); color: var(--white); }

.feature h5 { font-family: 'Chewy', cursive; font-size: 20px; margin: 0 0 4px; }
.feature p { margin: 0; font-weight: 700; color: rgba(19, 59, 80, 0.82); font-size: 15px; }

/* ─── Waitlist CTA ───────────────────────────────────────────────────────── */

.waitlist {
  background: var(--navy);
  color: var(--white);
  border-radius: 36px;
  border: 4px solid #000;
  box-shadow: 10px 10px 0 #000;
  padding: 56px 32px;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.waitlist::before, .waitlist::after {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(40px);
}

.waitlist::before { background: var(--orange); top: -80px; left: -80px; }
.waitlist::after { background: var(--teal); bottom: -80px; right: -80px; }

.waitlist h2 {
  font-family: 'Chewy', cursive;
  font-size: clamp(32px, 4.5vw, 48px);
  margin: 0 0 12px;
  position: relative;
}

.waitlist p { font-weight: 700; opacity: 0.92; margin: 0 0 28px; position: relative; }

.waitlist form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 640px) {
  .waitlist form { flex-direction: row; }
}

.waitlist input[type="text"], .waitlist input[type="email"] {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
}

.waitlist input::placeholder { color: rgba(255, 255, 255, 0.6); }

.waitlist input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.18);
}

.waitlist button {
  background: var(--gold);
  color: var(--navy);
  border: 3px solid #000;
  border-radius: 14px;
  padding: 14px 26px;
  box-shadow: 4px 4px 0 #000;
  font-family: 'Chewy', cursive;
  font-size: 20px;
  white-space: nowrap;
}

.waitlist button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }

.waitlist .privacy-note {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.72;
  position: relative;
  line-height: 1.5;
}

.waitlist .success {
  display: none;
  margin-top: 18px;
  font-weight: 800;
  color: var(--gold);
  position: relative;
}

.waitlist .success.show { display: block; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 2px solid rgba(19, 59, 80, 0.15);
  margin-top: 40px;
  padding: 32px 24px;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: rgba(19, 59, 80, 0.75);
  font-size: 14px;
}

.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--orange); }

/* ─── Hero social proof ──────────────────────────────────────────────────── */

.hero-proof {
  margin: 22px auto 0;
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  color: rgba(19, 59, 80, 0.72);
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 6px 16px 6px 8px;
  box-shadow: 3px 3px 0 #000;
}

.hero-proof .avatars { display: inline-flex; }
.hero-proof .avatars span {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: 'Chewy', cursive;
  font-size: 13px;
  color: var(--navy);
  margin-left: -8px;
}
.hero-proof .avatars span:first-child { margin-left: 0; }

/* ─── Sample cards strip ─────────────────────────────────────────────────── */

.cards-strip {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .cards-strip { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .cards-strip { grid-template-columns: repeat(4, 1fr); }
}

.sample-card {
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: 22px;
  box-shadow: 6px 6px 0 #000;
  padding: 22px 20px;
  transform: rotate(-1.2deg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 160px;
}

.sample-card.alt { transform: rotate(1.4deg); background: var(--gold); }
.cards-strip > :nth-child(3) { transform: rotate(1deg); }
.cards-strip > :nth-child(4) { transform: rotate(-1.6deg); background: var(--teal); color: var(--white); }
.cards-strip > :nth-child(4) .sample-tag { background: var(--navy); color: var(--white); border-color: #000; }

.sample-tag {
  align-self: flex-start;
  background: var(--cream);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: 'Chewy', cursive;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.sample-card p {
  font-family: 'Chewy', cursive;
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}

.inline-cta {
  margin-top: 36px;
  text-align: center;
}

/* ─── FAQ ────────────────────────────────────────────────────────────────── */

.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq details {
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: 18px;
  box-shadow: 4px 4px 0 #000;
  padding: 18px 22px;
}

.faq details[open] { background: var(--cream); }

.faq summary {
  cursor: pointer;
  font-family: 'Chewy', cursive;
  font-size: 20px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-family: 'Chewy', cursive;
  font-size: 28px;
  color: var(--orange);
  transition: transform .15s ease;
  line-height: 0.7;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  font-weight: 700;
  color: rgba(19, 59, 80, 0.86);
  line-height: 1.55;
  margin: 14px 0 0;
  font-size: 16px;
}

/* ─── Waitlist benefits bullets ──────────────────────────────────────────── */

.waitlist-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 8px;
  justify-items: center;
  position: relative;
  font-weight: 800;
  font-size: 14px;
  opacity: 0.95;
}

@media (min-width: 720px) {
  .waitlist-benefits {
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 18px;
    font-size: 15px;
  }
}

/* ─── Legal page (privacy / terms) shared ────────────────────────────────── */

.legal-shell {
  max-width: 760px;
  margin: 32px auto 64px;
  padding: 0 24px;
}

.legal-shell h1 {
  font-family: 'Chewy', cursive;
  font-size: clamp(32px, 4.5vw, 48px);
  margin: 16px 0 8px;
}

.legal-shell .updated {
  font-weight: 700;
  color: rgba(19, 59, 80, 0.65);
  margin-bottom: 32px;
  font-size: 14px;
}

.legal-shell section {
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: 18px;
  box-shadow: 4px 4px 0 #000;
  padding: 24px 26px;
  margin-bottom: 22px;
}

.legal-shell section h2 {
  font-family: 'Chewy', cursive;
  font-size: 22px;
  margin: 0 0 12px;
}

.legal-shell section p, .legal-shell section li {
  font-weight: 700;
  color: rgba(19, 59, 80, 0.88);
  line-height: 1.55;
  font-size: 15.5px;
}

.legal-shell section p { margin: 0 0 10px; white-space: pre-line; }
.legal-shell section ul { margin: 8px 0 0 0; padding-left: 20px; }
.legal-shell section li { margin-bottom: 4px; }

.legal-shell a { color: var(--orange); text-decoration: underline; }
