:root {
    --ink: #14213d;
    --ink-soft: #33415c;
    --accent: #e63946;
    --accent-dark: #c1121f;
    --green: #0f8a4b;
    --bg: #f6f7fb;
    --card: #ffffff;
    --line: #e4e7ee;
    --muted: #6b7280;
    --radius: 14px;
    --shadow:
        0 1px 2px rgba(20, 33, 61, 0.06), 0 6px 20px rgba(20, 33, 61, 0.06);
    --font:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a {
    color: var(--accent-dark);
}
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: #fff3f4;
    color: var(--accent-dark);
    padding: 0.1em 0.45em;
    border-radius: 6px;
    font-size: 0.92em;
    border: 1px dashed #f5b5bb;
}
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}
.muted {
    color: var(--muted);
}
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Demo bar */
.demo-bar {
    background: #fff4cc;
    color: #6b4e00;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 16px;
}

/* Header (solid background, no backdrop-filter = smooth scrolling) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
}
.logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.logo::first-letter {
    color: var(--accent);
}
.header-meta {
    font-size: 0.8rem;
    color: var(--muted);
}
.section-nav {
    border-top: 1px solid var(--line);
}
.nav-scroll {
    position: relative;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.nav-scroll::-webkit-scrollbar {
    display: none;
}
.nav-scroll a {
    flex: 0 0 auto;
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    transition:
        background 0.15s,
        color 0.15s;
}
.nav-scroll a.is-active {
    background: var(--ink);
    color: #fff;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #14213d 0%, #2b3a67 100%);
    color: #fff;
    padding: 36px 0 44px;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 14px;
}
.breadcrumb a {
    color: #fff;
}
.hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    line-height: 1.15;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}
.hero-sub {
    font-size: 1.05rem;
    opacity: 0.85;
    margin: 0 0 22px;
    max-width: 680px;
}
.answer-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 16px 20px;
    max-width: 820px;
}
.answer-box p {
    margin: 0;
}
.answer-box code {
    background: #fff;
}
.stats {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 820px;
}
.stats li {
    background: #fff;
    color: var(--ink);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}
.stat-num {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-dark);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Sections */
.section {
    padding: 52px 0;
}
.section-alt {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.section h2 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    line-height: 1.25;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.lead {
    color: var(--ink-soft);
    margin: 0 0 24px;
    max-width: 760px;
}
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}
.section-head h2 {
    margin: 0;
}

/* Filters */
.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter {
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s;
}
.filter.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* Coupon cards */
.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}
.coupon {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.coupon.is-featured {
    border: 2px solid var(--accent);
}
.coupon[hidden] {
    display: none;
}
.coupon-top {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 9px;
    border-radius: 999px;
}
.badge-online {
    background: #e8f0fe;
    color: #1a56db;
}
.badge-instore {
    background: #e6f6ee;
    color: var(--green);
}
.badge-both {
    background: #f1e8fd;
    color: #6b21a8;
}
.badge-hot {
    background: #fde8ea;
    color: var(--accent-dark);
}
.badge-now {
    background: var(--accent);
    color: #fff;
    margin-left: 6px;
    vertical-align: middle;
}
.coupon-value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--accent-dark);
    margin: 0;
    line-height: 1.2;
}
.coupon-title {
    font-size: 1.05rem;
    margin: 6px 0 6px;
    line-height: 1.35;
}
.coupon-desc {
    font-size: 0.92rem;
    color: var(--ink-soft);
    margin: 0 0 14px;
    flex-grow: 1;
}
.coupon-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 14px;
}
.verified {
    color: var(--green);
    font-weight: 600;
}
.coupon-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.link-shop {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.terms {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--muted);
}
.terms summary {
    cursor: pointer;
    font-weight: 600;
}
.terms p {
    margin: 6px 0 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 10px;
    padding: 11px 18px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.15s,
        color 0.15s;
}
.btn:active {
    transform: scale(0.98);
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-code {
    position: relative;
    background: var(--accent);
    color: #fff;
    padding-right: 64px;
    overflow: hidden;
    min-width: 170px;
}
.btn-code .code-peek {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #fff3f4;
    color: var(--accent-dark);
    border: 2px dashed var(--accent);
    border-left: 0;
    border-radius: 0 10px 10px 0;
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
}
.btn-code.is-revealed {
    background: #fff3f4;
    color: var(--accent-dark);
    border: 2px dashed var(--accent);
    padding-right: 18px;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.05em;
}
.btn-code.is-revealed .code-peek {
    display: none;
}
.btn-outline {
    background: #fff;
    color: var(--ink);
    border: 1.5px solid var(--ink);
}
.btn-small {
    padding: 8px 14px;
    font-size: 0.85rem;
    background: var(--ink);
    color: #fff;
}
.btn:focus-visible,
.filter:focus-visible,
a:focus-visible {
    outline: 3px solid #ffb703;
    outline-offset: 2px;
}

/* Tables (become cards on mobile) */
.table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.data-table th {
    background: var(--ink);
    color: #fff;
    text-align: left;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 14px;
}
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.data-table tbody tr:nth-child(even) {
    background: #fafbfd;
}
.data-table tbody tr:last-child td {
    border-bottom: 0;
}
.calendar tr.is-current {
    background: #fff3f4 !important;
    box-shadow: inset 4px 0 0 var(--accent);
}

/* ===== Code activity ===== */
.activity-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 18px;
}
.activity-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    min-width: 0;
}
.activity-kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.activity-total {
    margin: 4px 0 0;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
}
.activity-sub {
    margin: 0 0 16px;
    color: var(--ink-soft);
    font-size: 0.9rem;
}
.spark {
    display: block;
    width: 100%;
    height: 160px;
}
.spark-grid line {
    stroke: var(--line);
    stroke-width: 1;
}
.spark-area {
    fill: rgba(15, 138, 75, 0.12);
}
.spark-line {
    fill: none;
    stroke: var(--green);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.spark-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--muted);
}
.feed {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}
.feed-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 0 0 18px 24px;
}
.feed-item::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: var(--line);
}
.feed-item:last-child {
    padding-bottom: 0;
}
.feed-item:last-child::before {
    display: none;
}
.feed-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--muted);
}
.feed-worked {
    background: var(--green);
}
.feed-failed {
    background: var(--accent);
}
.feed-expired {
    background: #9aa4ba;
}
.feed-body {
    flex: 1;
    min-width: 0;
}
.feed-line {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.feed-note {
    margin: 4px 0 2px;
    font-size: 0.88rem;
    color: var(--ink-soft);
}
.feed-meta {
    margin: 0;
    font-size: 0.76rem;
    color: var(--muted);
}
.feed-shot {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f1f3f9;
}
.chip {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 999px;
}
.chip-worked {
    background: #e6f6ee;
    color: var(--green);
}
.chip-failed {
    background: #fde8ea;
    color: var(--accent-dark);
}
.chip-expired {
    background: #eef0f5;
    color: var(--muted);
}

/* Printable */
.print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.print-card {
    background: #fff;
    border: 2px dashed var(--ink);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.print-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    margin-bottom: 12px;
}
.print-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-dark);
    margin: 0;
}
.print-title {
    font-weight: 600;
    margin: 4px 0 12px;
}
.print-code {
    font-size: 1.05rem;
    margin: 0 0 6px;
}
.print-code strong {
    font-family: ui-monospace, monospace;
    letter-spacing: 0.08em;
    background: #fff3f4;
    padding: 4px 10px;
    border-radius: 6px;
}
.print-exp {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 0 0 10px;
}
.print-fine {
    font-size: 0.72rem;
    color: var(--muted);
    margin: 0 0 14px;
}

/* ===== Printable pass images ===== */
.print-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 28px;
}
.print-image {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.print-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: #f1f3f9;
    border-bottom: 1px solid var(--line);
}
.print-image figcaption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px 0;
}
.print-image figcaption strong {
    font-size: 1rem;
    line-height: 1.35;
}
.print-image .print-fine {
    margin: 0;
    line-height: 1.45;
}
.print-image-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    padding: 14px 16px 16px;
}
.print-image-actions .btn {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.85rem;
    border-radius: 9px;
    border-width: 1px;
    border-color: var(--line);
}

/* ===== Checkout steps ===== */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 22px;
}
.step {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}
.step-shot {
    margin: 0;
}
.step-shot img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 120px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #f1f3f9;
}
.step-num {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-dark);
    background: #fde8ea;
    padding: 4px 10px;
    border-radius: 999px;
}
.step-text h3 {
    margin: 8px 0 6px;
    font-size: 1.1rem;
    line-height: 1.3;
}
.step-text p {
    margin: 0;
    color: var(--ink-soft);
}

.step--text {
    grid-template-columns: 1fr;
}
/* ===== Codes per month chart ===== */
.chart-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.chart-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 34px;
}
.chart-title {
    margin: 0;
    font-weight: 700;
    font-size: 1.05rem;
}
.chart-legend {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--ink-soft);
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}
.bar-plot {
    position: relative;
    height: 180px;
    display: grid;
    grid-template-columns: repeat(var(--cols, 12), 1fr);
    gap: 8px;
    align-items: end;
    border-bottom: 1px solid var(--line);
}
.bar-track {
    height: 100%;
    display: flex;
    align-items: flex-end;
}
.bar {
    position: relative;
    width: 100%;
    min-height: 4px;
    background: #d5dae6;
    border-radius: 6px 6px 0 0;
}
.bar.is-current {
    background: var(--accent);
}
.bar-val {
    position: absolute;
    left: 0;
    right: 0;
    top: -20px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-soft);
}
.bar-avg {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
    border-top: 2px dashed #9aa4ba;
    pointer-events: none;
}
.bar-avg span {
    position: absolute;
    right: 0;
    top: -24px;
    background: var(--ink);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.bar-labels {
    display: grid;
    grid-template-columns: repeat(var(--cols, 12), 1fr);
    gap: 8px;
    margin-top: 8px;
    font-size: 0.72rem;
    color: var(--muted);
    text-align: center;
}
.chart-summary {
    margin: 16px 0 0;
    color: var(--ink-soft);
    max-width: 760px;
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}
.product {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.product-img {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #f1f3f9, #e6e9f2);
}
.product-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.product-name {
    font-size: 0.98rem;
    line-height: 1.35;
    margin: 4px 0 8px;
    flex-grow: 1;
}
.product-price {
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}
.price-now {
    font-size: 1.15rem;
    font-weight: 800;
}
.price-was {
    color: var(--muted);
    font-size: 0.85rem;
}
.price-off {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--green);
    background: #e6f6ee;
    padding: 2px 7px;
    border-radius: 6px;
}

/* Prose */
.prose {
    max-width: 820px;
}
.prose h3 {
    font-size: 1.15rem;
    margin: 28px 0 8px;
}
.prose p,
.prose li {
    color: var(--ink-soft);
}
.prose ol {
    padding-left: 22px;
}
.prose li {
    margin-bottom: 8px;
}
.method-box {
    margin-top: 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 4px 20px 8px;
}
.section-alt .method-box {
    background: var(--bg);
}

/* ===== Store at a glance ===== */
.glance {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin: 0;
}
.glance-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
}
.glance-item dt {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.glance-item dd {
    margin: 4px 0 0;
    font-weight: 600;
}

/* FAQ */
.faq {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 48px 16px 18px;
    font-weight: 700;
    position: relative;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--accent);
    transition: transform 0.2s;
}
.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-a {
    padding: 0 18px 14px;
}
.faq-a p {
    margin: 0;
}

/* ===== Offer modal ===== */
.offer-modal {
    border: 0;
    padding: 0;
    border-radius: 18px;
    width: min(440px, calc(100% - 32px));
    color: var(--ink);
    background: #fff;
    box-shadow: 0 24px 70px rgba(20, 33, 61, 0.35);
}
.offer-modal::backdrop {
    background: rgba(20, 33, 61, 0.6);
}
body:has(.offer-modal[open]) {
    overflow: hidden;
}
.om-inner {
    position: relative;
    padding: 30px 24px 22px;
    text-align: center;
}
.om-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}
.om-store {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.om-value {
    margin: 4px 0 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--accent-dark);
}
.om-title {
    margin: 6px 0 18px;
    font-size: 1.1rem;
    line-height: 1.35;
}
.om-label {
    margin: 0 0 10px;
    font-size: 0.86rem;
    color: var(--ink-soft);
}
.om-code-row {
    display: flex;
    border: 2px dashed var(--accent);
    border-radius: 12px;
    overflow: hidden;
    background: #fff3f4;
}
.om-code {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--accent-dark);
    word-break: break-all;
}
.om-copy {
    flex-shrink: 0;
    border-radius: 0;
    min-width: 96px;
}
.om-copy.is-copied {
    background: var(--green);
}
.om-activated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #e6f6ee;
    color: var(--green);
    font-size: 1.2rem;
    font-weight: 800;
}
.om-shop {
    width: 100%;
    margin-top: 18px;
}
.om-terms {
    margin: 14px 0 0;
    font-size: 0.75rem;
    color: var(--muted);
}
.om-terms:empty {
    display: none;
}
.btn-deal {
    min-width: 170px;
}
@media (hover: hover) and (pointer: fine) {
    .om-close:hover {
        background: var(--bg);
        color: var(--ink);
    }
}
@media (max-width: 420px) {
    .btn-deal {
        width: 100%;
    }
    .om-code-row {
        flex-direction: column;
    }
    .om-copy {
        width: 100%;
    }
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: #cfd5e3;
    padding: 32px 0;
    font-size: 0.88rem;
}
.site-footer .muted {
    color: #9aa4ba;
}

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 120px);
    background: var(--ink);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease;
    z-index: 100;
    max-width: calc(100% - 32px);
}
.toast.is-visible {
    transform: translate(-50%, 0);
}

/* Hover effects only on devices with a real mouse (avoids sticky hover + repaints on touch) */
@media (hover: hover) and (pointer: fine) {
    .nav-scroll a:hover {
        background: var(--ink);
        color: #fff;
    }
    .filter:hover {
        border-color: var(--ink);
    }
    .coupon {
        transition:
            transform 0.15s ease,
            box-shadow 0.15s ease;
    }
    .coupon:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(20, 33, 61, 0.1);
    }
    .print-image {
        transition:
            transform 0.15s ease,
            box-shadow 0.15s ease;
    }
    .print-image:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(20, 33, 61, 0.1);
    }
    .product {
        transition: box-shadow 0.15s ease;
    }
    .product:hover {
        box-shadow: var(--shadow);
    }
    .btn-primary:hover {
        background: var(--accent-dark);
    }
    .btn-outline:hover {
        background: var(--ink);
        color: #fff;
    }
    .print-image-actions .btn-outline:hover {
        border-color: var(--ink);
    }
    .btn-small:hover {
        background: var(--ink-soft);
    }
    .bar {
        transition: background 0.15s ease;
    }
    .bar-track:hover .bar:not(.is-current) {
        background: #b8c0d4;
    }
}

/* Responsive */
@media (max-width: 960px) {
    .print-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .section {
        padding: 40px 0;
    }
    .header-meta {
        display: none;
    }
    .data-table thead {
        display: none;
    }
    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }
    .data-table tr {
        padding: 10px 4px;
        border-bottom: 1px solid var(--line);
    }
    .data-table td {
        border: 0;
        padding: 6px 12px;
        display: flex;
        justify-content: space-between;
        gap: 14px;
        text-align: right;
    }
    .data-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--muted);
        font-size: 0.78rem;
        text-transform: uppercase;
        text-align: left;
        flex-shrink: 0;
    }
    .calendar td {
        text-align: left;
    }
    .activity-grid,
    .step {
        grid-template-columns: 1fr;
    }
    .step {
        gap: 14px;
    }
    .activity-card,
    .chart-card {
        padding: 18px;
    }
    .bar-plot,
    .bar-labels {
        gap: 4px;
    }
    .bar-val {
        font-size: 0.65rem;
    }
    .bar-labels {
        font-size: 0.62rem;
    }

    /* Printable images: swipeable carousel on phones */
    .print-images {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 82%;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        margin-left: -20px;
        margin-right: -20px;
        padding: 4px 20px 10px;
        scroll-padding: 0 20px;
    }
    .print-images::-webkit-scrollbar {
        display: none;
    }
    .print-image {
        scroll-snap-align: start;
    }
    .print-image figcaption {
        padding: 12px 14px 0;
    }
    .print-image-actions {
        padding: 12px 14px 14px;
    }
}
@media (max-width: 420px) {
    .coupon-grid,
    .print-grid {
        grid-template-columns: 1fr;
    }
    .print-images {
        grid-auto-columns: 88%;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-img {
        font-size: 2.5rem;
    }
    .btn-code {
        width: 100%;
    }
    .feed-shot {
        width: 56px;
        height: 56px;
    }
    .bar-plot,
    .bar-labels {
        gap: 3px;
    }
    .bar {
        border-radius: 4px 4px 0 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Print: only the selected pass */
@media print {
    .no-print,
    .demo-bar,
    .site-header,
    .toast {
        display: none !important;
    }
    body.printing * {
        visibility: hidden;
    }
    body.printing .is-printing,
    body.printing .is-printing * {
        visibility: visible;
    }
    body.printing .is-printing {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border-width: 3px;
    }
    body.printing .print-image.is-printing {
        box-shadow: none;
        border: 0;
    }
    body.printing .print-image.is-printing img {
        aspect-ratio: auto;
        object-fit: contain;
        background: none;
        border: 0;
        max-height: 90vh;
    }
}
