/*
  Interval Studio — intervalstudio.click
  Single committed dark theme: the site lives in the same ink the app's icon
  does, so every colour is painted explicitly rather than inherited.
*/

:root {
  --ground:   #131120;
  --ground-2: #0F0D1A;
  --surface:  #1C1930;
  --surface-2:#241F3A;
  --rule:     #2C2842;
  --text:     #ECE9F5;
  --muted:    #A09CB4;
  --accent:   #FF6B8A;

  --bar-1: #FF2D55;
  --bar-2: #FF9500;
  --bar-3: #FFD60A;
  --bar-4: #5AC8FA;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body:    "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 68rem;
  --pad: 1.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-underline-offset: .18em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--surface); color: var(--text);
  padding: .7rem 1rem; z-index: 100; border-radius: 8px;
}
.skip:focus { left: 1rem; top: 1rem; }

img { max-width: 100%; height: auto; display: block; }

/* ── brand mark ─────────────────────────────────────────────── */

.mark {
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 8.5px;
  background: linear-gradient(160deg, #191527, #2E2350);
  display: flex; flex-direction: column; justify-content: center;
  gap: 2.5px; padding: 7px 6px;
}
.mark i { display: block; height: 3.5px; border-radius: 2px; }
.mark i:nth-child(1) { width: 100%; background: var(--bar-1); }
.mark i:nth-child(2) { width: 45%;  background: var(--bar-2); }
.mark i:nth-child(3) { width: 78%;  background: var(--bar-3); }
.mark i:nth-child(4) { width: 60%;  background: var(--bar-4); }

/* ── nav ────────────────────────────────────────────────────── */

.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.5rem var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--text);
}
.brand-name { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: 1.06rem; }
.nav nav { display: flex; gap: 1.5rem; }
.nav nav a {
  color: var(--muted); text-decoration: none;
  font-size: .93rem; font-weight: 500;
}
.nav nav a:hover { color: var(--text); }

/* ── hero ───────────────────────────────────────────────────── */

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3rem var(--pad) 4.5rem;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.2vw, 4.15rem);
  line-height: .99;
  letter-spacing: -.035em;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}

.lede {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.09rem;
  max-width: 34ch;
}

.cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.badge-soon {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 600;
  color: var(--ground);
  background: var(--text);
  padding: .72rem 1.1rem;
  border-radius: 999px;
}
.btn-ghost {
  font-size: .95rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  padding: .72rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.btn-ghost:hover { border-color: var(--muted); }

/* ── live demo ──────────────────────────────────────────────── */

.demo { margin: 0; }

.demo-label {
  font-family: var(--mono);
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .6rem;
  text-align: right;
}

.demo-screen {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 2.1rem 1.8rem 1.6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background-color .5s ease;
}
@media (prefers-reduced-motion: reduce) {
  .demo-screen { transition: none; }
}

.demo-block {
  font-family: var(--mono);
  font-size: .66rem; letter-spacing: .16em;
  color: var(--muted);
  margin: 0 0 .55rem;
}
.demo-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -.02em;
  margin: 0 0 .1rem;
}
.demo-time {
  font-family: var(--display);
  font-weight: 800;
  font-size: 4.1rem;
  line-height: 1.08;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 1.5rem;
}

.demo-track { display: flex; gap: 3px; height: 10px; }
.demo-track span {
  display: block; height: 100%;
  border-radius: 3px;
  opacity: .38;
  transition: opacity .3s ease, transform .3s ease;
}
.demo-track span.on { opacity: 1; transform: scaleY(1.35); }
@media (prefers-reduced-motion: reduce) {
  .demo-track span { transition: none; }
}

/* ── sections ───────────────────────────────────────────────── */

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

.sec-head { margin-bottom: 2.5rem; }

.bars { display: flex; gap: 3px; margin-bottom: 1rem; }
.bars i { display: block; height: 7px; border-radius: 3.5px; }
.bars .b1 { width: 84px; background: var(--bar-1); }
.bars .b2 { width: 38px; background: var(--bar-2); }
.bars .b3 { width: 66px; background: var(--bar-3); }
.bars .b4 { width: 50px; background: var(--bar-4); }

h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw, 2.4rem);
  letter-spacing: -.028em;
  line-height: 1.08;
  margin: 0 0 .5rem;
  text-wrap: balance;
}
.sec-note { margin: 0; color: var(--muted); max-width: 52ch; }

/* ── screenshots ────────────────────────────────────────────── */

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.shots figure { margin: 0; }
.shots img {
  border-radius: 18px;
  border: 1px solid var(--rule);
  background: var(--ground-2);
}
.shots figcaption {
  margin-top: 1rem;
  font-size: .91rem;
  color: var(--muted);
  line-height: 1.55;
}
.shots figcaption b {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .15rem;
}

/* ── feature grid ───────────────────────────────────────────── */

.grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}
.grid li {
  background: var(--surface);
  padding: 1.7rem 1.6rem;
}
.grid h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -.012em;
  margin: 0 0 .5rem;
}
.grid p { margin: 0; color: var(--muted); font-size: .945rem; }

/* ── price ──────────────────────────────────────────────────── */

.price-band {
  display: grid;
  grid-template-columns: minmax(13rem, 20rem) 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}

.price-head {
  background: linear-gradient(160deg, #191527, #33265C);
  padding: 2.6rem 2rem;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--rule);
}
.price-tag {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.4rem, 7vw, 4.6rem);
  line-height: .92;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.price-tag span { font-size: .52em; vertical-align: .34em; margin-right: .04em; color: var(--muted); }
.price-once {
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--bar-3);
  margin: .8rem 0 0;
}

.price-body { padding: 2.2rem 2rem; }
.price-body h2 { margin-bottom: .6rem; }
.price-body > p { margin: 0 0 1.5rem; color: var(--muted); max-width: 52ch; }

.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
/* NOT a grid: `<b>Label.</b> rest of sentence` is two separate grid items, so
   a two-column grid drops the sentence into the narrow marker column. The
   marker is positioned out of flow instead. */
.price-list li {
  position: relative;
  padding-left: 1.9rem;
  font-size: .96rem;
  color: var(--muted);
}
.price-list b { color: var(--text); font-weight: 700; }
/* Marker echoes the interval bars in the icon rather than a generic tick. */
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62rem;
  width: 14px; height: 6px;
  border-radius: 3px;
}
.price-list li:nth-child(1)::before { background: var(--bar-1); }
.price-list li:nth-child(2)::before { background: var(--bar-2); }
.price-list li:nth-child(3)::before { background: var(--bar-3); }
.price-list li:nth-child(4)::before { background: var(--bar-4); }
.price-list li:nth-child(5)::before { background: #AF52DE; }

/* ── privacy ────────────────────────────────────────────────── */

.privacy-lede {
  font-size: 1.14rem;
  max-width: 56ch;
  margin: 0 0 1.4rem;
}
.privacy-fine {
  margin: 0;
  color: var(--muted);
  font-size: .945rem;
  max-width: 56ch;
  padding-left: 1rem;
  border-left: 2px solid var(--bar-3);
}

/* ── footer ─────────────────────────────────────────────────── */

.foot {
  max-width: var(--wrap);
  margin: 3rem auto 0;
  padding: 2.5rem var(--pad) 4rem;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  align-items: center;
}
.foot-brand { display: flex; align-items: center; gap: .8rem; }
.foot-brand b { display: block; font-size: .96rem; font-weight: 700; }
.foot-brand span { display: block; font-size: .84rem; color: var(--muted); }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-left: auto; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.foot-links a:hover { color: var(--text); }
.foot-legal {
  width: 100%; margin: 0;
  font-family: var(--mono);
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}

/* ── consent ────────────────────────────────────────────────── */

.consent {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 34rem;
  margin-left: auto;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  display: flex; flex-wrap: wrap; gap: .9rem 1rem;
  align-items: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  z-index: 50;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: .89rem; color: var(--muted); flex: 1 1 16rem; }
.consent-actions { display: flex; gap: .6rem; margin-left: auto; }

.btn-solid, .btn-quiet {
  font-family: var(--body);
  font-size: .87rem; font-weight: 600;
  padding: .55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--rule);
}
.btn-solid { background: var(--text); color: var(--ground); border-color: var(--text); }
.btn-quiet { background: transparent; color: var(--muted); }
.btn-quiet:hover { color: var(--text); }

/* ── legal pages ────────────────────────────────────────────── */

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem var(--pad) 4rem;
}
.doc h1 {
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  margin-bottom: .4rem;
}
.doc .eff {
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2.5rem;
}
.doc .eff em { font-style: normal; }
.doc h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2.6rem 0 .6rem;
}
.doc p, .doc li { color: #D6D2E4; }
.doc strong { color: var(--text); font-weight: 700; }
.doc ul { padding-left: 1.15rem; }
.doc li { margin: .4rem 0; }
.doc hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0 1.5rem; }
.doc hr + p { color: var(--muted); font-size: .87rem; }
.doc .callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--bar-2);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1.3rem 0;
}
.doc .callout p { margin: 0; }

/* ── responsive ─────────────────────────────────────────────── */

@media (max-width: 62rem) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
  .lede { max-width: 46ch; }
  .demo-label { text-align: left; }
  .shots { grid-template-columns: 1fr; gap: 2.5rem; max-width: 26rem; }
  .price-band { grid-template-columns: 1fr; }
  .price-head {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 2rem;
    flex-direction: row; align-items: baseline; gap: 1rem;
  }
  .price-once { margin-top: 0; }
}

@media (max-width: 40rem) {
  body { font-size: 16.5px; }
  .nav { padding-bottom: .5rem; }
  .nav nav { gap: 1.1rem; }
  .section { padding: 3rem var(--pad); }
  .demo-time { font-size: 3.4rem; }
  .foot-links { margin-left: 0; }
  .consent { left: .75rem; right: .75rem; bottom: .75rem; }
  .consent-actions { margin-left: 0; width: 100%; }
  .consent-actions button { flex: 1; }
}
