/* Coach Video Analysis — site styles */

:root {
  --indigo: #4b4fd8;
  --indigo-dark: #3538ad;
  --indigo-deep: #23256e;
  --navy: #14163f;
  --ink: #191c33;
  --ink-soft: #4c5169;
  --bg: #f6f7fc;
  --card: #ffffff;
  --line: #e0e3f0;
  --gold: #f0b429;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 22, 63, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  min-width: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.site-header nav a:hover {
  color: var(--indigo);
}

@media (max-width: 720px) {
  .site-header nav a.nav-link {
    display: none;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #ffc21c, #f59e0b);
  color: #1a1c3a;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.40);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.55);
  filter: brightness(1.05);
}

.btn-secondary {
  background: #fff;
  color: var(--indigo-dark);
  border: 2px solid var(--indigo);
}

.btn-secondary:hover {
  background: #eef0ff;
}

.btn small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.8;
  line-height: 1.1;
  text-align: left;
}

.btn .store-label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.btn svg {
  flex: none;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 15px;
  border-radius: 11px;
}

/* Hero */

.hero {
  background: linear-gradient(160deg, #5a5ee8 0%, var(--indigo) 45%, var(--indigo-deep) 100%);
  color: #fff;
  padding: 64px 0 0;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}

.hero p.lead {
  font-size: clamp(17px, 2.2vw, 21px);
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.94);
  max-width: 34em;
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero .platforms {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 46px;
  color: rgba(255, 255, 255, 0.92);
}

.hero .platforms .dot {
  color: var(--gold);
}

.hero-shot {
  align-self: end;
  display: flex;
  justify-content: center;
}

.hero-shot img {
  width: min(320px, 80%);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.28);
  display: block;
}

@media (max-width: 820px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-shot {
    order: 2;
  }
}

/* Trust strip */

.trust {
  background: var(--navy);
  color: #d8dbf5;
  font-size: 15px;
}

.trust .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-weight: 600;
}

/* Sections */

section {
  padding: 64px 0;
}

section.alt {
  background: #fff;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 0 0 10px;
  letter-spacing: -0.4px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0;
}

/* Screenshots */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(240px, 62vw);
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x mandatory;
}

.shots figure {
  margin: 0;
  scroll-snap-align: center;
}

.shots img {
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: block;
}

.shots figcaption {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* Wide (Mac) screenshot band */

.device-band {
  margin-top: 42px;
  text-align: center;
}

.device-band img {
  max-width: 900px;
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.device-band p {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 12px;
}

/* Feature / step cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 4px 14px rgba(20, 22, 63, 0.05);
}

.card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5a5ee8, var(--indigo-dark));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* Guides grid */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.guide-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(20, 22, 63, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--indigo);
  box-shadow: var(--shadow);
}

.guide-card h3 {
  margin: 0 0 6px;
  font-size: 17.5px;
  color: var(--indigo-dark);
}

.guide-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.guide-card .more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--indigo);
}

/* FAQ */

.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 22px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16.5px;
  padding: 14px 0;
  list-style: none;
  position: relative;
  padding-right: 34px;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--indigo);
  font-weight: 600;
}

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

.faq .answer {
  padding: 0 0 18px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.faq .answer a {
  font-weight: 700;
}

/* Big CTA */

.big-cta {
  background: linear-gradient(150deg, #5a5ee8 0%, var(--indigo-deep) 100%);
  color: #fff;
  text-align: center;
  border-radius: 24px;
  padding: 54px 28px;
  box-shadow: var(--shadow);
}

.big-cta h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 0 0 12px;
}

.big-cta p {
  margin: 0 auto 26px;
  max-width: 36em;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.94);
}

.big-cta .cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #bdc2e8;
  padding: 44px 0 30px;
  font-size: 14.5px;
  margin-top: 64px;
}

.site-footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 28px;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: #bdc2e8;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
  font-size: 13px;
  color: #8f96cf;
}

/* Article (guide) pages */

.article-hero {
  background: linear-gradient(160deg, #5a5ee8 0%, var(--indigo-deep) 100%);
  color: #fff;
  padding: 46px 0 42px;
}

.article-hero .crumbs {
  font-size: 14px;
  margin-bottom: 14px;
}

.article-hero .crumbs a {
  color: rgba(255, 255, 255, 0.85);
}

.article-hero h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.4px;
  max-width: 20em;
}

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 20px 20px;
}

.article h2 {
  font-size: 26px;
  margin: 40px 0 12px;
  letter-spacing: -0.3px;
}

.article h3 {
  font-size: 20px;
  margin: 28px 0 8px;
}

.article p,
.article li {
  font-size: 17px;
  color: #2b2f4a;
}

.article .lead-answer {
  background: #eceeff;
  border-left: 4px solid var(--indigo);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-size: 17.5px;
  margin: 0 0 8px;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 16px;
}

.article th,
.article td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}

.article th {
  background: #eef0fb;
}

.article figure {
  margin: 24px 0;
}

.article figure img {
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: block;
}

.article figcaption {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.app-bridge {
  background: var(--card);
  border: 2px solid var(--indigo);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 40px 0;
}

.app-bridge h2 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-bridge h2 img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.related {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 30px;
}

.related h2 {
  font-size: 22px;
}

.inline-cta {
  text-align: center;
  margin: 36px 0;
}
