/* ============================================================
   WinJewel AI — brand stylesheet
   Palette per the locked brand kit. Gold discipline is a hard
   rule: at most two or three gold elements per viewport (the
   monogram's edge, one hairline rule, one CTA border/hover) —
   gold is never a background fill and never body text.
   ============================================================ */

:root {
    --paper: #FAF8F5;
    --charcoal: #211E1B;
    --graphite: #55504A;
    --gold: #B99358;

    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--charcoal);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

/* Quicksand is for large headings only; Inter everywhere else */
h1,
h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.125rem);
}

h3,
h4,
h5,
h6 {
    font-family: var(--font-body);
    font-weight: 500;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Buttons (the gold CTA) ---------- */

.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: box-shadow 120ms ease, transform 120ms ease;
}

/* Gold appears as a border, never a fill */
.btn-gold {
    background: transparent;
    color: inherit;
    border: 1px solid var(--gold);
}

.btn-gold:hover,
.btn-gold:focus-visible {
    box-shadow: 0 0 0 1px var(--gold);
    transform: translateY(-1px);
}

.btn[disabled] {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

/* ---------- Header ---------- */

.site-header {
    background: var(--paper);
    border-bottom: 1px solid rgba(85, 80, 74, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-monogram {
    width: 44px;
    height: 40px;
}

.brand-wordmark {
    height: 26px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.5vw, 28px);
    flex-wrap: wrap;
}

.site-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--charcoal);
    text-decoration: none;
}

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

.site-nav .btn {
    padding: 0.45rem 1.1rem;
    font-size: 0.95rem;
}

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

.hero {
    position: relative;
    overflow: hidden;
    background-color: var(--charcoal);
    color: var(--paper);
    /* Ghost monogram (charcoal-on-charcoal, gold edge only) oversized and
       bleeding off the right edge — texture, not identification */
    background-image: url('brand/wj-monogram-dark-match.svg');
    background-repeat: no-repeat;
    background-position: right -180px center;
    background-size: auto 150%;
}

.hero-inner {
    padding-top: clamp(64px, 10vw, 130px);
    padding-bottom: clamp(64px, 10vw, 130px);
    max-width: 720px;
    margin-left: max(calc((100% - 1100px) / 2), 0px);
}

.hero-eyebrow {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(250, 248, 245, 0.75);
}

.hero-headline {
    color: var(--paper);
}

.hero-subhead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(250, 248, 245, 0.85);
    max-width: 40em;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero .btn-gold {
    color: var(--paper);
}

.hero-secondary-link {
    color: rgba(250, 248, 245, 0.85);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- Proof strip ---------- */

.proof-strip {
    /* The one gold hairline in this viewport */
    border-bottom: 1px solid var(--gold);
    background: var(--paper);
}

.proof-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 26px;
    padding-bottom: 26px;
    text-align: center;
}

.proof-item {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--graphite);
}

/* ---------- Platform strip ---------- */

/* Slim sibling of the proof strip: same paper ground and graphite voice, but a
   quiet graphite hairline below — the proof strip above keeps the viewport's
   one gold hairline. */
.platform-strip {
    background: var(--paper);
    border-bottom: 1px solid rgba(85, 80, 74, 0.15);
}

.platform-strip-inner {
    padding-top: 14px;
    padding-bottom: 14px;
    text-align: center;
}

.platform-strip-inner p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--graphite);
}

/* ---------- Feature sections ---------- */

.feature-section {
    padding: clamp(48px, 7vw, 88px) 0;
}

.feature-section + .feature-section {
    border-top: 1px solid rgba(85, 80, 74, 0.15);
}

.feature-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
}

.feature-flip .feature-copy {
    order: 2;
}

.feature-flip .feature-shot {
    order: 1;
}

.feature-copy p {
    color: var(--graphite);
    font-size: 1.05rem;
}

.feature-link {
    font-weight: 500;
    color: var(--charcoal);
    text-underline-offset: 4px;
}

.screenshot {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(85, 80, 74, 0.25);
    border-radius: 10px;
    background: #EDEBE8;
}

.platform-details {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--graphite);
}

.platform-details li {
    margin-bottom: 0.6rem;
}

/* ---------- Page headers & prose pages ---------- */

.page-header {
    padding: clamp(40px, 6vw, 72px) 0 clamp(16px, 3vw, 32px);
}

.page-lede {
    font-size: 1.15rem;
    color: var(--graphite);
    max-width: 44em;
    margin-top: 0;
}

.prose-section {
    padding: 16px 0 clamp(56px, 8vw, 96px);
}

.prose {
    max-width: 46em;
}

.prose h2 {
    font-size: 1.4rem;
    margin-top: 2.2rem;
}

.prose p {
    color: var(--graphite);
}

.prose a {
    color: var(--charcoal);
    text-underline-offset: 3px;
}

.prose-cta {
    margin-top: 2.5rem;
}

/* ---------- Integrations ---------- */

.integrations {
    padding: 16px 0 clamp(56px, 8vw, 96px);
}

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

.integration-card {
    border: 1px solid rgba(85, 80, 74, 0.2);
    border-radius: 10px;
    padding: 24px;
    background: #FFFFFF;
}

.integration-card h2 {
    font-size: 1.25rem;
    margin-top: 0;
}

.integration-card p {
    color: var(--graphite);
    margin-bottom: 0;
    font-size: 0.98rem;
}

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

.closing-cta {
    background: var(--charcoal);
    color: var(--paper);
}

.closing-inner {
    padding-top: clamp(48px, 7vw, 80px);
    padding-bottom: clamp(48px, 7vw, 80px);
    text-align: center;
}

.closing-cta h2 {
    color: var(--paper);
}

.closing-cta p {
    color: rgba(250, 248, 245, 0.8);
    margin-bottom: 2rem;
}

.closing-cta .btn-gold {
    color: var(--paper);
}

/* ---------- Early-access form ---------- */

.early-access {
    padding: 8px 0 clamp(56px, 8vw, 96px);
}

.early-access-inner {
    max-width: 560px;
}

.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 0.65rem 0.8rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal);
    background: #FFFFFF;
    border: 1px solid rgba(85, 80, 74, 0.4);
    border-radius: 6px;
}

.form-field input:focus,
.form-field select:focus {
    outline: 2px solid var(--charcoal);
    outline-offset: 1px;
}

.required-mark {
    color: var(--graphite);
}

.validation-message {
    display: block;
    color: #A03526;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* Honeypot: moved off-screen (not display:none — some bots skip hidden fields) */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-consent .consent-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--graphite);
}

.form-consent input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

.consent-links {
    font-size: 0.9rem;
    color: var(--graphite);
    margin: 0.5rem 0 0;
}

.form-error {
    border: 1px solid #A03526;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.form-error p {
    margin: 0;
    color: #A03526;
    font-size: 0.95rem;
}

.form-thanks {
    border: 1px solid rgba(85, 80, 74, 0.25);
    border-radius: 10px;
    padding: 2rem;
    background: #FFFFFF;
}

.form-thanks p {
    color: var(--graphite);
    margin-bottom: 0;
}

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

.site-footer {
    background: var(--charcoal);
    color: var(--graphite);
}

.footer-inner {
    padding-top: 48px;
    padding-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-bottom: 24px;
}

.footer-nav a {
    color: #8A847C;
    font-size: 0.92rem;
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--paper);
}

.footer-legal {
    margin: 0;
    font-size: 0.85rem;
    color: var(--graphite);
}

/* ---------- Responsive (down to 375px) ---------- */

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

    /* Keep reading order copy-then-screenshot when stacked */
    .feature-flip .feature-copy {
        order: 1;
    }

    .feature-flip .feature-shot {
        order: 2;
    }

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

    .hero {
        background-position: right -220px center;
        background-size: auto 120%;
    }
}

@media (max-width: 560px) {
    .header-inner {
        justify-content: center;
    }

    .site-nav {
        justify-content: center;
    }

    .proof-inner {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .hero-inner {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .brand-wordmark {
        height: 22px;
    }
}
