/* ==========================================================================
PromoCod - shared design system
Single accent (signal orange), neutral zinc-leaning base, Manrope type.
========================================================================== */

:root {
--bg: #f6f7f9;
--surface: #ffffff;
--surface-alt: #eef0f3;
--text: #14161a;
--text-muted: #5b6270;
--border: #e2e4e9;
--accent: #ff5a1f;
--accent-strong: #e64912;
--accent-soft: #fff1ea;
--accent-ink: #14161a;
--success: #16a34a;
--success-soft: #eafbf1;
--success-ink: #14161a;
--radius-sm: 8px;
--radius-md: 14px;
--radius-lg: 22px;
--radius-pill: 999px;
--shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.06);
--shadow-md: 0 8px 24px rgba(20, 22, 26, 0.08);
--shadow-lg: 0 20px 48px rgba(20, 22, 26, 0.12);
--font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
--font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
--container: 1280px;
color-scheme: light;
}

/* PromoCod intentionally ships a single, branded light theme rather than
following the visitor's OS dark-mode setting, so the page never renders
as a "black page" for people whose system is set to dark. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: var(--font-sans);
font-size: 16px;
line-height: 1.55;
-webkit-font-smoothing: antialiased;
transition: background-color .25s ease, color .25s ease;
position: relative;
}

/* Subtle fixed grain, adds a tactile, printed feel without costing repaint
on scroll (pointer-events:none, fixed, never on a scrolling container). */
body::before {
content: "";
position: fixed;
inset: 0;
z-index: 1;
pointer-events: none;
opacity: .035;
mix-blend-mode: multiply;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* Safety net: any inline icon SVG that isn't sized by a more specific rule
below falls back to a sane size instead of rendering at its huge
un-sized intrinsic default. More specific rules (e.g. .btn svg) win. */
svg:not([width]) { max-width: 24px; max-height: 24px; }

.container {
max-width: var(--container);
margin: 0 auto;
padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
font-family: var(--font-sans);
font-weight: 800;
letter-spacing: -0.02em;
line-height: 1.08;
margin: 0;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.lede {
font-size: 1.1rem;
color: var(--text-muted);
max-width: 60ch;
}
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }

/* ---------- Skip link / a11y ---------- */
.skip-link {
position: absolute;
left: -9999px;
top: 0;
background: var(--accent);
color: var(--accent-ink);
padding: 10px 16px;
border-radius: var(--radius-sm);
z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}

/* ---------- Top utility bar ---------- */
.topbar {
background: var(--surface-alt);
border-bottom: 1px solid var(--border);
font-size: 13px;
}
.topbar .container {
display: flex;
align-items: center;
justify-content: space-between;
height: 38px;
gap: 16px;
}
.topbar-msg { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selectors { display: flex; align-items: center; gap: 10px; }

.selector {
position: relative;
}
.selector-btn {
display: flex;
align-items: center;
gap: 6px;
background: transparent;
border: 1px solid var(--border);
color: var(--text);
font-family: var(--font-sans);
font-size: 13px;
font-weight: 600;
padding: 5px 10px;
border-radius: var(--radius-pill);
cursor: pointer;
transition: border-color .15s ease, transform .1s ease;
}
.selector-btn:hover { border-color: var(--accent); }
.selector-btn:active { transform: scale(0.98); }
.selector-btn svg { width: 14px; height: 14px; }

.selector-menu {
position: absolute;
top: calc(100% + 8px);
right: 0;
min-width: 190px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
padding: 6px;
display: none;
z-index: 100;
}
.selector.open .selector-menu { display: block; }
.selector-menu button {
display: flex;
width: 100%;
align-items: center;
gap: 8px;
background: none;
border: none;
color: var(--text);
font-family: var(--font-sans);
font-size: 14px;
padding: 8px 10px;
border-radius: var(--radius-sm);
cursor: pointer;
text-align: left;
}
.selector-menu button:hover { background: var(--surface-alt); }
.selector-menu button[aria-checked="true"] { color: var(--accent-strong); font-weight: 700; }

/* ---------- Nav ---------- */
.nav {
position: sticky;
top: 0;
z-index: 50;
background: color-mix(in srgb, var(--bg) 88%, transparent);
backdrop-filter: blur(14px) saturate(140%);
-webkit-backdrop-filter: blur(14px) saturate(140%);
border-bottom: 1px solid var(--border);
}
.nav .container {
display: flex;
align-items: center;
justify-content: space-between;
height: 68px;
gap: 24px;
}
.brand {
display: flex;
align-items: center;
gap: 8px;
font-weight: 800;
font-size: 1.15rem;
letter-spacing: -0.02em;
flex-shrink: 0;
}
.brand-mark {
width: 30px;
height: 30px;
border-radius: 9px;
background: linear-gradient(155deg, var(--accent), var(--accent-strong));
display: flex;
align-items: center;
justify-content: center;
color: var(--accent-ink);
font-weight: 800;
font-size: 14px;
}
.nav-links {
display: flex;
align-items: center;
gap: 4px;
flex: 1;
min-width: 0;
}
.nav-links a {
padding: 8px 12px;
border-radius: var(--radius-pill);
font-size: 14px;
font-weight: 600;
color: var(--text-muted);
white-space: nowrap;
transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--surface-alt); color: var(--text); }
.nav-links a.active { background: var(--accent-soft); color: var(--accent-strong); }
.nav-cta {
flex-shrink: 0;
display: flex;
align-items: center;
gap: 10px;
}
.nav-toggle {
display: none;
background: none;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
width: 40px;
height: 40px;
align-items: center;
justify-content: center;
cursor: pointer;
color: var(--text);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
font-family: var(--font-sans);
font-weight: 700;
font-size: 15px;
padding: 12px 22px;
border-radius: var(--radius-pill);
border: 1px solid transparent;
cursor: pointer;
white-space: nowrap;
transition: transform .12s ease, box-shadow .2s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
background: var(--accent);
color: var(--accent-ink);
box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-strong); box-shadow: var(--shadow-md); }
.btn-ghost {
background: transparent;
border-color: var(--border);
color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
padding: 64px 0 88px;
position: relative;
overflow: hidden;
}
.hero::before {
content: "";
position: absolute;
top: -220px;
right: -160px;
width: 620px;
height: 620px;
z-index: 0;
pointer-events: none;
background:
radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 68%);
filter: blur(10px);
}
.hero::after {
content: "";
position: absolute;
bottom: -260px;
left: -200px;
width: 520px;
height: 520px;
z-index: 0;
pointer-events: none;
background:
radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--success) 14%, transparent), transparent 70%);
filter: blur(10px);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
display: grid;
grid-template-columns: 1.1fr 0.9fr;
gap: 56px;
align-items: center;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12.5px;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--accent-strong);
background: var(--accent-soft);
padding: 6px 12px;
border-radius: var(--radius-pill);
margin-bottom: 18px;
}
.hero h1 { margin-bottom: 18px; }
.hero .lede { margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
display: flex;
gap: 28px;
margin-top: 40px;
padding-top: 28px;
border-top: 1px solid var(--border);
}
.stat-num { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.stat-label { font-size: 12.5px; color: var(--text-muted); }

/* Featured promo card (used as hero visual + throughout site) */
.promo-card {
background: var(--surface);
border: 1px solid var(--border);
border-top: 3px solid var(--accent);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
padding: 28px;
position: relative;
overflow: hidden;
}
.promo-card::before {
content: "";
position: absolute;
inset: -40% -40% auto auto;
width: 220px;
height: 220px;
background: radial-gradient(circle, var(--accent-soft), transparent 70%);
pointer-events: none;
}
.promo-card-top {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 18px;
}
.store-chip {
display: flex;
align-items: center;
gap: 10px;
}
.store-logo {
width: 40px;
height: 40px;
border-radius: 10px;
background: linear-gradient(155deg, var(--accent-soft), var(--surface-alt));
color: var(--accent-strong);
display: flex;
align-items: center;
justify-content: center;
font-weight: 800;
font-size: 14px;
border: 1px solid var(--border);
}
.store-name { font-weight: 700; font-size: 15px; }
.store-sub { font-size: 12.5px; color: var(--text-muted); }
.discount-badge {
background: var(--success-soft);
color: var(--success-ink);
font-weight: 800;
font-size: 13px;
padding: 5px 10px;
border-radius: var(--radius-pill);
}
.promo-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.promo-card .desc { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

.code-row {
display: flex;
align-items: stretch;
gap: 10px;
margin-bottom: 14px;
}
.code-box {
flex: 1;
border: 1.5px dashed var(--border);
border-radius: var(--radius-md);
background: var(--surface-alt);
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 12px 16px;
font-family: var(--font-mono);
font-weight: 700;
font-size: 1.15rem;
letter-spacing: 0.08em;
}
.copy-btn {
display: flex;
align-items: center;
gap: 8px;
background: var(--accent);
color: var(--accent-ink);
border: none;
border-radius: var(--radius-md);
padding: 0 18px;
font-family: var(--font-sans);
font-weight: 700;
font-size: 14px;
cursor: pointer;
min-width: 128px;
justify-content: center;
transition: background-color .15s ease, transform .1s ease;
}
.copy-btn:hover { background: var(--accent-strong); }
.copy-btn:active { transform: scale(0.96); }
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn.copied {
background: var(--success);
color: var(--success-ink);
}
.copy-btn[data-state="idle"] .lbl-copied,
.copy-btn[data-state="copied"] .lbl-copy { display: none; }
.copy-btn[data-state="copied"] .lbl-copied { display: inline; }

.go-link {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
padding: 12px;
border-radius: var(--radius-md);
border: 1px solid var(--border);
font-weight: 700;
font-size: 14px;
color: var(--text);
transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.go-link:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.go-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Trust strip ---------- */
.trust {
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
background: var(--surface-alt);
padding: 22px 0;
}
.trust .container {
display: flex;
align-items: center;
gap: 36px;
flex-wrap: wrap;
justify-content: space-between;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.trust-item svg { width: 18px; height: 18px; color: var(--accent-strong); flex-shrink: 0; }

/* ---------- Section shell ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--surface-alt); }
.section-head {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 24px;
margin-bottom: 36px;
flex-wrap: wrap;
}
.section-head h2 { max-width: 46ch; }
.section-head p { margin-top: 10px; }

/* ---------- Category grid (bento) ---------- */
.cat-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 18px;
}
.cat-card {
grid-column: span 2;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 26px;
display: flex;
flex-direction: column;
gap: 14px;
transition: border-color .15s ease, transform .15s ease, box-shadow .2s ease;
position: relative;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-card.featured {
grid-column: span 3;
background: linear-gradient(155deg, var(--surface), var(--accent-soft));
}
.cat-card.wide { grid-column: span 4; }
.cat-icon {
width: 46px;
height: 46px;
border-radius: 12px;
background: var(--accent-soft);
color: var(--accent-strong);
display: flex;
align-items: center;
justify-content: center;
}
.cat-icon svg { width: 24px; height: 24px; }
.cat-card h3 { font-size: 1.1rem; }
.cat-count { font-size: 13px; color: var(--text-muted); }
.cat-card .go { margin-top: auto; font-size: 13.5px; font-weight: 700; color: var(--accent-strong); display: flex; align-items: center; gap: 6px; }
.cat-card .go svg { width: 14px; height: 14px; }

/* ---------- Deal list / cards ---------- */
.deal-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 22px;
}
.deal-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 22px;
display: flex;
flex-direction: column;
gap: 14px;
}
.deal-card.verified { border-color: var(--accent); border-top: 3px solid var(--accent); box-shadow: var(--shadow-md); }
.verified-tag {
align-self: flex-start;
display: flex;
align-items: center;
gap: 6px;
background: var(--success-soft);
color: var(--success-ink);
font-size: 12px;
font-weight: 800;
padding: 4px 10px;
border-radius: var(--radius-pill);
}
.verified-tag svg { width: 13px; height: 13px; }
.demo-tag {
align-self: flex-start;
font-size: 12px;
font-weight: 700;
color: var(--text-muted);
background: var(--surface-alt);
padding: 4px 10px;
border-radius: var(--radius-pill);
border: 1px dashed var(--border);
}
.deal-card .code-row { margin-bottom: 0; }
.deal-card .code-box { font-size: 1rem; padding: 10px 14px; }
.deal-card .copy-btn { min-width: 108px; font-size: 13px; }

/* ---------- Article / promo detail page ---------- */
.article-wrap {
display: grid;
grid-template-columns: 1fr 340px;
gap: 56px;
align-items: start;
}
.article-body h2 { margin-top: 48px; margin-bottom: 16px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin-bottom: 16px; color: var(--text); }
.article-body p.muted { color: var(--text-muted); }
.article-body ul { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body a.inline-link { color: var(--accent-strong); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sticky-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }
.breadcrumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--accent-strong); }
.faq-item { border-top: 1px solid var(--border); padding: 18px 0; }
.faq-item h3 { font-size: 1rem; margin-bottom: 8px; }
.faq-item p { color: var(--text-muted); font-size: 14.5px; }
.info-box {
background: var(--surface-alt);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 18px 20px;
font-size: 14px;
color: var(--text-muted);
}
.info-box strong { color: var(--text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--surface-alt); }
.footer-grid {
display: grid;
grid-template-columns: 1.4fr repeat(3, 1fr);
gap: 32px;
margin-bottom: 40px;
}
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 14.5px; color: var(--text); }
.footer a:hover { color: var(--accent-strong); }
.footer-bottom {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px;
padding-top: 24px;
border-top: 1px solid var(--border);
font-size: 13px;
color: var(--text-muted);
}
.footer-disclaimer { max-width: 70ch; font-size: 12.5px; color: var(--text-muted); margin-bottom: 24px; }

/* ---------- Toast (copy confirmation) ---------- */
.toast {
position: fixed;
bottom: 24px;
left: 50%;
transform: translate(-50%, 16px);
background: var(--text);
color: var(--bg);
padding: 12px 20px;
border-radius: var(--radius-pill);
font-size: 14px;
font-weight: 700;
display: flex;
align-items: center;
gap: 8px;
opacity: 0;
pointer-events: none;
transition: opacity .2s ease, transform .2s ease;
z-index: 300;
box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; color: var(--success); }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
position: fixed;
left: 16px;
right: 16px;
bottom: 16px;
max-width: 640px;
margin: 0 auto;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
padding: 18px 20px;
display: flex;
align-items: center;
gap: 16px;
flex-wrap: wrap;
z-index: 250;
transform: translateY(140%);
transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 13.5px; color: var(--text-muted); flex: 1 1 260px; }
.cookie-banner p a { color: var(--accent-strong); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner .cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- Legal / policy pages ---------- */
.legal-body h2 { margin-top: 36px; margin-bottom: 14px; font-size: 1.3rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 14px; color: var(--text); max-width: 72ch; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; max-width: 72ch; }
.legal-body li { margin-bottom: 8px; }
.legal-table {
width: 100%;
border-collapse: collapse;
margin: 8px 0 24px;
font-size: 14px;
}
.legal-table th, .legal-table td {
text-align: left;
padding: 10px 12px;
border-bottom: 1px solid var(--border);
vertical-align: top;
}
.legal-table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.legal-updated { color: var(--text-muted); font-size: 13.5px; margin-bottom: 32px; }

/* ---------- Reveal on scroll ----------
Visible by default (fail-safe if JS never runs). JS adds ".pending"
only once it has successfully set up the observer, then removes it
(adding ".in") when the element scrolls into view. */
.reveal { transition: opacity .5s ease, transform .5s ease; }
.reveal.pending { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
.hero-grid { grid-template-columns: 1fr; }
.article-wrap { grid-template-columns: 1fr; }
.sticky-side { position: static; }
.deal-grid { grid-template-columns: repeat(2, 1fr); }
.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
.nav-links, .nav .btn-ghost.lang-desktop { display: none; }
.nav-toggle { display: flex; }
.topbar-msg { display: none; }
.cat-grid { grid-template-columns: repeat(2, 1fr); }
.cat-card.featured, .cat-card.wide { grid-column: span 2; }
.deal-grid { grid-template-columns: 1fr; }
.footer-grid { grid-template-columns: 1fr; gap: 24px; }
.hero { padding: 40px 0 56px; }
.section { padding: 52px 0; }
}

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