:root {
    --bg: #f7f7fb;
    --surface: #ffffff;
    --text: #16172b;
    --muted: #5d6078;
    --accent: #ff5a36;
    --accent-dark: #e2441f;
    --border: #e6e6ef;
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 460px; }

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--text); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--text); font-weight: 500; }
.nav form { margin: 0; }
.link-button {
    background: none; border: none; padding: 0; cursor: pointer;
    font: inherit; font-weight: 500; color: var(--muted);
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 26px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.nav a.btn { color: #fff; }
.btn-small { padding: 8px 18px; font-size: 0.95rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-full { width: 100%; }

/* Headings */
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; margin: 18px 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 32px; letter-spacing: -0.01em; }
h3 { margin: 8px 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }

/* Hero */
.hero { padding: 80px 0 60px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.badge {
    display: inline-block;
    background: #ffe9e3;
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 999px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-card {
    background: var(--text);
    border-radius: 28px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 30px 60px rgba(22, 23, 43, 0.18);
}
.phone-msg { background: #fff; border-radius: 16px; padding: 14px 16px; }
.phone-msg p { margin: 2px 0; }
.msg-title { font-weight: 700; }
.msg-meta { color: var(--accent-dark); font-weight: 600; }
.msg-time { font-size: 0.8rem; color: var(--muted); }

/* Sections and cards */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.section-alt .card { background: var(--bg); }
.card p { color: var(--muted); margin: 0; }
.step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--accent); color: #fff; font-weight: 700;
}

/* Pricing */
.pricing { text-align: center; }
.price-card {
    max-width: 380px;
    margin: 0 auto;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 36px;
}
.price { font-size: 2.8rem; font-weight: 800; margin: 0; }
.price span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0; text-align: left; }
.price-card li { padding: 6px 0; }
.price-card li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.small { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

/* FAQ */
.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 12px;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Final call to action */
.cta { text-align: center; background: var(--text); color: #fff; padding: 72px 0; }
.cta p { color: #c9cad8; margin-bottom: 28px; }

/* Forms */
.form-card { padding: 36px; }
.form-card h1 { font-size: 1.8rem; margin-top: 0; }
form p { margin: 0 0 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    background: #fff;
}
input:focus, select:focus { outline: 2px solid var(--accent); border-color: transparent; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
form p:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 10px; }
form p:has(input[type="checkbox"]) label { margin: 0; }
.errorlist { color: #c62828; list-style: none; padding: 0; margin: 0 0 8px; font-size: 0.9rem; }

/* Dashboard */
.alert-success { background: #e8f7ee; color: #1b7a3d; padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; align-items: start; }
.status-ok { color: #1b7a3d; font-weight: 600; }

/* Footer */
.site-footer { padding: 28px 0; color: var(--muted); font-size: 0.9rem; text-align: center; }

/* Phones */
@media (max-width: 800px) {
    .hero-inner, .grid-3, .dashboard-grid { grid-template-columns: 1fr; }
    .hero { padding: 48px 0; }
    .section { padding: 48px 0; }
}

.note {
    color: var(--accent-dark);
    font-weight: 600;
    margin-top: 12px;
}
.feed-label {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0 0 4px;
}
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: #ff3b30;
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    resize: vertical;
}

.feedback-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: var(--text);
    color: #fff;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(22, 23, 43, 0.25);
    z-index: 20;
}
.feedback-fab:hover { background: var(--accent); }

/* ===== Yellow on navy theme ===== */
:root {
    --accent: #ffc53d;
    --accent-dark: #f0b21f;
    --on-accent: #16172b;
    --gold-text: #7a5400;
}

/* Links and small highlights on light backgrounds */
a { color: var(--gold-text); }
.msg-meta, .price-card li::before { color: var(--gold-text); }

/* Buttons: navy text on yellow */
.btn, .nav a.btn { color: var(--on-accent); }
.btn:hover { background: var(--accent-dark); }
.step { color: var(--on-accent); }

/* Navy header */
.site-header { background: var(--text); border-bottom-color: #23243d; }
.logo, .nav a { color: #fff; }
.link-button { color: #c9cad8; }

/* Navy hero */
.hero { background: var(--text); color: #fff; }
.hero .lead, .hero .small { color: #c9cad8; }
.hero .badge { background: rgba(255, 197, 61, 0.15); color: #ffd66e; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Badges elsewhere */
.badge { background: #fff4d6; color: var(--gold-text); }

/* Feedback button */
.feedback-fab:hover { background: var(--accent); color: var(--on-accent); }

/* Feedback button visible on navy */
.feedback-fab {
    background: #2a2b45;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
@media (max-width: 800px) {
    .feedback-fab { padding: 8px 12px; font-size: 0.85rem; right: 12px; bottom: 12px; }
}

/* Search form in the hero */
.search-card {
    background: #fff;
    color: var(--text);
    border-radius: 20px;
    padding: 24px;
    max-width: 560px;
    margin-top: 28px;
}
.search-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.search-label { font-weight: 600; margin: 4px 0 8px; }
.kind-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.kind-options label {
    display: flex; align-items: center; gap: 6px; margin: 0;
    font-weight: 500; border: 1px solid var(--border);
    border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.search-card .small { color: var(--muted); text-align: center; }
.listing-card { border: 1px solid var(--border); }

/* Center the hero */
.hero .container { text-align: center; }
.hero .lead { margin-left: auto; margin-right: auto; }
.search-card { margin-left: auto; margin-right: auto; text-align: left; }

/* Live match count in the search card */
.match-count {
    text-align: center;
    color: var(--gold-text);
    margin: 0 0 12px;
    min-height: 1.4em;
}
.match-count strong { font-size: 1.15rem; }

/* Live stats line in the hero */
.live-stats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    font-size: 0.95rem;
    color: #c9cad8;
}
.live-stats strong { color: var(--accent); }
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    animation: live-pulse 2s infinite;
}
@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Photo behind the hero only */
.hero {
    background:
        linear-gradient(rgba(22, 23, 43, 0.82), rgba(22, 23, 43, 0.82)),
        url("hero.a0e6c95a7a3a.webp") center / cover no-repeat;
}

/* Live match count in the search card */
.match-count {
    text-align: center;
    color: var(--gold-text);
    margin: 0 0 12px;
    min-height: 1.4em;
}
.match-count strong { font-size: 1.15rem; }

/* Origin story */
.origin {
    padding: 48px 20px;
}
.origin-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 28px;
    background: #fff;
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(22, 23, 43, 0.08);
}
.origin-eyebrow {
    color: var(--gold-text);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 6px;
}
.origin-card h2 { margin: 0 0 14px; }
.origin-card p { line-height: 1.6; }
.origin-sign {
    font-weight: 600;
    margin-top: 18px;
}

/* Hero: two columns */
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}
.hero-left { text-align: left; }
.hero-left h1 { margin: 14px 0 6px; }
.hero-cities { color: #c9cad8; margin: 0 0 20px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 26px; }
.hero-points li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.5;
}
.hero-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}
.btn-big { padding: 16px 36px; font-size: 1.1rem; }
.hero-left .live-stats { margin-top: 18px; }

/* Live feed ("wheel") */
.feed {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 18px;
}
.feed-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    margin: 0 0 12px;
}
.feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 260px;
}
.feed-card {
    background: #fff;
    color: #16172b;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: left;
}
.feed-meta { margin: 0; font-weight: 700; font-size: 1.05rem; }
.feed-name {
    margin: 2px 0;
    font-size: 0.9rem;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-time { margin: 0; font-size: 0.8rem; color: #777; }
.feed-enter { animation: feed-in 0.5s ease-out; }
.feed-leave { animation: feed-out 0.4s ease-in forwards; }
@keyframes feed-in {
    from { opacity: 0; transform: translateY(-16px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
@keyframes feed-out {
    to { opacity: 0; transform: translateY(16px); }
}

/* Phones: stack the columns */
@media (max-width: 800px) {
    .hero-grid { grid-template-columns: 1fr; }
    .feed-list { min-height: 0; }
}

/* Fix: stop long titles from stretching the hero wider than the screen */
.hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.hero-grid > *,
.feed-card {
    min-width: 0;
}
@media (max-width: 800px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Small text under each hero point */
.hero-points strong {
    display: block;
    color: #fff;
}
.point-sub {
    display: block;
    font-size: 0.85rem;
    color: #c9cad8;
    margin-top: 2px;
}

/* Subtitle under the hero headline */
.hero-sub {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 500;
    margin: 4px 0 20px;
}

/* Buttons: rounded rectangles instead of pills */
.btn {
    border-radius: 10px;
}

/* Header logo */
.logo-img {
    height: 28px;
    width: auto;
    vertical-align: middle;
    margin-right: 6px;
}