/* ============================================================
   okwin178.app  -  design system
   Brand: white background + LOGO palette (blue / red / yellow)
   ============================================================ */

:root {
  /* Brand palette - sampled from the OKwin178 logo */
  --brand-blue:        #1565C0;
  --brand-blue-dark:   #0D47A1;
  --brand-blue-soft:   #E3F0FB;
  --brand-red:         #DC2626;
  --brand-red-dark:    #B91C1C;
  --brand-red-soft:    #FDECEC;
  --brand-yellow:      #FFB800;
  --brand-yellow-dark: #E0A100;

  /* Surfaces */
  --bg:                #ffffff;
  --surface:           #ffffff;
  --surface-alt:       #F7F9FC;

  /* Text */
  --text:              #111827;
  --text-muted:        #5B6472;
  --text-on-brand:     #ffffff;

  /* Lines */
  --border:            #E5E7EB;
  --border-strong:     #D1D5DB;

  /* Typography
     Inter loaded from Google Fonts so we get real 800/900 weight faces.
     System-ui kept as fallback while Inter is downloading (display=swap). */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               "Noto Sans", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Radii / shadow */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
  --shadow:    0 4px 12px rgba(17, 24, 39, .08);
  --shadow-lg: 0 12px 32px rgba(17, 24, 39, .12);

  /* Layout */
  --container: 1200px;
  --gutter:    24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-dark); text-decoration: underline; }
button { font: inherit; cursor: pointer; }
table { border-collapse: collapse; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.25;
  color: var(--text);
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.85rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

/* ---------- Accessibility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  top: 8px;                       /* the position used WHEN focused */
  left: 8px;
  z-index: 100;
  background: var(--brand-blue);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  /* Hide off-screen by transform, which is height-agnostic.
     (Previous version used top: -40px but the element is 42px tall
      with padding, so 2px peeked through at the top of the viewport.) */
  transform: translateY(-200%);
  transition: transform .15s ease;
}
.skip-link:focus {
  transform: translateY(0);
  color: #fff;
  text-decoration: none;
}

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(6px);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { height: 44px; width: auto; }

.nav { display: flex; align-items: center; }
.nav__list {
  display: flex; gap: 22px; list-style: none; margin: 0; padding: 0;
}
.nav__link {
  color: var(--text);
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav__link:hover {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-red);
  text-decoration: none;
}
.nav__link[aria-current="page"] {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

@media (max-width: 720px) {
  .nav__list { gap: 12px; font-size: .92rem; }
  .brand__logo { height: 36px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
  white-space: nowrap;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn--primary  { background: var(--brand-blue); color: #fff; }
.btn--primary:hover { background: var(--brand-blue-dark); color: #fff; text-decoration: none; }

.btn--secondary { background: var(--brand-red); color: #fff; }
.btn--secondary:hover { background: var(--brand-red-dark); color: #fff; text-decoration: none; }

.btn--ghost   { background: transparent; color: var(--brand-blue); border-color: var(--brand-blue); }
.btn--ghost:hover { background: var(--brand-blue-soft); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding-block-end: clamp(40px, 6vw, 80px);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 184, 0, .07), transparent 40%),
    radial-gradient(circle at 12% 85%, rgba(220, 38, 38, .06), transparent 45%),
    var(--bg);
}
.hero__carousel {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto clamp(28px, 4vw, 56px);
}
.hero__content { text-align: center; max-width: 820px; margin-inline: auto; }
.hero__title {
  color: var(--brand-blue);
  margin-bottom: 18px;
  font-weight: 800;          /* Extra Bold - heavier than default h1 700, more visible on Segoe UI / system-ui */
  letter-spacing: -.02em;    /* slight tightening pairs well with heavier weight */
}
.hero__lead {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 28px;
}
.hero__cta {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.hero__updated {
  margin-top: 24px;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  outline: none;
}
.carousel__viewport { overflow: hidden; width: 100%; }
.carousel__track {
  display: flex;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
}
.carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 600;
  object-fit: cover;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .92);
  color: var(--brand-blue);
  border: 1px solid var(--border);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: background .15s, transform .05s;
}
.carousel__btn:hover { background: #fff; color: var(--brand-blue-dark); }
.carousel__btn:active { transform: translateY(-50%) scale(.95); }
.carousel__btn--prev { left: 16px; }
.carousel__btn--next { right: 16px; }

.carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, .7);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.carousel__dot {
  width: 10px; height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(21, 101, 192, .35);
  padding: 0;
  transition: background .15s, transform .15s;
}
.carousel__dot[aria-selected="true"] {
  background: var(--brand-blue);
  transform: scale(1.2);
}

@media (max-width: 600px) {
  .carousel__btn { width: 36px; height: 36px; font-size: 1.2rem; }
  .carousel__btn--prev { left: 8px; }
  .carousel__btn--next { right: 8px; }
  .carousel__dots { bottom: 8px; padding: 4px 8px; }
  .carousel__dot { width: 8px; height: 8px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--alt { background: var(--surface-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section__title {
  color: var(--brand-blue);
  font-weight: 800;          /* match hero title weight - consistent blue-heading style */
  letter-spacing: -.01em;
}
.section__lead { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Prose (long-form content) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { text-align: center; margin-bottom: 24px; }
.prose h3 {
  margin-top: 32px;
  color: var(--brand-blue);
  font-size: 1.18rem;
  font-weight: 800;          /* blue subheadings get the same Extra Bold treatment */
}
.prose p { line-height: 1.78; }
.prose ul, .prose ol {
  padding-left: 22px;
  line-height: 1.78;
  margin: 0 0 1em;
}
.prose ul li, .prose ol li { margin-bottom: 10px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose .btn { margin-top: 10px; }

/* ---------- Facts list ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.fact__label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.fact__value {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  margin: 0;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.table th, .table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: .96rem;
}
.table thead th {
  background: var(--brand-blue-soft);
  color: var(--brand-blue-dark);
  font-weight: 700;
}
.table tbody th {
  background: var(--surface-alt);
  font-weight: 600;
  color: var(--text);
  width: 30%;
}
.table tbody tr:last-child th,
.table tbody tr:last-child td { border-bottom: 0; }
.table--compare td { border-right: 1px solid var(--border); }
.table--compare td:last-of-type { border-right: 0; }

/* ---------- Cards (Why us) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand-blue);
}
.card__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  font-weight: 800;
  margin-bottom: 14px;
}
.card__title { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.card__text  { color: var(--text-muted); margin: 0; line-height: 1.7; }

/* ---------- HowTo steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 36px auto 24px;
  max-width: 760px;
  display: grid;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px 18px 68px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  background: var(--brand-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.steps strong { display: block; margin-bottom: 4px; color: var(--text); }
.steps li p { margin: 0; color: var(--text-muted); line-height: 1.7; }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item[open] {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  gap: 16px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--brand-blue);
  flex-shrink: 0;
  line-height: 1;
}
.faq__item[open] .faq__q::after { content: "\2212"; /* minus */ }
.faq__a {
  padding: 0 20px 18px;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq__a p { margin: 0; }
.faq__more { text-align: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 36px 0 28px;
  color: var(--text-muted);
  font-size: .92rem;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.site-footer__nav a {
  color: var(--text);
  font-weight: 500;
}
.site-footer__nav a:hover { color: var(--brand-blue); }
.site-footer__disclaimer {
  color: var(--text-muted);
  font-size: .85rem;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin: 0;
  line-height: 1.6;
}
.site-footer__brand-stripe {
  height: 4px;
  background: linear-gradient(90deg,
    var(--brand-blue)    0%,
    var(--brand-blue)   33%,
    var(--brand-red)    33%,
    var(--brand-red)    66%,
    var(--brand-yellow) 66%,
    var(--brand-yellow) 100%);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }

/* ---------- Static hero banner (used on subpages, no carousel) ---------- */
.hero__banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 600;
  object-fit: cover;
}

/* ---------- Callout (info / warning panels in long-form pages) ---------- */
.callout {
  background: var(--brand-blue-soft);
  border-left: 3px solid var(--brand-blue);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 22px 0;
  color: var(--text);
  line-height: 1.7;
}
.callout p { margin: 0; }
.callout--warn {
  background: var(--brand-red-soft);
  border-left-color: var(--brand-red);
}
.callout--note {
  background: var(--surface-alt);
  border-left-color: var(--text-muted);
  font-size: .94rem;
  color: var(--text-muted);
}

/* ---------- Warning checklist (red cross bullets) ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 26px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.checklist li {
  padding: 14px 20px 14px 56px;
  position: relative;
  border-bottom: 1px solid var(--border);
  line-height: 1.65;
  background: var(--surface);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "\2715";                /* ✕ */
  position: absolute;
  left: 18px;
  top: 14px;
  width: 24px;
  height: 24px;
  background: var(--brand-red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}

/* ---------- Providers grid ---------- */
.providers {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--surface);   /* white - sits between gray §10 and gray marquee */
}
.providers__head {
  text-align: center;
  letter-spacing: .25em;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 32px;
  text-transform: uppercase;
}
.providers__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.providers__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  padding: 14px 18px;
  transition: border-color .2s, background .2s, transform .2s;
}
.providers__cell:hover {
  border-color: var(--brand-blue);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.providers__logo {
  max-height: 36px;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .providers__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .providers__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .providers__cell { padding: 10px 12px; }
  .providers__logo { max-height: 28px; }
}

/* ---------- Licences marquee ---------- */
.marquee {
  padding: 36px 0 40px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.marquee__head {
  text-align: center;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 22px;
  text-transform: uppercase;
}
.marquee__head .dot {
  color: var(--brand-red);
  margin: 0 .6em;
  font-weight: 900;
}
.marquee__viewport {
  overflow: hidden;
  /* Soft fade at left/right edges so logos slide in/out gracefully */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  list-style: none;
  padding: 0;
  margin: 0;
  animation: marquee-scroll 32s linear infinite;
}
.marquee__track li { flex-shrink: 0; }
.marquee__logo {
  height: 52px;
  width: auto;
  display: block;
  opacity: .92;
  transition: opacity .2s, transform .2s;
}
.marquee__logo:hover { opacity: 1; transform: scale(1.06); }
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* exactly half the (doubled) track */
}

@media (max-width: 600px) {
  .marquee__track { gap: 48px; }
  .marquee__logo  { height: 40px; }
  .marquee__head  { letter-spacing: .15em; font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .carousel__track { transition: none !important; }
  .marquee__track  { animation: none; transform: none; flex-wrap: wrap; justify-content: center; }
}
