/* Sir Sprout's website: the app's own colours and font (Outfit). */

@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url('fonts/Outfit_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-display: swap; src: url('fonts/Outfit_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url('fonts/Outfit_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Outfit'; font-weight: 700; font-display: swap; src: url('fonts/Outfit_700Bold.ttf') format('truetype'); }

:root {
  --bg: #f4f2fb;
  --card: #ffffff;
  --card-border: #e9e5f6;
  --dark: #25242a;
  --dark-soft: #34333b;
  --lime: #c6ee52;
  --lime-deep: #9bc82a;
  --lime-soft: #eef9cc;
  --lavender: #e9e5f8;
  --lavender-deep: #d9d3f2;
  --purple: #6e62c4;
  --text: #1d1c22;
  --muted: #6d6b78;
  --on-dark-muted: #b9b5cc;
  --orange: #f08a1c;
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--dark); }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

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

/* ── Header (dark, like the app's) ─────────────────────────────── */
.top { background: var(--dark); color: #fff; }
.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; color: #fff; text-decoration: none; font-weight: 600; font-size: 1.25rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav-links { display: none; gap: 28px; }
.nav-links a { color: var(--on-dark-muted); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: #fff; }
@media (min-width: 820px) { .nav-links { display: flex; } }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 14px 24px; font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border: 1.5px solid transparent; white-space: nowrap;
}
.pill-lime { background: var(--lime); color: var(--dark); }
.pill-lime:hover { background: #d4f56f; }
.pill-ghost { color: #fff; border-color: #55535e; }
.pill-ghost:hover { border-color: var(--lime); }
.pill-small { padding: 10px 18px; font-size: 0.95rem; }
.pill .apple { width: 18px; height: 18px; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { display: grid; gap: 40px; align-items: center; padding-top: 24px; padding-bottom: 72px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 40px; padding-bottom: 96px; } }
.hero h1 span { color: var(--lime); }
.hero .lede { color: var(--on-dark-muted); font-size: 1.2rem; margin-top: 20px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { color: var(--on-dark-muted); font-size: 0.95rem; margin-top: 16px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.speech {
  position: absolute; z-index: 2; background: var(--lavender); color: var(--text);
  border-radius: 22px; padding: 14px 18px; font-weight: 500; font-size: 1rem; line-height: 1.35;
  max-width: 230px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.hero-art .speech { bottom: 34%; left: 0; }
.hero-art .speech::after {
  content: ''; position: absolute; left: 44px; bottom: -8px; width: 18px; height: 18px;
  background: var(--lavender); transform: rotate(45deg); border-radius: 3px;
}
.hero-art .mascot { position: absolute; z-index: 3; width: 44%; left: -6%; bottom: -4%; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.35)); }
@media (min-width: 900px) { .hero-art .speech { left: -2%; bottom: 27%; } .hero-art .mascot { left: -20%; } }
/* Phones: the bubble sits beside his head, below the countdown, with its tail pointing left at him */
@media (max-width: 899px) {
  .hero-art .speech { left: 37%; bottom: 9%; max-width: 58%; font-size: 0.95rem; padding: 12px 16px; }
  .hero-art .speech::after { left: -6px; bottom: 22px; }
}

/* ── Phone frame around a screenshot ──────────────────────────── */
.phone {
  width: 100%; max-width: 300px; border-radius: 44px; padding: 9px; background: #0d0d10;
  box-shadow: 0 30px 60px rgba(29, 28, 34, 0.28), inset 0 0 0 1.5px #3b3a42;
}
.phone img { border-radius: 36px; width: 100%; }
.phone.big { max-width: 330px; }

/* ── Sections ─────────────────────────────────────────────────── */
section { padding: 80px 0; }
@media (min-width: 900px) { section { padding: 110px 0; } }
.eyebrow { color: var(--purple); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin-top: 16px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* How it works: three steps, each with its screen */
.steps { display: grid; gap: 48px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--dark);
  display: grid; place-items: center; font-weight: 700; font-size: 1.2rem;
}
.step p { color: var(--muted); max-width: 22em; }
.step .phone { max-width: 270px; margin-top: 8px; }

/* Dark feature band (hands-free and Lock Screen) */
.band { background: var(--dark); color: #fff; border-radius: 40px; margin: 0 12px; }
@media (min-width: 720px) { .band { margin: 0 24px; } }
.band .eyebrow { color: var(--lime); }
.band .section-head p, .band .muted { color: var(--on-dark-muted); }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split.flip > :first-child { order: 2; }
@media (max-width: 899px) { .split.flip > :first-child { order: 0; } }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks .ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--dark-soft); color: var(--lime);
}
.ticks .ic svg { width: 22px; height: 22px; }
.ticks strong { display: block; font-weight: 600; }
.ticks span { color: var(--on-dark-muted); font-size: 1rem; }
.phones-pair { display: flex; justify-content: center; gap: 16px; }
.phones-pair .phone { max-width: 250px; }
.phones-pair .phone:nth-child(2) { margin-top: 48px; }
@media (max-width: 560px) { .phones-pair .phone { max-width: 46%; border-radius: 30px; padding: 6px; } .phones-pair .phone img { border-radius: 25px; } }
.voice-line {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 12px 18px;
  border-radius: 999px; background: var(--dark-soft); color: #fff; font-weight: 500;
}
.voice-line svg { width: 20px; height: 20px; color: var(--lime); flex: none; }

/* Feature cards */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 6px 20px rgba(58, 47, 122, 0.05);
}
.card .ic {
  width: 48px; height: 48px; border-radius: 14px; background: var(--lime-soft); color: var(--dark);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .ic svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin-top: 8px; font-size: 1rem; }
.tag {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--lime);
  font-size: 0.75rem; font-weight: 600; vertical-align: 3px;
}

/* Roast calculator spotlight */
.spot { background: var(--lime-soft); border-radius: 40px; margin: 0 12px; }
@media (min-width: 720px) { .spot { margin: 0 24px; } }
.spot .muted { color: var(--muted); }
.figures { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.figures span { background: var(--card); border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: 0.98rem; }

/* Wardrobe */
.wardrobe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (min-width: 640px) { .wardrobe { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 980px) { .wardrobe { grid-template-columns: repeat(6, 1fr); } }
.outfit { background: var(--card); border: 1px solid var(--card-border); border-radius: 20px; padding: 14px 10px 12px; text-align: center; }
.outfit img { width: 100%; max-width: 120px; height: 120px; object-fit: contain; object-position: bottom; margin: 0 auto 8px; }
.outfit b { display: block; font-weight: 600; font-size: 0.95rem; }
.outfit small { color: var(--muted); font-size: 0.8rem; }

/* Pricing */
.plans { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--card); border: 1px solid var(--card-border); border-radius: 28px; padding: 32px; }
.plan.pro { background: var(--dark); color: #fff; border-color: var(--dark); }
.plan .price { font-size: 3rem; font-weight: 700; margin-top: 8px; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan.pro .price small, .plan.pro .muted { color: var(--on-dark-muted); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 1rem; }
.plan li::before {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--lime-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.plan.pro li::before { background-color: var(--lime); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325242a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; padding: 0 22px; }
summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--purple); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); padding-bottom: 20px; font-size: 1rem; }

/* Closing call to action */
.closing { text-align: center; }
.closing .mascot-small { width: 170px; margin: 0 auto 8px; }

/* Footer */
footer { background: var(--dark); color: var(--on-dark-muted); padding: 44px 0; margin-top: 40px; font-size: 0.95rem; }
.foot { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--lime); }

/* ── Legal and help pages ─────────────────────────────────────── */
.doc-head { padding-top: 32px; padding-bottom: 56px; }
.doc-head p { color: var(--on-dark-muted); margin-top: 12px; }
.doc { max-width: 760px; margin: 0 auto; padding: 56px 16px 40px; }
.doc h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.doc h3 { margin: 24px 0 8px; }
.doc p, .doc li { color: #3b3a44; font-size: 1.05rem; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0 0; }
.doc .box { background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; padding: 20px 22px; margin-top: 16px; }
