/* Tempo website — dark theme matching the app. */
:root {
  --bg: #0d0d1a;
  --card: #1a1a2e;
  --card-2: #22223a;
  --border: #2a2a40;
  --text: #ffffff;
  --text-2: #b4b4c8;
  --muted: #7c7c96;
  --accent: #2f7bff;
  --amber: #ffaa00;
  --green: #00e676;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* header */
.site-header { border-bottom: 1px solid var(--border); background: rgba(13, 13, 26, 0.92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--text-2); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: var(--card); text-decoration: none; }

/* buttons */
.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 12px; background: var(--accent); color: #fff; }
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn.small { padding: 8px 14px; font-size: 0.9rem; border-radius: 10px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--text-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-shot { display: flex; justify-content: center; }
.phone { width: min(300px, 80%); border-radius: 28px; border: 6px solid #2b2b44; box-shadow: 0 20px 60px rgba(47, 123, 255, 0.25); overflow: hidden; }
.eyebrow { color: var(--amber); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; margin-bottom: 12px; }

/* sections */
section { padding: 44px 0; }
.section-head { margin-bottom: 24px; }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }

/* screenshots row */
.shots { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.shots figure { margin: 0; flex: 0 0 auto; width: 220px; scroll-snap-align: start; }
.shots img { border-radius: 18px; border: 1px solid var(--border); }
.shots figcaption { color: var(--text-2); font-size: 0.85rem; text-align: center; margin-top: 8px; }

/* plans */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plan ul { margin: 8px 0 0; padding-left: 1.1em; color: var(--text-2); }
.plan li { margin: 4px 0; }
.plan.pro { border-color: var(--accent); }

/* page title strip */
.page-title { padding: 36px 0 8px; }
.page-title p { color: var(--text-2); max-width: 44em; }

/* how-to-import box */
.howto { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0 24px; }
.howto ol { margin: 8px 0 0; padding-left: 1.2em; }
.howto li { margin: 4px 0; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip { background: var(--card); color: var(--text-2); border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* workout cards */
.workouts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.wk { display: flex; flex-direction: column; gap: 10px; }
.wk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.wk h3 { margin: 0; font-size: 1.15rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--card-2); color: var(--text-2); white-space: nowrap; }
.badge.type { background: rgba(47, 123, 255, 0.18); color: #7fb0ff; }
.badge.free { background: rgba(0, 230, 118, 0.15); color: var(--green); }
.badge.pro { background: rgba(255, 170, 0, 0.16); color: var(--amber); }
.wk-meta { color: var(--text-2); font-size: 0.9rem; }
.wk-desc { color: var(--text-2); margin: 0; font-size: 0.95rem; }
.wk details { border-top: 1px solid var(--border); padding-top: 8px; }
.wk summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.wk ol { margin: 8px 0 0; padding-left: 1.3em; color: var(--text-2); font-size: 0.92rem; }
.wk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.pro-note { font-size: 0.8rem; color: var(--muted); margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--card-2); border: 1px solid var(--accent); padding: 10px 18px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 20; }
.toast.show { opacity: 1; }
.empty { color: var(--text-2); padding: 24px 0; }

/* videos */
.videos { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.video { padding: 0; overflow: hidden; }
.video .frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video .frame iframe, .video .frame button, .video .frame .soon { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .frame button { cursor: pointer; padding: 0; background: var(--card-2) center / cover no-repeat; color: #fff; font: inherit; display: grid; place-items: center; }
.video .play { width: 64px; height: 64px; border-radius: 50%; background: rgba(47, 123, 255, 0.92); display: grid; place-items: center; font-size: 26px; padding-left: 5px; }
.video .soon { display: grid; place-items: center; color: var(--muted); font-weight: 700; background: var(--card-2); }
.video .body { padding: 14px 16px 16px; }
.video .body p { margin: 0; color: var(--text-2); font-size: 0.93rem; }

/* prose (privacy) */
.prose { max-width: 46em; padding-bottom: 60px; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose blockquote { margin: 1em 0; padding: 12px 16px; background: var(--card); border-left: 4px solid var(--accent); border-radius: 8px; color: var(--text-2); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.prose li { margin: 6px 0; }
.prose ul { padding-left: 1.3em; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  .nav a { padding: 8px 9px; font-size: 0.88rem; }
  .brand img { height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
}
