/*
 * Esquisse — shared site design system
 * ----------------------------------------------------------------------------
 * Single source of truth for the public marketing pages (index · welcome ·
 * vision). Palette + type tokens are harmonised with the investor deck
 * (style-deck.css): brick-red accent, warm paper, Crimson Text headlines.
 *
 * Page styling is scoped under `.site` (index/welcome) so nothing here leaks
 * into the other pages that share style.css (legal-notices, press-release).
 * `style-vision.css` consumes the same :root tokens.
 *
 * Loaded AFTER style.css, so `.site`-scoped rules win over the global defaults.
 */

/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
    /* surfaces */
    --paper:    #FAFAF8;   /* page base */
    --paper-2:  #ffffff;   /* raised / white sections */
    --paper-3:  #f4f1ea;   /* warm panel */
    /* ink */
    --ink:      #1a1a1a;   /* headlines */
    --body:     #2b2b2b;   /* body copy */
    --muted:    #6c6862;   /* secondary */
    --light:    #9a958d;   /* captions */
    /* lines */
    --border:   #e4e0d9;
    --hair:     #d9d4cc;
    /* brand */
    --accent:   #9b2d1a;   /* brick red */
    --accent-d: #7e2414;   /* brick red, pressed/hover */
    --accent-2: #b56953;   /* terracotta */
    --green:    #3f7a3a;

    /* type (Crimson + Inter both loaded in head.php) */
    --serif: 'Crimson Text', Georgia, 'Times New Roman', serif;
    --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* motion + form */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --radius: 5px;
    --shadow-card: 0 18px 46px -28px rgba(30, 24, 18, .42), 0 2px 6px -3px rgba(0, 0, 0, .06);
    --shadow-soft: 0 10px 30px -18px rgba(30, 24, 18, .38);
    --shadow-accent: 0 12px 26px -12px rgba(127, 36, 20, .55);

    /* rhythm (kept identical to the values vision was defining locally) */
    --read:  62ch;
    --pad-y: clamp(4.5rem, 11vw, 9rem);
    --col:   min(100% - 2.5rem, 1180px);
}

/* ── .site base ────────────────────────────────────────────────────────── */
.site {
    font-family: var(--serif);
    color: var(--body);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* standardise vertical rhythm + neutralise the global nth-child striping */
.site > section { padding: var(--pad-y) 0; background: var(--paper); }
.site .container { max-width: 1180px; }
.site img { max-width: 100%; }

/* ── Eyebrow + section headings ────────────────────────────────────────── */
.site .eyebrow {
    font-family: var(--serif);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
    margin: 0 0 1rem;
}
.site .eyebrow::after {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    background: var(--accent);
    margin: .75rem auto 0;
    opacity: .9;
}
/* left-aligned eyebrow variant (split layouts) */
.site .eyebrow--left { text-align: left; }
.site .eyebrow--left::after { margin-left: 0; }

.site .section-title {
    font-family: var(--serif);
    font-size: clamp(2.3rem, 5.2vw, 3.6rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--ink);
    margin-bottom: 1.6rem;
    text-wrap: balance;
}
.site .section-intro {
    font-family: var(--serif);
    font-size: clamp(1.12rem, 2.3vw, 1.4rem);
    color: var(--muted);
    text-align: center;
    margin: 0 auto 3.2rem;
    max-width: 760px;
    line-height: 1.75;
}

/* ── Scroll reveal — revives the (previously style-less) IntersectionObserver
   in includes/common-scripts.php. Scoped to `.site-ready .site` so only
   index/welcome animate; other shared-stylesheet pages are untouched. ────── */
.site-ready .site .animate-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.site-ready .site .animate-on-scroll.fade-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .site-ready .site .animate-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.site .form-button,
.site .hero-button,
.site .cta-button,
.site .notify-button,
.site .submit-button {
    display: inline-block;
    padding: .85rem 1.95rem;
    font-family: var(--serif);
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.25;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    cursor: pointer;
    transition: background .28s var(--ease), color .28s var(--ease),
                border-color .28s var(--ease), transform .2s var(--ease),
                box-shadow .28s var(--ease);
}
.site .form-button:hover,
.site .hero-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

/* primary actions ship filled in brick-red */
.site .cta-button,
.site .notify-button,
.site .submit-button {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.site .cta-button:hover,
.site .notify-button:hover,
.site .submit-button:hover {
    background: var(--accent-d);
    border-color: var(--accent-d);
    color: #fff;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}
.site button:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Hero (index + welcome share .hero) ────────────────────────────────── */
.site .hero {
    min-height: 100vh;
    padding: 6rem 2rem 5rem;
    background-position: center bottom;
}
.site .hero::before {
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, .28) 0%,
        rgba(0, 0, 0, .42) 48%,
        rgba(0, 0, 0, .78) 100%);
}
.site .hero-content { max-width: 940px; }
.site .hero-intro {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(.82rem, 1.6vw, .95rem);
    letter-spacing: .3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 1rem;
}
.site .hero-intro::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: .8rem auto 0;
}
.site .hero-title {
    font-family: var(--serif);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.04;
    color: #fff;
    margin-bottom: 1.2rem;
    text-shadow: 0 1px 30px rgba(0, 0, 0, .35);
    text-wrap: balance;
}
.site .hero-subtitle {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: rgba(255, 255, 255, .92);
    margin-bottom: 1.3rem;
}
.site .hero-description {
    font-family: var(--serif);
    font-size: clamp(1.05rem, 2.1vw, 1.3rem);
    color: rgba(255, 255, 255, .9);
    max-width: 760px;
    margin: 1.5rem auto 0;
    line-height: 1.75;
}
.site .hero-buttons { margin-top: 2.6rem; gap: 1rem; }
.site .hero .hero-button {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.site .hero .hero-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ── Manifesto ─────────────────────────────────────────────────────────── */
.site .manifesto { background: var(--paper-3); }
.site .name-explanation {
    max-width: 640px;
    margin: 0 auto 3.2rem;
    padding: 1.6rem 2rem;
    background: rgba(255, 255, 255, .55);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
}
.site .esquisse-definition {
    font-family: var(--serif);
    font-size: clamp(1.12rem, 2.3vw, 1.4rem);
    color: var(--ink);
    margin: 0;
}
.site .esquisse-definition em { font-style: italic; color: var(--accent); }
.site .manifesto-content { max-width: 760px; }
.site .manifesto-text {
    font-size: clamp(1.12rem, 2.3vw, 1.34rem);
    color: var(--body);
    line-height: 1.9;
    margin-bottom: 1.8rem;
}
.site .manifesto-text:first-of-type {
    font-size: clamp(1.25rem, 2.8vw, 1.6rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.55;
}

/* ── Lifestyle gallery ─────────────────────────────────────────────────── */
.site .lifestyle-gallery { background: var(--ink); padding: 0; }
.site .gallery-item img { transition: transform 1.1s var(--ease); }
.site .gallery-item:hover img { transform: scale(1.05); }

/* ── Feature sections ──────────────────────────────────────────────────── */
.site .features { background: var(--paper-2); border-top: 1px solid var(--hair); }
.site .features-grid { gap: 2.6rem; }
.site .feature-item {
    padding: 2rem 1.6rem;
    border-top: 2px solid var(--accent);
    background: linear-gradient(180deg, rgba(155, 45, 26, .03), transparent 60%);
    text-align: center;
}
.site .feature-item h3 {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 3vw, 1.65rem);
    color: var(--ink);
    margin-bottom: .9rem;
}
.site .feature-item p {
    font-size: clamp(1rem, 2vw, 1.12rem);
    color: var(--muted);
    line-height: 1.7;
}

/* ── Dark CTA band ─────────────────────────────────────────────────────── */
.site .cta-section {
    background: var(--ink) !important;
    padding: 5.5rem 0;
}
.site .cta-title { font-family: var(--serif); }
.site .cta-description { color: #d8d2c8 !important; }
.site .cta-section .cta-button {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
}
.site .cta-section .cta-button:hover {
    background: #fff !important;
    color: var(--accent) !important;
    border-color: #fff !important;
    transform: translateY(-2px);
}

/* ── Tech specs ────────────────────────────────────────────────────────── */
.site .tech-specs { background: var(--paper-2); }
.site .diagram-image { border-radius: var(--radius); }
.site .spec-category {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2rem 1.4rem;
    box-shadow: var(--shadow-soft);
}
.site .spec-category-title {
    font-family: var(--serif);
    font-size: 1.35rem;
    color: var(--ink);
    padding-bottom: .9rem;
    margin-bottom: 1.4rem;
    border-bottom: 2px solid var(--accent);
}
.site .spec-item { border-bottom: 1px solid var(--hair); }
.site .spec-label { color: var(--ink); font-weight: 600; }
.site .spec-value { color: var(--muted); }
.site .specs-note { color: var(--light); }

/* price plate */
.site .price-section {
    background: var(--paper-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
}
.site .price-title {
    font-family: var(--serif);
    color: var(--muted);
    letter-spacing: .14em;
}
.site .price-amount {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 6vw, 3.4rem);
    font-weight: 700;
    color: var(--accent);
}
.site .price-point {
    background: var(--paper-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.site .price-point:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.site .price-point-text strong { color: var(--ink); }
.site .price-point-text span { color: var(--muted); }
.site .price-note {
    background: var(--paper-2);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
}
.site .price-note p { color: var(--body); }

/* ── Development status / reassurance ──────────────────────────────────── */
.site .development-status { background: var(--paper-2); }
.site .reassurance-item {
    padding: 2rem 1.6rem;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.site .reassurance-item h4 {
    font-family: var(--serif);
    color: var(--ink);
    margin-bottom: .8rem;
}
.site .reassurance-item p { color: var(--muted); }

/* ── Coming soon / signup ──────────────────────────────────────────────── */
.site .coming-soon { background: var(--paper-3); }
.site .coming-soon-subtitle { color: var(--muted); }
.site .benefit-item {
    padding: 2rem 1.4rem;
    border-radius: var(--radius);
    transition: transform .25s var(--ease);
}
.site .benefit-item:hover { transform: translateY(-3px); }
.site .benefit-item h3 { font-family: var(--serif); color: var(--ink); }
.site .benefit-item p { color: var(--muted); }

.site .email-signup { margin: 3rem auto 1.4rem; }
.site .signup-guarantee,
.site .community-guarantee {
    background: var(--paper-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
}
.site .signup-guarantee p { color: var(--muted); }
.site .signup-note, .site .data-policy-text { color: var(--light); }
.site .data-policy-link { color: var(--accent); text-decoration-color: rgba(155, 45, 26, .4); }
.site .data-policy-link:hover { opacity: 1; text-decoration-color: var(--accent); }

.site .signup-success,
.site .idea-success {
    background: var(--paper-2);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    text-align: center;
    padding: 2.6rem 2rem;
    margin: 2rem 0;
}
.site .signup-success .success-icon,
.site .idea-success .success-icon { font-size: 2.6rem; margin-bottom: .8rem; }
.site .signup-success h3,
.site .idea-success h3 {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--ink);
    margin-bottom: .6rem;
}
.site .signup-success p,
.site .idea-success p {
    color: var(--muted);
    max-width: 48ch;
    margin: 0 auto;
    line-height: 1.6;
}
.site .community-member-section {
    background: var(--paper-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.site .member-welcome h3 { font-family: var(--serif); color: var(--ink); }
.site .member-email { color: var(--accent); }

/* ── Welcome: message + benefits ───────────────────────────────────────── */
.site .welcome-message { background: var(--paper-2); }
.site .welcome-text {
    font-family: var(--serif);
    font-size: clamp(1.18rem, 2.4vw, 1.45rem);
    line-height: 1.8;
    color: var(--body);
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2rem;
}

/* ── Welcome: idea form ────────────────────────────────────────────────── */
.site .idea-submission { background: var(--paper-3); }
.site .idea-form-container {
    background: var(--paper-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 2.4rem;
    max-width: 640px;
}
.site .form-label { font-family: var(--serif); color: var(--ink); font-size: 1.05rem; }
.site .idea-guarantee {
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}
.site .idea-guarantee p { color: var(--muted); }

/* existing ideas list */
.site .existing-ideas { margin-top: 3rem; }
.site .ideas-title {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--ink);
    padding-bottom: .7rem;
    margin-bottom: 1.4rem;
    border-bottom: 1px solid var(--hair);
}
.site .idea-item {
    background: var(--paper);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
}
.site .idea-item .idea-date {
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .4rem;
}
.site .idea-item .idea-content { color: var(--body); line-height: 1.6; }
.site .no-ideas { color: var(--light); font-style: italic; text-align: center; }

/* ── Welcome: next steps ───────────────────────────────────────────────── */
.site .next-steps { background: var(--paper); }
.site .step-item {
    background: var(--paper-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.site .step-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.site .step-number {
    font-family: var(--serif);
    color: var(--accent);
}
.site .step-item h3 { font-family: var(--serif); color: var(--ink); }
.site .step-item p { color: var(--muted); }
.site .step-item .social-link {
    background: var(--paper);
    border: 1px solid var(--border);
    color: var(--ink);
    transition: border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
}
.site .step-item .social-link:hover {
    background: var(--paper-3);
    border-color: var(--accent);
    transform: translateX(3px);
}
.site .step-item .social-icon { color: var(--accent); }

/* ── Forms (inputs shared by both pages) ───────────────────────────────── */
.site .email-input,
.site .form-input,
.site textarea,
.site .idea-textarea {
    font-family: var(--serif);
    border: 1.5px solid var(--hair);
    border-radius: 3px;
    background: var(--paper-2);
    color: var(--ink);
    transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.site .email-input::placeholder,
.site .form-input::placeholder,
.site textarea::placeholder { color: var(--light); }
.site .email-input:focus,
.site .form-input:focus,
.site textarea:focus,
.site .idea-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(155, 45, 26, .12);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .site .hero { min-height: 88vh; padding: 5rem 1.4rem 3.5rem; }
    .site .price-section { padding: 2rem 1.4rem; }
    .site .idea-form-container { padding: 1.6rem; }
}
