/* Choccy website styles */
:root {
  --dark-choc: #2A1810;
  --cocoa: #4A2617;
  --milk-choc: #8C5636;
  --caramel: #D9965B;
  --caramel-light: #F2C79E;
  --marshmallow: #F2B8AE;
  --marshmallow-deep: #E0907F;
  --pink-tint: #FBE9E4;
  --caramel-tint: #F8EBDC;
  --milk-foam: #FBF6F0;
  --line: #EDE2D8;
  --input-line: #E6D8CB;
  --muted: #7D6556;
  --body: #5E4A3F;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

/* Anything marked hidden stays hidden, whatever its display style */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--milk-foam);
  color: var(--dark-choc);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  line-height: 1.5;
}

a { color: var(--milk-choc); }
a:hover { color: var(--cocoa); }

:focus-visible { outline: 3px solid var(--marshmallow-deep); outline-offset: 3px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--cocoa); color: var(--white); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.wordmark { display: inline-block; white-space: nowrap; font-weight: 800; font-size: 28px; letter-spacing: -1.2px; line-height: 1; color: var(--dark-choc); text-decoration: none; }
.wordmark-o { display: inline-block; width: 0.56em; height: 0.56em; vertical-align: -0.01em; margin: 0 0.03em 0 0.04em; }
.wordmark .dot { color: var(--marshmallow-deep); }
.pill { padding: 8px 16px; border-radius: 18px; background: var(--pink-tint); font-size: 13px; font-weight: 700; }

/* Main */
main { flex: 1; padding-top: 48px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 72px; }

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--milk-choc); }
h1 { margin: 0; font-weight: 800; font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.04em; }
.lead { margin: 0; max-width: 520px; font-size: 1.15rem; line-height: 1.6; color: var(--body); }

/* Waitlist */
#waitlist { display: flex; flex-direction: column; gap: 14px; max-width: 540px; }
.waitlist-form { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist-form input[type="email"] {
  flex: 1 1 240px; min-width: 0; height: 56px; border: 1px solid var(--input-line); border-radius: 28px;
  padding: 0 22px; background: var(--white); font: inherit; font-size: 1rem; color: var(--dark-choc);
}
.waitlist-form button {
  flex: 0 0 auto; height: 56px; padding: 0 28px; border: 0; border-radius: 28px; background: var(--cocoa);
  color: var(--white); font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
  box-shadow: 0 8px 20px rgba(61, 33, 23, 0.25);
}
.waitlist-form button:hover { background: var(--dark-choc); }
.waitlist-form button[disabled] { opacity: 0.7; cursor: progress; }
.form-error { margin: 0; color: #A23B2A; font-size: 0.9rem; font-weight: 600; }
.founding-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.founding-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 14px; background: var(--caramel-light); font-size: 0.85rem; font-weight: 700; }
.small { font-size: 0.85rem; color: var(--muted); }
.consent { margin: 0; }

.success { display: flex; align-items: center; gap: 14px; max-width: 540px; padding: 18px 20px; border-radius: 22px; background: var(--cocoa); color: var(--white); }
.success strong { display: block; font-size: 1rem; }
.success span span, .success #success-text { display: block; font-size: 0.9rem; color: #EBD9CB; }
.success-icon { flex: none; width: 40px; height: 40px; border-radius: 20px; background: var(--marshmallow); color: var(--dark-choc); display: flex; align-items: center; justify-content: center; }

/* Phone mock-up */
.hero-visual { flex: 1 1 320px; display: flex; justify-content: center; }
.phone { position: relative; width: 300px; height: 600px; max-width: 100%; border-radius: 44px; background: var(--dark-choc); padding: 12px; box-shadow: 0 40px 80px rgba(42, 24, 16, 0.25); }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #F3EAE1; }
.map-park { position: absolute; left: 150px; top: 250px; width: 110px; height: 80px; border-radius: 22px; background: #E1E9D9; }
.map-river { position: absolute; left: -30px; top: 360px; width: 360px; height: 36px; background: #DCE5EC; transform: rotate(-6deg); }
.map-road { position: absolute; background: var(--white); }
.r1 { left: -20px; top: 190px; width: 340px; height: 9px; transform: rotate(-8deg); }
.r2 { left: -20px; top: 300px; width: 340px; height: 7px; transform: rotate(5deg); }
.r3 { left: 90px; top: 80px; width: 8px; height: 520px; transform: rotate(10deg); }
.r4 { left: 210px; top: 80px; width: 7px; height: 520px; transform: rotate(-6deg); }
.phone-search { position: absolute; left: 14px; top: 16px; right: 14px; height: 40px; border-radius: 20px; background: var(--white); box-shadow: 0 6px 16px rgba(42, 24, 16, 0.1); display: flex; align-items: center; padding: 0 14px; font-size: 12px; color: var(--muted); }
.pin { position: absolute; padding: 5px 9px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.pin-top { left: 40px; top: 210px; padding: 6px 10px; border-radius: 12px; background: var(--dark-choc); color: var(--white); font-size: 12px; font-weight: 800; box-shadow: 0 8px 18px rgba(42, 24, 16, 0.3); }
.pin-light { left: 190px; top: 150px; background: var(--white); box-shadow: 0 4px 12px rgba(42, 24, 16, 0.14); }
.pin-mid { left: 200px; top: 290px; background: var(--cocoa); color: var(--white); box-shadow: 0 4px 12px rgba(42, 24, 16, 0.2); }
.phone-card { position: absolute; left: 14px; right: 14px; bottom: 76px; display: flex; gap: 10px; padding: 8px; border-radius: 20px; background: var(--white); box-shadow: 0 12px 28px rgba(42, 24, 16, 0.16); }
.phone-card-img { flex: none; width: 60px; height: 60px; border-radius: 14px; background: #EBD8C6; }
.phone-card-text { display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.phone-card-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--milk-choc); }
.phone-card-title { font-size: 13px; font-weight: 800; }
.phone-card-meta { font-size: 10px; font-weight: 600; color: var(--muted); }
.phone-card-meta strong { color: var(--dark-choc); }
.phone-nav { position: absolute; left: 14px; right: 14px; bottom: 16px; height: 48px; border-radius: 24px; background: var(--dark-choc); display: flex; align-items: center; justify-content: center; }
.phone-plus { width: 36px; height: 36px; border-radius: 18px; background: var(--marshmallow); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: var(--dark-choc); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 24px; background: var(--white); box-shadow: 0 1px 2px rgba(43, 26, 20, 0.05), 0 12px 32px rgba(43, 26, 20, 0.05); }
.feature h2 { margin: 0; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.feature p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--body); }
.feature-icon { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--milk-choc); }
.tint-caramel { background: var(--caramel-tint); }
.tint-pink { background: var(--pink-tint); }
.tint-gold { background: var(--caramel-light); }

/* Café call-out */
.cafe-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; border-radius: 32px; background: var(--cocoa); color: var(--white); }
.cafe-cta > div { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.cafe-cta h2 { margin: 0; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; }
.cafe-cta p { margin: 0; color: #EBD9CB; line-height: 1.6; }
.btn-pink { flex: 0 0 auto; height: 52px; padding: 0 26px; border-radius: 26px; background: var(--marshmallow); color: var(--dark-choc); text-decoration: none; display: inline-flex; align-items: center; font-weight: 700; }
.btn-pink:hover { color: var(--dark-choc); background: #F5C8C0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 0.9rem; color: var(--muted); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* Privacy page */
.policy { max-width: 760px; padding-top: 24px; gap: 32px; }
.policy h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.policy .updated { margin: 8px 0 0; color: var(--muted); }
.policy .summary { padding: 24px; border-radius: 24px; background: var(--pink-tint); }
.policy .summary ul { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.6; }
.policy h2 { margin: 0 0 10px; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.policy section p, .policy section li { line-height: 1.7; color: #3F2D25; }
.policy section p { margin: 0 0 10px; }
.policy section ul { margin: 0; padding-left: 20px; }
.btn-dark { align-self: flex-start; height: 52px; padding: 0 26px; border-radius: 26px; background: var(--cocoa); color: var(--white); text-decoration: none; display: inline-flex; align-items: center; font-weight: 700; }
.btn-dark:hover { color: var(--white); background: var(--dark-choc); }

/* Tablets and small laptops */
@media (max-width: 900px) {
  .hero { gap: 48px; }
  .hero-text { flex-basis: 100%; }
  .lead { max-width: none; }
  #waitlist, .success { max-width: 560px; }
}

/* Phones */
@media (max-width: 600px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pill { font-size: 12px; padding: 8px 14px; }

  main { padding-top: 32px; padding-bottom: 56px; gap: 56px; }
  .hero { gap: 48px; }
  .hero-text { gap: 20px; }
  .eyebrow { font-size: 12px; }
  h1 { font-size: 42px; line-height: 1.04; }
  .lead { font-size: 17px; }

  .waitlist-form { flex-direction: column; }
  .waitlist-form input[type="email"] { flex: none; width: 100%; font-size: 16px; }
  .waitlist-form button { width: 100%; }
  .founding-row { flex-direction: column; align-items: flex-start; }

  .phone { width: 280px; height: 560px; border-radius: 42px; padding: 11px; }
  .phone-screen { border-radius: 32px; }

  .features { grid-template-columns: 1fr; gap: 14px; }
  .feature { padding: 24px; border-radius: 22px; gap: 10px; }
  .feature h2 { font-size: 20px; }
  .feature p { font-size: 15px; }

  .cafe-cta { flex-direction: column; align-items: flex-start; padding: 28px; border-radius: 28px; gap: 20px; }
  .cafe-cta > div { flex: none; }
  .cafe-cta h2 { font-size: 26px; line-height: 1.15; }
  .cafe-cta p { font-size: 15px; }

  .footer-inner { flex-direction: column-reverse; align-items: flex-start; gap: 14px; font-size: 14px; }
  .footer-inner nav { flex-direction: column; gap: 4px; }
  .footer-inner nav a { padding: 8px 0; }

  .policy { gap: 28px; }
  .policy .summary { padding: 20px; }
}

/* Very small phones */
@media (max-width: 360px) {
  .container { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 36px; }
  .phone { width: 250px; height: 500px; }
}

/* Logo: app icon + wordmark */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dark-choc); }
.brand:hover { color: var(--dark-choc); }
.brand-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--cocoa); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(61, 33, 23, 0.18); }
.brand-icon svg { width: 29px; height: 29px; }
.brand-icon-sm { width: 26px; height: 26px; border-radius: 8px; box-shadow: none; }
.brand-icon-sm svg { width: 19px; height: 19px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }

/* Second phone: leaderboard preview behind the map */
.hero-visual { flex-direction: column; align-items: center; gap: 20px; }
.phone-stack { position: relative; width: 500px; max-width: 100%; height: 640px; }
.phone-stack .phone { position: absolute; right: 0; top: 0; z-index: 2; }
.phone-back { position: absolute; left: 0; top: 50px; z-index: 1; width: 260px; height: 520px; border-radius: 40px; background: var(--dark-choc); padding: 11px; transform: rotate(-7deg); box-shadow: 0 30px 60px rgba(42, 24, 16, 0.2); }
.phone-back .phone-screen { border-radius: 30px; background: var(--milk-foam); display: flex; flex-direction: column; }
.lb-head { background: var(--cocoa); color: var(--white); padding: 22px 14px 14px; border-radius: 0 0 20px 20px; display: flex; flex-direction: column; gap: 5px; }
.lb-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; color: var(--marshmallow); }
.lb-title { font-size: 16px; font-weight: 800; letter-spacing: -0.4px; }
.lb-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; margin-top: 5px; border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.lb-tabs span { padding: 6px 0; border-radius: 8px; text-align: center; font-size: 9px; font-weight: 700; color: #EBD9CB; }
.lb-tabs .on { background: var(--milk-foam); color: var(--dark-choc); }
.lb-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-items: end; padding: 14px 12px 0; }
.lb-p { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 9px; font-weight: 700; line-height: 1.2; }
.lb-av { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--dark-choc); }
.lb-first .lb-av { width: 38px; height: 38px; font-size: 14px; }
.lb-block { width: 100%; border-radius: 10px 10px 4px 4px; display: flex; justify-content: center; padding-top: 5px; font-size: 13px; font-weight: 800; }
.lb-1 { height: 56px; background: var(--cocoa); color: var(--white); }
.lb-2 { height: 40px; background: var(--caramel-light); }
.lb-3 { height: 30px; background: var(--marshmallow); }
.lb-list { list-style: none; margin: 12px; padding: 0; background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 6px 16px rgba(43, 26, 20, 0.06); }
.lb-list li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-bottom: 1px solid #F3EAE1; font-size: 10px; }
.lb-list li:last-child { border-bottom: 0; }
.lb-rank { width: 12px; font-weight: 800; color: #A8988F; }
.lb-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 700; }
.lb-name small { font-size: 8.5px; font-weight: 500; color: var(--muted); }
.lb-score { font-weight: 800; }
.mockup-note { margin: 0; text-align: center; font-size: 0.8rem; color: var(--muted); }

@media (max-width: 600px) {
  .phone-stack { width: 350px; height: 540px; }
  .phone-stack .phone { width: 250px; height: 500px; border-radius: 38px; padding: 10px; }
  .phone-stack .phone .phone-screen { border-radius: 29px; }
  .phone-back { width: 210px; height: 430px; top: 50px; border-radius: 34px; padding: 9px; }
  .phone-back .phone-screen { border-radius: 26px; }
}
@media (max-width: 360px) {
  .phone-stack { width: 288px; height: 490px; }
  .phone-stack .phone { width: 220px; height: 450px; }
  .phone-back { width: 180px; height: 380px; }
  .lb-head { padding: 18px 10px 10px; }
  .lb-title { font-size: 14px; }
}

/* Store badges beside "Coming soon" */
.coming-soon { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badges:not(:has(img)) { display: none; }
.store-badge { display: block; height: 40px; width: auto; }

/* Social icons in the footer */
.social-links { display: flex; gap: 10px; }
.social-link { width: 44px; height: 44px; border-radius: 22px; background: var(--white); color: var(--cocoa); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; text-decoration: none; box-shadow: 0 1px 2px rgba(43, 26, 20, 0.06), 0 4px 12px rgba(43, 26, 20, 0.06); }
.social-link:hover { background: var(--cocoa); color: var(--white); }
@media (max-width: 600px) {
  .footer-inner .social-links { order: -1; }
}

/* "Coming soon" banner */
.coming-soon { flex-direction: column; align-items: flex-start; align-self: flex-start; width: fit-content; gap: 12px; max-width: 100%; padding: 14px 16px; border-radius: 22px; background: var(--white); box-shadow: 0 1px 2px rgba(43, 26, 20, 0.05), 0 10px 28px rgba(43, 26, 20, 0.07); }
.coming-soon:not(:has(.store-badge)) { padding: 12px 18px; }
.coming-soon-label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--milk-choc); }
.coming-soon-dot { flex: none; width: 8px; height: 8px; border-radius: 4px; background: var(--marshmallow-deep); box-shadow: 0 0 0 4px var(--pink-tint); }
@media (max-width: 600px) {
  .coming-soon { padding: 12px 14px; border-radius: 20px; }
  .coming-soon-label { font-size: 12px; letter-spacing: 1.5px; }
}

/* Social icon images */
.social-link img { display: block; width: 22px; height: 22px; }
.social-link:has(img):hover { background: var(--white); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(43, 26, 20, 0.08), 0 8px 18px rgba(43, 26, 20, 0.1); }
.social-link { transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }

/* Founding spots card */
.founding { display: flex; align-items: center; gap: 14px; max-width: 540px; padding: 14px 18px 14px 14px; border-radius: 20px; background: var(--white); box-shadow: 0 1px 2px rgba(43, 26, 20, 0.05), 0 10px 28px rgba(43, 26, 20, 0.06); }
.founding-icon { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--caramel-light); color: var(--cocoa); display: flex; align-items: center; justify-content: center; }
.founding-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.founding-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.founding-top strong { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.01em; }
.founding-count { flex: none; font-size: 0.8rem; font-weight: 700; color: var(--milk-choc); }
.founding-bar { height: 6px; border-radius: 3px; background: #F3EAE1; overflow: hidden; }
.founding-bar span { display: block; width: 0; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--caramel), var(--cocoa)); transition: width 0.6s ease; }
.founding-note { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 600px) {
  .founding { padding: 12px 14px 12px 12px; gap: 12px; }
  .founding-icon { width: 40px; height: 40px; border-radius: 12px; }
}

/* Phone footer: logo and socials on one line, privacy link underneath */
@media (max-width: 600px) {
  .footer-inner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
  .footer-brand { order: 1; }
  .footer-inner .social-links { order: 2; margin-left: auto; }
  .footer-inner nav { order: 3; width: 100%; flex-direction: row; gap: 20px; }
  .footer-inner nav a { padding: 4px 0; }
}

/* Phone polish */
@media (max-width: 600px) {
  .phone-stack { height: 520px; }
  .phone-back { left: 14px; transform: rotate(-6deg); }
  .mockup-note { font-size: 0.75rem; }
}
@media (max-width: 360px) {
  .phone-stack { height: 470px; }
  .phone-back { left: 10px; }
  .store-badge { height: 36px; }
  .coming-soon-label { font-size: 11px; letter-spacing: 1px; }
  .founding-top { flex-wrap: wrap; gap: 2px 10px; }
}
