/* Witram Badminton — styles. Plain CSS, no framework, no build step, no webfonts/trackers.
   Identity from the app icon: forest-court green, gold cork, cream feather. The structural
   motif is badminton court lines (gold hairlines as "service lines"). */

:root {
  --green: #2f6b43;
  --green-deep: #14321f;
  --green-deeper: #0e2617;
  --gold: #b58a3e;
  --gold-soft: #caa968;
  --cream: #efe9db;
  --chalk: #f4f1e8;
  --paper: #fbfaf5;
  --ink: #16241b;
  --muted: #5d6b61;
  --line: rgba(181, 138, 62, 0.4); /* gold court line */
  --line-soft: rgba(22, 36, 27, 0.1);
  --measure: 66ch;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: var(--chalk);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-deep); }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

/* ---------- Header ---------- */
.site-header { background: var(--chalk); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.97rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.lang-switch { font-weight: 600; color: var(--green); border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; }
.lang-switch:hover { background: rgba(181,138,62,.1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  background: var(--green); color: var(--cream); text-decoration: none;
  padding: 14px 24px; border-radius: 10px; font-weight: 650; font-size: 1.02rem; border: 0; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--green-deep); color: var(--cream); transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn.secondary:hover { background: rgba(47,107,67,.08); color: var(--green-deep); }
.btn.on-green { background: var(--gold); color: var(--green-deeper); }
.btn.on-green:hover { background: var(--gold-soft); color: var(--green-deeper); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn svg { width: 20px; height: 20px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 85% 0%, #3a8052 0%, var(--green) 42%, var(--green-deep) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; padding: 74px 24px 78px; }
/* grid/flex children default to min-width:auto, which lets a long word blow out the track — pin to 0 */
.hero .wrap > *, .audience, .audience .col, .privacy-grid > *, .feat li, .feat li > span { min-width: 0; }
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4rem); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 800; margin: 0 0 18px; color: #fff; overflow-wrap: break-word;
}
.hero p { font-size: 1.2rem; max-width: 40ch; margin: 0 0 30px; color: rgba(239,233,219,0.88); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 300px; }
.hero-art svg.shuttle { width: min(260px, 60%); position: relative; z-index: 2; filter: drop-shadow(0 22px 34px rgba(0,0,0,0.3)); }
/* dotted flight arc behind the shuttle */
.flight { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.flight path { fill: none; stroke: var(--gold-soft); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; opacity: 0.7; }

/* one orchestrated load motion: the shuttle settles onto the arc */
@keyframes settle { from { transform: translateY(-26px) rotate(-7deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
.hero-art svg.shuttle { animation: settle 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.flight path { stroke-dashoffset: 0; animation: draw 1.1s ease 0.1s both; }

/* ---------- Court-line section rhythm ---------- */
section.band { padding: 66px 0; }
.band + .band { border-top: 1px solid var(--line); }
.eyebrow { font-weight: 700; color: var(--gold); font-size: 0.95rem; margin: 0 0 6px; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); letter-spacing: -0.02em; font-weight: 750; margin: 0 0 10px; line-height: 1.1; }
.lead { color: var(--muted); max-width: var(--measure); font-size: 1.08rem; margin: 0 0 8px; }

/* audience columns */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 34px; }
.audience h3 { font-size: 1.05rem; letter-spacing: 0.01em; margin: 0 0 4px; color: var(--green); }
.audience .col > p { color: var(--muted); margin: 0 0 14px; font-size: 0.98rem; }
.feat { list-style: none; margin: 0; padding: 0; }
.feat li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.feat li:first-of-type { border-top: 2px solid var(--line); } /* the "service line" that opens each column */
.feat .ic { color: var(--green); margin-top: 1px; }
.feat .ic svg { width: 26px; height: 26px; display: block; }
.feat b { display: block; font-weight: 650; font-size: 1.02rem; }
.feat span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Privacy band (on green) ---------- */
.on-green-band { background: var(--green-deep); color: var(--cream); }
.on-green-band h2 { color: #fff; }
.on-green-band .lead { color: rgba(239,233,219,0.82); }
.on-green-band a.inline { color: var(--gold-soft); }
.privacy-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.assure { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.assure li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: rgba(239,233,219,0.9); font-size: 0.98rem; }
.assure .ic svg { width: 22px; height: 22px; color: var(--gold-soft); display: block; }

/* ---------- CTA ---------- */
.cta-band { text-align: center; }
.cta-band .wrap { max-width: 640px; }
.cta-band p { color: var(--muted); margin: 0 auto 26px; max-width: 48ch; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deeper); color: rgba(239,233,219,0.72); padding: 46px 0; }
.site-footer .brand { color: var(--cream); }
.site-footer a { color: rgba(239,233,219,0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.92rem; }
.site-footer small { display: block; margin-top: 24px; color: rgba(239,233,219,0.5); font-size: 0.86rem; }

/* ---------- Document pages (legal/support) ---------- */
.doc { background: var(--paper); }
.doc .wrap { max-width: 720px; padding-top: 52px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.5rem); letter-spacing: -0.025em; margin: 0 0 6px; padding-bottom: 14px; border-bottom: 2px solid var(--line); }
.doc .updated { color: var(--muted); font-size: 0.92rem; margin: 10px 0 30px; }
.doc h2 { font-size: 1.28rem; color: var(--green); margin: 36px 0 8px; }
.doc h3 { font-size: 1.06rem; margin: 24px 0 6px; }
.doc p, .doc li { color: #273328; max-width: var(--measure); }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.96rem; }
.doc th, .doc td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.doc th { color: var(--ink); border-bottom: 2px solid var(--line); }
.doc .todo { background: #fbf2d6; border: 1px dashed var(--gold); border-radius: 6px; padding: 1px 7px; font-size: 0.9em; color: #7a5a12; }
.doc .callout { background: var(--chalk); border-left: 4px solid var(--green); border-radius: 8px; padding: 15px 18px; margin: 20px 0; }
.muted-note { font-size: 0.9rem; color: var(--muted); margin-top: 18px; }

/* ---------- Guardian verify ---------- */
.verify { min-height: 72vh; display: grid; place-items: center; padding: 48px 0; background: var(--chalk); }
.verify-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 34px; max-width: 480px; width: 100%; box-shadow: 0 24px 60px rgba(20, 50, 31, 0.12);
}
.verify-card .badge { width: 56px; height: 56px; border-radius: 14px; background: rgba(47,107,67,0.1); color: var(--green); display: grid; place-items: center; margin-bottom: 16px; }
.verify-card .badge svg { width: 30px; height: 30px; }
.verify-card h1 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 10px; }
.verify-card p { color: var(--muted); }
.verify-card .who { background: var(--chalk); border-radius: 12px; padding: 15px 16px; margin: 18px 0; border: 1px solid var(--line-soft); }
.verify-card .who strong { color: var(--ink); }
.verify-card ul { color: var(--muted); font-size: 0.95rem; padding-left: 18px; }
.state-ok .badge { background: rgba(47,107,67,0.14); color: var(--green); }
.state-warn .badge { background: #fbf2d6; color: #8a6626; }
.state-error .badge { background: #f6ddd5; color: #9a4228; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line-soft); border-top-color: var(--green); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 12px auto; }
.hidden { display: none !important; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 10px; padding: 48px 24px 56px; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.7rem); }
  .hero p { font-size: 1.1rem; }
  .hero-art { min-height: 190px; order: -1; }
  .hero-art svg.shuttle { width: 140px; }
  .audience, .privacy-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .site-header .wrap { gap: 10px; }
  .brand { font-size: 1rem; gap: 9px; }
  .brand img { width: 30px; height: 30px; }
  .nav { gap: 14px; }
  .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@keyframes spin { to { transform: rotate(360deg); } }
