/* Sleep On It – landing page. Same look as the app ("Flavour Pop", modern-finance cut): white,
   light grey cards, system font for words, Bricolage for the name and money. Fonts are
   self-hosted (no Google Fonts request – nothing is loaded from third parties). */
@font-face {
  font-family: 'Bricolage';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/BricolageGrotesque_700Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Bricolage';
  font-weight: 800;
  font-display: swap;
  src: url('fonts/BricolageGrotesque_800ExtraBold.ttf') format('truetype');
}

:root {
  --bg: #ffffff;
  --surface: #f4f4f5;
  --ink: #151515;
  --ink-soft: #5f5f66;
  --line: #e4e4e7;
  --accent: #f2541b;
  --accent-text: #b83a0a;
  --sun: #ffc83d;
  --sky: #8fc8f0;
  --pink: #f6b3c8;
  --mint: #9fddb8;
  --lavender: #c7b8ff;
  --navy: #1e3a8a;
  --radius: 28px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
h1, h2, h3, .btn { letter-spacing: -0.025em; }
.brand, .brico { font-family: 'Bricolage', -apple-system, sans-serif; letter-spacing: -0.02em; }
h1 { font-weight: 700; font-size: clamp(42px, 7vw, 76px); line-height: 1.04; }
h2 { font-weight: 700; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; }
h3 { font-weight: 600; font-size: 21px; line-height: 1.25; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.muted { color: var(--ink-soft); }
.mark { color: var(--accent); }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--ink); font-weight: 600; font-size: 17px; text-decoration: none;
}
.btn:hover { filter: brightness(1.05); }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn.dark { background: var(--ink); color: #fff; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 70px; }
.hero p.lead { font-size: 20px; margin: 22px 0 28px; max-width: 34ch; }
.hero-visual { position: relative; }
.hero-visual .shot { width: 78%; margin-left: auto; border-radius: 34px; box-shadow: 0 40px 80px rgba(60, 20, 0, 0.18); }
.hero-visual .mascot {
  position: absolute; left: -10px; bottom: -20px; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: var(--sun); border: 10px solid #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: flex; align-items: center; justify-content: center;
}
.hero-visual .mascot img { width: 88%; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 10px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
}

/* Waitlist form */
.waitlist { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.waitlist input[type='email'] {
  flex: 1 1 240px; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent;
  background: var(--surface); font: inherit; color: var(--ink);
}
.waitlist input[type='email']:focus { outline: none; border-color: var(--ink); }
.cta .waitlist input[type='email'] { background: #fff; }
.form-note { font-size: 14px; margin-top: 12px; }
.form-message { font-weight: 700; margin-top: 12px; }

/* Sections */
section { padding: 70px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { margin-top: 14px; font-size: 19px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--ink); color: #fff; font-weight: 700;
}
.step p { margin-top: 8px; color: var(--ink-soft); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Highlight */
.highlight { background: var(--accent); border-radius: 40px; padding: 56px; display: grid; grid-template-columns: 1fr 0.8fr; gap: 40px; align-items: center; }
.highlight h2 { color: #fff; }
.highlight p { color: var(--ink); font-size: 19px; margin-top: 16px; }
.highlight .example {
  margin-top: 26px; background: #fff; border-radius: 24px; padding: 22px 26px; display: inline-block;
  box-shadow: 0 20px 40px rgba(60, 20, 0, 0.2);
}
.highlight .example strong { display: block; font-family: 'Bricolage'; font-size: clamp(26px, 6vw, 34px); font-weight: 800; }
.highlight .example span { color: var(--accent-text); font-weight: 700; }
.highlight .screen {
  width: 100%; max-width: 360px; margin: 0 auto; border-radius: 40px; border: 10px solid var(--ink); background: #fff;
  box-shadow: 0 30px 60px rgba(60, 20, 0, 0.3);
}
@media (max-width: 860px) { .highlight { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Feature blocks */
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.block { border-radius: var(--radius); padding: 28px; min-height: 210px; }
.block .emoji { font-size: 38px; line-height: 1; margin-bottom: 18px; }
.block p { margin-top: 8px; }
.b-sun { background: var(--sun); } .b-sky { background: var(--sky); } .b-pink { background: var(--pink); }
.b-mint { background: var(--mint); } .b-lavender { background: var(--lavender); }
.b-navy { background: var(--navy); color: #fff; }
@media (max-width: 860px) { .blocks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .blocks { grid-template-columns: 1fr; } }

/* Screenshot strip */
.strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 60px; margin: 0 -20px -40px; }
.strip img { width: 260px; flex: 0 0 auto; border-radius: 26px; scroll-snap-align: start; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); }

/* Pricing + FAQ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 3px solid transparent; }
.plan.featured { background: var(--ink); color: #fff; }
.plan.featured li { color: rgba(255, 255, 255, 0.8); }
.plan.featured li::before { color: var(--accent); }
.plan .price { font-family: 'Bricolage'; font-weight: 800; font-size: 30px; margin: 8px 0; }
.plan ul { list-style: none; margin-top: 12px; }
.plan li { padding: 4px 0; color: var(--ink-soft); }
.plan li::before { content: '✓  '; color: var(--accent-text); font-weight: 800; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

.faq details { background: var(--surface); border-radius: 22px; padding: 20px 24px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 10px; color: var(--ink-soft); }

/* Closing CTA + footer */
.cta { background: var(--sun); border-radius: 40px; padding: 56px; text-align: center; }
.cta img { width: 180px; margin: 0 auto 10px; }
.cta p { margin: 14px auto 26px; max-width: 46ch; font-size: 19px; }
.cta .waitlist { margin: 0 auto; justify-content: center; }
@media (max-width: 560px) { .cta { padding: 36px 20px; } }

footer { padding-top: 40px; padding-bottom: 60px; color: var(--ink-soft); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); }

/* Legal pages */
.legal { max-width: 760px; padding-top: 30px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.legal h2 { font-size: 26px; margin: 36px 0 10px; }
.legal h3 { font-size: 19px; margin: 22px 0 6px; }
.legal p, .legal li { margin: 8px 0; }
.legal ul { padding-left: 22px; }
.legal .lang-switch { margin: 14px 0 26px; font-weight: 700; }
.legal hr { border: 0; border-top: 2px solid var(--line); margin: 50px 0; }
.placeholder { background: #fff3c4; padding: 0 4px; border-radius: 4px; }
