/* usemydiscountcode.com landing site. Same tokens as the app (wwwroot/css/app.css, Option C). */
:root {
    --bg: #FAF8F5; --surface: #FFFFFF; --field: #EFEBE4; --line: #E6E1D8; --line-strong: #DCD6CC;
    --ink: #1B1A17; --ink-2: #3D3A34; --muted: #6B675F;
    --accent: #0F7B5F; --accent-ink: #0B5E48; --accent-soft: #E6F2EC;
    --topbar-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { opacity: 0.92; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 0.92rem; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.05rem; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 245, 0.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { height: var(--topbar-h); display: flex; align-items: center; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.wordmark-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.topnav a:hover { background: var(--field); }

/* hero */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.eyebrow { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.hero h1 { margin-top: 12px; font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.hero-lede { margin-top: 18px; font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero-search { margin-top: 28px; display: flex; align-items: center; gap: 8px; max-width: 520px; padding: 6px 6px 6px 16px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line-strong); box-shadow: 0 1px 2px rgba(27, 26, 23, 0.04); color: var(--muted); }
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero-search input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--ink); outline: none; }
.hero-search input::-webkit-search-cancel-button { display: none; }
.hero-note { margin-top: 14px; font-size: 0.95rem; color: var(--muted); }
.hero-note a { font-weight: 600; }

/* phone preview */
.hero-visual { display: flex; justify-content: center; }
.phone { width: 300px; border-radius: 40px; background: var(--ink); padding: 10px; box-shadow: 0 30px 60px -20px rgba(27, 26, 23, 0.35); }
.phone-screen { border-radius: 31px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; height: 560px; }
.pm-body { flex: 1; padding: 22px 16px 0; overflow: hidden; }
.pm-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.pm-count { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.pm-search { margin-top: 12px; height: 38px; border-radius: 10px; background: var(--field); color: var(--muted); font-size: 0.82rem; display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.pm-seg { margin-top: 8px; display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--field); font-size: 0.75rem; font-weight: 600; }
.pm-seg span { flex: 1; text-align: center; padding: 6px 0; border-radius: 8px; }
.pm-seg .on { background: var(--surface); box-shadow: 0 1px 3px rgba(27, 26, 23, 0.14); }
.pm-letter { margin-top: 12px; font-size: 0.68rem; font-weight: 800; color: var(--muted); }
.pm-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #EEE9E1; }
.pm-logo { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 5px; }
.pm-logo img { width: 100%; height: 100%; object-fit: contain; }
.pm-text { min-width: 0; display: flex; flex-direction: column; }
.pm-name { font-size: 0.88rem; font-weight: 600; }
.pm-offer { font-size: 0.75rem; font-weight: 600; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-tabs { display: flex; border-top: 1px solid var(--line); padding: 8px 6px 14px; font-size: 0.62rem; font-weight: 600; color: var(--muted); }
.pm-tabs span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pm-tabs .on { color: var(--accent); }

/* sections */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 800; }
.section-lede { margin-top: 10px; color: var(--muted); max-width: 38em; }
.cards { display: grid; gap: 20px; margin-top: 32px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 1.35rem; font-weight: 800; }
.card .btn { align-self: flex-start; margin-top: auto; }
.kicker { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: counter(step); flex-shrink: 0; width: 28px; height: 28px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.text-link { font-weight: 700; text-decoration: none; margin-top: auto; }
.text-link:hover { text-decoration: underline; }
.price { display: inline-flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.point { padding: 4px 0; }
.point-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; }
.point h3 { margin-top: 14px; font-size: 1.15rem; font-weight: 800; }
.point p { margin-top: 6px; color: var(--ink-2); }
.pull { margin: 48px auto 0; max-width: 760px; padding: 0; text-align: center; }
.pull p { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.pull + p { margin: 16px auto 0; max-width: 38em; }

.cta { padding: 72px 0; }
.cta-inner { background: var(--ink); color: #fff; border-radius: 28px; padding: 48px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; color: #fff; }
.cta p { color: #CFCBC2; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 0.92rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.footer-links a { color: var(--ink-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--accent); }
.copyright { width: 100%; }

/* legal page */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; }
.legal h2 { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 1.6rem; font-weight: 800; }
.legal h3 { margin-top: 32px; font-size: 1.2rem; font-weight: 700; }
.legal h4 { margin-top: 20px; font-size: 1rem; font-weight: 700; }
.legal p, .legal ul { margin-top: 10px; color: var(--ink-2); }
.legal ul { padding-left: 1.3em; }
.legal li { margin-top: 4px; }
.legal-toc { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.legal-toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--field); color: var(--ink); font-weight: 600; font-size: 0.92rem; text-decoration: none; }

@media (max-width: 860px) {
    .hero { padding: 36px 0 48px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .cards.two, .cards.three { grid-template-columns: minmax(0, 1fr); }
    .section { padding: 56px 0; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .topnav { display: none; }
    .topbar .btn { margin-left: auto; }
    .hero-search .btn { padding: 0 14px; }
    .card { padding: 22px; }
    .cta { padding: 48px 0; }
    .cta-inner { border-radius: 22px; padding: 36px 20px; }
    .footer-links { margin-left: 0; }
}
