/*
  Light Theme Stylesheet
  - Mobile-first responsive CSS
  - Uses CSS variables for theme
  - BEM naming
  - Detailed comments for blocks/components
*/

:root {
  /* Theme tokens */
  --color-brand: #131a4e; /* Header color as requested */
  --color-brand-contrast: #ffffff;
  --color-bg: #ffffff;
  --color-surface: #f6f7fb;
  --color-text: #14151a;
  --color-muted: #6b7280;
  --color-cta: #ff3e55;
  --color-cta-contrast: #ffffff;
  --color-border: #e5e7eb;

  --radius-s: .5rem;
  --radius-m: .75rem;
  --radius-l: 1rem;

  --shadow-s: 0 1px 2px rgba(0,0,0,.06);
  --shadow-m: 0 6px 18px rgba(0,0,0,.12);
  --shadow-table: 0 4px 24px rgba(19, 26, 78, .08);

  --color-brand-light: #eef0f8;
  --color-brand-muted: #4a5280;
  --color-accent-soft: rgba(255, 62, 85, .12);

  --container: 1200px;
}

/* CSS Reset (minimal) */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; background: var(--color-bg); color: var(--color-text); line-height: 1.6; }
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }

/* Accessibility helpers */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; background: #fff; color: #000; padding: .5rem .75rem; border-radius: var(--radius-s); box-shadow: var(--shadow-m); z-index: 1000; }

/* Header Block */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-brand); color: var(--color-brand-contrast); box-shadow: var(--shadow-s); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 64px; }
.header__logo img { display: block; }

/* Navigation */
.header__menu-toggle { background: transparent; color: var(--color-brand-contrast); border: 1px solid rgba(255,255,255,.18); padding: .5rem .75rem; border-radius: .5rem; display: none; align-items: center; cursor: pointer; }
.header__nav { display: flex; align-items: center; }
.header__menu { display: none; list-style: none; gap: .5rem; padding: 0; margin: 0; }
.header__menu a { padding: .5rem .75rem; border-radius: .5rem; }
.header__menu a:hover { background: rgba(255,255,255,.12); }
.header__actions { display: inline-flex; gap: .5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .6rem 1rem; border-radius: .6rem; font-weight: 600; border: 1px solid transparent; transition: transform .1s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn:focus-visible { outline: 3px solid rgba(255,255,255,.7); outline-offset: 2px; }
.btn--ghost { background: transparent; color: var(--color-brand-contrast); border-color: rgba(255,255,255,.24); }
.btn--secondary { background: #ffffff; color: var(--color-brand); }
.btn--primary { background: var(--color-cta); color: var(--color-cta-contrast); box-shadow: 0 6px 16px rgba(255,62,85,.3); }
.btn--cta { background: var(--color-cta); color: var(--color-cta-contrast); padding: .8rem 1.25rem; font-size: 1.1rem; box-shadow: 0 8px 24px rgba(255,62,85,.35); }
.btn:hover { transform: translateY(-1px); }

/* Hero/Banner Block */
.hero { position: relative; isolation: isolate; display: grid; }
.hero picture, .hero img { width: 100%; display: block; grid-area: 1 / 1; }

/* Desktop web banner: taller crop anchored to top so faces stay visible */
@media (min-width: 768px) {
  .hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center top;
  }
  .hero__overlay {
    align-self: start;
    justify-self: start;
    margin: 1.5rem;
    max-width: min(520px, 46%);
    text-align: left;
  }
}
.hero__overlay { grid-area: 1 / 1; align-self: center; justify-self: center; position: relative; background: rgba(19,26,78,.72); color: #fff; padding: 1rem; border-radius: var(--radius-m); backdrop-filter: saturate(130%) blur(4px); max-width: min(720px, 92%); text-align: center; margin: 2vw; }
.hero__title { margin: 0 0 .25rem; font-size: 1.5rem; }
.hero__subtitle { margin: 0 0 .75rem; color: #e6e9ff; }

/* Breadcrumbs */
.breadcrumbs { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.breadcrumbs ol { margin: 0; padding: .5rem 1rem; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumbs a { color: var(--color-brand); text-decoration: underline; }
.breadcrumbs li { color: var(--color-muted); }

/* Slots Grid */
.slots { padding: 2rem 0; }
.section-intro { color: var(--color-muted); margin: 0 0 1rem; }
.slots__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0; }
.slot { display: block; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--color-border); background: #fff; box-shadow: var(--shadow-s); }
.slot img { aspect-ratio: 1 / 1; object-fit: cover; }
.slot:hover { box-shadow: var(--shadow-m); transform: translateY(-1px); }

/* Content */
.content { padding: 2rem 0; }
.content h2 { margin: 0 0 .75rem; }
.content h3 { margin: 2rem 0 .5rem; }
.content h4 { margin: 1.25rem 0 .5rem; }
.content p { margin: 0 0 1rem; }

/* Anchor targets: offset for sticky header */
.content [id] {
  scroll-margin-top: 5rem;
}

/* Table of contents */
.content .toc {
  margin: 0 0 1.75rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, var(--color-brand-light) 0%, #fff 100%);
  border: 1px solid rgba(19, 26, 78, .12);
  border-left: 4px solid var(--color-cta);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
}

.content .toc__title {
  margin: 0 0 .75rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-brand);
}

.content .toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .35rem .75rem;
  grid-template-columns: 1fr;
}

.content .toc__list a {
  display: block;
  padding: .45rem .65rem;
  border-radius: var(--radius-s);
  color: var(--color-brand);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.35;
  transition: background .2s ease, color .2s ease;
}

.content .toc__list a:hover,
.content .toc__list a:focus-visible {
  background: rgba(19, 26, 78, .08);
  color: var(--color-cta);
  outline: none;
}

@media (min-width: 640px) {
  .content .toc__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .content .toc__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Lists */
.content ul:not(.toc__list),
.content ol:not(.toc__list) {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .65rem;
}

.content ul:not(.toc__list) > li,
.content ol:not(.toc__list) > li {
  position: relative;
  padding: .85rem 1rem .85rem 2.75rem;
  background: var(--color-brand-light);
  border: 1px solid rgba(19, 26, 78, .08);
  border-radius: var(--radius-m);
  line-height: 1.55;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.content ul:not(.toc__list) > li:hover,
.content ol:not(.toc__list) > li:hover {
  border-color: rgba(19, 26, 78, .16);
  box-shadow: var(--shadow-s);
}

.content ul:not(.toc__list) > li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--color-cta);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.content ol:not(.toc__list) {
  counter-reset: content-step;
}

.content ol:not(.toc__list) > li {
  counter-increment: content-step;
  padding-left: 3.25rem;
}

.content ol:not(.toc__list) > li::before {
  content: counter(content-step);
  position: absolute;
  left: .85rem;
  top: .75rem;
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-brand-contrast);
  background: linear-gradient(135deg, var(--color-brand) 0%, #2a3578 100%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(19, 26, 78, .25);
}

/* FAQ block */
.content .faq { margin-top: 2rem; }
.content .faq__item { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--color-border); }
.content .faq__item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.content .faq__item h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.content .faq__item p { margin: 0; }

/* Tables */
.content .table-responsive {
  width: 100%;
  margin: 0 0 1.75rem;
  overflow-x: auto;
  border-radius: var(--radius-l);
  background: #fff;
  border: 1px solid rgba(19, 26, 78, .1);
  box-shadow: var(--shadow-table);
}

.content .table-responsive table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 560px;
}

.content .table-responsive table:has(thead th:nth-child(4)) {
  min-width: 720px;
}

.content .table-responsive thead th {
  padding: .95rem 1.1rem;
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-brand-contrast);
  background: linear-gradient(135deg, var(--color-brand) 0%, #1e2868 100%);
  border-bottom: 3px solid var(--color-cta);
}

.content .table-responsive thead th:first-child {
  border-radius: var(--radius-l) 0 0 0;
}

.content .table-responsive thead th:last-child {
  border-radius: 0 var(--radius-l) 0 0;
}

.content .table-responsive tbody td {
  padding: .9rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(19, 26, 78, .08);
  line-height: 1.5;
}

.content .table-responsive tbody tr:last-child td {
  border-bottom: none;
}

.content .table-responsive tbody tr:nth-child(even) td {
  background: var(--color-brand-light);
}

.content .table-responsive tbody tr:hover td {
  background: #e8ebf6;
}

.content .table-responsive tbody td:first-child {
  font-weight: 600;
  color: var(--color-brand);
  white-space: nowrap;
}

.content .table-responsive tbody td:last-child {
  color: var(--color-text);
}

/* Mobile stacked tables */
@media (max-width: 640px) {
  .content .table-responsive {
    overflow: hidden;
    background: var(--color-surface);
    border: none;
    box-shadow: none;
  }

  .content .table-responsive table {
    display: block;
    min-width: 0;
  }

  .content .table-responsive thead {
    display: none;
  }

  .content .table-responsive tbody {
    display: grid;
    gap: .85rem;
    padding: .25rem;
  }

  .content .table-responsive tr {
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    border: 1px solid rgba(19, 26, 78, .1);
    border-left: 4px solid var(--color-cta);
    border-radius: var(--radius-m);
    overflow: hidden;
    box-shadow: var(--shadow-s);
  }

  .content .table-responsive tbody tr:nth-child(even) td,
  .content .table-responsive tbody tr:hover td {
    background: #fff;
  }

  .content .table-responsive td {
    display: grid;
    grid-template-columns: minmax(7rem, 38%) 1fr;
    gap: .65rem;
    padding: .75rem 1rem;
    border: none;
    border-bottom: 1px solid rgba(19, 26, 78, .08);
  }

  .content .table-responsive td:last-child {
    border-bottom: none;
  }

  .content .table-responsive td::before {
    content: attr(data-label);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--color-brand-muted);
  }

  .content .table-responsive td:first-child {
    white-space: normal;
    background: var(--color-brand-light);
    font-weight: 700;
    color: var(--color-brand);
  }
}

/* Footer */
.site-footer { background: #0f143e; color: #cdd3ff; padding: 2rem 0; margin-top: 2rem; }
.payments__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0 0 1rem; align-items: center; }
.payments__grid li { display: grid; place-items: center; }
.payments__grid img { width: auto; max-width: 72px; height: auto; filter: drop-shadow(0 0 0 rgba(255,255,255,0)); transition: filter .25s ease, transform .2s ease; }
.payments__grid img:hover { filter: drop-shadow(0 0 16px rgba(255,255,255,.65)); transform: translateY(-2px); }
.legal { font-size: .9rem; color: #aab2ff; }
/* store badges removed per request */

/* Larger screens */
@media (min-width: 640px) {
  .header__menu { display: flex; }
  .header__actions { display: inline-flex; }
  .header__menu-toggle { display: none; }
  .hero__title { font-size: 2rem; }
  .slots__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .payments__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .payments__grid img { max-width: 88px; }
  .badge { padding: .5rem .8rem; }
  .badge__icon { width: 26px; height: 26px; }
}

@media (min-width: 1024px) {
  .badge { padding: .6rem 1rem; }
  .badge__icon { width: 28px; height: 28px; }
}

@media (min-width: 1024px) {
  .hero__overlay { margin: 2rem; max-width: min(560px, 40%); }
  .hero__title { font-size: 2.25rem; }
  .slots__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}


