/* =========================================================================
   Saver's Cut — deals & coupons UI
   Visual identity lives here so the page holds its shape even before the
   Tailwind CDN finishes loading. Theme: the physical world of coupons —
   price tags, tear-off perforations, receipt-style monospaced prices.
   ========================================================================= */

:root {
  /* Palette */
  --ink:        #15172A;  /* deep indigo navy — text + headers */
  --ink-soft:   #3A3D55;
  --muted:      #6B6E84;
  --faint:      #9A9CAD;
  --paper:      #FBFAF6;  /* warm near-white page */
  --surface:    #FFFFFF;
  --line:       #ECE7DC;  /* warm hairline */
  --line-2:     #DED8CA;
  --brand:      #E8462E;  /* vermillion deal-accent — discount tag + primary CTA */
  --brand-ink:  #B5331F;
  --mint:       #0E9E8F;  /* "verified / active coupon" */
  --mint-soft:  #E3F4F1;
  --gold:       #E0A12E;
  --ink-95:     rgba(21,23,42,.95);

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Shape + depth */
  --radius:   14px;
  --radius-sm:9px;
  --shadow:   0 1px 2px rgba(21,23,42,.05), 0 8px 24px -16px rgba(21,23,42,.25);
  --shadow-lg:0 18px 48px -22px rgba(21,23,42,.40);

  --maxw: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 10px;
}

/* ---------- Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-block { width: 100%; }

/* =========================================================================
   HEADER — two layers, sticky
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
}

/* Layer 1 — brand + global search */
.header-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  color: #fff;
  flex: 0 0 auto;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--brand);
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  color: #fff;
  position: relative;
}
.brand-mark::after { /* punch-hole — price-tag motif */
  content: "";
  position: absolute;
  top: 6px; right: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink);
}
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.search {
  margin-left: auto;
  position: relative;
  flex: 1 1 460px;
  max-width: 460px;
}
.search input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 11px 16px 11px 42px;
  outline: none;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--brand); }
.search svg {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--muted);
}

/* search suggestions dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  max-height: 60vh;
  overflow-y: auto;
}
.search-results.open { display: block; }
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result.active { background: var(--paper); }
.search-result img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: var(--paper); }
.search-result .sr-title { font-size: 14px; font-weight: 600; }
.search-result .sr-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.search-empty { padding: 18px 16px; color: var(--muted); font-size: 14px; }

/* Layer 2 — nav */
.header-nav { background: var(--ink); border-top: 1px solid rgba(255,255,255,.08); }
.nav-bar {
  display: flex;
  align-items: stretch;
  gap: 2px;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: rgba(255,255,255,.82);
  padding: 14px 16px;
  border-bottom: 3px solid transparent;
  transition: color .15s ease, border-color .15s ease;
  cursor: pointer;
}
.nav-link:hover, .nav-item:hover > .nav-link,
.nav-link[aria-current="page"] { color: #fff; border-bottom-color: var(--brand); }
.nav-link .caret { width: 12px; height: 12px; transition: transform .18s ease; opacity: .7; }
.nav-item:hover .nav-link .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  color: var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 120;
}
.nav-item:hover > .dropdown,
.nav-item.open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
}
.dropdown a:hover { background: var(--paper); color: var(--ink); }
.dropdown a .arrow { color: var(--brand); opacity: 0; transform: translateX(-4px); transition: .15s ease; }
.dropdown a:hover .arrow { opacity: 1; transform: translateX(0); }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 9px;
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center; justify-content: center;
}

/* =========================================================================
   SECTION HEADERS
   ========================================================================= */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { color: var(--muted); margin: 6px 0 0; max-width: 52ch; }
.section-link { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding: 22px 0 0; letter-spacing: .02em; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--line-2); margin: 0 6px; }

/* category chips (landing pages) */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  background: var(--surface); border: 1.5px solid var(--line-2);
  border-radius: 999px; padding: 9px 16px; color: var(--ink);
  transition: border-color .15s ease, transform .15s ease, color .15s ease;
}
.cat-chip svg { color: var(--brand); transition: transform .15s ease; }
.cat-chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.cat-chip:hover svg { transform: translateX(2px); }

/* =========================================================================
   HERO (home)
   ========================================================================= */
.hero {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(232,70,46,.10), transparent 55%),
    var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  padding: 64px 0 72px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.hero h1 .mark { color: var(--brand); }
.hero p { color: rgba(255,255,255,.74); font-size: 18px; max-width: 46ch; margin: 18px 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; }
.hero-stat .num { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--gold); }
.hero-stat .lbl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* the floating "receipt" card in the hero — signature flavour */
.receipt {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: rotate(1.4deg);
  max-width: 360px;
  margin-left: auto;
}
.receipt::before, .receipt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background-image: radial-gradient(circle at 7px 0, transparent 6px, #fff 6px);
  background-size: 14px 12px;
}
.receipt::before { top: -11px; background-position: 0 -6px; transform: scaleY(-1); }
.receipt::after  { bottom: -11px; }
.receipt .r-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.receipt .r-row .v { font-weight: 700; }
.receipt .r-row.total { border-bottom: 0; font-size: 16px; padding-top: 12px; }
.receipt .r-row.total .v { color: var(--mint); }
.receipt .r-head { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.receipt .r-strike { text-decoration: line-through; color: var(--faint); }

/* =========================================================================
   CATALOG GRID — square tiles (deals + stores)
   ========================================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 22px;
}

.tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tile:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.tile-media { position: relative; aspect-ratio: 1 / 1; background: var(--paper); overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover .tile-media img { transform: scale(1.04); }

.merchant-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ink-95);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 7px;
  backdrop-filter: blur(2px);
}

/* signature: notched price-tag discount badge */
.discount-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  padding: 9px 12px 9px 16px;
  border-radius: 7px;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%, 0 50%);
}
.discount-badge::after { /* tag punch hole */
  content: ""; position: absolute;
  left: 7px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.85);
}

.tile-body { padding: 15px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.tile-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.28;
  color: var(--ink);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.56em;
}
.price-block { display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px; }
.price-now { font-family: var(--font-mono); font-weight: 700; font-size: 20px; color: var(--ink); }
.price-was { font-family: var(--font-mono); font-size: 13px; color: var(--faint); text-decoration: line-through; }

/* signature: tear-off coupon pill */
.coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 13px;
  padding: 8px 6px 8px 12px;
  border: 1.5px dashed var(--mint);
  border-radius: 9px;
  background: var(--mint-soft);
  position: relative;
}
.coupon::before, .coupon::after { /* perforation notches on the sides */
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%; background: var(--surface);
  border: 1.5px dashed var(--mint);
}
.coupon::before { left: -5px; clip-path: inset(0 0 0 50%); }
.coupon::after  { right: -5px; clip-path: inset(0 50% 0 0); }
.coupon-code { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--mint); letter-spacing: .04em; }
.coupon-copy {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  background: var(--mint); color: #fff; border: 0; border-radius: 6px;
  padding: 5px 9px; cursor: pointer; white-space: nowrap;
}
.coupon-copy:hover { filter: brightness(.94); }
.coupon.nocode { border-style: solid; border-color: var(--line-2); background: var(--paper); }
.coupon.nocode .coupon-code { color: var(--muted); }

.tile-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile-time { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.see-deal {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  padding: 9px 15px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s ease, transform .15s ease;
}
.see-deal:hover { background: var(--brand); transform: translateY(-1px); }

/* =========================================================================
   BLOG — rectangular horizontal cards
   ========================================================================= */
.blog-list { display: flex; flex-direction: column; gap: 18px; }
.post-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.post-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.post-media { aspect-ratio: 16/10; background: var(--paper); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-body { padding: 24px 26px; display: flex; flex-direction: column; justify-content: center; }
.post-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 9px; }
.post-meta .dot { color: var(--line-2); margin: 0 7px; }
.post-meta .time { color: var(--muted); }
.post-card h3 { font-size: 23px; line-height: 1.18; margin-bottom: 9px; }
.post-card p { color: var(--muted); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.post-card:hover .read-more { color: var(--brand); }

/* =========================================================================
   ITEM DETAILS PAGE
   ========================================================================= */
.detail-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; padding: 32px 0 64px; }
.detail-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.detail-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.detail-info .merchant-line { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.detail-info h1 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 18px; }
.detail-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.detail-price .now { font-family: var(--font-mono); font-weight: 700; font-size: 36px; color: var(--ink); }
.detail-price .was { font-family: var(--font-mono); font-size: 18px; color: var(--faint); text-decoration: line-through; }
.detail-price .save { background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 13px; padding: 5px 11px; border-radius: 7px; }
.detail-desc { color: var(--ink-soft); font-size: 16.5px; line-height: 1.65; margin: 20px 0 26px; }

/* big coupon block on details page */
.coupon-box {
  border: 2px dashed var(--mint);
  background: var(--mint-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 22px;
  position: relative;
}
.coupon-box .cb-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: 6px; }
.coupon-box .cb-code { font-family: var(--font-mono); font-weight: 700; font-size: 26px; color: var(--ink); letter-spacing: .06em; }
.coupon-box.nocode { border-style: solid; border-color: var(--line-2); background: var(--paper); }
.coupon-box.nocode .cb-label, .coupon-box.nocode .cb-code { color: var(--muted); }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-actions .btn { padding: 14px 26px; font-size: 15px; }
.detail-foot { margin-top: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

/* =========================================================================
   BLOG POST PAGE
   ========================================================================= */
.article { max-width: 760px; margin: 0 auto; padding: 30px 0 72px; }
.article-hero { aspect-ratio: 16/8; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 22px 0 28px; background: var(--surface); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.05; margin-bottom: 14px; }
.article-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.article-meta .cat { color: var(--brand); }
.article-body { font-size: 18px; line-height: 1.75; color: var(--ink-soft); }
.article-body p { margin: 0 0 22px; }
.article-body h2 { font-size: 27px; margin: 38px 0 14px; }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   STATES — loading skeleton + empty/error
   ========================================================================= */
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px,1fr)); gap: 22px; }
.skel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.skel .bar, .skel .sq { background: linear-gradient(90deg, #f1eee7 25%, #e7e3da 37%, #f1eee7 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.skel .sq { aspect-ratio: 1/1; }
.skel .pad { padding: 15px; }
.skel .bar { height: 13px; border-radius: 5px; margin-bottom: 9px; }
.skel .bar.w60 { width: 60%; } .skel .bar.w40 { width: 40%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.state {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
}
.state h3 { font-size: 22px; margin-bottom: 8px; }
.state p { color: var(--muted); margin: 0 0 18px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 52px 0 36px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14px; max-width: 34ch; margin: 14px 0 0; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-display); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: rgba(255,255,255,.66); }
.footer-col a:hover { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.5); }
.footer-disclosure { max-width: 70ch; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 999;
  display: inline-flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .check { color: var(--mint); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding: 44px 0 52px; }
  .receipt { margin: 0 auto; }
  .detail-wrap { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .post-card { grid-template-columns: 200px 1fr; }
}

@media (max-width: 760px) {
  .header-top { flex-wrap: wrap; gap: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .nav-toggle { display: inline-flex; }
  .header-nav { position: fixed; inset: 0; top: 0; background: var(--ink); z-index: 200; transform: translateX(100%); transition: transform .25s ease; padding-top: 70px; overflow-y: auto; }
  .header-nav.open { transform: translateX(0); }
  .nav-bar { flex-direction: column; align-items: stretch; padding: 0 14px; }
  .nav-link { border-bottom: 0; padding: 16px 6px; font-size: 18px; justify-content: space-between; }
  .nav-link:hover, .nav-item:hover > .nav-link { border-bottom: 0; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 10px 14px; border-radius: 0; display: none; }
  .nav-item.open > .dropdown { display: block; }
  .dropdown a { color: rgba(255,255,255,.7); padding: 9px 6px; }
  .dropdown a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .nav-item:hover .nav-link .caret { transform: none; }
  .nav-item.open .nav-link .caret { transform: rotate(180deg); }
  .nav-close { position: fixed; top: 16px; right: 16px; background: transparent; border: 0; color: #fff; font-size: 30px; cursor: pointer; z-index: 210; }
  .post-card { grid-template-columns: 1fr; }
  .post-media { aspect-ratio: 16/9; }
  .section { padding: 40px 0; }
}

.nav-close { display: none; }
@media (max-width: 760px) { .nav-close { display: block; } }

/* a11y */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
a:focus-visible, button:focus-visible { border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
