:root {
  --brand: #673ab7;
  --brand-strong: #512da8;
  --brand-soft: #ede7f6;
  --accent: #00a37a;
  --bg: #ffffff;
  --bg-alt: #f7f5fb;
  --surface: #ffffff;
  --text: #1d1b22;
  --text-muted: #5d5868;
  --border: #e3dfeb;
  --shadow: 0 1px 2px rgb(29 27 34 / 6%), 0 8px 24px rgb(29 27 34 / 8%);
  --radius: 14px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #b39ddb;
    --brand-strong: #d1c4e9;
    --brand-soft: #2a2238;
    --accent: #4fd1a5;
    --bg: #131117;
    --bg-alt: #1a1720;
    --surface: #211d29;
    --text: #ece9f1;
    --text-muted: #a9a3b5;
    --border: #322c3d;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-strong);
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

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

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.site-nav a,
.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.lang-switch a:hover {
  color: var(--text);
}

.lang-switch {
  display: flex;
  gap: 4px;
  font-size: 0.85rem;
}

.lang-switch a,
.lang-switch span {
  padding: 3px 8px;
  border-radius: 6px;
}

.lang-switch span {
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 600;
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .lang-switch {
    margin-left: auto;
  }
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: #673ab7;
  color: #fff;
}

.btn-primary:hover {
  background: #512da8;
  color: #fff;
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--text);
}

.play-badge img {
  display: block;
  height: 72px;
  width: auto;
  margin: -10px -8px;
}

/* Hero */

.hero {
  padding: 72px 0 80px;
  background:
    radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    var(--bg);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 34em;
  margin: 0;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero {
    padding: 48px 0 56px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Phone mockup */

.phone {
  width: min(340px, 100%);
  margin: 0 auto;
  padding: 12px;
  border-radius: 38px;
  background: #1d1b22;
  box-shadow: var(--shadow), 0 30px 60px -20px rgb(103 58 183 / 45%);
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #fafafa;
  color: #1d1b22;
  font-size: 0.9rem;
}

.phone-bar {
  background: #673ab7;
  color: #fff;
  padding: 26px 18px 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-bar small {
  font-weight: 400;
  opacity: 0.8;
}

.track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #ece9f1;
  background: #fff;
}

.track-logo {
  width: 28px;
  height: 28px;
  flex: none;
  object-fit: contain;
}

.track-body {
  flex: 1;
  min-width: 0;
}

.track-key {
  display: block;
  font-size: 0.75rem;
  color: #6b6575;
}

.track-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.track-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.track.running {
  background: #f3eefb;
}

.track.running .track-time {
  color: #4527a0;
}

.track-btn {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ede7f6;
  color: #673ab7;
}

.track.running .track-btn {
  background: #673ab7;
  color: #fff;
}

.track-btn svg {
  width: 14px;
  height: 14px;
}

.phone-total {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  color: #5d5868;
  font-size: 0.85rem;
}

.phone-total strong {
  color: #1d1b22;
  font-variant-numeric: tabular-nums;
}

/* Sections */

.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 44em;
  margin-bottom: 44px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.08rem;
}

@media (max-width: 760px) {
  .section {
    padding: 60px 0;
  }
}

/* Integrations */

.integrations {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.integration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
}

.integration img,
.integration .integration-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.integration .integration-icon {
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

.integration small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .integrations {
    grid-template-columns: repeat(2, 1fr);
  }

  .integration:last-child {
    grid-column: 1 / -1;
  }
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature p {
  margin: 0;
  color: var(--text-muted);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--brand-soft);
  color: var(--brand);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding-top: 56px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #673ab7;
  color: #fff;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Plans */

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
}

.plan {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.plan-premium {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow);
}

.plan h3 {
  font-size: 1.4rem;
}

.plan > p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding: 6px 0 6px 30px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* FAQ */

.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  padding: 16px 32px 16px 0;
  font-weight: 600;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

/* CTA */

.cta {
  text-align: center;
}

.cta .lead {
  margin: 0 auto;
}

.cta .actions {
  justify-content: center;
}

/* Legal pages */

.legal {
  padding: 56px 0 80px;
}

.legal .container {
  max-width: 820px;
}

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
}

.legal h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
}

.legal h3 {
  margin-top: 1.6rem;
}

.legal p,
.legal li {
  color: var(--text);
}

.legal .meta {
  color: var(--text-muted);
}

.legal address {
  font-style: normal;
}

.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin: 1.5rem 0 1rem;
}

.toc ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.table-wrap {
  overflow-x: auto;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.legal th {
  background: var(--bg-alt);
}

/* Footer */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

.site-footer .fineprint {
  margin: 20px 0 0;
  font-size: 0.8rem;
}
