/* The app's default club colours (app/static/app.css), so the site looks like what people will use. */
:root {
  --primary: #1f3b57;
  --primary-2: #2b4f73;
  --secondary: #2f7f73;
  --highlight: #e2a63b;
  --bg: #f4f6f9;
  --bg-alt: #e9eef4;
  --card: #ffffff;
  --text: #17222e;
  --muted: #566577;
  --line: #d8e0e9;
  --heading: #1f3b57;
  --shadow: 0 1px 2px rgba(16, 30, 46, .06), 0 12px 32px rgba(16, 30, 46, .12);
  --serif: "Cormorant Garamond", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1722;
    --bg-alt: #142030;
    --card: #182536;
    --text: #e6ecf3;
    --muted: #9fb0c3;
    --line: #26364a;
    --heading: #cfe0f2;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--heading); margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.05; }
h3 { font-size: 20px; line-height: 1.3; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px;
  background: var(--primary); color: #fff; font-weight: 600; text-decoration: none; border: 1px solid var(--primary); white-space: nowrap; }
.btn:hover { background: var(--primary-2); }
.btn.sm { padding: 7px 14px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--heading); border-color: var(--line); }
.btn.ghost:hover { background: var(--card); }
.btn.light { background: #fff; color: var(--primary); border-color: #fff; }
.btn.light:hover { background: #eef3f8; }
@media (prefers-color-scheme: dark) { .btn.sm, .hero .btn:not(.ghost) { background: var(--highlight); border-color: var(--highlight); color: #1d1500; } }

.eyebrow { margin: 0 0 12px; color: var(--secondary); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
@media (prefers-color-scheme: dark) { .eyebrow { color: #5fc0b2; } }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--primary); color: #fff; box-shadow: 0 3px 0 var(--highlight); }
.top-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--serif); font-size: 24px; font-weight: 700; }
.logo img { width: 30px; height: 30px; border-radius: 7px; }
.logo.small { font-size: 19px; }
.logo.small img { width: 22px; height: 22px; border-radius: 5px; }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 15px; font-weight: 500; }
.top-nav a:hover { color: #fff; }
.top .btn.sm { background: var(--highlight); border-color: var(--highlight); color: #1d1500; }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 62px); margin-bottom: 20px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 14px; color: var(--muted); margin: 16px 0 0; max-width: 460px; }
.hero-shots, .pair { position: relative; padding-bottom: 40px; }
.hero-shots .desk { width: 100%; }
.hero-shots .phone, .pair .phone { position: absolute; right: -12px; bottom: 0; width: 26%; }
.pair > .shot:first-child { width: 86%; }

/* Screenshots */
.shot { display: block; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card);
  box-shadow: var(--shadow); cursor: zoom-in; transition: transform .2s ease; }
.shot:hover { transform: translateY(-3px); }
.shot.phone { border-radius: 22px; border: 5px solid #101820; }

/* Quick facts */
.facts { border-block: 1px solid var(--line); background: var(--card); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 26px; }
.facts b { display: block; color: var(--heading); }
.facts span { font-size: 14px; color: var(--muted); }

/* Feature sections */
.part { padding: 96px 0 40px; }
.part.alt { background: var(--bg-alt); }
.part-head { max-width: 720px; margin-bottom: 56px; }
.part-head h2 { font-size: clamp(32px, 4vw, 46px); }
.feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 56px; align-items: center; margin-bottom: 88px; }
.feature.flip { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy p { color: var(--muted); margin: 12px 0 0; }
.feature-copy ul { margin: 16px 0 0; padding: 0; list-style: none; }
.feature-copy li { position: relative; padding-left: 22px; margin-top: 8px; font-size: 15px; }
.feature-copy li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--highlight); }
.pair.even { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; padding-bottom: 0; }
.pair.even > .shot:first-child { width: 100%; }

/* Everything else */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.tile h3 { font-size: 17px; }
.tile p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }

/* Demo band */
.band { background: var(--primary); color: #fff; padding: 64px 0; border-top: 4px solid var(--highlight); }
.band-in { display: flex; align-items: center; gap: 40px; justify-content: space-between; }
.band h2 { color: #fff; font-size: clamp(30px, 3.6vw, 42px); }
.band p { color: rgba(255, 255, 255, .8); max-width: 640px; margin: 12px 0 0; }

.foot { padding: 28px 0; font-size: 14px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot .logo { color: var(--heading); }

/* Enlarged screenshot */
.zoom { padding: 0; border: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 94vh; overflow: visible; cursor: zoom-out; }
.zoom::backdrop { background: rgba(8, 14, 22, .82); }
.zoom img { max-width: min(1400px, 94vw); max-height: 92vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.zoom.tall img { border-radius: 24px; }
.zoom-close { position: fixed; top: 14px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

/* Narrower screens */
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-in, .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-copy { order: 0; }
  .feature { margin-bottom: 64px; }
  .facts-in { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .band-in { flex-direction: column; align-items: flex-start; }
  .part { padding-top: 64px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top-nav { display: none; }
  .top-in { justify-content: space-between; }
  .facts-in, .grid { grid-template-columns: 1fr; }
  .hero-shots .phone, .pair .phone { right: 0; width: 34%; }
  .pair.even { grid-template-columns: 1fr; }
}
