/* ==========================================================================
   CouponTested — frontend stylesheet
   Mobile first. No frameworks, no external fonts.

   Design notes
   - Palette: deep navy for structure, one green that means "tested", one
     amber that only ever appears on a saving. Colour carries meaning here,
     it is not decoration.
   - The coupon is the one loud object on the page: it is drawn as a paper
     ticket with a perforated rail. Everything else stays quiet.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour */
  --ink:        #101b2d;
  --ink-soft:   #37475e;
  --muted:      #5a6b80;
  --line:       #dde4ec;
  --line-soft:  #eaeff5;
  --bg:         #f4f6fa;
  --surface:    #ffffff;

  --primary:      #12385f;
  --primary-600:  #0d2b4a;
  --primary-100:  #e7eef6;

  --verified:     #0b7a53;
  --verified-bg:  #e6f4ee;

  --savings:      #a8500b;
  --savings-bg:   #fdf1e3;

  --danger:       #b3261e;
  --danger-bg:    #fdecea;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Spacing scale (4px base) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 88px;

  /* Shape */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;

  --shadow-1: 0 1px 2px rgba(16, 27, 45, .06);
  --shadow-2: 0 4px 16px rgba(16, 27, 45, .08);
  --shadow-3: 0 12px 32px rgba(16, 27, 45, .12);

  --container: 1160px;
  --header-h: 64px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--s3);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.015em;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 1.35rem + 1.9vw, 2.6rem); }
h2 { font-size: clamp(1.4rem,  1.24rem + .75vw, 1.85rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--s4); padding-left: 1.15em; }
li { margin-bottom: var(--s2); }

code { font-family: var(--mono); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }

:focus-visible {
  outline: 3px solid #2f7fd1;
  outline-offset: 2px;
  border-radius: 3px;
}

.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; left: var(--s4); top: -60px; z-index: 200;
  background: var(--primary); color: #fff;
  padding: var(--s2) var(--s4); border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s4);
}
@media (min-width: 768px) { .container { padding-inline: var(--s5); } }

.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font: inherit; font-weight: 600; font-size: .94rem;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-600); }

.btn--deal { background: var(--savings); color: #fff; }
.btn--deal:hover { background: #8e440a; }

.btn--ghost {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--primary-100); border-color: #c6d6e6; }

.btn--copy { background: var(--verified); color: #fff; }
.btn--copy:hover { background: #096442; }
.btn--copy.is-copied { background: var(--ink); }

.btn--muted {
  background: var(--line-soft); color: var(--muted);
  border-color: var(--line); cursor: not-allowed;
}

.btn--block { width: 100%; }
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   4. Tags & badges
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .75rem; font-weight: 600; line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--line-soft);
  color: var(--ink-soft);
  white-space: nowrap;
}
.tag--verified { background: var(--verified-bg); color: var(--verified); }
.tag--best     { background: var(--savings-bg);  color: var(--savings); }
.tag--draft    { background: var(--danger-bg);   color: var(--danger); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--s4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  margin-right: auto;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 1.22rem;
}
.brand:hover { text-decoration: none; }
.brand__mark { display: inline-flex; width: 32px; height: 32px; flex: 0 0 32px; }
.brand__mark-body  { fill: var(--primary); }
.brand__mark-check { stroke: #fff; }

.brand__logo-image { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 4px; }
.brand__coupon { color: var(--ink); }
.brand__tested { color: var(--verified); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  padding: var(--s4);
}
.site-nav.is-open { display: block; }
.site-nav__list { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.site-nav__list li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.site-nav__list a {
  display: block; padding: 12px 4px;
  color: var(--ink); font-weight: 600; font-size: .97rem;
}
.site-nav__list a[aria-current="page"] { color: var(--primary); }

.header-search { display: flex; }
.header-search input {
  flex: 1 1 auto; min-width: 0;
  font: inherit; font-size: .95rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  background: var(--bg);
  color: var(--ink);
}
.header-search input:focus { background: var(--surface); }
.header-search button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; border: 1px solid var(--primary); background: var(--primary);
  color: #fff; border-radius: 0 var(--r-sm) var(--r-sm) 0; cursor: pointer;
  font-size: 1.05rem;
}
.header-search button:hover { background: var(--primary-600); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; align-items: center; gap: var(--s5);
    position: static; padding: 0; border: 0; box-shadow: none; background: none;
  }
  .site-nav__list { display: flex; gap: var(--s5); margin: 0; }
  .site-nav__list li { border: 0; }
  .site-nav__list a { padding: 6px 0; font-size: .93rem; color: var(--ink-soft); }
  .site-nav__list a:hover { color: var(--primary); text-decoration: none; }
  .site-nav__list a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--primary); }
  .header-search { width: 230px; }
}

/* --------------------------------------------------------------------------
   6. Section rhythm
   -------------------------------------------------------------------------- */
.section { padding-block: var(--s7); }
.section--tight { padding-block: var(--s6); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { margin-bottom: var(--s6); max-width: 62ch; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }

@media (min-width: 768px) { .section { padding-block: var(--s8); } }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  background: var(--primary);
  color: #dfe8f2;
  padding-block: var(--s7);
  border-bottom: 4px solid var(--verified);
}
.hero__inner { max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: var(--s4); }
.hero__lead { font-size: 1.06rem; color: #c8d6e6; margin-bottom: var(--s5); max-width: 56ch; }

.hero-search { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.hero-search input {
  flex: 1 1 240px; min-width: 0;
  font: inherit; font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: #fff; color: var(--ink);
}
.hero-search .btn { flex: 0 0 auto; padding-inline: 24px; }

.hero__proof {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  list-style: none; margin: var(--s5) 0 0; padding: 0;
  font-size: .88rem; color: #b7c8db;
}
.hero__proof li { display: flex; align-items: center; gap: 7px; margin: 0; }
.hero__proof .ico { color: #6ddba8; }

/* --------------------------------------------------------------------------
   8. Trust cards & steps
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--s4); }
.grid--4 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

@media (min-width: 620px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s5);
}
.trust-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: var(--s3);
  border-radius: var(--r-sm);
  background: var(--primary-100); color: var(--primary);
  font-size: 1.1rem;
}
.trust-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.trust-card p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Steps: a real sequence, so numbering is information here */
.steps { counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s5) var(--s5) var(--s5) 68px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: var(--s5); top: var(--s5);
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: .9rem; font-weight: 700;
}
.step h3 { font-size: 1.02rem; margin-bottom: 5px; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   9. Store cards
   -------------------------------------------------------------------------- */
.store-grid {
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
}
@media (min-width: 560px)  { .store-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .store-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .store-grid { grid-template-columns: repeat(4, 1fr); } }

.store-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s4);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.store-card:hover { border-color: #c2d3e4; box-shadow: var(--shadow-2); }

.store-card__link { display: block; color: inherit; margin-bottom: var(--s3); }
.store-card__link:hover { text-decoration: none; }

.store-card__media {
  display: flex; align-items: center; justify-content: center;
  height: 76px; margin-bottom: var(--s3);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.store-card__media img { max-height: 56px; width: auto; object-fit: contain; }
.store-card__initials {
  font-size: 1.35rem; font-weight: 700; letter-spacing: .02em;
  color: var(--primary);
}
.store-card__title {
  display: block;
  font-size: 1.02rem; font-weight: 700; color: var(--ink);
  line-height: 1.3; margin-bottom: 4px;
}
.store-card__desc { display: block; font-size: .88rem; color: var(--muted); }

.store-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2);
  margin-top: auto; padding-top: var(--s3);
  border-top: 1px solid var(--line-soft);
  margin-bottom: var(--s3);
}
.store-card__date { font-size: .78rem; color: var(--muted); }

/* Load more */
.load-more-wrap { margin-top: var(--s6); text-align: center; }
.load-more-note { margin-top: var(--s3); font-size: .9rem; color: var(--muted); }
.btn.is-loading { position: relative; color: transparent; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   10. Post (store) page
   -------------------------------------------------------------------------- */
.post-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: var(--s5) var(--s6);
}
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: var(--s4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: #b6c2d1; }

.post-hero__inner { display: flex; flex-wrap: wrap; gap: var(--s5); align-items: flex-start; }
.post-hero__logo {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  width: 104px; height: 104px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s3);
}
.post-hero__logo img { max-height: 76px; width: auto; object-fit: contain; }
.post-hero__logo .store-card__initials { font-size: 1.8rem; }
.post-hero__text { flex: 1 1 320px; }
.post-hero__text h1 { margin-bottom: var(--s3); }
.post-hero__desc { color: var(--muted); max-width: 68ch; margin-bottom: var(--s4); }
.post-hero__facts {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  list-style: none; margin: 0; padding: 0;
  font-size: .85rem; color: var(--muted);
}
.post-hero__facts li { margin: 0; display: flex; align-items: center; gap: 6px; }

.layout {
  display: grid; gap: var(--s6);
  grid-template-columns: 1fr;
  padding-block: var(--s6);
}
@media (min-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s7); }
}

.sidebar { display: grid; gap: var(--s4); align-content: start; }
.side-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s5);
}
.side-box h2 { font-size: 1rem; margin-bottom: var(--s3); }
.side-box p, .side-box li { font-size: .88rem; color: var(--muted); }
.side-box ul { margin: 0; padding-left: 1.1em; }

/* Coupon filter bar */
.coupon-filter {
  display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s4);
  margin-bottom: var(--s5);
}
.coupon-filter label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.coupon-filter input[type="search"] {
  flex: 1 1 220px; min-width: 0;
  font: inherit; font-size: .95rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink);
}
.coupon-filter input[type="search"]:focus { background: var(--surface); }
.coupon-filter__count { font-size: .85rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   11. The coupon ticket — the one loud object
   -------------------------------------------------------------------------- */
.coupon-list { display: grid; gap: var(--s4); }

.coupon {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.coupon:hover { border-color: #c2d3e4; box-shadow: var(--shadow-2); }
.coupon.is-featured { border-color: #e2c49a; }
.coupon.is-expired  { opacity: .72; }

/* Left rail: the discount, on a torn-ticket edge */
.coupon__rail {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  padding: var(--s4);
  background: var(--primary-100);
  border-bottom: 2px dashed #c4d5e6;
  text-align: center;
}
.coupon__discount {
  font-size: 1.55rem; font-weight: 800; line-height: 1;
  letter-spacing: -.03em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.coupon.is-featured .coupon__rail { background: var(--savings-bg); border-color: #e6c9a5; }
.coupon.is-featured .coupon__discount { color: var(--savings); }
.coupon__kind {
  font-size: .72rem; font-weight: 600;
  color: var(--muted);
}

.coupon__main { padding: var(--s4); }
.coupon__head { display: flex; align-items: flex-start; gap: var(--s3); margin-bottom: 6px; }
.coupon__title { font-size: 1.05rem; margin: 0; flex: 1 1 auto; }
.coupon__desc { font-size: .92rem; color: var(--muted); margin-bottom: var(--s3); }

.coupon__facts {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
  list-style: none; margin: 0; padding: 0;
  font-size: .8rem; color: var(--muted);
}
.coupon__facts .fact { display: flex; align-items: center; gap: 5px; margin: 0; }
.fact--verified { color: var(--verified); font-weight: 600; }
.fact--warn { color: var(--danger); font-weight: 600; }

.coupon__terms { margin-top: var(--s3); font-size: .84rem; }
.coupon__terms summary {
  cursor: pointer; color: var(--primary); font-weight: 600;
  width: max-content;
}
.coupon__terms p { margin: var(--s2) 0 0; color: var(--muted); }

.coupon__action {
  display: flex; flex-direction: column; gap: var(--s2); justify-content: center;
  padding: var(--s4);
  border-top: 1px solid var(--line-soft);
  background: #fbfcfe;
}
.coupon__action .btn { width: 100%; }

/* "Show code" with the last characters peeking out, like a torn stub */
.js-reveal { position: relative; padding-right: 62px; overflow: hidden; }
.btn__peek {
  position: absolute; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  width: 54px;
  background: rgba(255, 255, 255, .18);
  border-left: 2px dashed rgba(255, 255, 255, .5);
  font-family: var(--mono); font-size: .82rem; letter-spacing: .04em;
}

.coupon__code { display: grid; gap: var(--s2); }
.coupon__code-text {
  display: block; text-align: center;
  padding: 11px 12px;
  border: 2px dashed var(--verified);
  border-radius: var(--r-sm);
  background: var(--verified-bg);
  color: var(--ink);
  font-size: 1rem; font-weight: 700; letter-spacing: .06em;
  overflow-wrap: anywhere;
}
.coupon__store-link { font-size: .85rem; text-align: center; font-weight: 600; }

@media (min-width: 760px) {
  .coupon { grid-template-columns: 132px minmax(0, 1fr) 210px; }
  .coupon__rail {
    border-bottom: 0;
    border-right: 2px dashed #c4d5e6;
  }
  /* Perforation notches */
  .coupon__rail::before,
  .coupon__rail::after {
    content: ""; position: absolute; right: -9px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--line);
  }
  .coupon__rail::before { top: -9px; }
  .coupon__rail::after  { bottom: -9px; }
  .coupon.is-featured .coupon__rail { border-right-color: #e6c9a5; }
  .coupon__action { border-top: 0; border-left: 1px solid var(--line-soft); }
}

/* --------------------------------------------------------------------------
   12. Post content & FAQ
   -------------------------------------------------------------------------- */
.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s5);
  margin-top: var(--s6);
  max-width: 78ch;
}
.prose h2 { font-size: 1.35rem; margin-top: var(--s6); }
.prose h3 { font-size: 1.1rem; margin-top: var(--s5); }
.prose > :first-child { margin-top: 0; }
.prose img { border-radius: var(--r-sm); margin-block: var(--s4); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--s4); font-size: .93rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--bg); }
.prose blockquote {
  margin: var(--s4) 0; padding: var(--s3) var(--s4);
  border-left: 3px solid var(--primary-100); color: var(--muted);
}

.faq-list { display: grid; gap: var(--s2); }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  width: 100%;
  font: inherit; font-size: 1rem; font-weight: 600; text-align: left;
  color: var(--ink); background: none; border: 0;
  padding: var(--s4) var(--s5);
  cursor: pointer;
}
.faq-item__q:hover { background: #fafcfe; }
.faq-item__sign {
  flex: none; width: 20px; height: 20px; position: relative;
}
.faq-item__sign::before,
.faq-item__sign::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px; background: var(--primary);
  transform: translate(-50%, -50%);
  transition: transform .18s ease;
}
.faq-item__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item__q[aria-expanded="true"] .faq-item__sign::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item__a { padding: 0 var(--s5) var(--s4); color: var(--muted); font-size: .95rem; }
.faq-item__a[hidden] { display: none; }

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s5);
}
.field { margin-bottom: var(--s4); }
.field label {
  display: block; margin-bottom: 6px;
  font-weight: 600; font-size: .9rem; color: var(--ink);
}
.field .hint { display: block; margin-top: 5px; font-size: .82rem; color: var(--muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="date"],
.field input[type="number"],
.field input[type="password"],
.field input[type="search"],
.field select,
.field textarea {
  width: 100%;
  font: inherit; font-size: .95rem;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field .error-text { display: block; margin-top: 5px; font-size: .84rem; color: var(--danger); }
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: var(--danger); background: #fffafa; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert {
  padding: var(--s3) var(--s4);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--r-sm);
  margin-bottom: var(--s4);
  font-size: .93rem;
}
.alert--ok    { background: var(--verified-bg); border-color: var(--verified); color: #08533a; }
.alert--error { background: var(--danger-bg);   border-color: var(--danger);   color: #8a1d17; }
.alert--info  { background: var(--primary-100); border-color: var(--primary);  color: var(--primary-600); }

/* --------------------------------------------------------------------------
   14. Pages, empty states, toast
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: var(--s6);
}
.page-head p { color: var(--muted); max-width: 68ch; margin-bottom: 0; }

.legal { max-width: 76ch; }
.legal h2 { font-size: 1.25rem; margin-top: var(--s6); }
.legal h3 { margin-top: var(--s5); }
.legal .updated { font-size: .85rem; color: var(--muted); }
.legal-note {
  background: var(--primary-100);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-sm);
  padding: var(--s3) var(--s4);
  font-size: .9rem;
  margin-bottom: var(--s5);
}

.empty {
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r);
  padding: var(--s7) var(--s5);
}
.empty__title { font-size: 1.1rem; margin-bottom: 6px; }
.empty__body { color: var(--muted); max-width: 46ch; margin-inline: auto; margin-bottom: var(--s4); }
.empty__body:last-child { margin-bottom: 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300;
  transform: translate(-50%, 12px);
  background: var(--ink); color: #fff;
  padding: 11px 20px; border-radius: 999px;
  font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-3);
  opacity: 0; transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.pagination {
  display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center;
  margin-top: var(--s6); list-style: none; padding: 0;
}
.pagination li { margin: 0; }
.pagination a, .pagination span {
  display: block; min-width: 40px; text-align: center;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: .9rem; font-weight: 600;
}
.pagination .is-current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #9fb0c4;
  padding-block: var(--s7) var(--s5);
  margin-top: var(--s8);
  font-size: .92rem;
}
.footer-grid {
  display: grid; gap: var(--s6);
  grid-template-columns: 1fr;
  padding-bottom: var(--s6);
  border-bottom: 1px solid #24344a;
}
@media (min-width: 620px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.brand--footer { font-size: 1.15rem; margin-bottom: var(--s3); }
.brand--footer .brand__coupon { color: #fff; }
.brand--footer .brand__mark { width: 28px; height: 28px; flex-basis: 28px; }
.brand--footer .brand__mark-body { fill: #1f4d78; }
.footer-brand__text { max-width: 46ch; font-size: .88rem; line-height: 1.65; }

.footer-col__title {
  font-size: .8rem; font-weight: 700; color: #fff;
  margin-bottom: var(--s3);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #9fb0c4; font-size: .9rem; }
.footer-col a:hover { color: #fff; }

.footer-disclosure {
  padding-block: var(--s5);
  font-size: .84rem; line-height: 1.65;
  color: #8698ad;
  border-bottom: 1px solid #24344a;
  max-width: 90ch;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  justify-content: space-between;
  padding-top: var(--s5);
  font-size: .82rem; color: #7d8ea3;
}
.footer-bottom p { margin: 0; }


/* Header AJAX search suggestions */
.header-search { position: relative; }
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  min-width: 280px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #d9e1ea);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(16, 27, 45, .14);
  padding: 6px;
}
.search-suggestions[hidden] { display: none; }
.search-suggestions a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  color: var(--ink, #101b2d);
  text-decoration: none;
  border-radius: 6px;
}
.search-suggestions a:hover,
.search-suggestions a.is-active { background: var(--surface-2, #f4f6fa); }
.search-suggestions img { flex: 0 0 auto; object-fit: contain; border: 1px solid var(--line, #d9e1ea); border-radius: 5px; background: #fff; }
.search-suggestions span { display: grid; min-width: 0; }
.search-suggestions strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestions small { color: var(--muted, #607086); }
.search-suggestions .search-suggestions__all { justify-content: center; border-top: 1px solid var(--line, #d9e1ea); margin-top: 4px; font-weight: 700; color: var(--primary, #12385f); }
@media (max-width: 899px) {
  .search-suggestions { position: static; margin-top: 8px; max-height: 300px; }
}
