/* Vote4MATES placeholder site. No build step: plain CSS, shared by every page. */
:root {
  --green: #17693a;
  --green-dark: #0c4426;
  --green-mid: #1f7f43;
  --green-light: #3cb56b;
  --green-tint: #e8f3ec;
  --gold: #d4a22a;
  --navy: #0d1b36;
  --bg: #f4f6f4;
  --card: #ffffff;
  --ink: #15201a;
  --muted: #56635b;
  --line: rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(12, 68, 38, 0.08);
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; color: var(--green); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--card); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 8px;
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 244, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--green); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); background: var(--green-tint); }
.nav a.btn { color: #fff; background: var(--green); margin-left: 6px; }
.nav a.btn:hover { background: var(--green-dark); color: #fff; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--card); border-radius: 10px;
  width: 44px; height: 44px; font-size: 1.3rem; color: var(--green); cursor: pointer;
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a.btn { margin: 8px 0 0; text-align: center; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--green); color: #fff;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.light { background: #fff; color: var(--green); }
.btn.light:hover { background: var(--green-tint); color: var(--green-dark); }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn.outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn.outline:hover { background: var(--green-tint); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Hero (the green, with mown stripes) ---- */
.green-bg {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  background: linear-gradient(170deg, var(--green-light), var(--green) 55%, var(--green-dark));
}
.green-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(90deg, transparent 0 44px, rgba(255, 255, 255, 0.05) 44px 88px);
}
.green-bg h1, .green-bg h2 { color: #fff; }
.green-bg .eyebrow { color: rgba(255, 255, 255, 0.78); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
.hero .lead { font-size: 1.2rem; color: rgba(255, 255, 255, 0.88); max-width: 34em; }
.hero .actions { margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212, 162, 42, 0.3); }
.hero-phones { position: relative; height: 500px; max-width: 440px; width: 100%; margin: 0 auto; }
.hero-phones .phone { position: absolute; }
.hero-phones .p1 { width: 48%; left: 0; top: 40px; transform: rotate(-6deg); }
.hero-phones .p2 { width: 54%; right: 4%; top: 0; transform: rotate(3deg); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-phones { height: 380px; max-width: 340px; }
}
.page-hero .wrap { padding-top: 56px; padding-bottom: 56px; max-width: 820px; text-align: center; }
.page-hero p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.88); margin: 0; }

/* ---- Phone frame for app screenshots ---- */
.phone {
  border: 6px solid #111; background: #111; border-radius: 30px; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
.phone img { border-radius: 24px; width: 100%; }
.shot {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff;
}

/* ---- Grids and cards ---- */
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .grid.three { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid.two, .grid.four { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.section.alt .card { background: var(--bg); box-shadow: none; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-tint); color: var(--green); margin-bottom: 14px;
}
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card h3 { margin-bottom: 6px; }

/* Steps with screenshots */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps.cols li { text-align: center; display: flex; flex-direction: column; align-items: center; }
.steps.cols .phone { width: 190px; }
.step-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; font-size: 0.95rem; margin: 20px 0 8px;
}
.steps.cols p { color: var(--muted); max-width: 22em; font-size: 0.97rem; }
@media (max-width: 820px) { .steps.cols { grid-template-columns: 1fr; } }

/* Role cards on home */
.role { display: flex; flex-direction: column; }
.role .tag { font-size: 0.8rem; font-weight: 700; color: var(--green-mid); text-transform: uppercase; letter-spacing: 0.06em; }
.role ul { padding-left: 1.1em; color: var(--muted); font-size: 0.97rem; margin: 8px 0 16px; }
.role ul li { margin-bottom: 4px; }
.role .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.role.manager { border-top: 4px solid var(--gold); }
.role.player { border-top: 4px solid var(--green-light); }
.role.admin { border-top: 4px solid var(--green-dark); }

/* Split: text + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .media { display: flex; justify-content: center; gap: 16px; }
.split .media .phone { width: 220px; }
.split .media .phone.small { width: 190px; margin-top: 40px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.flip > :first-child { order: 0; }
  .split .media .phone { width: 46%; max-width: 220px; }
  .split .media .phone.small { width: 42%; margin-top: 24px; }
}

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2317693a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.crosses li::before {
  background: #fdecec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.5 6.5l7 7M13.5 6.5l-7 7' fill='none' stroke='%23b42318' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.timeline li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.timeline .when { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-mid); }
.timeline h3 { font-size: 1.05rem; margin: 6px 0; }
.timeline p { font-size: 0.93rem; color: var(--muted); margin: 0; }
@media (max-width: 960px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--green-tint); color: var(--green-dark); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }

/* Score band legend (matches the app's colour-coded 1–9 buttons) */
.bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.bands div { border-radius: 10px; padding: 10px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.bands .lo { background: #fde2e2; color: #9b1c1c; }
.bands .mid { background: #eceff1; color: #37474f; }
.bands .hi { background: #e3f8c8; color: #2f6a08; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.section.alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Call to action band */
.cta {
  border-radius: 28px; padding: 48px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(170deg, var(--green-mid), var(--green-dark)); color: #fff;
}
.cta h2 { color: #fff; margin-bottom: 6px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta p { color: rgba(255, 255, 255, 0.82); margin: 0; }
@media (max-width: 760px) { .cta { flex-direction: column; text-align: center; padding: 40px 22px; } }

.note {
  border-left: 4px solid var(--gold); background: #fff8e6; padding: 14px 18px; border-radius: 0 12px 12px 0;
  color: #5c4708; font-size: 0.95rem;
}

/* ---- Beta form ---- */
.beta-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .beta-layout { grid-template-columns: 1fr; } }
.beta-aside { position: sticky; top: 88px; }
@media (max-width: 900px) { .beta-aside { position: static; } }
.form-card { background: var(--card); border-radius: 22px; padding: 32px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 560px) { .form-card { padding: 22px 18px; } }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-weight: 800; font-size: 1.1rem; color: var(--green); margin-bottom: 14px; padding: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field label, .group-label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 6px; }
.req { color: #b42318; }
.hint { font-size: 0.84rem; color: var(--muted); margin-top: 4px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid #cfd8d2; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(23, 105, 58, 0.15); }
.was-validated input:invalid, .was-validated select:invalid, .was-validated textarea:invalid { border-color: #d92d20; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid #cfd8d2; background: #fff; font-size: 0.93rem; font-weight: 600; cursor: pointer;
}
.checks input { accent-color: var(--green); width: 16px; height: 16px; margin: 0; }
.checks label:has(input:checked) { border-color: var(--green); background: var(--green-tint); color: var(--green-dark); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; color: var(--muted); }
.consent input { accent-color: var(--green); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: 12px; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.error { background: #fdecec; color: #8a1c13; }
.form-success { text-align: center; padding: 24px 8px; }
.form-success .big-tick {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--green-tint); color: var(--green); font-size: 2.2rem; font-weight: 800;
}

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 32px; font-size: 0.93rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.powered { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.85rem; }
.powered img { height: 22px; width: auto; }
.copyright { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 0.85rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 24px; } }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 24px; }
.mt-4 { margin-top: 48px; }
.muted { color: var(--muted); }
