/* =========================================================
   AlibabaLoot.in — main stylesheet
   Tokens -> base -> layout -> components -> pages
   ========================================================= */

@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Hind"; src: url("../fonts/hind-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hind"; src: url("../fonts/hind-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hind"; src: url("../fonts/hind-rupee-400.woff2") format("woff2"); font-weight: 400; unicode-range: U+20B9; font-display: swap; }
@font-face { font-family: "Hind"; src: url("../fonts/hind-rupee-600.woff2") format("woff2"); font-weight: 600 800; unicode-range: U+20B9; font-display: swap; }

:root {
  --ink: #1E1858;
  --ink-2: #332C86;
  --paper: #F5F6FB;
  --surface: #FFFFFF;
  --surface-2: #EEF0F8;
  --line: #E1E3EF;
  --text: #17153A;
  --muted: #5B5F7E;
  --marigold: #FFB400;
  --marigold-soft: #FFF3D1;
  --hot: #D9282C;
  --save: #0B8A5E;
  --save-soft: #E2F5EC;
  --focus: #FFB400;
  --on-ink: #FFFFFF;
  --on-ink-muted: #C5C2EC;

  --font-display: "Bricolage", "Hind", system-ui, sans-serif;
  --font-body: "Hind", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(23, 21, 58, .06), 0 6px 18px -8px rgba(23, 21, 58, .18);
  --wrap: 1240px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F0D29;
    --surface: #18153B;
    --surface-2: #211D4D;
    --line: #2D2964;
    --text: #EDECFB;
    --muted: #A7A5CE;
    --marigold-soft: #3A2E10;
    --save-soft: #0F3326;
    --save: #3DD39C;
    --hot: #FF6B6E;
    --ink: #120F38;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 20px -10px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F0D29; --surface: #18153B; --surface-2: #211D4D; --line: #2D2964;
  --text: #EDECFB; --muted: #A7A5CE; --marigold-soft: #3A2E10; --save-soft: #0F3326;
  --save: #3DD39C; --hot: #FF6B6E; --ink: #120F38;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 20px -10px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--marigold); color: #1E1858; padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.stack > * + * { margin-top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .55em 1.15em;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 var(--step-0)/1 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-gold { background: var(--marigold); color: #1E1858; }
.btn-gold:hover { background: #FFC533; }
.btn-ink { background: #1E1858; color: #fff; }
.btn-ink:hover { background: #332C86; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(127,127,160,.12); }
.btn-sm { min-height: 36px; padding: .4em .95em; font-size: var(--step--1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-ink { background: var(--marigold); color: #1E1858; } }
:root[data-theme="dark"] .btn-ink { background: var(--marigold); color: #1E1858; }

/* ---------- header ---------- */
.site-header {
  background: #1E1858; color: #fff;
  position: relative; z-index: 40;
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: #fff; flex: none; }
.brand svg { width: 40px; height: 40px; }
.brand-word { font: 800 1.35rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand-word b { color: var(--marigold); font-weight: 800; }
.brand-word small { display: block; font: 400 .72rem/1.2 var(--font-body); color: var(--on-ink-muted); letter-spacing: 0; margin-top: 3px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav a {
  color: #E8E6FF; text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: .55rem .8rem; border-radius: 999px;
}
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255,180,0,.16); color: var(--marigold); }
.nav .btn { margin-left: .5rem; }
.theme-toggle, .menu-toggle {
  background: transparent; border: 0; color: #fff; width: 44px; height: 44px;
  border-radius: 999px; display: inline-grid; place-items: center; cursor: pointer;
}
.theme-toggle:hover, .menu-toggle:hover { background: rgba(255,255,255,.1); }
.theme-toggle svg, .menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle { display: none; margin-left: auto; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #1E1858; padding: .5rem var(--gutter) 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .nav.is-open { display: flex; box-shadow: 0 18px 30px -12px rgba(0,0,0,.5); }
  .nav a { padding: .85rem .5rem; border-radius: var(--r-sm); font-size: 1.05rem; }
  .nav .btn { margin: .5rem 0 0; }
  .theme-toggle { margin-left: 0; }
}

/* ---------- store chips ---------- */
.chips-bar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.chips {
  display: flex; gap: .5rem; overflow-x: auto; padding: .65rem var(--gutter);
  max-width: var(--wrap); margin: 0 auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .95rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--text);
  min-height: 38px;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); flex: none; }
.chip:hover { border-color: var(--c, var(--ink-2)); }
.chip[aria-current="page"] { background: var(--text); color: var(--paper); border-color: var(--text); }
.chip-hot { background: var(--hot); border-color: var(--hot); color: #fff; }
.chip-hot i { background: #fff; }

/* ---------- hero (home) ---------- */
.hero { background: #1E1858; color: #fff; overflow: hidden; position: relative; }
.hero::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px;
  background: url("../img/brand/mark-outline.svg") no-repeat center / contain; opacity: .07; pointer-events: none;
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 3rem; align-items: center; padding-top: 3.25rem; padding-bottom: 3.5rem; position: relative; z-index: 1;
}
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: .4em; }
.hero h1 .tag-word {
  display: inline-block; background: var(--marigold); color: #1E1858;
  padding: 0 .28em .04em .5em; margin-left: -.05em;
  clip-path: polygon(.32em 0, 100% 0, 100% 100%, .32em 100%, 0 50%);
}
.hero-lede { color: var(--on-ink-muted); font-size: var(--step-1); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-actions .btn-ghost { color: #fff; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; color: var(--on-ink-muted); font-size: .95rem; }
.hero-facts li { display: flex; align-items: center; gap: .45rem; }
.hero-facts svg { width: 18px; height: 18px; color: var(--marigold); }

/* live tape */
.tape {
  background: var(--surface); color: var(--text);
  border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(0,0,0,.55);
  overflow: hidden;
}
.tape-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.tape-head h2 { font-size: 1.05rem; margin: 0; display: flex; align-items: center; gap: .55rem; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 0 rgba(217,40,44,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(217,40,44,0); } 100% { box-shadow: 0 0 0 0 rgba(217,40,44,0); } }
.tape-head a { font-size: .9rem; font-weight: 600; color: var(--muted); }
.tape-list { list-style: none; margin: 0; padding: 0; max-height: 432px; overflow: hidden; }
.tape-item a {
  display: grid; grid-template-columns: 56px 1fr auto; gap: .85rem; align-items: center;
  padding: .7rem 1.1rem; text-decoration: none; border-bottom: 1px solid var(--line);
}
.tape-item a:hover { background: var(--surface-2); }
.tape-item img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: var(--r-sm); border: 1px solid var(--line); }
.tape-title { font-weight: 600; font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tape-meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.tape-price { font: 750 1rem/1 var(--font-display); color: var(--save); white-space: nowrap; }
.tape-item.is-new a { animation: flash-in 1.2s ease-out; }
@keyframes flash-in { from { background: var(--marigold-soft); } to { background: transparent; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.25rem; padding-bottom: 2.5rem; }
  .hero h1 { max-width: 18ch; }
  .tape-list { max-height: 360px; }
}

/* ---------- sections ---------- */
.section { padding: 2.75rem 0; }
.section-tight { padding: 1.75rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .25rem 0 0; color: var(--muted); }
.section-head .more { font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--marigold); padding-bottom: 1px; }
.section-head .more:hover { color: var(--ink-2); }
.cat-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--c); margin-right: .55rem; vertical-align: .08em; transform: rotate(45deg); }

/* ---------- banners ---------- */
.banners { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: thin; }
.banners a { scroll-snap-align: start; border-radius: var(--r-md); overflow: hidden; display: block; background: var(--surface-2); aspect-ratio: 16 / 8.8; }
.banners img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.banners a:hover img { transform: scale(1.02); }
@media (min-width: 1100px) { .banners { grid-auto-columns: calc((100% - 2rem) / 3); } }

/* ---------- deal card ---------- */
.deal-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 12px; scrollbar-width: thin;
}
.deal-row > * { scroll-snap-align: start; }
.row-wrap { position: relative; }
.row-btn {
  position: absolute; top: 40%; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  display: grid; place-items: center; cursor: pointer;
}
.row-btn svg { width: 20px; height: 20px; }
.row-btn.prev { left: -14px; } .row-btn.next { right: -14px; }
@media (max-width: 700px), (hover: none) { .row-btn { display: none; } .deal-row { grid-auto-columns: 168px; gap: .75rem; } }

.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
@media (max-width: 520px) { .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; } }

.deal {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; min-width: 0;
}
.deal:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
.deal-media { position: relative; aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; overflow: hidden; }
.deal-media img { width: 100%; height: 100%; object-fit: contain; }
.price-tag {
  position: absolute; left: 0; top: 10px;
  background: var(--marigold); color: #1E1858;
  font: 800 1.02rem/1 var(--font-display);
  padding: .38rem .7rem .38rem .55rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  padding-right: 1.05rem;
}
.price-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: .4rem; vertical-align: .14em; }
.off { position: absolute; right: 8px; top: 10px; background: var(--save-soft); color: var(--save); font-weight: 600; font-size: .78rem; padding: .2rem .5rem; border-radius: 999px; }
.deal-body { padding: .7rem .8rem .8rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.deal-cat { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.deal-cat i { width: 7px; height: 7px; border-radius: 2px; background: var(--c, var(--muted)); transform: rotate(45deg); }
.deal-title { font: 600 .95rem/1.35 var(--font-body); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.deal-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .3rem; }
.deal-time { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.deal-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.deal .btn { position: relative; z-index: 2; }
@media (max-width: 520px) {
  .deal-body { padding: .55rem .6rem .65rem; }
  .deal-title { font-size: .88rem; }
  .deal .btn-sm { padding: .35em .7em; min-height: 32px; }
  .price-tag { font-size: .92rem; }
}

/* skeleton */
.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-md); }
.skel-card { height: 340px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.ad-slot { display: grid; place-items: center; min-height: 270px; background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--r-md); position: relative; overflow: hidden; }
.ad-slot::before { content: "Sponsored"; position: absolute; top: 6px; left: 10px; font-size: .72rem; color: var(--muted); }
.ad-wide { min-height: 110px; margin: 1.5rem auto 0; max-width: 760px; }
@media (max-width: 760px) { .ad-wide { display: none; } }
.ad-native { margin: 0 auto; }

.notice { padding: 1.25rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-align: center; color: var(--muted); grid-column: 1 / -1; }
.notice strong { color: var(--text); display: block; margin-bottom: .25rem; }

.load-more { display: flex; justify-content: center; margin-top: 1.75rem; }

/* ---------- page header (inner pages) ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 1.75rem 0 1.5rem; }
.page-head h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin-bottom: .3em; }
.page-head p { color: var(--muted); max-width: 70ch; margin: 0; font-size: var(--step-1); }
.page-head .live-line { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .92rem; margin-top: .85rem; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: .75rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head.has-color { border-top: 5px solid var(--c); }

/* ---------- category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.tile {
  display: grid; grid-template-columns: 64px 1fr; gap: .9rem; align-items: center;
  padding: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  text-decoration: none; border-left: 5px solid var(--c);
}
.tile:hover { border-color: var(--c); }
.tile img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); }
.tile h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.tile p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.4; }

/* ---------- telegram ---------- */
.tg-band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.tg-band h2 { margin-bottom: .3rem; }
.tg-band p { margin: 0; color: var(--muted); max-width: 60ch; }
.tg-band .tg-icon { color: #229ED9; }
@media (max-width: 700px) { .tg-band { grid-template-columns: 1fr; padding: 1.25rem; } }
.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .85rem; }
.channel {
  display: grid; grid-template-columns: 52px 1fr auto; gap: .85rem; align-items: center;
  padding: .8rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  text-decoration: none;
}
.channel:hover { border-color: #229ED9; }
.channel img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.channel h3 { margin: 0; font-size: 1rem; }
.channel p { margin: 0; font-size: .86rem; color: var(--muted); }
.channel .join { font-weight: 600; font-size: .88rem; color: #1A8BC4; }
.channel.is-main { border-color: var(--marigold); background: linear-gradient(0deg, var(--marigold-soft), var(--marigold-soft)); }
.folders { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- stores ---------- */
.store-tools { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.search {
  width: 100%; min-height: 48px; padding: .6rem 1rem .6rem 2.75rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B5F7E' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 1rem center / 20px;
  color: var(--text); font: inherit;
}
.az { display: flex; flex-wrap: wrap; gap: .3rem; }
.az button { min-width: 34px; min-height: 34px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 .88rem var(--font-body); cursor: pointer; }
.az button[aria-pressed="true"] { background: var(--text); color: var(--paper); }
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.store {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center;
  padding: 1rem .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  text-decoration: none; font-weight: 600; font-size: .92rem;
}
.store:hover { border-color: var(--ink-2); }
.store-logo { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font: 800 1.35rem var(--font-display); color: #fff; background: var(--c, #332C86); overflow: hidden; }
.store-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.store small { color: var(--muted); font-weight: 400; }

.offer { display: grid; grid-template-columns: 72px 1fr; gap: .9rem; padding: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); align-items: start; }
.offer img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: var(--r-sm); border: 1px solid var(--line); }
.offer h3 { font: 600 1rem/1.35 var(--font-body); margin: 0 0 .35rem; }
.offer .meta { font-size: .82rem; color: var(--muted); margin-bottom: .55rem; }
.code { display: inline-block; font-weight: 600; border: 1.5px dashed var(--marigold); background: var(--marigold-soft); padding: .1rem .5rem; border-radius: var(--r-sm); margin-right: .4rem; }
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .85rem; }
@media (max-width: 400px) { .offers { grid-template-columns: 1fr; } }

/* ---------- prose (legal/blog/about) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--ink-2); text-decoration-color: var(--marigold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prose a { color: var(--marigold); } }
:root[data-theme="dark"] .prose a { color: var(--marigold); }
.prose blockquote { margin: 1.25rem 0; padding: .75rem 1rem; border-left: 4px solid var(--marigold); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem; }
.aside-card h2 { font-size: 1.1rem; }
.aside-card + .aside-card { margin-top: 1rem; }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem; text-decoration: none; display: flex; flex-direction: column; gap: .5rem; }
.post-card:hover { border-color: var(--ink-2); }
.post-card h2 { font-size: 1.25rem; margin: 0; }
.post-card p { margin: 0; color: var(--muted); }
.post-card time { font-size: .85rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: .6rem; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 1rem; }
.faq summary { cursor: pointer; padding: .9rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.3rem/1 var(--font-display); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 1rem; }

.seo-copy { color: var(--muted); max-width: 80ch; }
.seo-copy h2 { color: var(--text); font-size: 1.4rem; }

/* contact */
.form { display: grid; gap: 1rem; max-width: 560px; }
.form label { font-weight: 600; display: block; margin-bottom: .35rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: .75rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; min-height: 48px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -5000px; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: var(--save); }
.form-status.err { color: var(--hot); }

/* ---------- footer ---------- */
.site-footer { background: #1E1858; color: var(--on-ink-muted); margin-top: 3rem; padding: 3rem 0 1.5rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #0A0820; } }
:root[data-theme="dark"] .site-footer { background: #0A0820; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-about p { max-width: 38ch; font-size: .95rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.foot-bottom p { margin: 0; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* 404 */
.lost { text-align: center; padding: 4rem 0; }
.lost svg { width: 120px; height: 120px; margin: 0 auto 1rem; }

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

/* ---------- fixes ---------- */
h1 svg, h2 svg, h3 svg { width: 1em; height: 1em; vertical-align: -0.12em; }
.tg-band h2 { display: flex; align-items: center; gap: .5rem; }
.deal-title a { text-decoration: none; color: inherit; }
.deal:hover .deal-title a { text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; }
@media (max-width: 600px) {
  .section-head { flex-wrap: wrap; align-items: baseline; }
  .section-head h2 { font-size: 1.4rem; }
  .section-head .more { font-size: .9rem; }
}
