/* Focus Flow — Dark Magic Studio */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-sunk: #f1f2f5;
  --surface: #ffffff;
  --border: #e6e8ee;
  --border-strong: #d8dbe4;
  --text: #12141a;
  --text-muted: #5b6272;
  --text-faint: #868da0;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef0ff;
  --accent-ring: rgba(79, 70, 229, .28);
  --teal: #0f9488;
  --teal-soft: #e6f6f4;
  --amber: #b45309;
  --shadow-sm: 0 1px 2px rgba(16, 20, 32, .05);
  --shadow-md: 0 4px 16px rgba(16, 20, 32, .06), 0 1px 3px rgba(16, 20, 32, .04);
  --shadow-lg: 0 18px 48px rgba(16, 20, 32, .10), 0 2px 8px rgba(16, 20, 32, .04);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --maxw: 1160px;
  --nav-h: 68px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 660;
}
p { margin: 0; }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 640;
  letter-spacing: -0.02em;
  font-size: 16.5px;
  flex: none;
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, #6366f1, #4f46e5 55%, #3730a3);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(79, 70, 229, .32);
  flex: none;
}
.brand__mark svg { width: 17px; height: 17px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
}

.nav__links a {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 520;
  color: var(--text-muted);
  transition: color .16s ease, background-color .16s ease;
}
.nav__links a:hover { color: var(--text); background: var(--bg-sunk); }

.nav__spacer { flex: 1; }

.nav__toggle {
  display: none;
  flex: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle svg { width: 18px; height: 18px; }

.nav__mobile {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: var(--nav-h);
  z-index: 99;
}
.nav__mobile.is-open { display: block; }
.nav__mobile ul {
  list-style: none;
  margin: 0;
  padding: 8px 24px 16px;
  display: grid;
  gap: 2px;
}
.nav__mobile a {
  display: block;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  font-weight: 520;
  color: var(--text-muted);
}
.nav__mobile a:hover { background: var(--bg-sunk); color: var(--text); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 560;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .12s ease, box-shadow .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(79, 70, 229, .35), 0 6px 18px rgba(79, 70, 229, .22);
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { background: var(--bg-soft); }

.btn--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}
.btn--quiet:hover { background: var(--bg-sunk); color: var(--text); }

.btn--lg { padding: 13px 24px; font-size: 15.5px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn[disabled]:active { transform: none; }

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

.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--border); }

.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title { font-size: clamp(28px, 3.4vw, 40px); }
.section__sub {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 17px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 92px;
  background:
    radial-gradient(900px 420px at 82% -12%, rgba(99, 102, 241, .14), transparent 62%),
    radial-gradient(700px 380px at 4% 0%, rgba(15, 148, 136, .09), transparent 58%),
    var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 56px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .8);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 520;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero__badge svg { width: 14px; height: 14px; color: var(--accent); }

.hero__title {
  font-size: clamp(38px, 5.4vw, 60px);
  letter-spacing: -0.035em;
  font-weight: 690;
}
.hero__title span { display: block; color: var(--text-muted); }

.hero__text {
  margin-top: 20px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
}

.hero__cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14px;
  color: var(--text-faint);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 15px; height: 15px; color: var(--teal); }

/* Hero product visual */

.shot {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 16px;
}
.shot::before {
  content: "";
  position: absolute;
  inset: -26px -18px 30px;
  background: linear-gradient(150deg, rgba(99, 102, 241, .16), rgba(15, 148, 136, .10));
  filter: blur(38px);
  z-index: -1;
  border-radius: 40px;
}

.shot__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px 14px;
}
.shot__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.shot__title {
  margin-left: 8px;
  font-size: 12.5px;
  color: var(--text-faint);
  font-weight: 520;
}

.shot__body {
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #fbfbfd, #f4f5f8);
  border: 1px solid var(--border);
  padding: 26px 22px 22px;
  text-align: center;
}

.shot__mode {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-sunk);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 22px;
}
.shot__mode span {
  font-size: 12px;
  font-weight: 540;
  color: var(--text-faint);
  padding: 5px 12px;
  border-radius: 999px;
}
.shot__mode span.on {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.ring { width: 176px; height: 176px; margin: 0 auto; }
.ring__track { fill: none; stroke: #e4e7ef; stroke-width: 9; }
.ring__fill {
  fill: none;
  stroke: url(#ffgrad);
  stroke-width: 9;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.ring__time {
  font-family: var(--font);
  font-size: 33px;
  font-weight: 640;
  letter-spacing: -0.03em;
  fill: var(--text);
}
.ring__label {
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 560;
  letter-spacing: .12em;
  fill: var(--text-faint);
}

.shot__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.shot__stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 8px;
}
.shot__stat b { display: block; font-size: 17px; font-weight: 640; letter-spacing: -0.02em; }
.shot__stat i {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* ---------- Timer app ---------- */

.app {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 24px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.card__title { font-size: 16.5px; font-weight: 620; }
.card__body { padding: 24px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 560;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(79, 70, 229, .16);
}
.pill--break { background: var(--teal-soft); color: var(--teal); border-color: rgba(15, 148, 136, .18); }

.timer { text-align: center; padding: 8px 0 4px; }

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-sunk);
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 545;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-selected="true"],
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.timer__dial { position: relative; width: 268px; max-width: 100%; margin: 30px auto 8px; }
.timer__dial svg { width: 100%; height: auto; }
.timer__readout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.timer__value {
  font-size: clamp(44px, 11vw, 56px);
  font-weight: 660;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.timer__phase {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.timer__status {
  min-height: 24px;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 540;
  color: var(--text-muted);
}
.timer__status.is-done { color: var(--accent); }

.timer__presets { margin-top: 20px; }
.timer__presets-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.timer__controls {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.timer__next {
  margin-top: 18px;
  display: none;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.timer__next.is-visible { display: flex; }

/* ---------- Today / stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.stat__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.stat__icon svg { width: 17px; height: 17px; }
.stat__icon--teal { background: var(--teal-soft); color: var(--teal); }
.stat__label { font-size: 13.5px; color: var(--text-muted); font-weight: 520; }
.stat__value {
  font-size: 30px;
  font-weight: 660;
  letter-spacing: -0.03em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.stat__value small { font-size: 16px; font-weight: 560; color: var(--text-muted); margin-left: 2px; }

/* Goal */

.goal { margin-top: 16px; }
.goal__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.goal__title { font-size: 16px; font-weight: 620; }
.goal__target { font-size: 13.5px; color: var(--text-muted); }
.goal__value {
  font-size: 14.5px;
  font-weight: 580;
  font-variant-numeric: tabular-nums;
}
.bar {
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  background: var(--bg-sunk);
  border: 1px solid var(--border);
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #4f46e5);
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- History ---------- */

.history { display: grid; gap: 0; }

.history__empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}
.history__empty svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  color: var(--border-strong);
}

.hrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.hrow:last-child { border-bottom: 0; }
.hrow__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--accent-soft);
  color: var(--accent);
}
.hrow__icon svg { width: 17px; height: 17px; }
.hrow__icon--break { background: var(--teal-soft); color: var(--teal); }
.hrow__main { min-width: 0; flex: 1; }
.hrow__name { font-size: 14.5px; font-weight: 570; }
.hrow__meta { font-size: 13px; color: var(--text-faint); }
.hrow__time {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex: none;
}

/* ---------- Insights ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.metric__label {
  font-size: 13px;
  font-weight: 540;
  color: var(--text-muted);
}
.metric__value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 660;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.metric__value small { font-size: 15px; font-weight: 560; color: var(--text-muted); margin-left: 2px; }
.metric__note { margin-top: 6px; font-size: 12.5px; color: var(--text-faint); }

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.feature:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #eef0ff, #e6e9ff);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature__icon svg { width: 19px; height: 19px; }
.feature h3 { font-size: 16.5px; font-weight: 620; }
.feature p { margin-top: 8px; color: var(--text-muted); font-size: 14.5px; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.step__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 620;
  margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; }
.step p { margin-top: 8px; color: var(--text-muted); font-size: 14.5px; }

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 880px;
  margin: 0 auto;
  align-items: start;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan--pro {
  border-color: rgba(79, 70, 229, .35);
  box-shadow: var(--shadow-lg);
  position: relative;
  background:
    linear-gradient(180deg, rgba(238, 240, 255, .7), rgba(255, 255, 255, 0) 180px),
    var(--surface);
}
.plan__flag {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 11.5px;
  font-weight: 620;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 70, 229, .2);
  padding: 4px 10px;
  border-radius: 999px;
}
.plan__name { font-size: 15px; font-weight: 620; letter-spacing: .01em; }
.plan__desc { margin-top: 6px; font-size: 14px; color: var(--text-muted); }
.plan__price {
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.plan__amount { font-size: 42px; font-weight: 680; letter-spacing: -0.035em; }
.plan__period { font-size: 14.5px; color: var(--text-muted); }
.plan__alt { margin-top: 6px; font-size: 13.5px; color: var(--text-faint); min-height: 20px; }

.plan ul {
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
  display: grid;
  align-content: start; /* keep rows tight when one plan has fewer items */
  gap: 11px;
  flex: 1;
}
.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-muted);
}
.plan li svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--accent); }
.plan--free li svg { color: var(--teal); }

.pricing__note {
  margin-top: 26px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-faint);
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px;
  align-items: start;
}
.about p + p { margin-top: 16px; }
.about p { color: var(--text-muted); font-size: 16.5px; }

.about__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.about__row + .about__row { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.about__k {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.about__v { margin-top: 4px; font-size: 15.5px; font-weight: 560; }
.about__v a { color: var(--accent); }
.about__v a:hover { text-decoration: underline; }

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

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 570;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--text-faint);
  transition: transform .18s ease;
}
.faq details[open] summary svg { transform: rotate(45deg); }
.faq p { padding: 0 22px 20px; color: var(--text-muted); font-size: 15px; }

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

.band {
  border-radius: var(--r-xl);
  padding: 52px 44px;
  text-align: center;
  background: linear-gradient(140deg, #4f46e5, #4338ca 55%, #312e81);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.band h2 { font-size: clamp(26px, 3vw, 34px); }
.band p { margin-top: 12px; color: rgba(255, 255, 255, .78); font-size: 17px; }
.band .btn {
  margin-top: 26px;
  background: #fff;
  color: var(--accent);
  box-shadow: none;
}
.band .btn:hover { background: #f2f2ff; }

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

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 56px 0 34px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 36px;
}
.footer__about { max-width: 320px; }
.footer__about p { margin-top: 14px; color: var(--text-muted); font-size: 14.5px; }
.footer h4 {
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { font-size: 14.5px; color: var(--text-muted); }
.footer li a:hover { color: var(--text); }

.footer__bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-faint);
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 28, .48);
  backdrop-filter: blur(3px);
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  animation: rise .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.modal__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.modal__icon svg { width: 21px; height: 21px; }
.modal h3 { font-size: 20px; }
.modal p { margin-top: 12px; color: var(--text-muted); font-size: 15px; }
.modal p a { color: var(--accent); font-weight: 540; }
.modal p a:hover { text-decoration: underline; }
.modal__actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 10px; }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-faint);
}
.modal__close:hover { background: var(--bg-sunk); color: var(--text); }
.modal__close svg { width: 16px; height: 16px; }

body.is-locked { overflow: hidden; }

/* ---------- Legal pages ---------- */

.legal { padding: 64px 0 88px; }
.legal__inner { max-width: 760px; margin: 0 auto; }
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 520;
  margin-bottom: 26px;
}
.legal__back:hover { color: var(--text); }
.legal__back svg { width: 15px; height: 15px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); }
.legal__updated { margin-top: 12px; color: var(--text-faint); font-size: 14px; }
.legal h2 { font-size: 20px; margin-top: 40px; }
.legal p { margin-top: 14px; color: var(--text-muted); font-size: 16px; }
.legal ul { margin-top: 14px; padding-left: 20px; color: var(--text-muted); font-size: 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__text { max-width: none; }
  .app { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .section { padding: 68px 0; }
  .hero { padding: 60px 0 68px; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; max-width: none; }
  .band { padding: 40px 24px; }
}

.nav__cta-short { display: none; }

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .nav__inner { gap: 12px; }
  .nav__cta-full { display: none; }
  .nav__cta-short { display: inline; }
  .stats { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__body { padding: 20px 18px; }
  .card__head { padding: 18px; }
  .plan { padding: 26px 22px; }
  .timer__dial { width: 226px; }
  .segmented button { padding: 8px 13px; font-size: 13px; }
  .hero__meta { gap: 8px 16px; font-size: 13px; }
}

@media (max-width: 480px) {
  /* Pill rows wrap badly once they no longer fit on one line, so switch the
     segmented controls to an even grid that keeps every option the same size. */
  .segmented {
    display: grid;
    width: 100%;
    gap: 6px;
    border-radius: 14px;
    padding: 6px;
  }
  .segmented button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 4px;
    font-size: 12.5px;
    line-height: 1.2;
    border-radius: 10px;
  }
  .timer .segmented[role="tablist"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #presetGroup { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .timer__controls { gap: 8px; }
  .timer__controls .btn { flex: 1 1 0; padding: 12px 8px; }
  .timer__controls .btn--quiet { flex: 0 0 auto; }

  .timer__next .btn { flex: 1 1 100%; }

  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1 1 100%; }
}

@media (max-width: 400px) {
  .metrics { grid-template-columns: 1fr; }
  .btn { padding: 10px 14px; }
  .timer__dial { width: 200px; }
  .brand { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Stacked stats inside the focus workspace column */
.stats--stack { grid-template-columns: 1fr; gap: 14px; }
.stats--stack .stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.stats--stack .stat__icon { margin-bottom: 0; }
.stats--stack .stat__value { font-size: 24px; margin-top: 0; }
.stats--stack .stat__main { min-width: 0; }
.side { display: grid; gap: 20px; }

@media (max-width: 1080px) {
  .stats--stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats--stack .stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; }
}
@media (max-width: 620px) {
  .stats--stack { grid-template-columns: 1fr; }
  .stats--stack .stat { flex-direction: row; align-items: center; }
}

/* ---------- Pro showcase ---------- */

.pro-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 56px 48px;
  color: #fff;
  background:
    radial-gradient(760px 340px at 88% -10%, rgba(129, 140, 248, .34), transparent 60%),
    radial-gradient(560px 300px at 2% 108%, rgba(20, 184, 166, .22), transparent 60%),
    linear-gradient(155deg, #1b1c31, #171827 52%, #101120);
  box-shadow: 0 26px 70px rgba(16, 20, 40, .28);
}

.pro-panel__head { max-width: 620px; }
.pro-panel .eyebrow { color: #a5b4fc; }
.pro-panel h2 {
  font-size: clamp(27px, 3.2vw, 38px);
  color: #fff;
}
.pro-panel__sub {
  margin-top: 14px;
  font-size: 17px;
  color: rgba(255, 255, 255, .68);
}

.pro-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pro-card {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.pro-card:hover {
  background: rgba(255, 255, 255, .085);
  border-color: rgba(255, 255, 255, .18);
  transform: translateY(-2px);
}
.pro-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(129, 140, 248, .18);
  color: #c7d2fe;
  margin-bottom: 15px;
}
.pro-card__icon svg { width: 18px; height: 18px; }
.pro-card h3 { font-size: 15.5px; font-weight: 620; color: #fff; }
.pro-card p {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .62);
}

.pro-panel__foot {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.pro-panel__price { font-size: 15.5px; color: rgba(255, 255, 255, .72); }
.pro-panel__price b { color: #fff; font-weight: 620; }
.pro-panel__foot .btn--primary {
  background: #fff;
  color: #1b1c31;
  box-shadow: none;
}
.pro-panel__foot .btn--primary:hover { background: #ececff; }

/* ---------- Comparison table ---------- */

.compare { margin-top: 56px; }
.compare__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.compare__title { font-size: 20px; font-weight: 620; }
.compare__note { font-size: 13.5px; color: var(--text-faint); }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.compare table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.compare th, .compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare thead th {
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--bg-soft);
  position: sticky;
  top: 0;
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { font-weight: 540; color: var(--text); }
.compare td { color: var(--text-muted); width: 26%; }
.compare .yes { color: var(--teal); font-weight: 560; }
.compare .no { color: var(--text-faint); }
.compare td svg { width: 17px; height: 17px; display: inline-block; vertical-align: -3px; }
.compare__pro { background: rgba(238, 240, 255, .5); }

@media (max-width: 1080px) {
  .pro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .pro-panel { padding: 40px 26px; border-radius: 24px; }
}
@media (max-width: 620px) {
  /* One card per row would make this section very tall, so lay each card out as
     a compact row with the icon beside the text instead of above it. */
  .pro-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 30px; }
  .pro-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas: "icon title" "icon text";
    column-gap: 13px;
    row-gap: 3px;
    align-items: start;
    padding: 16px;
  }
  .pro-card__icon { grid-area: icon; width: 34px; height: 34px; margin-bottom: 0; }
  .pro-card h3 { grid-area: title; font-size: 15px; }
  .pro-card p { grid-area: text; margin-top: 0; font-size: 13.5px; }

  .pro-panel { padding: 34px 20px; }
  .pro-panel__sub { font-size: 16px; }
  .pro-panel__foot { margin-top: 28px; }
  .pro-panel__foot .btn { width: 100%; }

  .compare { margin-top: 40px; }

  /* A side-scrolling table hides the Pro column, which is the one that matters
     here, so each row becomes a labelled block instead. */
  .table-scroll { overflow-x: visible; }
  .compare table { min-width: 0; }
  .compare table, .compare tbody, .compare tr, .compare tbody th, .compare tbody td { display: block; }
  .compare thead { display: none; }
  .compare tbody tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th {
    padding: 0 0 9px;
    border: 0;
    font-size: 15px;
    font-weight: 600;
  }
  .compare tbody td {
    position: relative;
    width: auto;
    padding: 3px 0 3px 52px;
    border: 0;
    font-size: 14px;
    background: transparent;
  }
  .compare tbody td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 4px;
    width: 44px;
    font-size: 11.5px;
    font-weight: 620;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-faint);
  }
  .compare tbody td.compare__pro::before { color: var(--accent); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
