/* Sportvya landing: same palette and type as the app (Sportvya.Web/src/styles/tokens.css). */
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("/landing/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("/landing/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("/landing/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-display: swap; src: url("/landing/fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap; src: url("/landing/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-display: swap; src: url("/landing/fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f3f5f2;
  --surface: #ffffff;
  --surface-2: #edf1ec;
  --ink: #111b16;
  --ink-2: #4a5a51;
  --ink-3: #75867c;
  --line: #dae2db;
  --brand: #146c43;
  --brand-hover: #0f5a37;
  --brand-ink: #0b3d26;
  --brand-soft: #e0efe6;
  --clay: #c4532a;
  --ok: #2b8a3e;
  --ok-soft: #e3f3e6;
  --warn: #a8690f;
  --warn-soft: #fbf0da;
  --info: #2560a0;
  --info-soft: #e2ecf7;
  --shadow: 0 1px 2px rgba(17, 27, 22, 0.06), 0 8px 24px rgba(17, 27, 22, 0.07);
  --shadow-lg: 0 30px 70px rgba(17, 27, 22, 0.18);
  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; line-height: 1.08; }

h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }

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

h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }

h3 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.wrap.narrow { width: min(760px, 100% - 40px); }

.eyebrow {
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead { color: var(--ink-2); font-size: 1.1rem; }

.fine { color: var(--ink-3); font-size: 0.88rem; }

.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 0.95rem var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-lg { min-height: 50px; padding: 0 24px; font-size: 1rem; }

.btn-primary { background: var(--brand); color: #fff; }

.btn-primary:hover { background: var(--brand-hover); }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }

.btn-ghost:hover { border-color: #c3cfc6; }

.btn-light { background: #fff; color: var(--brand-ink); }

.btn-light:hover { background: var(--brand-soft); }

:focus-visible { outline: 3px solid rgba(20, 108, 67, 0.35); outline-offset: 2px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner { display: flex; align-items: center; gap: 28px; min-height: 66px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 700 1.3rem var(--display);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font: 700 1.05rem var(--display);
}

.brand-mark.small { width: 22px; height: 22px; border-radius: 6px; font-size: 0.8rem; vertical-align: middle; }

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

.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 0.95rem; text-decoration: none; }

.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(20, 108, 67, 0.1), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--surface));
  overflow: hidden;
}

.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }

.hero-copy .lead { margin: 22px 0 30px; max-width: 34rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }

.hero-visual { position: relative; min-height: 500px; }

/* ---------- Product mockups (illustrations, same look as the app) ---------- */
.mock-window {
  position: absolute;
  inset: 0 200px 0 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 13px;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }

.mock-bar span { margin-left: 10px; color: var(--ink-3); font-weight: 500; }

.mock-body { padding: 20px; }

.mock-title { font: 700 1.6rem var(--display); }

.mock-sub { color: var(--ink-3); margin-bottom: 16px; }

.mock-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 10px; }

.mock-body > .mock-card + .mock-card { margin-top: 10px; }

.mock-kpis div, .mock-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.mock-kpis span { display: block; color: var(--ink-3); font-size: 12px; }

.mock-kpis b { display: block; font: 700 1.45rem var(--display); }

.bar { display: block; height: 5px; margin-top: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }

.bar i { display: block; height: 100%; background: var(--ok); }

.mock-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.mock-card-title { font-weight: 600; margin-bottom: 8px; }

.mock-agenda, .mock-task { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--surface-2); }

.mock-agenda b { font: 600 1rem var(--display); width: 40px; }

.mock-agenda span, .mock-task span { display: grid; flex: 1; font-weight: 500; line-height: 1.3; }

.mock-agenda small, .mock-task small, .mock-list small { color: var(--ink-3); font-weight: 400; font-size: 11.5px; }

.mock-agenda em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border-radius: 6px;
  padding: 4px 8px;
}

.mock-task i, .mock-list i { width: 26px; height: 26px; border-radius: 7px; flex: none; }

.warn i, i.warn { background: var(--warn-soft); box-shadow: inset 0 0 0 7px var(--warn-soft), inset 0 0 0 20px var(--warn); }

.info i, i.info { background: var(--info-soft); box-shadow: inset 0 0 0 7px var(--info-soft), inset 0 0 0 20px var(--info); }

.ok i, i.ok { background: var(--ok-soft); box-shadow: inset 0 0 0 7px var(--ok-soft), inset 0 0 0 20px var(--ok); }

.mock-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 230px;
  padding: 14px 12px 16px;
  display: grid;
  gap: 10px;
  background: var(--bg);
  border: 8px solid #111b16;
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
}

.mock-phone-top { display: flex; align-items: center; gap: 8px; padding: 2px 4px 4px; font: 700 1.05rem var(--display); }

.mock-next { background: var(--brand-ink); color: #fff; border-radius: 14px; padding: 12px; display: grid; }

.mock-next small { color: #a9d3bb; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.mock-next b { font: 700 1.35rem var(--display); }

.mock-next span { color: #cfe6d8; }

.mock-pix, .mock-callup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 4px;
  justify-items: start;
}

.mock-pix small, .mock-callup small { color: var(--ink-3); }

.mock-pix b, .mock-callup b { font: 700 1.1rem var(--display); }

.mock-code {
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-2);
  font: 11px ui-monospace, Consolas, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-qr {
  width: 76px;
  height: 76px;
  margin: 4px 0;
  border-radius: 6px;
  background:
    conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 12px 12px,
    var(--surface);
  box-shadow: inset 0 0 0 4px var(--surface);
  opacity: 0.85;
}

.mock-pix em, .mock-callup em {
  font-style: normal;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--brand);
  color: #fff;
}

.mock-callup .row { display: flex; gap: 6px; }

.mock-callup em:not(.yes) { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }

/* ---------- Sections ---------- */
.sports { border-block: 1px solid var(--line); background: var(--surface); }

.sports p { padding: 18px 0; text-align: center; color: var(--ink-2); font-weight: 500; letter-spacing: 0.02em; }

.section { padding: 96px 0; }

.section.soft { background: var(--bg); }

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

.section-head .lead { margin-top: 14px; }

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

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.feature p { color: var(--ink-2); }

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
}

.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.split .lead { margin-top: 16px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.split > div > .checks { margin-top: 26px; }

.checks li { position: relative; padding-left: 34px; color: var(--ink-2); }

.checks li b { color: var(--ink); }

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23146c43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.family-visual { position: relative; min-height: 440px; display: grid; place-items: center; }

.family-visual .mock-phone { position: static; width: 270px; }

.mock-list { display: grid; gap: 8px; }

.mock-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mock-list span { display: grid; font-weight: 600; line-height: 1.3; }

.section.dark { background: var(--brand-ink); color: #fff; }

.section.dark .eyebrow { color: #a9d3bb; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.trust div { border-top: 2px solid rgba(255, 255, 255, 0.25); padding-top: 18px; }

.trust b { font-size: 1.05rem; }

.trust p { margin-top: 8px; color: #cfe6d8; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; margin-bottom: 22px; }

.price-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 8px;
  padding: 26px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.price-card.highlighted { border: 2px solid var(--brand); box-shadow: var(--shadow); }

.price-ribbon {
  position: absolute;
  top: -12px;
  left: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.price-name { font: 700 1.4rem var(--display); }

.price-tagline { color: var(--ink-3); font-size: 0.9rem; min-height: 2.6em; }

.price-value strong { font: 700 2.2rem var(--display); }

.price-value span { color: var(--ink-3); }

.price-trial { color: var(--brand); font-weight: 600; font-size: 0.9rem; }

.price-limit { font-weight: 600; font-size: 0.9rem; }

.price-modules { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 8px; align-content: start; color: var(--ink-2); font-size: 0.92rem; }

.price-modules li { padding-left: 22px; position: relative; }

.price-modules li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

.pricing-loading { grid-column: 1 / -1; text-align: center; color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }

.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  position: relative;
}

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

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

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

.faq details p { padding: 0 20px 18px; color: var(--ink-2); }

/* ---------- CTA and footer ---------- */
.cta { padding: 0 0 96px; }

.cta .wrap {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 64px 24px;
  border-radius: 22px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(600px 260px at 80% 0%, rgba(255, 255, 255, 0.12), transparent 70%),
    var(--brand);
}

.cta p { color: #d7ecdf; margin-bottom: 10px; }

.footer { border-top: 1px solid var(--line); background: var(--bg); }

.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; min-height: 76px; color: var(--ink-2); font-size: 0.92rem; }

.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

.footer a { color: var(--ink-2); text-decoration: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse .family-visual { order: 2; }
  .features { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}

@media (max-width: 640px) {
  .hero { padding: 44px 0 56px; }
  .section { padding: 64px 0; }
  .hero-visual { min-height: 0; }
  .mock-window { display: none; }
  .mock-phone { position: relative; margin: 0 auto; }
  .features, .pricing, .trust { grid-template-columns: 1fr; }
  .nav-actions .btn-ghost { display: none; }
  .cta { padding-bottom: 64px; }
}

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