/* Quarter Turn marketing/legal site — matches the in-app theme
   (src/theme/theme.ts): near-black ground, one restrained gold accent,
   Playfair Display for display type, Inter for everything else. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0A0A0B;
  --surface: #161618;
  --surface-raised: #1F1F22;
  --border: #2A2A2E;
  --text-primary: #F5F5F3;
  --text-secondary: #9A9A9F;
  --text-tertiary: #616166;
  --accent: #C9A24B;
  --accent-muted: #8A7238;
  --accent-soft: rgba(201, 162, 75, 0.12);
  --accent-glow: rgba(201, 162, 75, 0.22);
  --max-width: 880px;
  --max-width-wide: 1120px;
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 24px;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- header ---------- */

header.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand span {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

nav.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

nav.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 28px;
  transition: color 0.4s var(--ease-luxury);
}

nav.site-nav a:hover,
nav.site-nav a.is-active { color: var(--accent); }

nav.site-nav a.nav-cta {
  margin-left: 28px;
  color: var(--bg);
  background: var(--accent);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
}

nav.site-nav a.nav-cta:hover { color: var(--bg); opacity: 0.88; }

@media (max-width: 560px) {
  .site-header .wrap { flex-wrap: wrap; gap: 12px; padding-bottom: 14px; }
  nav.site-nav a { margin-left: 0; margin-right: 20px; }
  nav.site-nav a.nav-cta { margin-left: 0; margin-right: 0; }
}

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero-home {
  padding: 148px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: -6%;
  width: 640px;
  max-width: none;
  transform: translateY(-50%);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
  text-align: left;
  position: relative;
}

.hero-copy .eyebrow { margin-bottom: 32px; }

.hero-copy h1 {
  font-size: clamp(2.8rem, 5.6vw, 4.6rem);
  letter-spacing: 0;
}

.hero-copy .lede { margin: 0 0 40px; }

.hero-copy .cta-row { justify-content: flex-start; }

/* ---------- header logo shimmer (one-shot, on load) ---------- */

.brand img {
  position: relative;
}

.brand {
  position: relative;
  overflow: visible;
}

.brand::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  background-size: 300% 100%;
  background-position: 150% 0;
  mix-blend-mode: overlay;
  animation: shimmerSweep 2.4s var(--ease-luxury) 0.4s 1 both;
  pointer-events: none;
}

@keyframes shimmerSweep {
  0% { background-position: 150% 0; }
  100% { background-position: -150% 0; }
}

/* ---------- hero device demo ---------- */

.hero-demo { display: flex; justify-content: center; }

.device-frame {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 9 / 16;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.device-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 42%, var(--accent-glow), transparent 60%);
  pointer-events: none;
}

.demo-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.pose-stage {
  position: relative;
  width: 220px;
  height: 32px;
  text-align: center;
}

.ring-wrap {
  position: relative;
  width: 148px;
  height: 148px;
}

.tag-slot {
  position: relative;
  width: 100%;
  height: 26px;
}

.pose-name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  opacity: 0;
  animation: poseCallout 12s var(--ease-luxury) infinite;
}

.pose-name-2 { animation-delay: -4s; }
.pose-name-3 { animation-delay: -8s; }

@keyframes poseCallout {
  0%, 2% { opacity: 0; transform: translateY(8px); }
  8% { opacity: 1; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(0); }
  36%, 100% { opacity: 0; transform: translateY(-8px); }
}

.countdown-ring {
  position: absolute;
  inset: 0;
  width: 148px;
  height: 148px;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 2.5;
}

.ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 0;
  animation: ringCountdown 4s linear infinite;
}

@keyframes ringCountdown {
  0% { stroke-dashoffset: 0; }
  92% { stroke-dashoffset: 339.292; }
  100% { stroke-dashoffset: 339.292; }
}

.capture-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, rgba(245, 245, 243, 0.85), transparent 65%);
  opacity: 0;
  animation: captureFlash 4s ease-out infinite;
  pointer-events: none;
}

@keyframes captureFlash {
  0%, 88% { opacity: 0; }
  93% { opacity: 0.8; }
  100% { opacity: 0; }
}

.capture-tag {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--bg);
  opacity: 0;
  animation: captureTagFade 4s ease-out infinite;
}

.capture-tag span {
  background: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
}

@keyframes captureTagFade {
  0%, 90% { opacity: 0; transform: translateY(4px); }
  95%, 99% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .cta-row { justify-content: center; }
  .hero-watermark { display: none; }
  .hero-demo { margin-top: 48px; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-muted);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 28px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  text-wrap: balance;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.5s var(--ease-luxury), opacity 0.5s var(--ease-luxury), border-color 0.5s var(--ease-luxury);
}

.btn:hover { transform: translateY(-2px); }
.btn-secondary:hover { border-color: var(--accent); }

.btn-primary {
  background: var(--accent);
  color: #17140A;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-muted);
}

/* ---------- features ---------- */

.features {
  padding: 48px 0 96px;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
}

.feature-card .num {
  font-family: 'Playfair Display', serif;
  color: var(--accent-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
}

.section-heading {
  text-align: center;
}

.section-heading h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin: 0 0 14px;
}

.section-heading p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- competitor / coach split ---------- */

.split {
  padding: 8px 0 104px;
}

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.split-side {
  padding: 48px 44px;
  position: relative;
}

.split-side + .split-side { border-left: 1px solid var(--border); }

.split-side .eyebrow { margin-bottom: 20px; }

.split-side h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0 0 18px;
}

.split-side ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.split-side li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.split-side li:first-child { border-top: none; }

@media (max-width: 720px) {
  .split-panel { grid-template-columns: 1fr; }
  .split-side + .split-side { border-left: none; border-top: 1px solid var(--border); }
}

/* ---------- division coverage ---------- */

.divisions { padding: 8px 0 104px; border-top: 1px solid var(--border); }

.division-category {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  font-size: 1.1rem;
  margin: 56px 0 20px;
}

.division-category:first-of-type { margin-top: 48px; }

.division-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.division-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}

.division-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.division-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.6;
}

/* ---------- sponsor line ---------- */

.sponsor {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.sponsor p {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.sponsor strong { color: var(--text-secondary); font-weight: 600; }

/* ---------- pricing ---------- */

.pricing-section { padding: 64px 0 108px; }

.pricing-group + .pricing-group { margin-top: 72px; }

.pricing-group-heading {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-group-heading h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  margin: 0 0 10px;
}

.pricing-group-heading p { color: var(--text-secondary); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.price-panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.price-panel.is-featured {
  border-color: var(--accent-muted);
  background: var(--surface-raised);
}

.price-panel .plan-name {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.price-panel .plan-price {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.price-panel .plan-price span {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

.price-panel .plan-note {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.price-panel ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}

.price-panel li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.price-panel li:first-child { border-top: none; }

.disclosure {
  max-width: 640px;
  margin: 56px auto 0;
  color: var(--text-tertiary);
  font-size: 0.82rem;
  line-height: 1.7;
  text-align: center;
}

.addon-note {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 32px;
  font-size: 0.95rem;
}

/* ---------- download badges ---------- */

.badge-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 24px;
  background: var(--surface);
  min-width: 220px;
}

.store-badge .glyph {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--accent);
}

.store-badge .label-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: block;
}

.store-badge .label-main {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---------- FAQ ---------- */

.faq { padding: 8px 0 96px; }

.faq-item {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.3s var(--ease-luxury);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  color: var(--text-secondary);
  margin: 14px 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  background: var(--surface);
  text-align: center;
  margin-bottom: 64px;
}

.contact-card .email-link {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--accent);
  text-decoration: none;
}

.contact-card .email-link:hover { opacity: 0.85; }

/* ---------- footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer p {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin: 0;
}

.footer-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 20px;
}

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

/* ---------- legal pages ---------- */

.legal {
  padding: 64px 0 96px;
}

.legal .updated {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal h1 {
  text-align: left;
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.legal h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--accent);
  margin-top: 44px;
  margin-bottom: 12px;
}

.legal p, .legal li {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.legal ul { padding-left: 20px; }

.legal strong { color: var(--text-primary); }

.legal a { color: var(--accent); }
