/* MÄNGUS public page (www.m2ngus.ee).
   Visual source: design-reference/mangus-concept-2026-10-28.png (owner's concept board; see
   design-reference/README.md). Colours are sampled from that image. The mark is the concept's own app icon
   (cropped raster), not a redrawing. The wordmark font of the concept is not available as a file, so the
   text uses a heavy system font: an approximation, not the original typeface.
   No external fonts, no tracking, no JavaScript. */

:root {
  --bg: #001830;          /* concept background */
  --bg-deep: #00122a;     /* darker edge of the concept vignette */
  --surface: #041c38;     /* concept list cards */
  --surface-2: #072747;
  --line: #0a2340;        /* concept column dividers */
  --line-strong: #12345c;
  --text: #ffffff;
  --text-2: #bcd0ec;      /* concept day labels (TÄNA, HOMME) */
  --muted: #8ea9cd;       /* concept inactive tabs */
  --tagline: #a0bcec;     /* concept "Üks üheteistkümnest" */
  --blue: #0a8afc;        /* concept blue swoosh, active tab, home team dot */
  --blue-hover: #2b9bff;
  --blue-soft: rgba(10, 138, 252, 0.14);
  --green: #3ddc68;       /* concept green swoosh, away team dot */
  --green-soft: rgba(61, 220, 104, 0.13);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg-deep); }
body {
  margin: 0;
  /* The concept's soft lighter centre, as a CSS gradient (not the concept image). */
  background: radial-gradient(120% 70% at 50% 0%, #02234a 0%, var(--bg) 45%, var(--bg-deep) 100%) no-repeat, var(--bg-deep);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--blue-hover); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--surface-2); color: var(--text); padding: 10px 14px; border-radius: 10px;
}
.skip:focus { left: 8px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Buttons: the concept's active tab (solid blue, white bold uppercase). */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 26px; border-radius: 10px;
  background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(10, 138, 252, 0.28);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--blue-hover); }
.btn--small { min-height: 44px; padding: 10px 16px; font-size: 13px; box-shadow: none; }

/* Eyebrow labels: the concept's spaced uppercase headings (ÄPIIKOON, AVAMISVAADE, ÜLARIBA). */
.eyebrow {
  margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-2);
}

/* Header: the concept's top bar (mark + heavy MÄNGUS wordmark). */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(0, 24, 48, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand__icon { width: 36px; height: 36px; border-radius: 22%; }
.brand__name { font-weight: 900; font-size: 21px; letter-spacing: 0.01em; }

/* Language switch ET | EN: plain links, current language in white with a blue underline. */
.top__end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; align-items: center; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  color: var(--muted); text-decoration: none;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current] { color: var(--text); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lang__sep { color: var(--line-strong); }
/* Narrow phones: the hero button is right below, so the header keeps only the brand and ET | EN. */
@media (max-width: 479px) { .top .btn--small { display: none; } }

/* Hero */
.hero { padding: 36px 0 32px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 56px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}
.hero__icon {
  width: 96px; height: 96px; border-radius: 22%; margin-bottom: 22px;
  box-shadow: 0 0 0 1px var(--line-strong), 0 18px 40px rgba(0, 0, 0, 0.45);
}
@media (min-width: 900px) { .hero__icon { width: 132px; height: 132px; } }
.badge {
  display: flex; width: fit-content; align-items: center; gap: 8px; margin: 0 0 16px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text-2); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
h1 { font-size: clamp(46px, 11vw, 84px); font-weight: 900; letter-spacing: -0.005em; }
.h1__sub {
  display: block; margin-top: 12px; font-size: clamp(21px, 3.8vw, 30px); font-weight: 800; letter-spacing: 0;
  color: var(--text);
}
.tagline { margin: 8px 0 0; font-size: clamp(17px, 2.4vw, 21px); color: var(--tagline); }
.lead { margin: 20px 0 0; max-width: 33em; font-size: 18px; color: var(--text-2); }
.hero__cta { margin-top: 28px; }
.note {
  margin: 20px 0 0; max-width: 34em; padding-left: 12px; border-left: 3px solid var(--green);
  font-size: 14.5px; color: var(--muted);
}

/* Phone: the concept's "ÜLARIBA" screen adapted to the real app sections, with empty rows (no match data). */
.phone { margin: 0 auto; width: 100%; max-width: 310px; }
.phone__body {
  padding: 9px; border-radius: 46px;
  background: linear-gradient(145deg, #3a4150, #11161f 40%, #2a303b);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.phone__screen {
  position: relative; border-radius: 38px; overflow: hidden; padding: 42px 14px 0;
  background: linear-gradient(180deg, #02203f, var(--bg) 60%);
}
.phone__notch { position: absolute; top: 11px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 14px; background: #000; }
.app-head { display: flex; align-items: center; gap: 8px; margin: 4px 4px 14px; font-weight: 900; font-size: 19px; }
.app-head img { border-radius: 22%; }
.pills { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--surface); margin-bottom: 14px; }
.pill {
  flex: 1; text-align: center; padding: 7px 0; border-radius: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.pill--on { background: var(--blue); color: #fff; }
.app-day { margin: 10px 4px 7px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.row {
  display: flex; align-items: center; gap: 7px; padding: 11px 10px; margin-bottom: 7px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.row i { display: block; height: 7px; border-radius: 4px; background: var(--line-strong); }
.row s { flex: none; width: 1px; height: 18px; background: var(--line-strong); }
.row .w40 { width: 34px; } .row .w50 { width: 26px; } .row .w60 { width: 32px; }
.row i:nth-of-type(2) { flex: 1; }
.dot { flex: none; width: 20px; height: 20px; border-radius: 50%; }
.dot--blue { background: var(--blue); }
.dot--green { background: var(--green); }
.app-nav {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 14px -14px 0; padding: 10px 6px 16px;
  border-top: 1px solid var(--line); background: var(--bg-deep);
}
.app-nav span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 9.5px; color: var(--muted); }
.app-nav .on { color: var(--blue); font-weight: 700; }
.app-nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.phone figcaption { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* Features: the concept's dark list cards with thin borders. */
.features { padding: 32px 0; }
h2 { font-size: clamp(26px, 4.4vw, 36px); font-weight: 900; }
.cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 22px 20px; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue-soft); margin-bottom: 16px; color: var(--blue);
}
.card__icon--green { background: var(--green-soft); color: var(--green); }
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 17.5px; font-weight: 800; }
.card p { margin: 8px 0 0; font-size: 15px; color: var(--text-2); }

/* Panels */
.principle { padding: 12px 0; }
.company { padding: 12px 0 56px; }
.panel {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 26px 22px;
}
/* Thin blue-to-green line on top: the two swoosh colours of the mark. */
.panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.panel h2 { font-size: clamp(23px, 3.4vw, 28px); }
.panel p { margin: 10px 0 0; color: var(--text-2); max-width: 44em; }
.panel .eyebrow { margin: 0 0 8px; }
@media (min-width: 720px) {
  .panel { padding: 32px 34px; }
  .panel--company { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
}
.facts { margin: 18px 0 0; display: grid; }
@media (min-width: 720px) { .facts { margin: 0; } }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-strong); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: 14.5px; }
.facts dd { margin: 0; font-weight: 800; text-align: right; overflow-wrap: anywhere; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-deep); padding-bottom: env(safe-area-inset-bottom); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 20px; padding-bottom: 24px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--text-2); }

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