/* ============================================================
   RashScan — Landing page stylesheet
   Design system: warm cream / sage / deep forest green
   ============================================================ */

:root {
    /* Color tokens */
    --cream: #FAF7F2;
    --cream-deep: #F3EDE3;
    --white: #FFFFFF;
    --forest: #173B33;
    --forest-deep: #0F2B25;
    --sage: #3E7C6B;
    --sage-soft: #E4EDE8;
    --sage-mist: #EFF4F1;
    --ink: #1E2B27;
    --muted: #5C6B65;
    --faint: #8A968F;
    --amber: #D99A2B;
    --amber-soft: #F7EBD3;
    --coral: #D95E4C;
    --coral-soft: #F9E4E0;
    --line: #E7E0D4;

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    /* Shape */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--forest); line-height: 1.12; letter-spacing: -0.015em; }

.display {
    font-size: clamp(42px, 5.6vw, 68px);
}

.h2 {
    font-size: clamp(30px, 3.6vw, 44px);
}

.h3 { font-size: 22px; }

.lead {
    font-size: 19px;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 400;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--sage);
    border-radius: 2px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    padding: 15px 28px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--forest);
    color: var(--cream);
}

.btn-primary:hover { background: var(--forest-deep); transform: translateY(-2px); }

.btn-primary svg { transition: transform 0.18s ease; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-outline {
    background: transparent;
    color: var(--forest);
    border-color: rgba(23, 59, 51, 0.28);
}

.btn-outline:hover { border-color: var(--forest); background: rgba(23, 59, 51, 0.04); }

.btn-light {
    background: var(--cream);
    color: var(--forest);
}

.btn-light:hover { background: var(--white); transform: translateY(-2px); }

.btn-sm { padding: 10px 20px; font-size: 14.5px; }

/* ---------- Navigation ---------- */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease;
}

.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    color: var(--forest);
}

.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--forest); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--forest);
}

/* ---------- Hero ---------- */

.hero {
    padding: 168px 0 96px;
    position: relative;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    top: -220px;
    right: -260px;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(62, 124, 107, 0.14), transparent 72%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sage-soft);
    color: var(--forest);
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 26px;
}

.hero-badge .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--sage);
    animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

.hero h1 { margin-bottom: 24px; }

.hero h1 em {
    font-style: italic;
    color: var(--sage);
}

.hero .lead { max-width: 520px; margin-bottom: 36px; }

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.hero-proof {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}

.hero-proof svg { color: var(--sage); flex-shrink: 0; }

/* Hero visual */

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-photo {
    width: min(100%, 420px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 40px 80px -32px rgba(23, 59, 51, 0.35);
}

.hero-photo img { width: 100%; height: auto; }

.float-card {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: 0 18px 44px -18px rgba(23, 59, 51, 0.28);
    animation: floaty 5.4s ease-in-out infinite;
}

.float-card.card-a {
    top: 9%;
    left: -6%;
    animation-delay: 0s;
}

.float-card.card-b {
    bottom: 10%;
    right: -4%;
    animation-delay: 1.6s;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-card .fc-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 4px;
}

.float-card .fc-value {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    color: var(--forest);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fc-ring {
    width: 30px; height: 30px;
    flex-shrink: 0;
}

.fc-chip {
    font-size: 12px;
    font-weight: 600;
    color: var(--sage);
    background: var(--sage-soft);
    border-radius: 999px;
    padding: 3px 10px;
}

/* ---------- Stats band ---------- */

.stats-band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--cream);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 40px 0;
}

.stat-cell {
    text-align: center;
    padding: 0 16px;
    border-left: 1px solid var(--line);
}

.stat-cell:first-child { border-left: none; }

.stat-cell .num {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 600;
    color: var(--forest);
    line-height: 1.1;
}

.stat-cell .lbl {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    margin-top: 6px;
}

/* ---------- Sections ---------- */

section { padding: 104px 0; }

.section-head {
    max-width: 640px;
    margin-bottom: 64px;
}

.section-head.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head.centered .eyebrow { justify-content: center; }
.section-head.centered .eyebrow::before { display: none; }

.section-head .lead { margin-top: 18px; }

/* ---------- How it works ---------- */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -24px rgba(23, 59, 51, 0.22);
}

.step-num {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--sage);
    background: var(--sage-soft);
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.step-card h3 { margin-bottom: 10px; }

.step-card p { font-size: 15px; color: var(--muted); }

.step-arrow {
    position: absolute;
    top: 46px;
    right: -22px;
    color: var(--faint);
    z-index: 2;
}

.step-card:last-child .step-arrow { display: none; }

/* ---------- Feature blocks ---------- */

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.feature-block + .feature-block { margin-top: 110px; }

.feature-block.flip .feature-media { order: 2; }

.feature-media {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 36px 72px -32px rgba(23, 59, 51, 0.3);
}

.feature-media img { width: 100%; height: auto; }

.feature-copy .h2 { margin-bottom: 20px; }

.feature-copy > p {
    font-size: 16.5px;
    color: var(--muted);
    margin-bottom: 28px;
}

.feature-list { list-style: none; display: grid; gap: 14px; margin-bottom: 32px; }

.feature-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15.5px;
    color: var(--ink);
}

.feature-list .tick {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--sage-soft);
    color: var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* ---------- Why grid ---------- */

.why {
    background: var(--forest);
    border-radius: var(--radius-xl);
    margin: 0 28px;
}

.why .section-head h2, .why .h2 { color: var(--cream); }
.why .section-head .lead { color: rgba(250, 247, 242, 0.66); }
.why .eyebrow { color: #8FBFAF; }
.why .eyebrow::before { background: #8FBFAF; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.why-card {
    background: rgba(250, 247, 242, 0.055);
    border: 1px solid rgba(250, 247, 242, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    transition: background 0.25s ease;
}

.why-card:hover { background: rgba(250, 247, 242, 0.1); }

.why-icon {
    width: 46px; height: 46px;
    border-radius: 13px;
    background: rgba(143, 191, 175, 0.16);
    color: #A8CFC1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.why-card h3 {
    color: var(--cream);
    font-size: 18.5px;
    margin-bottom: 8px;
}

.why-card p {
    font-size: 14.5px;
    color: rgba(250, 247, 242, 0.62);
    line-height: 1.6;
}

/* ---------- Testimonials ---------- */

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.quote-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.quote-stars { color: var(--amber); display: flex; gap: 3px; }

.quote-card blockquote {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    flex: 1;
}

.quote-who { display: flex; align-items: center; gap: 12px; }

.quote-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--sage-soft);
    color: var(--sage);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
}

.quote-who .name { font-size: 14.5px; font-weight: 600; color: var(--forest); }
.quote-who .role { font-size: 13px; color: var(--faint); }

/* ---------- Pricing ---------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 420px));
    gap: 28px;
    justify-content: center;
}

.price-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 42px 38px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.price-card.featured {
    background: var(--forest);
    border-color: var(--forest);
}

.price-card.featured h3,
.price-card.featured .price { color: var(--cream); }

.price-card.featured .price span,
.price-card.featured .plan-sub { color: rgba(250, 247, 242, 0.6); }

.price-card.featured .plan-list li { color: rgba(250, 247, 242, 0.85); }

.price-card.featured .plan-list .tick {
    background: rgba(143, 191, 175, 0.18);
    color: #A8CFC1;
}

.plan-flag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--amber);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
}

.price-card h3 { font-size: 20px; margin-bottom: 6px; }

.plan-sub { font-size: 14.5px; color: var(--muted); margin-bottom: 26px; }

.price {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 600;
    color: var(--forest);
    line-height: 1;
    margin-bottom: 30px;
}

.price span { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--faint); }

.plan-list { list-style: none; display: grid; gap: 13px; margin-bottom: 36px; flex: 1; }

.plan-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 15px;
    color: var(--ink);
}

.plan-list .tick {
    flex-shrink: 0;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--sage-soft);
    color: var(--sage);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* ---------- FAQ ---------- */

.faq-wrap { max-width: 760px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 4px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    color: var(--forest);
}

.faq-q .faq-icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage);
    transition: transform 0.28s ease, background 0.28s ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--sage-soft); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
}

.faq-a p {
    padding: 0 4px 26px;
    font-size: 15.5px;
    color: var(--muted);
    max-width: 640px;
}

/* ---------- CTA band ---------- */

.cta-band {
    background: var(--forest);
    border-radius: var(--radius-xl);
    margin: 0 28px;
    text-align: center;
    padding: 90px 40px;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    width: 560px; height: 560px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(143, 191, 175, 0.16), transparent 70%);
    top: -280px;
    left: 50%;
    transform: translateX(-50%);
}

.cta-band h2 {
    color: var(--cream);
    font-size: clamp(32px, 4vw, 52px);
    max-width: 640px;
    margin: 0 auto 20px;
    position: relative;
}

.cta-band p {
    color: rgba(250, 247, 242, 0.66);
    font-size: 17px;
    max-width: 480px;
    margin: 0 auto 40px;
    position: relative;
}

.cta-band .btn { position: relative; }

.cta-note {
    margin-top: 22px !important;
    font-size: 13.5px !important;
    color: rgba(250, 247, 242, 0.45) !important;
    margin-bottom: 0 !important;
}

/* ---------- Footer ---------- */

.footer {
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--line);
}

.footer-brand p {
    font-size: 14.5px;
    color: var(--muted);
    margin-top: 16px;
    max-width: 300px;
}

.footer h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: grid; gap: 12px; }

.footer-col a {
    font-size: 15px;
    color: var(--muted);
    transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--forest); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 32px;
    font-size: 13.5px;
    color: var(--faint);
}

.footer-disclaimer {
    margin-top: 26px;
    padding: 18px 22px;
    background: var(--cream-deep);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

/* ---------- Scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero-visual { order: -1; }
    .hero { padding-top: 140px; }
    .feature-block { grid-template-columns: 1fr; gap: 40px; }
    .feature-block.flip .feature-media { order: 0; }
    .steps-grid { grid-template-columns: 1fr; }
    .step-arrow { display: none; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .quotes-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
    .stat-cell:nth-child(3) { border-left: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    section { padding: 72px 0; }
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0; right: 0;
        background: var(--cream);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 28px 24px;
        border-bottom: 1px solid var(--line);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; font-size: 17px; width: 100%; }
    .nav-toggle { display: block; }
    .nav-cta .btn-outline { display: none; }
    .why-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .why, .cta-band { margin: 0 16px; }
    .container { padding: 0 20px; }
    .float-card { padding: 10px 14px; }
    .float-card .fc-value { font-size: 17px !important; }
    .float-card.card-a { left: 0; }
    .float-card.card-b { right: 0; max-width: 62%; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
