/* Interval Run — landing/support site styles.
   Brand values live in :root; edit them there to restyle the whole site. */

:root {
  --accent: #7270ff;
  --accent-dark: #5a58e0;
  --bg: #0f0f12;
  --card: #1c1c1e;
  --card-border: #2c2c2e;
  --text: #f2f2f7;
  --text-dim: #a1a1aa;
  --radius: 16px;
  --max-width: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 22.5%;
}

.site-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem; /* keep the tap target comfortable */
}
.nav-link:hover { color: var(--text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-store {
  background: #fff;
  color: #000;
}
.btn-store:hover { transform: translateY(-1px); }

.btn-small {
  min-height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.9rem;
}

.apple-mark { width: 1.1em; height: 1.1em; }

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

.hero {
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .sub {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text-dim);
  max-width: 34rem;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.trial-note {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- Phone frames / screenshot slots ---------- */

.shot {
  margin: 0 auto;
  width: min(18rem, 78vw);
  aspect-ratio: 1290 / 2796;
  border-radius: 2.6rem;
  border: 0.55rem solid var(--card-border);
  background: var(--card);
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot.empty img { display: none; }
.shot.empty::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(114, 112, 255, 0.18), transparent 60%),
    var(--card);
}

.shot-sm { width: min(14rem, 70vw); }

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

.section { padding: 3.5rem 0; }

.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  text-align: center;
}

.section .lead {
  color: var(--text-dim);
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.feature {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature img {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.9rem;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Split sections (text + phone) ---------- */

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.split h2, .split .lead { text-align: left; margin-left: 0; }

.split .copy p { color: var(--text-dim); }

.split ul {
  padding-left: 1.2rem;
  color: var(--text-dim);
}
.split li { margin-bottom: 0.4rem; }
.split li strong { color: var(--text); font-weight: 600; }

@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .copy { order: 2; }
}

/* ---------- AI chat example ---------- */

.chat {
  max-width: 30rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bubble {
  padding: 0.85rem 1.1rem;
  border-radius: 1.25rem;
  font-size: 0.98rem;
  max-width: 88%;
}

.bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 0.35rem;
}

.bubble.app {
  align-self: flex-start;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-bottom-left-radius: 0.35rem;
}

.bubble.app ol {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-dim);
}

/* ---------- Integrations row ---------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.badge {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---------- Closing CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: calc(var(--radius) * 1.5);
  padding: 3rem 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-band h2 { margin: 0 0 0.5rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0 0 1.5rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 2rem 0 3rem;
  margin-top: 2rem;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0;
}
.footer-links a:hover { color: var(--text); }

.copyright { color: var(--text-dim); font-size: 0.85rem; }

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

.page {
  padding: 3rem 0;
  max-width: 44rem;
  margin: 0 auto;
}

.page h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 0.5rem; }
.page > .wrap > p:first-of-type { color: var(--text-dim); }

.contact-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.contact-card h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.contact-card p { color: var(--text-dim); margin: 0 0 1rem; }

.faq { margin: 2rem 0; }
.faq h2 { font-size: 1.4rem; margin-bottom: 1rem; }

.faq details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 0;
  padding: 0 1.25rem 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}
