/* strevel.app — shared by index.html and support.html.
   Dark first, like the icon: charcoal and white, with the app's own macro
   colours (calories yellow, protein orange, carbs green, fat blue) as the
   only accents. System fonts, so it reads like iOS. */

:root {
  --bg: #0b0b0c;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --line: #38383a;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --accent: #0a84ff;
  --cal: #ffd60a;
  --protein: #ff9f0a;
  --carbs: #30d158;
  --fat: #0a84ff;
  --radius: 22px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --surface-2: #f2f2f7;
    --line: #d2d2d7;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --accent: #0071e3;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* The site's look is all lowercase. The copy is written that way; this
     catches anything added later that isn't. */
  text-transform: lowercase;
  /* The tilted phones poke past the edge; never let them add a sideways scroll. */
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- Nav ---------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; gap: 24px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---- Hero --------------------------------------------------------------- */

.hero { padding: 88px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.035em;
  margin: 0 0 20px; font-weight: 800;
}
.hero p.lead { font-size: 21px; color: var(--muted); margin: 0 0 32px; max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 14px;
  background: var(--text); color: var(--bg); font-weight: 600;
}
.badge:hover { text-decoration: none; opacity: 0.9; }
.badge svg { width: 20px; height: 20px; fill: currentColor; }
.badge.soon { background: var(--surface-2); color: var(--muted); cursor: default; }
.fine { font-size: 14px; color: var(--muted); }

/* ---- Phones: real screenshots in Apple's iPhone 17 Pro frame ------------ */

.phones { position: relative; height: 600px; }
.shot { position: absolute; width: 285px; }
.shot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.5)); }
.shot.back { right: 0; top: 0; }
.shot.front { left: 0; top: 40px; }

/* ---- Sections ----------------------------------------------------------- */

section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.eyebrow { text-transform: lowercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 10px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.feature .dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; font-size: 20px; }
.feature h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.panel h3 { margin: 0 0 12px; font-size: 22px; letter-spacing: -0.015em; }
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.panel li:first-child { border-top: 0; }
.panel li b { color: var(--text); font-weight: 600; }

/* ---- FAQ ---------------------------------------------------------------- */

.faq { max-width: 760px; }
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* ---- Closing CTA and footer --------------------------------------------- */

.closing { text-align: center; padding: 96px 0; }
.closing img { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 20px; }
.closing .cta-row { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* ---- Support page ------------------------------------------------------- */

.page { padding: 64px 0 24px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.03em; margin: 0 0 12px; }
.page .lead { color: var(--muted); font-size: 19px; margin: 0 0 40px; max-width: 36em; }
.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 56px; }
.contact .panel a { font-weight: 600; font-size: 18px; }
.contact .panel p { color: var(--muted); margin: 6px 0 0; font-size: 15.5px; }
.page h2 { font-size: 28px; margin-top: 8px; }

/* ---- Small screens ------------------------------------------------------ */

@media (max-width: 880px) {
  .hero { padding-top: 56px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 560px; max-width: 460px; margin: 0 auto; width: 100%; }
  .grid { grid-template-columns: 1fr 1fr; }
  .split, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav-links a:not(.keep) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .shot { width: 210px; }
  .phones { height: 470px; }
}
