/* QR Approach — mobile-first styling */

:root {
    --bg1: #2b1055;
    --bg2: #7c2ba0;
    --accent: #ff4d8d;
    --accent-dark: #e03b78;
    --ink: #1e1e28;
    --muted: #7a7a88;
    --card: #ffffff;
    --radius: 18px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(160deg, var(--bg1), var(--bg2));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

/* ---------------- Visitor card ---------------- */

.card {
    width: 100%;
    max-width: 440px;
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px 24px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.brand { margin-bottom: 12px; }

.logo {
    max-width: 120px;
    height: auto;
}

h1 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 10px 0 8px;
}

.question {
    font-size: 1.45rem;
    line-height: 1.35;
    margin: 6px 0 20px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: var(--accent-dark);
    font-weight: 700;
    margin: 4px 0 0;
}

.lede {
    color: var(--muted);
    margin: 0 0 22px;
    line-height: 1.45;
}

/* ---------------- Choice pills ---------------- */

.choices { text-align: left; }

fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 20px;
}

legend {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
    padding: 0;
}

.pillrow {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    position: relative;
    flex: 1 1 auto;
    min-width: 90px;
    cursor: pointer;
}

.pill input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.pill span {
    display: block;
    text-align: center;
    padding: 14px 10px;
    border: 2px solid #e4e4ee;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.15s ease;
    background: #fafaff;
}

.pill input:checked + span {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 77, 141, 0.35);
}

.pill input:focus-visible + span {
    outline: 3px solid rgba(255, 77, 141, 0.4);
}

/* ---------------- Buttons ---------------- */

.btn {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 8px 22px rgba(255, 77, 141, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255, 77, 141, 0.42); }
.btn:active { transform: scale(0.99); }
.btn:focus-visible { outline: 3px solid rgba(255, 77, 141, 0.45); outline-offset: 2px; }
.btn.big { padding: 17px 32px; font-size: 1.12rem; }

/* ---------------- Contact form ---------------- */

.contact { text-align: left; }

textarea {
    width: 100%;
    border: 2px solid #e4e4ee;
    border-radius: 14px;
    padding: 14px;
    font: inherit;
    resize: vertical;
    margin-bottom: 14px;
    background: #fafaff;
}

textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}

.rescan {
    margin: 18px 0 6px;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.5;
}

.rescan strong { color: var(--ink); }

/* "Get your own code" CTA under the questions */
.own-cta {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0ea;
}
.own-cta-lead { margin: 0 0 4px; font-weight: 700; }
.own-cta-text { margin: 0 0 14px; color: var(--muted); line-height: 1.5; }
.own-cta .btn { margin-top: 2px; }

.flash {
    background: #e9f9ee;
    color: #1f7a43;
    border: 1px solid #b9e8c9;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 600;
}

.foot {
    margin-top: 22px;
    font-size: 0.75rem;
    color: #c5c5d2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------------- Admin ---------------- */

body.admin {
    display: block;
    background: #f4f4fa;
    color: var(--ink);
    padding: 0;
}

.admin-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 18px 60px;
}

.admin-wrap h1 { font-size: 1.6rem; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.logout {
    color: var(--accent-dark);
    font-weight: 600;
    text-decoration: none;
}

.panel {
    background: #fff;
    border-radius: 14px;
    padding: 18px 18px 20px;
    margin: 16px 0;
    box-shadow: 0 6px 18px rgba(30, 30, 40, 0.06);
}

.panel h2 { margin-top: 0; font-size: 1.15rem; }

.panel.highlight { border: 2px solid var(--accent); }

.stack { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.stack label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.stack input,
.stack select {
    padding: 12px;
    border: 2px solid #e4e4ee;
    border-radius: 12px;
    font: inherit;
    background: #fff;
    width: 100%;
}
.stack select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.stack input:focus,
.stack select:focus { outline: none; border-color: var(--accent); }

.inline { display: flex; gap: 10px; flex-wrap: wrap; }
.inline input[type="text"],
.inline input[type="email"] {
    flex: 1 1 220px;
    min-width: 0;
    padding: 12px;
    border: 2px solid #e4e4ee;
    border-radius: 12px;
    font: inherit;
}
.inline .btn { width: auto; }

.linkbox {
    width: 100%;
    padding: 12px;
    border: 2px solid #e4e4ee;
    border-radius: 12px;
    font: inherit;
    background: #fafaff;
}

code { background: #f0f0f7; padding: 2px 6px; border-radius: 6px; font-size: 0.9em; overflow-wrap: anywhere; }
code.big { font-size: 1.05rem; }

/* Inline editable owner fields inside the owners table */
.cell-input {
    width: 100%;
    min-width: 92px;
    padding: 6px 8px;
    border: 2px solid #e4e4ee;
    border-radius: 8px;
    font: inherit;
    font-size: 0.82rem;
    background: #fff;
}
.cell-input:focus { outline: none; border-color: var(--accent); }
.cell-input.code-input { min-width: 150px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.btn-sm {
    padding: 6px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: 6px;
}
.btn-sm:hover { background: var(--accent-dark); }
.btn-sm.danger { background: #c0392b; }
.btn-sm.danger:hover { background: #a53125; }
.btn-sm.ghosted { background: #efeaf8; color: #5a3a9a; }
.btn-sm.ghosted:hover { background: #e2d8f2; }
.del-form { display: inline; margin: 0; }

/* ---- Admin dashboard ---- */
.admin-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.admin-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.admin-nav a:hover { color: var(--accent-dark); }
.admin-nav a.logout { color: #c0392b; }
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.stat-card {
    background: linear-gradient(160deg, #faf7ff, #fdf0f6);
    border: 1px solid #efe8f8;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stat-card .stat-n { font-size: 1.7rem; font-weight: 800; color: #2a2440; line-height: 1.1; }
.stat-card .stat-l { font-weight: 700; color: var(--accent-dark); font-size: 0.85rem; }
.stat-card small { color: var(--muted); font-size: 0.78rem; }
.chart { width: 100%; height: auto; display: block; }
.chart-legend { font-size: 0.82rem; margin: 0 0 4px; }
.chart-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: middle; }
.chart-legend .dot-scan { background: #7c2ba0; }
.chart-legend .dot-sub { background: #e03b78; }
.filter-input {
    width: 100%;
    padding: 9px 12px;
    margin: 4px 0 12px;
    border: 1.5px solid #e2dcf0;
    border-radius: 10px;
    font-size: 0.92rem;
    background: #fbfaff;
}
.filter-input:focus { outline: none; border-color: var(--accent); }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}
.tool-card {
    border: 1px solid #efe8f8;
    border-radius: 14px;
    padding: 14px 16px;
    background: #fdfcff;
}
.tool-card h3 { margin: 0 0 8px; font-size: 1rem; }
.tool-card p { font-size: 0.85rem; line-height: 1.45; }
.tool-card input[type="file"] { font-size: 0.85rem; max-width: 100%; }
.maillog summary { cursor: pointer; font-weight: 700; color: #2a2440; padding: 6px 0; }
.maillog[open] summary { margin-bottom: 8px; }

.qrwrap { text-align: center; }
.qr { width: 220px; height: 220px; max-width: 100%; border-radius: 12px; }
.hint { color: var(--muted); font-size: 0.85rem; }
.muted { color: var(--muted); }

/* Tables scroll horizontally inside their panel instead of stretching the page. */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -18px;
    padding: 0 18px;
}
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9rem; }
th, td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #ececf3;
    vertical-align: top;
}
th { color: var(--muted); font-weight: 700; }
.nowrap { white-space: nowrap; }

.ok, .err {
    border-radius: 12px;
    padding: 12px 14px;
    margin: 14px 0;
    font-weight: 600;
}
.ok  { background: #e9f9ee; color: #1f7a43; }
.err { background: #fdecec; color: #c0392b; }

/* Center the setup/login panels on the admin gradient-free page */
body.admin .admin-wrap > h1 { text-align: left; }

@media (max-width: 560px) {
    .admin-wrap { padding: 18px 12px 48px; }
    .admin-wrap h1 { font-size: 1.35rem; }
    .panel { padding: 16px 14px; }
    .panel h2 { font-size: 1.05rem; }
    /* Keep the table scroll flush with the tighter panel padding. */
    .table-wrap { margin: 0 -14px; padding: 0 14px; }
    .inline input[type="text"],
    .inline input[type="email"],
    .inline .btn { flex: 1 1 100%; width: 100%; }
    .qr { width: 180px; height: 180px; }
}

/* ================= Marketing website ================= */

body.site {
    display: block;
    background: #faf7ff;
    color: var(--ink);
    padding: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 1040px;
    margin: 0 auto;
    padding: 14px 20px;
}

.site-brand img { height: 40px; width: auto; display: block; }

.site-nav nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-nav nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
}
.site-nav nav a.on,
.site-nav nav a:hover { color: var(--accent-dark); }
.site-nav nav a.nav-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    padding: 9px 18px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(255, 77, 141, 0.3);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.site-nav nav a.nav-cta:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }

.site-main { max-width: 1040px; margin: 0 auto; padding: 10px 20px 40px; }

.site-foot {
    background: #1e1b2e;
    color: #cfc9e6;
    text-align: center;
    padding: 26px 20px;
    font-size: 0.9rem;
}
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot p { margin: 8px 0 0; color: #9c95bd; }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bg1), var(--bg2));
    color: #fff;
    border-radius: 22px;
    padding: 46px 34px 40px;
    margin: 14px 0 26px;
    box-shadow: 0 20px 50px rgba(43, 16, 85, 0.25);
}
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero::before { width: 380px; height: 380px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(255, 77, 141, 0.35), transparent 70%); }
.hero::after { width: 300px; height: 300px; bottom: -140px; left: -100px; background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%); }
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 34px;
    align-items: center;
}
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; margin: 8px 0 14px; }
.hero .eyebrow { color: #ffd0e2; }
.hero-sub { max-width: 560px; margin: 0 0 24px; line-height: 1.55; color: #efe9ff; font-size: 1.05rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 0.85rem; color: #e5d9ff; }
.hero-perks {
    list-style: none;
    display: flex;
    gap: 8px 18px;
    flex-wrap: wrap;
    padding: 0;
    margin: 20px 0 0;
    font-size: 0.88rem;
    color: #e5d9ff;
    font-weight: 600;
}
.hero-perks li::before { content: "✓ "; color: #ff9dbf; font-weight: 800; }

/* Hero visual: phone mockup + demo QR chip */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 6px 0 30px; }
.phone {
    width: 232px;
    background: #14101f;
    border-radius: 36px;
    padding: 12px 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    transform: rotate(4deg);
    animation: qrc-float 6s ease-in-out infinite;
}
.phone-screen {
    position: relative;
    background: #fff;
    border-radius: 26px;
    padding: 34px 16px 16px;
    text-align: center;
    color: var(--ink);
}
.phone-screen::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    height: 8px;
    border-radius: 999px;
    background: #14101f;
}
.mini-eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.58rem;
    color: var(--accent-dark);
    font-weight: 700;
}
.mini-q { font-weight: 700; font-size: 0.86rem; line-height: 1.35; margin: 8px 0 12px; }
.mini-field {
    border: 2px solid #e4e4ee;
    border-radius: 10px;
    background: #fafaff;
    color: var(--muted);
    font-size: 0.68rem;
    text-align: left;
    padding: 10px;
    margin-bottom: 8px;
}
.mini-send {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border-radius: 10px;
    padding: 9px;
    font-weight: 700;
    font-size: 0.78rem;
}
.qr-chip {
    position: absolute;
    bottom: -4px;
    left: calc(50% - 185px);
    background: #fff;
    border-radius: 16px;
    padding: 10px 10px 7px;
    text-align: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    transform: rotate(-6deg);
}
.qr-chip img { width: 92px; height: 92px; display: block; border-radius: 6px; }
.qr-chip span {
    display: block;
    margin-top: 4px;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--accent-dark);
}
@keyframes qrc-float {
    0%, 100% { transform: rotate(4deg) translateY(0); }
    50% { transform: rotate(4deg) translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
    .phone { animation: none; }
}

/* Buttons on the marketing site are inline, not full-width */
.hero .btn, .price-card .btn, .panel-card .btn, .hero-cta .btn { display: inline-block; width: auto; padding: 14px 26px; text-decoration: none; text-align: center; }
.panel-card .btn { margin: 6px 5px; }
.btn.ghost { background: transparent; border: 2px solid rgba(255,255,255,0.6); }
.btn.ghost:hover { background: rgba(255,255,255,0.12); }

/* Generic section headings */
.site-main h2 { text-align: center; font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.25; margin: 8px 0 6px; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 22px; line-height: 1.5; }

/* Trust strip */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: -4px 0 36px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(30, 30, 40, 0.06);
}
.trust-item .t-icon { font-size: 1.5rem; }
.trust-item strong { display: block; font-size: 0.92rem; }
.trust-item small { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }

/* Comparison: apps vs QR Approach */
.compare { margin: 46px 0; }
.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    max-width: 880px;
    margin: 0 auto;
}
.compare-col { border-radius: 18px; padding: 26px 24px; }
.compare-col h3 { margin: 0 0 14px; font-size: 1.15rem; }
.compare-col ul { list-style: none; padding: 0; margin: 0; }
.compare-col li { padding: 8px 0 8px 30px; position: relative; line-height: 1.45; }
.compare-col li::before { position: absolute; left: 2px; font-weight: 800; }
.compare-col.apps { background: #f1eef8; color: #5a5468; }
.compare-col.apps li::before { content: "✗"; color: #b3a8cc; }
.compare-col.qra {
    background: linear-gradient(160deg, var(--bg1), var(--bg2));
    color: #fff;
    box-shadow: 0 16px 40px rgba(43, 16, 85, 0.3);
}
.compare-col.qra li::before { content: "✓"; color: #ff9dbf; }

/* FAQ */
.faq { max-width: 720px; margin: 46px auto; }
.faq details {
    background: #fff;
    border: 1px solid #ece8f6;
    border-radius: 14px;
    padding: 0 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 14px rgba(30, 30, 40, 0.04);
}
.faq summary {
    cursor: pointer;
    font-weight: 700;
    padding: 16px 30px 16px 0;
    position: relative;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--accent-dark);
    transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: #4a4a5a; margin: 0 0 16px; line-height: 1.55; }

/* Final CTA band */
.cta-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg2), var(--accent-dark));
    color: #fff;
    border-radius: 22px;
    text-align: center;
    padding: 44px 26px 38px;
    margin: 42px 0 10px;
    box-shadow: 0 20px 50px rgba(124, 43, 160, 0.3);
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { max-width: 520px; margin: 10px auto 22px; color: #ffe3ee; line-height: 1.5; }
.cta-band .hero-note { margin: 14px auto 0; color: #ffd0e2; }

/* Ideas grid */
.ideas { margin: 34px 0; }
.idea-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.idea {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(30, 30, 40, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.idea:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(30, 30, 40, 0.1); }
.idea-icon { font-size: 2rem; }
.idea h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.idea p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

/* Animated commercial spot (fluid: full width on phones, capped on desktop) */
.ad-showcase { margin: 40px 0; text-align: center; }
.ad-anim {
    display: block;
    width: 100%;
    max-width: 540px;
    height: auto;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(124, 43, 160, 0.18);
}

/* Steps */
.steps { margin: 40px 0; }
.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.step {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 6px 18px rgba(30, 30, 40, 0.06);
}
.step-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}
.step h3 { margin: 4px 0 8px; }
.step p { margin: 0; color: var(--muted); line-height: 1.5; }

/* Pricing */
.pricing { margin: 40px 0 10px; display: flex; justify-content: center; }
.price-card {
    position: relative;
    background: #fff;
    border-radius: 22px;
    padding: 38px 28px 32px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 16px 40px rgba(30, 30, 40, 0.12);
    border: 2px solid var(--accent);
}
.price-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(255, 77, 141, 0.4);
}
.price-tag { font-size: 3rem; font-weight: 800; color: var(--accent-dark); margin: 6px 0 4px; }
.price-tag span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-list { list-style: none; padding: 0; margin: 16px 0 22px; text-align: left; }
.price-list li { padding: 8px 0 8px 28px; position: relative; }
.price-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }
.fineprint { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }
.fineprint a { color: var(--accent-dark); }

/* Register / success + generic centered card */
.panel-card {
    background: #fff;
    border-radius: 22px;
    padding: 30px 26px;
    max-width: 480px;
    margin: 20px auto;
    box-shadow: 0 16px 40px rgba(30, 30, 40, 0.1);
    text-align: center;
}
.panel-card h1 { font-size: 1.6rem; }
.panel-card .stack { max-width: none; text-align: left; margin-top: 8px; }
.panel-card .price-list { max-width: 380px; margin: 18px auto 20px; }
.req { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.check { flex-direction: row !important; align-items: center; gap: 10px; font-weight: 400 !important; }
.check input { width: auto; }
.check a { color: var(--accent-dark); }

/* Toggle switch ("block same gender" on the register form) */
.switch-row {
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-weight: 600;
}
/* Ensure the HTML `hidden` attribute wins over `.stack label { display:flex }`
   (used to show/hide the promo field, billing block and gender toggle). */
.stack [hidden] { display: none !important; }
.switch-text { display: flex; flex-direction: column; gap: 3px; }
.switch-text small { font-weight: 400; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.switch { position: relative; flex: 0 0 auto; width: 52px; height: 30px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .slider {
    position: absolute;
    inset: 0;
    background: #d8d5e6;
    border-radius: 999px;
    transition: background 0.15s ease;
}
.switch .slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(22px); }
.switch input:focus-visible + .slider { outline: 3px solid rgba(255, 77, 141, 0.4); outline-offset: 2px; }

/* Checkout form */
.billing-head { font-weight: 700; margin: 8px 0 -2px; }
.stack .field-row { display: flex; gap: 12px; }
.stack .field-row label { flex: 1; }
.pay-note {
    background: #f4f0ff;
    border: 1px solid #e0d6ff;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.86rem;
    color: #4a4a5a;
    line-height: 1.5;
}
.pay-note strong { color: var(--ink); }

/* Terms / legal */
.legal {
    background: #fff;
    border-radius: 18px;
    padding: 30px 26px;
    max-width: 760px;
    margin: 20px auto;
    box-shadow: 0 8px 24px rgba(30, 30, 40, 0.07);
    line-height: 1.6;
}
.legal h1 { font-size: 1.7rem; }
.legal h2 { text-align: left; font-size: 1.15rem; margin: 22px 0 6px; }
.legal .section-sub { text-align: left; margin: 0 0 18px; }
.legal p { color: #33333f; }

/* Small trust chips (checkout page) */
.mini-trust {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0 0 18px;
}
.mini-trust li {
    background: #f4f0ff;
    border: 1px solid #e0d6ff;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a4a5a;
}

@media (max-width: 820px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 26px; }
    .hero-sub { margin: 0 auto 24px; }
    .hero-cta, .hero-perks { justify-content: center; }
    .hero-visual { padding-bottom: 34px; }
    .qr-chip { left: auto; right: calc(50% + 60px); }
}

@media (max-width: 560px) {
    .hero { padding: 36px 22px 34px; }
    .price-tag { font-size: 2.4rem; }
    .phone { width: 200px; }
    .qr-chip { right: calc(50% + 42px); }
    .qr-chip img { width: 76px; height: 76px; }
}
