/* Trackset website. Colours follow the app: purple #7C3AED, ink #221039, lavender #F3EDFE. */
:root {
  --purple: #7c3aed;
  --purple-deep: #4a238e;
  --purple-soft: #ede4fe;
  --ink: #221039;
  --text: #2d2440;
  --muted: #5f5675;
  --line: #e7e2f1;
  --card: #ffffff;
  --page: #fbfaff;
  --green: #18a058;
  --hero: linear-gradient(150deg, #f2eafd 0%, #e8e9fa 48%, #d9eafe 100%);
  --radius: 24px;
  --shadow: 0 1px 2px rgba(34, 16, 57, 0.04), 0 12px 32px rgba(74, 35, 142, 0.08);
  --max: 1120px;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { display: block; max-width: 100%; height: auto; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-deep); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 20; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(231, 226, 241, 0.8);
}
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--purple-deep); font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.header-cta { padding: 10px 18px; border-radius: 999px; background: var(--purple); color: #fff; font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.header-cta:hover { background: var(--purple-deep); color: #fff; }
@media (max-width: 820px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* Buttons */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-button {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 10px 20px 10px 16px;
  border-radius: 14px; background: #110a1c; color: #fff; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store-button:hover { background: #2a1d40; color: #fff; transform: translateY(-1px); }
.store-button svg { flex: none; width: 26px; height: 26px; fill: currentColor; }
.store-button small { display: block; font-size: 0.72rem; line-height: 1.1; opacity: 0.8; }
.store-button strong { display: block; font-size: 1.12rem; line-height: 1.2; }

/* Hero */
.hero { background: var(--hero); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 40px; padding: 72px 0 0; }
.eyebrow { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(124, 58, 237, 0.1); color: var(--purple-deep); font-size: 0.9rem; font-weight: 700; }
.hero-copy { padding-bottom: 72px; }
.hero h1 .accent { color: var(--purple); }
.hero .lead { max-width: 34rem; margin: 22px 0 30px; color: var(--muted); font-size: 1.18rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.hero-visual { position: relative; align-self: end; height: 600px; }
.hero-visual img { position: absolute; bottom: -120px; width: 300px; filter: drop-shadow(0 30px 40px rgba(74, 35, 142, 0.22)); }
.hero-visual .phone-front { left: 50%; transform: translateX(-62%); z-index: 2; }
.hero-visual .phone-back { left: 50%; bottom: -60px; transform: translateX(-4%) rotate(5deg); width: 270px; opacity: 0.96; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 8px; padding-top: 48px; text-align: left; }
  .hero-copy { padding-bottom: 16px; }
  .hero-visual { height: 470px; }
  .hero-visual img { width: 250px; bottom: -110px; }
  .hero-visual .phone-back { width: 220px; bottom: -70px; }
}

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 46rem; margin: 0 auto 48px; text-align: center; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }
.kicker { display: block; margin-bottom: 10px; color: var(--purple); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.categories { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.categories li { display: grid; justify-items: center; gap: 10px; padding: 20px 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); font-size: 0.95rem; font-weight: 700; text-align: center; }
.categories img { width: 56px; height: 56px; }
@media (max-width: 820px) { .categories { grid-template-columns: repeat(3, 1fr); } }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.feature img { width: 56px; height: 56px; margin-bottom: 18px; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.badge-pro { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--purple-soft); color: var(--purple-deep); font-size: 0.72rem; font-weight: 800; vertical-align: 3px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* Showcase rows */
.showcase { display: grid; gap: 40px; }
.showcase-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding: 48px; border-radius: 32px; background: var(--hero); }
.showcase-row:nth-child(even) .showcase-media { order: -1; }
.showcase-media { display: flex; justify-content: center; }
.showcase-media img { width: 280px; filter: drop-shadow(0 24px 36px rgba(74, 35, 142, 0.2)); }
.showcase-copy h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; }
.showcase-copy > p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.checklist { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 30px; color: var(--text); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 860px) {
  .showcase-row { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
  .showcase-row:nth-child(even) .showcase-media { order: 0; }
  .showcase-media img { width: 240px; }
}

/* Advantages */
.advantages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.advantage { display: flex; gap: 18px; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.advantage img { flex: none; width: 52px; height: 52px; }
.advantage p { margin-top: 8px; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 760px) { .advantages { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.plan { padding: 32px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.plan-pro { background: linear-gradient(160deg, #4a238e 0%, #7c3aed 100%); border: 0; color: #f4efff; }
.plan-pro h3, .plan-pro .plan-price { color: #fff; }
.plan-head { display: flex; align-items: center; gap: 14px; }
.plan-head img { width: 52px; height: 52px; }
.plan-price { margin-top: 18px; color: var(--ink); font-size: 1.6rem; font-weight: 800; }
.plan-note { margin-top: 4px; color: var(--muted); font-size: 0.95rem; }
.plan-pro .plan-note { color: #ddd0fb; }
.plan .checklist li { color: inherit; }
.plan-pro .checklist li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%237c3aed' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E"); }
.fine-print { max-width: 900px; margin: 20px auto 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.faq summary { position: relative; padding: 20px 56px 20px 24px; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--purple); border-bottom: 2.5px solid var(--purple); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > p { padding: 0 24px 22px; color: var(--muted); }

/* CTA */
.cta-band { padding: 64px 48px; border-radius: 36px; background: linear-gradient(150deg, #4a238e 0%, #7c3aed 60%, #8e5cf5 100%); color: #f4efff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 36rem; margin: 14px auto 30px; color: #e3d8fd; font-size: 1.1rem; }
.cta-band .store-buttons { justify-content: center; }
.cta-band .store-button { background: #fff; color: var(--ink); }
.cta-band .store-button:hover { background: #f1eaff; color: var(--ink); }

/* Footer */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--purple); }
.footer-note { margin-top: 18px; font-size: 0.85rem; }

/* Legal and support pages */
.page-hero { padding: 64px 0 40px; background: var(--hero); }
.page-hero p { margin-top: 12px; color: var(--muted); }
.breadcrumb { margin: 0 0 18px; padding: 0; list-style: none; display: flex; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #b3a9c9; }
.breadcrumb a { color: var(--muted); }
.prose { max-width: 760px; padding: 48px 0 96px; }
.prose h2 { margin: 44px 0 12px; font-size: 1.45rem; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.toc { margin: 0 0 8px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.toc strong { color: var(--ink); }
.toc ol { margin: 10px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.lang-note { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact-card { margin: 24px 0; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
