/* RefineTalk landing page. Accent colours come from src/RefineTalk.UI/wwwroot/refinetalk.css. */

:root {
    --accent: #1f6f5c;
    --accent-deep: #0f3d33;
    --accent-bright: #2f9a7f;
    --accent-soft: #e3f1ec;
    --amber: #8a5a00;
    --amber-soft: #fff4d6;
    --bg: #f5f7f6;
    --card: #ffffff;
    --text: #1d2a26;
    --muted: #4f5f59;
    --border: #d9e1de;
    --tint: #eef4f1;
    --shadow: 0 12px 32px rgba(15, 61, 51, 0.12);
    --radius: 18px;
    --container: 1120px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1716;
        --card: #17221f;
        --text: #e7efec;
        --muted: #a9bab4;
        --border: #2a3a36;
        --tint: #13201c;
        --accent-soft: #1d3a33;
        --amber-soft: #3a2c10;
        --shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--accent-bright);
    outline-offset: 3px;
    border-radius: 6px;
}

h1,
h2,
h3 {
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    font-weight: 800;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
}

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.narrow {
    max-width: 820px;
}

.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: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--card);
    color: var(--text);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.skip-link:focus {
    top: 1rem;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.9rem;
}

.lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 60ch;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow-light {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    border: 2px solid transparent;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-radius: 10px;
}

.btn-primary {
    background: var(--amber-soft);
    color: var(--accent-deep);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.btn-primary:hover {
    background: #ffffff;
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-ghost:hover {
    background: var(--accent-soft);
}

.btn-light {
    background: #ffffff;
    color: var(--accent-deep);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.site-header .btn-small {
    background: var(--accent);
    color: #ffffff;
}

.site-header .btn-small:hover {
    background: var(--accent-deep);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 1.8rem 0 1rem;
}

.hero .btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
}

.hero .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 61, 51, 0.82);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    color: #ffffff;
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
}

.brand-mark {
    display: block;
    width: 34px;
    height: 34px;
    flex: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav a:not(.btn) {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav a:not(.btn):hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-bars {
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
}

.nav-toggle-bars::before {
    top: -6px;
}

.nav-toggle-bars::after {
    top: 6px;
}

.site-header.nav-open .nav-toggle-bars {
    background: transparent;
}

.site-header.nav-open .nav-toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(47, 154, 127, 0.55), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(138, 90, 0, 0.35), transparent 60%),
        linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 55%, #2a8a74 100%);
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}

.hero .eyebrow {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.hero h1 {
    color: #ffffff;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.9);
}

.hero-tagline {
    margin: -0.4rem 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

/* Waitlist form (inside the final CTA band) */

.waitlist-form {
    display: flex;
    gap: 0.6rem;
    max-width: 480px;
    margin: 0 auto;
}

.waitlist-form input {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    background: #ffffff;
    color: #1d2a26;
    font: inherit;
}

.waitlist-form input:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.waitlist-form .btn[disabled] {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.waitlist-status {
    min-height: 1.5em;
    margin: 0.9rem 0 0;
    font-size: 0.97rem;
    color: #ffffff;
}

.waitlist-note {
    margin: 1.4rem auto 0;
    max-width: 480px;
    padding: 1rem 1.2rem;
    border: 2px dashed rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
}

.waitlist-note a {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--accent-deep);
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.waitlist-note a:hover {
    transform: translateY(-2px);
    background: var(--amber-soft);
}

@media (max-width: 560px) {
    .waitlist-form {
        flex-direction: column;
    }
}

.hero .small {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0;
}

.device {
    background: #0b1f1a;
    border-radius: 22px;
    padding: 12px 12px 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: rotate(-1.5deg);
    transition: transform 0.4s ease;
}

.device:hover {
    transform: rotate(0deg) translateY(-4px);
}

.device-bar {
    display: flex;
    gap: 6px;
    padding: 4px 4px 10px;
}

.device-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.device img {
    border-radius: 12px 12px 0 0;
    width: 100%;
}

/* Sections */

.section {
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-tint {
    background: var(--tint);
}

.section-head {
    max-width: 720px;
    margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

.section-head .lead {
    margin-bottom: 0;
}

/* How it works */

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    counter-reset: none;
}

.step {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow);
}

.step h3 {
    margin-top: 0.6rem;
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
}

.step-num {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(31, 111, 92, 0.35);
}

/* Features */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-bright);
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.97rem;
}

.card-icon {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    height: 46px;
    padding: 0 0.6rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: var(--amber-soft);
    color: var(--amber);
    font-weight: 800;
    font-size: 1.05rem;
}

/* Showcase */

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: clamp(1.5rem, 3vw, 2.25rem);
}

.shot {
    margin: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    box-shadow: var(--shadow);
}

.shot img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.shot figcaption {
    padding: 1rem 0.6rem 0.4rem;
    color: var(--muted);
    font-size: 0.97rem;
}

.shot figcaption strong {
    display: block;
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

/* Privacy */

.section-privacy {
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    color: #ffffff;
}

.privacy-inner {
    max-width: 820px;
}

.section-privacy h2 {
    color: #ffffff;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 0.9rem;
}

.check-list li {
    position: relative;
    padding-left: 2.2rem;
    color: rgba(255, 255, 255, 0.93);
}

.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--amber-soft);
    color: var(--accent-deep);
    font-weight: 900;
    font-size: 0.85rem;
}

/* FAQ */

.faq {
    display: grid;
    gap: 0.85rem;
}

.faq details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.3rem;
    box-shadow: 0 6px 18px rgba(15, 61, 51, 0.06);
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

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

.faq summary::after {
    content: "";
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background:
        linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat,
        var(--accent-soft);
    transition: transform 0.2s ease;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    margin: 0.8rem 0 0;
    color: var(--muted);
}

/* Contact */

.contact {
    text-align: center;
}

.contact .lead {
    margin-inline: auto;
}

.contact .btn {
    margin-top: 0.5rem;
}

/* Final CTA */

.cta-band {
    padding: clamp(3.5rem, 7vw, 5rem) 0;
    background: linear-gradient(135deg, #6f4700, var(--amber));
    color: #ffffff;
    text-align: center;
}

.cta-band h2 {
    color: #ffffff;
    max-width: 22ch;
    margin-inline: auto;
}

.cta-band p {
    max-width: 52ch;
    margin: 0 auto 1.6rem;
    color: rgba(255, 255, 255, 0.92);
}

/* Footer */

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

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.footer-inner p {
    margin: 0.3rem 0 0;
}

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

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

.footer-inner nav a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Scroll reveal. Content stays visible when JavaScript is off (script.js adds the js class). */

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

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.js .steps .reveal:nth-child(2),
.js .feature-grid .reveal:nth-child(2),
.js .gallery .reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.js .steps .reveal:nth-child(3),
.js .feature-grid .reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.js .feature-grid .reveal:nth-child(4) {
    transition-delay: 0.24s;
}

/* Responsive */

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .device {
        max-width: 640px;
        margin-inline: auto;
    }

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

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.25rem 1.25rem;
        background: var(--accent-deep);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
        display: none;
    }

    .site-header.nav-open .site-nav {
        display: flex;
    }

    .site-nav a:not(.btn) {
        padding: 0.85rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        font-size: 1rem;
    }

    .site-nav .btn-small {
        margin-top: 1rem;
        justify-content: center;
        background: var(--amber-soft);
        color: var(--accent-deep);
    }

    .gallery,
    .steps,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .cta-row .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .btn:hover,
    .card:hover,
    .device:hover {
        transform: none;
    }
}
