/* PoloStat website — colours and shapes match the app (app/lib/app_theme.dart). */

:root {
  color-scheme: light dark;
  --bg: #eff6f6;
  --surface: #ffffff;
  --surface-low: #e8f4f4;
  --surface-high: #d0ecec;
  --ink: #0d1f1f;
  --muted: #3d5c5c;
  --quiet: #6b8585;
  --line: rgba(0, 107, 107, .14);
  --primary: #006b6b;
  --on-primary: #ffffff;
  --primary-soft: #b2dfdb;
  --live: #d32f2f;
  --navy: #0b1a4b;  /* app icon background */
  --shadow: 0 1px 2px rgba(13, 31, 31, .06), 0 8px 24px rgba(13, 31, 31, .06);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #1a1f24;
    --surface-low: #161b20;
    --surface-high: #23303a;
    --ink: #eef7f5;
    --muted: #a7bbb8;
    --quiet: #78908d;
    --line: rgba(125, 213, 211, .16);
    --primary: #7dd5d3;
    --on-primary: #00201f;
    --primary-soft: #1d4746;
    --live: #ff6b6b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.site-shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

/* ---------- Nav ---------- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }

.nav-links { display: flex; gap: 6px; font-size: 14px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--primary); background: var(--surface-low); }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.button-primary { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.button:hover { filter: brightness(1.05); }

/* ---------- Home ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
  padding: 48px 0 72px;
}

.app-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: var(--shadow); }

.eyebrow {
  display: inline-block;
  margin: 24px 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(26px, 3.5vw, 34px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }

.hero-copy { max-width: 520px; margin: 18px 0 0; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin: 14px 0 0; color: var(--quiet); font-size: 14px; }

.phones { position: relative; display: flex; justify-content: center; min-height: 520px; }
.phone {
  width: 240px;
  overflow: hidden;
  border: 6px solid var(--navy);
  border-radius: 38px;
  background: var(--navy);
  box-shadow: 0 20px 50px rgba(0, 40, 40, .22);
}
.phone img { border-radius: 32px; }
.phones .phone:first-child { position: relative; z-index: 2; }
.phones .phone + .phone { position: absolute; top: 48px; transform: translateX(150px) rotate(4deg); opacity: .96; }

.section { padding: 56px 0; }
.section-intro { max-width: 620px; margin: 10px 0 32px; color: var(--muted); font-size: 17px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature, .card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; justify-items: center; }
.gallery figure { margin: 0; text-align: center; }
.gallery figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; font-weight: 600; }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 64px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, #006b6b, #004d4d);
  color: #fff;
}
.cta p { margin: 6px 0 0; color: #cdebe9; }
.cta .button { border-color: #fff; background: #fff; color: #006b6b; }

/* ---------- Text pages ---------- */

.page { max-width: 760px; padding: 32px 0 72px; }
.page-intro { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-intro p { margin: 10px 0 0; color: var(--muted); }
.page-intro .updated { color: var(--quiet); font-size: 14px; }
.content-section { margin-top: 32px; }
.content-section h2 { margin-bottom: 10px; font-size: 22px; }
.content-section p, .content-section li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.content-section ul { padding-left: 22px; }
.content-section li::marker { color: var(--primary); }
.email { color: var(--primary); font-weight: 600; }

/* ---------- Footer ---------- */

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 14px;
}
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--primary); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .phones { min-height: 0; }
  .phones .phone + .phone { display: none; }
  .phone { width: 220px; }
  .feature-grid { grid-template-columns: 1fr; }
  /* Swipe through the screenshots instead of stacking three tall phones */
  .gallery {
    grid-template-columns: none;
    grid-auto-columns: 72%;
    grid-auto-flow: column;
    justify-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .gallery figure { scroll-snap-align: center; }
  .gallery .phone { width: 100%; }
}

@media (max-width: 480px) {
  .nav-links a { padding: 8px 10px; }
  .hero-copy { font-size: 17px; }
  .cta { padding: 24px; }
}
