/* Tokens match ios/RallyKit/Sources/DesignSystem/Theme.swift and the website wireframes. */
:root {
  --brand: #1F6B4A;
  --brand-tint: #E3EFE8;
  --on-brand-muted: #CFE3D8;
  --ball: #D7E34A;
  --background: #F3F5F1;
  --surface: #FFFFFF;
  --text: #16201B;
  --text-secondary: #5E6B63;
  --border: #DDE3DF;
  --tag-neutral: #EEF1EE;
  --warn-text: #9A4F12;
  --warn-tint: #F8EBDF;
  --warn-border: #F2C9A8;
  --fault: #E5484D;
  --dark: #16201B;
  --dark-muted: #C9D3CD;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: Figtree, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: var(--brand); }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
.display { font-family: var(--display); font-weight: 700; line-height: 1.1; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.muted { color: var(--text-secondary); }
h2.display { font-size: 44px; }

.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 18px; padding: 16px 26px; border-radius: 14px; text-align: center; }
.btn-ball { background: var(--ball); color: var(--text); }
.btn-ball:hover { background: #CAD63F; color: var(--text); }
.btn-outline { color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, 0.5); }
.btn-outline:hover { color: #FFFFFF; border-color: #FFFFFF; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-family: var(--display); font-weight: 700; font-size: 26px; }

/* Hero */
.hero { background: var(--brand); color: #FFFFFF; }
.hero .container { padding-top: 20px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 56px; }
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-header .logo { color: #FFFFFF; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { color: #FFFFFF; text-decoration: none; font-size: 16px; font-weight: 500; padding: 12px 14px; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-cta { background: var(--ball); color: var(--text); font-weight: 600; padding: 12px 20px; border-radius: 999px; margin-left: 8px; }
.site-nav .nav-cta:hover { text-decoration: none; background: #CAD63F; }
.hero-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 56px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-copy .eyebrow { color: var(--ball); }
.hero h1 { font-size: 76px; line-height: 1; letter-spacing: -0.01em; }
.hero-lead { font-size: 22px; line-height: 1.45; color: var(--brand-tint); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-note { font-size: 15px; color: var(--on-brand-muted); }
.shot-slot { flex: 0 0 auto; margin: 0 auto; }

/* Sections */
.section { padding-block: 72px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.cards { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; }
.card { flex: 1 1 280px; background: var(--surface); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 20px; font-weight: 600; }
.card p { font-size: 16px; line-height: 1.5; color: var(--text-secondary); }
.problem { padding-top: 96px; padding-bottom: 48px; }
.problem h2 { max-width: 760px; }

.steps .card { flex-basis: 240px; padding: 24px; gap: 12px; }
.steps .card > div { display: flex; flex-direction: column; gap: 8px; }
.step-num { width: 40px; height: 40px; border-radius: 20px; background: var(--brand); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }

.showcase { padding-block: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.showcase.reverse { flex-wrap: wrap-reverse; }
.showcase-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.showcase-copy p { font-size: 18px; line-height: 1.5; color: var(--text-secondary); }
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex-shrink: 0; margin-top: 2px; }

.features { padding-bottom: 96px; }
.features .card { flex-basis: 260px; padding: 24px; }
.features .card h3 { font-size: 18px; }
.features .card p { font-size: 15px; }

.no-hardware { background: var(--dark); color: #FFFFFF; }
.no-hardware .container { padding-block: 88px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.no-hardware .copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.no-hardware p { font-size: 18px; line-height: 1.5; color: var(--dark-muted); max-width: 720px; }

.faq { max-width: 820px; padding-block: 96px; gap: 32px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border-radius: 14px; padding: 20px 24px; }
.faq summary { font-size: 18px; font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--text-secondary); }

.beta { background: var(--brand); color: #FFFFFF; }
.beta .container { padding-block: 96px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.beta h2 { font-size: 52px; line-height: 1.05; }
.beta p { font-size: 20px; line-height: 1.5; color: var(--brand-tint); max-width: 600px; }
.beta .btn { margin-top: 8px; padding-inline: 30px; }
.beta small { font-size: 14px; color: var(--on-brand-muted); }

.site-footer { padding-block: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; color: var(--text-secondary); }
.site-footer .copyright { display: flex; align-items: center; gap: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-footer nav a { padding: 12px; color: var(--text-secondary); }

/* App shots: simplified copies of the iPhone wireframes' screens */
.phone { width: 300px; height: 620px; padding: 10px; border-radius: 46px; background: var(--dark); color: var(--text); box-shadow: 0 24px 60px rgba(22, 32, 27, 0.28); }
.screen { position: relative; height: 100%; border-radius: 36px; background: var(--background); overflow: hidden; padding: 40px 14px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 11px; }
.s-title { font-family: var(--display); font-size: 24px; font-weight: 700; }
.s-caps { font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); }
.s-card { background: var(--surface); border-radius: 12px; padding: 11px; display: flex; flex-direction: column; gap: 7px; }
.s-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.s-small { font-size: 10px; color: var(--text-secondary); }
.s-strong { font-size: 11.5px; font-weight: 600; }
.s-section { font-size: 13px; font-weight: 600; }
.s-bar { height: 7px; border-radius: 4px; background: var(--tag-neutral); overflow: hidden; }
.s-bar span { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
.s-fix { flex-direction: row; align-items: center; gap: 10px; padding: 10px; }
.s-thumb { width: 58px; height: 70px; border-radius: 9px; background: #26302B; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.s-clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.s-clip { background: var(--surface); border-radius: 9px; padding: 4px; border: 1.5px solid var(--surface); display: flex; flex-direction: column; gap: 3px; font-size: 10px; font-weight: 600; }
.s-clip.bad { border-color: var(--warn-border); }
.s-clip-video { position: relative; height: 50px; border-radius: 7px; background: #26302B; display: flex; align-items: center; justify-content: center; }
.s-clip.bad .s-clip-video::after { content: ""; position: absolute; top: 18px; left: 52%; width: 12px; height: 12px; border-radius: 6px; border: 2px solid var(--fault); box-sizing: border-box; }
.s-tag { align-self: flex-start; font-size: 9px; font-weight: 600; padding: 2px 5px; border-radius: 999px; white-space: nowrap; color: var(--brand); background: var(--brand-tint); }
.s-clip.bad .s-tag { color: var(--warn-text); background: var(--warn-tint); }
.s-well { display: flex; gap: 8px; align-items: center; background: var(--brand-tint); border-radius: 10px; padding: 9px 11px; }
.s-button { margin-top: auto; background: var(--brand); color: #FFFFFF; font-weight: 600; font-size: 12px; text-align: center; padding: 11px; border-radius: 10px; }

.s-phase { align-items: center; text-align: center; gap: 3px; border-radius: 14px; }
.s-dots { display: flex; gap: 5px; margin-top: 4px; }
.s-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--border); }
.s-dots span:first-child { background: var(--brand); }
.s-session { background: var(--surface); border-radius: 13px; border: 2px solid var(--surface); padding: 9px 11px 3px; }
.s-session.today { border-color: var(--brand); }
.s-session-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 4px; font-size: 12px; font-weight: 600; }
.s-badge { font-size: 9.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; color: var(--text); background: var(--tag-neutral); }
.s-badge.today { color: #FFFFFF; background: var(--brand); }
.s-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--tag-neutral); }
.s-item-body { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s-item-body .s-bar { height: 4px; width: 100px; }
.s-mark { width: 22px; height: 22px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 600; flex-shrink: 0; background: var(--tag-neutral); color: var(--text-secondary); }
.s-mark.done { background: var(--brand); color: #FFFFFF; }
.s-mark.partial { background: var(--surface); color: var(--brand); border: 2px solid var(--brand); }
.s-score { font-size: 11px; font-weight: 700; flex-shrink: 0; color: var(--brand); }
.s-score.done { color: var(--text); }
.s-tabs { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 8px 22px rgba(22, 32, 27, 0.16); }
.s-tabs span { flex: 1 1 0; text-align: center; padding: 8px 0; border-radius: 999px; font-size: 10px; font-weight: 500; }
.s-tabs .active { background: rgba(22, 32, 27, 0.08); color: var(--brand); font-weight: 600; }

.s-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.s-stat { gap: 1px; padding: 10px; }
.s-stat b { font-size: 18px; }
.s-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; height: 76px; }
.s-chart div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 9.5px; color: var(--text-secondary); }
.s-chart i { width: 100%; height: 5px; border-radius: 5px; background: var(--border); }
.s-chart i.on { height: 48px; background: var(--brand); }
.s-drill { flex-direction: row; justify-content: space-between; align-items: center; padding: 10px 12px; }
.s-drill b { font-size: 14px; }

/* Phone width: the header keeps the logo and Join the beta, and every row stacks. */
@media (max-width: 720px) {
  .container { padding-inline: 20px; }
  h2.display { font-size: 32px; }
  .hero .container { padding-top: 12px; padding-bottom: 56px; gap: 36px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .site-nav .nav-cta { margin-left: 0; font-size: 15px; padding: 12px 16px; }
  .logo { font-size: 22px; }
  .hero h1 { font-size: 46px; line-height: 1.02; }
  .hero-lead { font-size: 18px; }
  .hero-actions { flex-direction: column; align-self: stretch; }
  .hero-note { align-self: center; font-size: 14px; }
  .btn { font-size: 17px; padding: 15px; }
  .section { padding-block: 40px; gap: 24px; }
  .problem { padding-top: 56px; padding-bottom: 24px; }
  .card { padding: 20px; }
  .card h3 { font-size: 18px; }
  .card p { font-size: 15px; }
  .steps .card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 20px; }
  .step-num { width: 36px; height: 36px; font-size: 16px; flex-shrink: 0; }
  .showcase, .showcase.reverse { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 28px; padding-block: 40px; }
  .showcase-copy { order: -1; flex-basis: auto; gap: 16px; }
  .showcase-copy p, .checks { font-size: 16px; }
  .features { padding-bottom: 56px; }
  .features .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .features .card { padding: 16px; gap: 8px; }
  .features .card h3 { font-size: 15px; }
  .features .card p { font-size: 13px; }
  .no-hardware .container { padding-block: 56px; gap: 16px; }
  .no-hardware .ball { width: 64px; height: 64px; }
  .no-hardware p { font-size: 16px; }
  .faq { padding-block: 56px; gap: 20px; }
  .faq details { padding: 16px 18px; }
  .faq summary { font-size: 16px; }
  .faq details p { font-size: 15px; }
  .beta .container { padding-block: 64px; gap: 16px; }
  .beta h2 { font-size: 34px; }
  .beta p { font-size: 17px; }
  .beta .btn { align-self: stretch; }
  .site-footer { flex-direction: column-reverse; justify-content: center; }
}
