@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

/* ===== Theme tokens ===== */
/* Brand chrome = gold/amber on paper. Green (--money) is reserved
   for money figures only — claimable amounts, prices. */
:root {
    --primary: #d97706;
    --primary-dark: #b45309;
    --primary-light: #fbbf24;
    --glow: rgba(217, 119, 6, 0.30);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme (warm ink) */
:root,
html[data-theme="dark"] {
    --bg-color: #171412;
    --bg-glow-1: rgba(217, 119, 6, 0.10);
    --bg-glow-2: rgba(180, 83, 9, 0.08);
    --card-bg: rgba(35, 30, 26, 0.70);
    --card-border: rgba(255, 255, 255, 0.10);
    --text-main: #faf7f0;
    --text-muted: #a8a29e;
    --header-bg: rgba(23, 20, 18, 0.55);
    --input-bg: rgba(255, 255, 255, 0.04);
    --hero-fade: rgba(250, 247, 240, 0.4);
    --card-hover-shadow: 0 30px 40px -15px rgba(0, 0, 0, 0.5);
    --money: #34d399;
    --accent-ink: #fbbf24;
}

/* Light theme (till-slip paper) */
html[data-theme="light"] {
    --bg-color: #faf7f0;
    --bg-glow-1: rgba(217, 119, 6, 0.10);
    --bg-glow-2: rgba(180, 83, 9, 0.07);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(180, 83, 9, 0.15);
    --text-main: #1c1917;
    --text-muted: #57534e;
    --header-bg: rgba(250, 247, 240, 0.72);
    --input-bg: rgba(28, 25, 23, 0.04);
    --hero-fade: rgba(28, 25, 23, 0.35);
    --card-hover-shadow: 0 30px 40px -15px rgba(180, 83, 9, 0.20);
    --money: #047857;
    --accent-ink: #b45309;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    background-image:
        radial-gradient(circle at 0% 0%, var(--bg-glow-1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, var(--bg-glow-2) 0%, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header & Navigation --- */
header {
    width: 100%;
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-area img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    /* Stays green to match the logo mark — green = money */
    background: linear-gradient(to right, #10b981, #059669);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

header nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

header nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

header nav a:hover {
    color: var(--accent-ink);
}

/* Theme toggle button */
.theme-toggle {
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    width: 40px;
    height: 40px;
    border-radius: 100px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.signin-btn {
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.signin-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px var(--glow);
}

/* --- Hero Section --- */
.hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(217, 119, 6, 0.10);
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 100px;
    color: var(--accent-ink);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-main) 55%, var(--hero-fade));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.5;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #1c1917;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 10px 25px -5px var(--glow);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 30px -10px var(--glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--card-border);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--accent-ink);
}

/* --- Features Section --- */
.features {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(217, 119, 6, 0.10), transparent 50%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(217, 119, 6, 0.35);
    box-shadow: var(--card-hover-shadow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    margin-bottom: 1.5rem;
    color: var(--accent-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(217, 119, 6, 0.07);
    border-radius: 16px;
    border: 1px solid rgba(217, 119, 6, 0.14);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- Auth Page Specific --- */
.auth-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(217, 119, 6, 0.06) 0%, transparent 70%);
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 3rem;
    border-radius: 32px;
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.auth-card .logo-area {
    justify-content: center;
    margin-bottom: 2rem;
}

.auth-card h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
}

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border: none;
    padding: 1rem;
    border-radius: 12px;
    color: #1c1917;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: var(--transition-smooth);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--glow);
}

.auth-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent-ink);
    text-decoration: none;
    font-weight: 600;
}

/* --- Accessibility / SEO helpers --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--primary);
    color: #1c1917;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 2rem;
    line-height: 1.55;
}

.hero-lead strong {
    color: var(--text-main);
    font-weight: 600;
}

.hero-trust {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* --- AEO answer strip --- */
.answer-strip {
    padding: 0 0 2rem;
}

.answer-strip-inner {
    max-width: 900px;
}

.answer-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px -20px rgba(180, 83, 9, 0.20);
}

.answer-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-ink);
    margin-bottom: 0.5rem;
}

.answer-text {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-main);
    margin: 0;
}

.answer-text strong {
    font-weight: 700;
}

/* --- Steps --- */
.steps-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    counter-reset: none;
}

.step-card {
    position: relative;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.12);
    color: var(--accent-ink);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.features-alt {
    background: transparent;
}

/* --- Authority / GEO --- */
.authority {
    padding: 5rem 0;
}

.authority-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
}

.authority h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.authority p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    max-width: 40rem;
}

.authority-cite {
    font-size: 0.9rem;
    border-left: 3px solid var(--primary);
    color: var(--text-muted);
    padding-left: 1rem;
    margin-top: 1.5rem;
}

.authority-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 1.75rem;
    backdrop-filter: blur(10px);
}

.authority-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--accent-ink);
}

.cite-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.cite-list dt {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.cite-list dd {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0.15rem 0 0;
}

/* --- Pricing --- */
.pricing {
    padding: 5rem 0 4rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(217, 119, 6, 0.35);
}

.price-card-featured {
    border-color: rgba(217, 119, 6, 0.45);
    box-shadow: 0 20px 50px -20px var(--glow);
    transform: scale(1.02);
}

.price-card-featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.price-badge {
    position: absolute;
    top: -0.7rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #1c1917;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}

.price-tier {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.75rem;
    /* Money figures are the only green on the page */
    color: var(--money);
}

.price-amount .currency {
    font-size: 1.5rem;
    font-weight: 700;
    vertical-align: super;
    margin-right: 0.1rem;
}

.price-amount .period {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 0.15rem;
}

.price-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 2.8em;
}

.price-features {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    flex: 1;
}

.price-features li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--card-border);
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-ink);
    font-weight: 700;
}

.price-cta {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* --- FAQ --- */
.faq {
    padding: 4rem 0 5rem;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.15rem 1.35rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    float: right;
    color: var(--accent-ink);
    font-weight: 800;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 1.35rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
}

/* --- Final CTA --- */
.final-cta {
    padding: 2rem 0 5rem;
}

.final-cta-inner {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
}

.final-cta h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.final-cta p {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

/* --- Footer --- */
.site-footer {
    padding: 3rem 0 2.5rem;
    border-top: 1px solid var(--card-border);
}

.footer-grid {
    display: grid;
    gap: 1.5rem;
}

.footer-logo {
    margin-bottom: 0.5rem;
}

.footer-tag {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.site-footer nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.site-footer nav a:hover {
    color: var(--accent-ink);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.social-link svg {
    flex-shrink: 0;
}

.footer-legal {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 52rem;
}

/* --- Hero visual: phone chat mockup --- */
main section[id] {
    scroll-margin-top: 6.5rem;
}

.hero-visual {
    position: relative;
    max-width: 460px;
    margin: 0 auto;
}

/* Ground shadow under the phone — breathes with the float */
.hero-visual::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -28px;
    width: 68%;
    height: 34px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(28, 25, 23, 0.32), transparent 65%);
    filter: blur(6px);
    animation: groundPulse 7s ease-in-out 2.5s infinite;
}

@keyframes groundPulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.95;
    }

    50% {
        transform: translateX(-50%) scale(0.9);
        opacity: 0.6;
    }
}

.phone-wrap {
    position: relative;
    width: min(300px, 88%);
    margin: 0 auto;
    transform: perspective(1200px) rotateY(-6deg);
    animation: phoneFloat 7s ease-in-out 2.5s infinite;
}

/* Volume buttons (left edge) */
.phone-wrap::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 21%;
    width: 3px;
    height: 26px;
    background: #0b1512;
    border-radius: 2px;
    box-shadow: 0 36px 0 #0b1512;
}

/* Power button (right edge) */
.phone-wrap::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 28%;
    width: 3px;
    height: 44px;
    background: #0b1512;
    border-radius: 2px;
}

.phone-mock {
    position: relative;
    width: 100%;
    border: 8px solid #0b1512;
    border-radius: 36px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow:
        -18px 70px 70px -35px rgba(28, 25, 23, 0.50),
        -6px 30px 35px -20px rgba(28, 25, 23, 0.35),
        0 6px 14px -4px rgba(28, 25, 23, 0.30),
        inset 0 0 0 2px rgba(255, 255, 255, 0.07);
}

/* Screen gloss */
.phone-mock::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    border-radius: 28px;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 30%, transparent 45%);
}

@keyframes phoneFloat {

    0%,
    100% {
        transform: perspective(1200px) rotateY(-6deg) translateY(0);
    }

    50% {
        transform: perspective(1200px) rotateY(-6deg) translateY(-9px);
    }
}

.phone-notch {
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 15px;
    background: #0b1512;
    border-radius: 999px;
    z-index: 3;
}

.chat-top {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
}

.chat-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.1rem 0;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.sb-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.sb-signal {
    display: inline-flex;
    align-items: flex-end;
    gap: 1.5px;
}

.sb-signal i {
    width: 2.5px;
    background: #fff;
    border-radius: 1px;
}

.sb-signal i:nth-child(1) {
    height: 3px;
}

.sb-signal i:nth-child(2) {
    height: 5px;
}

.sb-signal i:nth-child(3) {
    height: 7px;
}

.sb-signal i:nth-child(4) {
    height: 9px;
}

.sb-batt {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 8px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 2.5px;
}

.sb-batt::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 1.5px;
    width: 1.5px;
    height: 3px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1px;
}

.sb-batt i {
    position: absolute;
    top: 1px;
    left: 1px;
    bottom: 1px;
    width: 9px;
    background: #fff;
    border-radius: 1px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem 0.85rem;
    color: #fff;
}

.chat-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 800;
}

.chat-id {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.chat-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.chat-status {
    font-size: 0.7rem;
    opacity: 0.85;
}

.chat-body {
    padding: 1rem 0.85rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background-color: #ece9e2;
    background-image: radial-gradient(rgba(28, 25, 23, 0.06) 1px, transparent 1.3px);
    background-size: 14px 14px;
}

html[data-theme="dark"] .chat-body {
    background-color: #14100d;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.3px);
}

.chat-row {
    display: flex;
    animation: bubbleIn 0.5s ease-out both;
}

.chat-row:nth-child(1) {
    animation-delay: 0.5s;
}

.chat-row:nth-child(2) {
    animation-delay: 1.2s;
}

.chat-row:nth-child(3) {
    animation-delay: 1.9s;
}

@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.chat-row-sent {
    justify-content: flex-end;
}

.chat-bubble {
    position: relative;
    max-width: 85%;
    padding: 0.6rem 0.75rem;
    border-radius: 14px;
    font-size: 0.8rem;
    line-height: 1.4;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 3px 8px rgba(28, 25, 23, 0.10), 0 1px 2px rgba(0, 0, 0, 0.10);
}

html[data-theme="dark"] .chat-bubble {
    background: #262019;
    color: var(--text-main);
}

/* Bubble tails */
.chat-sent::after {
    content: '';
    position: absolute;
    right: -6px;
    bottom: 0;
    border-left: 8px solid #d7e7ff;
    border-top: 8px solid transparent;
}

html[data-theme="dark"] .chat-sent::after {
    border-left-color: #1c3a5e;
}

.chat-recv::after {
    content: '';
    position: absolute;
    left: -6px;
    bottom: 0;
    border-right: 8px solid #fff;
    border-top: 8px solid transparent;
}

html[data-theme="dark"] .chat-recv::after {
    border-right-color: #262019;
}

.chat-sent {
    background: #d7e7ff;
    border-bottom-right-radius: 4px;
}

html[data-theme="dark"] .chat-sent {
    background: #1c3a5e;
}

.chat-recv {
    border-bottom-left-radius: 4px;
}

.chat-time {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.6rem;
    text-align: right;
    color: #6b7280;
}

html[data-theme="dark"] .chat-time {
    color: var(--text-muted);
}

.chat-slip {
    width: 118px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.chat-slip span {
    height: 5px;
    border-radius: 3px;
    background: #d1d5db;
}

.chat-slip span:nth-child(2) {
    width: 72%;
}

.chat-slip span:nth-child(4) {
    width: 55%;
}

.chat-slip-total {
    width: 42% !important;
    align-self: flex-end;
    background: #111827 !important;
}

.chat-result dl {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0;
}

.chat-result dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.chat-result dt {
    color: #6b7280;
    font-size: 0.72rem;
}

html[data-theme="dark"] .chat-result dt {
    color: var(--text-muted);
}

.chat-result dd {
    margin: 0;
    font-weight: 700;
    font-size: 0.75rem;
    text-align: right;
}

.chat-flag {
    color: #b45309;
}

.chat-ok {
    color: var(--money);
}

html[data-theme="dark"] .chat-flag {
    color: #fbbf24;
}

.chat-dots {
    display: inline-flex;
    gap: 3px;
    margin-left: 4px;
    vertical-align: baseline;
}

.chat-dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #6b7280;
    animation: dotPulse 1.2s ease-in-out infinite;
}

.chat-dots i:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-dots i:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    60%,
    100% {
        opacity: 0.25;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.chat-inputbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem 0.85rem;
    background: #ece9e2;
}

html[data-theme="dark"] .chat-inputbar {
    background: #14100d;
}

.chat-input {
    flex: 1;
    background: #fff;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

html[data-theme="dark"] .chat-input {
    background: #262019;
    color: var(--text-muted);
}

.chat-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 0.75rem;
    padding-left: 2px;
}

.phone-home {
    background: #ece9e2;
    padding: 0 0 8px;
}

html[data-theme="dark"] .phone-home {
    background: #14100d;
}

.phone-home::before {
    content: '';
    display: block;
    width: 86px;
    height: 4px;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(28, 25, 23, 0.28);
}

html[data-theme="dark"] .phone-home::before {
    background: rgba(255, 255, 255, 0.30);
}

.float-card {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 0.85rem 1.1rem;
    backdrop-filter: blur(12px);
    box-shadow:
        0 24px 45px -18px rgba(28, 25, 23, 0.40),
        0 8px 16px -8px rgba(28, 25, 23, 0.25);
}

.float-card-top {
    top: 2%;
    right: -0.5rem;
    animation: fadeInDown 0.8s ease-out 0.2s both, cardBob 6s ease-in-out 1.5s infinite;
}

.float-card-bottom {
    top: 36%;
    left: -0.5rem;
    animation: fadeInDown 0.8s ease-out 0.4s both, cardBob 7s ease-in-out 2.2s infinite;
}

@keyframes cardBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .phone-wrap,
    .hero-visual::before,
    .chat-row,
    .chat-dots i,
    .float-card,
    .hero-badge {
        animation: none !important;
    }
}

/* Beats the generic .hero p rule */
.float-card .float-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    margin: 0 0 0.15rem;
    max-width: none;
}

.float-card .float-value {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--money);
    margin: 0;
    line-height: 1.15;
    max-width: none;
}

.float-card .float-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0;
    max-width: none;
}

html[data-theme="dark"] .phone-mock {
    border-color: #2b251f;
}

@media (min-width: 961px) {
    .hero-grid {
        display: grid;
        grid-template-columns: 1.05fr 0.95fr;
        gap: 3.5rem;
        align-items: center;
        text-align: left;
    }

    .hero-grid .hero-lead {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-grid .cta-group {
        justify-content: flex-start;
    }
}

@media (max-width: 960px) {
    .hero-visual {
        margin-top: 3rem;
    }
}

/* --- Claim verdict showcase --- */
.claim-demo {
    padding: 0 0 6rem;
}

.demo-card {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.demo-receipt {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.demo-receipt-paper {
    position: relative;
    width: 100%;
    max-width: 250px;
    background: #fdfdf8;
    color: #1f2937;
    font-family: ui-monospace, 'SF Mono', Menlo, 'Courier New', monospace;
    font-size: 0.72rem;
    line-height: 1.5;
    padding: 1.25rem 1rem 1.4rem;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.35);
    transform: rotate(-1.2deg);
}

.demo-receipt-paper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 8px;
    background:
        linear-gradient(-45deg, #fdfdf8 4px, transparent 0),
        linear-gradient(45deg, #fdfdf8 4px, transparent 0);
    background-size: 8px 8px;
    background-position: left bottom;
    background-repeat: repeat-x;
}

.rc-head {
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 0.2rem;
}

.rc-sub {
    text-align: center;
    color: #6b7280;
    margin: 0 0 0.4rem;
    font-size: 0.62rem;
}

.rc-rule {
    color: #9ca3af;
    margin: 0.2rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.rc-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
}

.rc-total {
    font-weight: 700;
}

.demo-fields-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.demo-merchant {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.demo-chip {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.demo-chip-cat {
    background: rgba(180, 83, 9, 0.12);
    color: #b45309;
    border: 1px solid rgba(180, 83, 9, 0.25);
}

html[data-theme="dark"] .demo-chip-cat {
    color: #fbbf24;
}

.demo-chip-ok {
    background: var(--input-bg);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

.demo-dl {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 1.5rem;
    margin: 0 0 1.4rem;
}

.demo-dl dt {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.demo-dl dd {
    margin: 0.1rem 0 0;
    font-weight: 600;
    color: var(--text-main);
}

.demo-verdict {
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    background: var(--input-bg);
}

.demo-verdict-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-ink);
    margin: 0 0 0.7rem;
}

.demo-verdict ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.demo-verdict li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.45;
}

.demo-verdict li span {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.demo-verdict li::before {
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-weight: 800;
}

.v-deny::before {
    content: '✕';
    color: #dc2626;
}

html[data-theme="dark"] .v-deny::before {
    color: #f87171;
}

.v-warn::before {
    content: '!';
    color: #b45309;
}

html[data-theme="dark"] .v-warn::before {
    color: #fbbf24;
}

.v-ok::before {
    content: '✓';
    color: var(--money);
}

.demo-caption {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .demo-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .demo-receipt-paper {
        transform: none;
    }

    .float-card-top {
        right: 0;
    }

    .float-card-bottom {
        left: 0;
    }
}

/* --- Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .price-card-featured {
        transform: none;
        order: -1;
    }

    .price-card-featured:hover {
        transform: translateY(-6px);
    }

    .authority-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header nav {
        gap: 0.65rem;
    }

    header nav a:not(.signin-btn) {
        display: none;
    }

    .theme-toggle {
        display: inline-flex;
    }

    .hero {
        padding-top: 8rem;
        padding-bottom: 3.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-lead {
        font-size: 1.05rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.85rem;
    }
}
