/* ============================================================
   Le PAC — Projet d'Autonomie Citoyenne
   Aesthetic: workshop + circuit board, warm and hands-on
   ============================================================ */

:root {
    /* Core palette */
    --ink: #1A1F2E;
    --ink-soft: #2E3647;
    --paper: #FDF8F0;
    --paper-warm: #F5EDDC;
    --cream: #FFF8E7;
    --rule: #D9CDB4;

    /* Accents */
    --circuit: #1E3A5F;        /* deep PCB blue */
    --circuit-dark: #11253F;
    --circuit-light: #2E5584;
    --solder: #FFC845;          /* solder yellow */
    --solder-warm: #F4A322;
    --rust: #C45C26;            /* soldering iron */
    --spark: #FF6B35;           /* heat */
    --leaf: #4B8B5D;            /* trust / repair */
    --leaf-dark: #2F6141;

    /* Audience accents */
    --asso: #C45C26;
    --jeune: #4B8B5D;
    --mairie: #1E3A5F;

    /* Typography */
    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body: 'Atkinson Hyperlegible', system-ui, sans-serif;
    --font-hand: 'Caveat', cursive;

    /* Layout */
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 6px rgba(26, 31, 46, 0.08);
    --shadow-md: 0 6px 20px rgba(26, 31, 46, 0.12);
    --shadow-lg: 0 14px 40px rgba(26, 31, 46, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    overflow-x: hidden;
}

a { color: var(--circuit); text-decoration: none; }
a:hover { text-decoration: underline; }

em { font-style: italic; color: var(--rust); }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   Prototype banner
   ============================================================ */
.proto-banner {
    position: fixed;
    top: 24px;
    right: -58px;
    width: 220px;
    text-align: center;
    padding: 7px 0;
    background: linear-gradient(180deg, var(--spark) 0%, var(--rust) 100%);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transform: rotate(45deg);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.3);
    z-index: 200;
    pointer-events: none;
}

/* ============================================================
   Circuit background decoration
   ============================================================ */
.circuit-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    z-index: 0;
}

.trace {
    position: absolute;
    background: var(--circuit);
    border-radius: 999px;
}
.trace-1 { top: 15%; left: -10%; width: 60%; height: 2px; transform: rotate(-8deg); }
.trace-2 { top: 55%; right: -10%; width: 70%; height: 2px; transform: rotate(5deg); }
.trace-3 { bottom: 10%; left: 20%; width: 40%; height: 2px; transform: rotate(-15deg); }

.solder {
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--solder);
    box-shadow: 0 0 0 3px var(--circuit);
}
.solder-1 { top: 14%; left: 48%; }
.solder-2 { top: 56%; right: 32%; }
.solder-3 { bottom: 11%; left: 58%; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
}
.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
    text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    background: var(--circuit);
    color: var(--solder);
    border-radius: 10px;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2);
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-main {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ink);
}
.logo-tag {
    font-size: 0.72rem;
    color: var(--ink-soft);
    margin-top: 2px;
    letter-spacing: 0.3px;
}
.nav-links {
    display: flex;
    gap: 1.6rem;
}
.nav-links a {
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.3rem 0;
    position: relative;
}
.nav-links a:hover {
    color: var(--circuit);
    text-decoration: none;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    text-align: center;
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--circuit);
    color: var(--cream);
    box-shadow: 0 3px 0 var(--circuit-dark), var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--circuit-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 0 var(--circuit-dark), var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
}
.btn-ghost:hover {
    background: var(--ink);
    color: var(--cream);
}

.btn-big {
    font-size: 1.15rem;
    padding: 1.05rem 2rem;
}

.btn-icon { font-size: 1.2em; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    padding: 3rem 0 5rem;
    overflow: hidden;
}
.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
    display: inline-block;
    background: var(--solder);
    color: var(--ink);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
    margin-bottom: 1.3rem;
    box-shadow: var(--shadow-sm);
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: 1.3rem;
    letter-spacing: -0.5px;
}
.hero-title em {
    font-style: italic;
    color: var(--rust);
    position: relative;
    display: inline-block;
}
.hero-title em::after {
    content: '';
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: 2px;
    height: 6px;
    background: var(--solder);
    z-index: -1;
    opacity: 0.65;
    border-radius: 3px;
}
.hero-lede {
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-bottom: 2rem;
    max-width: 540px;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.hero-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    max-width: 580px;
}
.num-card {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.9rem;
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--ink-soft);
}
.num-card b {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--ink);
    display: block;
    line-height: 1;
    margin-bottom: 2px;
}
.num-icon { font-size: 1.4rem; }

/* Hero visual */
.hero-visual {
    position: relative;
    height: 420px;
}
.device {
    position: absolute;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s;
}
.device-phone {
    top: 10%; left: 15%;
    width: 130px; height: 220px;
    background: linear-gradient(135deg, #2A3340 0%, #1A1F2E 100%);
    padding: 10px;
    transform: rotate(-8deg);
}
.device-screen {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #3A4458 0%, #1E242F 100%);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}
.device-crack {
    position: absolute;
    top: 20%; left: 10%;
    width: 85%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: rotate(25deg);
    box-shadow:
        0 15px 0 -1px rgba(255,255,255,0.3),
        0 32px 0 -1px rgba(255,255,255,0.2),
        30px -8px 0 -1px rgba(255,255,255,0.25);
}
.device-radio {
    top: 45%; right: 10%;
    width: 180px; height: 110px;
    background: linear-gradient(135deg, #D4C4A8 0%, #B09775 100%);
    padding: 12px;
    display: flex;
    gap: 10px;
    transform: rotate(6deg);
}
.radio-dial {
    width: 70px;
    background: var(--ink);
    border-radius: 6px;
    position: relative;
}
.radio-dial::after {
    content: '';
    position: absolute;
    top: 50%; left: 10%; right: 10%;
    height: 2px;
    background: var(--solder);
    transform: translateY(-50%);
}
.radio-speaker {
    flex: 1;
    background:
        radial-gradient(circle, var(--ink) 1.5px, transparent 1.5px) 0 0 / 10px 10px,
        #8B6F3F;
    border-radius: 6px;
}
.device-headphones {
    bottom: 5%; left: 5%;
    width: 150px; height: 120px;
    background: transparent;
    box-shadow: none;
    transform: rotate(-4deg);
}
.headphone-band {
    position: absolute;
    top: 0; left: 10%;
    width: 80%; height: 55%;
    border: 8px solid var(--ink);
    border-bottom: none;
    border-radius: 90px 90px 0 0;
}
.headphone-cup {
    position: absolute;
    bottom: 0;
    width: 50px; height: 60px;
    background: var(--rust);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}
.headphone-cup-l { left: 0; }
.headphone-cup-r { right: 0; }

.tool {
    position: absolute;
    z-index: 3;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
}
.tool-screwdriver {
    top: 5%; right: 5%;
    transform: rotate(35deg);
}
.tool-soldering {
    bottom: 10%; right: 25%;
    transform: rotate(-20deg);
}

/* ============================================================
   Section heads
   ============================================================ */
section { position: relative; z-index: 1; }

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}
.section-kicker {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 0.6rem;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}
.section-intro {
    font-size: 1.1rem;
    color: var(--ink-soft);
}

/* ============================================================
   Concept section
   ============================================================ */
.concept-section {
    padding: 5rem 0;
    background: var(--paper-warm);
    border-top: 1px dashed var(--rule);
    border-bottom: 1px dashed var(--rule);
}
.concept-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.step-card {
    position: relative;
    background: white;
    padding: 2rem 1.5rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--rule);
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--circuit);
}
.step-num {
    position: absolute;
    top: -14px; left: 1.5rem;
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    background: var(--circuit);
    color: var(--solder);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}
.step-emoji {
    display: block;
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    line-height: 1;
}
.step-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.step-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* ============================================================
   Audience section
   ============================================================ */
.audience-section {
    padding: 5rem 0;
    background: var(--paper);
}
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.audience-card {
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--rule);
    border-top-width: 6px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.audience-asso { border-top-color: var(--asso); }
.audience-jeune { border-top-color: var(--jeune); }
.audience-mairie { border-top-color: var(--mairie); }

.audience-icon-wrap {
    display: inline-flex;
    width: 54px; height: 54px;
    align-items: center;
    justify-content: center;
    background: var(--paper-warm);
    border-radius: 14px;
    margin-bottom: 1rem;
}
.audience-icon { font-size: 1.8rem; }
.audience-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ink);
    margin-bottom: 0.4rem;
    line-height: 1.15;
}
.audience-sub {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.audience-list {
    list-style: none;
    margin-bottom: 1.4rem;
    flex: 1;
}
.audience-list li {
    padding: 0.4rem 0 0.4rem 1.4rem;
    position: relative;
    color: var(--ink-soft);
    font-size: 0.95rem;
    border-bottom: 1px dashed var(--rule);
}
.audience-list li:last-child { border-bottom: none; }
.audience-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--rust);
    font-weight: 700;
}
.audience-cta {
    display: inline-block;
    font-weight: 700;
    color: var(--circuit);
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--circuit);
    align-self: flex-start;
}
.audience-cta:hover {
    text-decoration: none;
    color: var(--rust);
    border-bottom-color: var(--rust);
}

/* ============================================================
   Engagement form
   ============================================================ */
.engagement-section {
    padding: 5rem 0;
    background: var(--paper-warm);
    border-top: 1px dashed var(--rule);
    border-bottom: 1px dashed var(--rule);
}
.engagement-form {
    max-width: 820px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--rule);
    box-shadow: var(--shadow-md);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group:last-child { margin-bottom: 0; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.form-row .form-group { margin-bottom: 0; }

.form-label {
    display: block;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--cream);
    border: 2px solid var(--rule);
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--circuit);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}
.form-textarea {
    min-height: 90px;
    resize: vertical;
    font-family: inherit;
}

/* Type cards */
fieldset.form-group {
    border: none;
    padding: 0;
    margin-bottom: 2rem;
}
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
}
.type-option {
    cursor: pointer;
    position: relative;
    display: block;
}
.type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.type-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem;
    background: var(--cream);
    border: 2px solid var(--rule);
    border-radius: var(--radius);
    transition: all 0.15s;
    height: 100%;
}
.type-option:hover .type-card {
    border-color: var(--circuit);
    background: white;
}
.type-option input:checked + .type-card {
    border-color: var(--circuit);
    background: var(--circuit);
    color: var(--cream);
    box-shadow: var(--shadow-sm);
}
.type-emoji { font-size: 1.6rem; }
.type-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.15;
}
.type-desc {
    font-size: 0.82rem;
    opacity: 0.8;
    line-height: 1.3;
}

/* Dynamic (type-specific) fields */
.dynamic-fields { margin-bottom: 0.5rem; }
.type-fields {
    display: none;
    padding: 1.3rem;
    background: var(--paper-warm);
    border-radius: var(--radius);
    border: 1px dashed var(--rule);
    margin-bottom: 1.5rem;
}
.type-fields.is-visible {
    display: block;
    animation: fadeIn 0.25s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.type-fields .form-group:last-child { margin-bottom: 0; }

/* Pill selectors */
.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pill-option {
    cursor: pointer;
}
.pill-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.pill-option span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--rule);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink-soft);
    transition: all 0.15s;
}
.pill-option:hover span { border-color: var(--circuit); color: var(--circuit); }
.pill-option input:checked + span {
    background: var(--circuit);
    color: var(--cream);
    border-color: var(--circuit);
}

/* Consent */
.consent-group {
    padding: 1rem;
    background: var(--paper-warm);
    border-radius: var(--radius);
    margin-top: 1rem;
}
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--ink-soft);
}
.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 18px; height: 18px;
    accent-color: var(--circuit);
    flex-shrink: 0;
}

/* ============================================================
   Vision section
   ============================================================ */
.vision-section {
    padding: 5rem 0;
    background: var(--circuit);
    color: var(--cream);
}
.vision-section .section-kicker { color: var(--solder); }
.vision-section .section-title { color: var(--cream); }
.vision-section em { color: var(--solder); }
.vision-section b { color: var(--solder); }

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}
.vision-text p {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    opacity: 0.92;
}
.kit-list {
    list-style: none;
    position: relative;
}
.kit-list::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 7px;
    width: 2px;
    background: linear-gradient(to bottom, var(--solder), rgba(255, 200, 69, 0.25));
}
.kit-item {
    display: flex;
    gap: 1.1rem;
    padding: 0.9rem 0 1rem 0;
    position: relative;
}
.kit-marker {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    background: var(--circuit);
    color: var(--solder);
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 4px;
}
.kit-item h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--cream);
    margin-bottom: 0.3rem;
}
.kit-item p {
    font-size: 0.95rem;
    opacity: 0.78;
}
.kit-active h4 { color: var(--solder); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
    padding: 5rem 0;
    background: var(--paper);
}
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}
.faq-item {
    background: white;
    border: 2px solid var(--rule);
    border-radius: var(--radius);
    margin-bottom: 0.8rem;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--circuit); }
.faq-item[open] { border-color: var(--circuit); }
.faq-item summary {
    padding: 1rem 1.3rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--rust);
    line-height: 1;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item p {
    padding: 0 1.3rem 1.1rem;
    color: var(--ink-soft);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--ink);
    color: var(--cream);
    padding: 3rem 0;
}
.footer-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.footer-brand {
    margin-bottom: 1.2rem;
}
.footer-brand .logo-main {
    display: block;
    color: var(--cream);
    font-size: 2rem;
}
.footer-tag {
    display: block;
    color: var(--solder);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.2rem;
}
.footer-manifesto {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255, 248, 231, 0.85);
    margin-bottom: 1.6rem;
    line-height: 1.5;
}
.footer-meta {
    font-size: 0.85rem;
    color: rgba(255, 248, 231, 0.55);
    line-height: 1.6;
}
.footer-meta a {
    color: var(--solder);
    text-decoration: underline;
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--circuit);
    color: var(--cream);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 150;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* ============================================================
   Success state (after form submission)
   ============================================================ */
.form-success {
    max-width: 820px;
    margin: 0 auto;
    background: var(--leaf);
    color: var(--cream);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.form-success h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    color: var(--cream);
    margin-bottom: 0.8rem;
}
.form-success .success-recap {
    background: rgba(255, 255, 255, 0.12);
    padding: 1.2rem;
    border-radius: var(--radius);
    text-align: left;
    margin: 1.3rem auto;
    max-width: 500px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.form-success .success-recap b { color: var(--solder); }
.form-success .success-note {
    opacity: 0.85;
    font-size: 0.9rem;
}
.form-error {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid var(--spark);
    color: var(--ink);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}
.form-error h2 {
    font-family: var(--font-display);
    color: var(--spark);
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 860px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .hero-visual {
        height: 300px;
        max-width: 400px;
        margin: 0 auto;
    }
    .hero-numbers {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .nav-links { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .engagement-form { padding: 1.5rem; }
    .proto-banner {
        top: 14px;
        right: -70px;
        width: 200px;
        font-size: 0.75rem;
    }
}

@media (max-width: 540px) {
    .hero { padding: 2rem 0 3rem; }
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.7rem; }
    .concept-section,
    .audience-section,
    .engagement-section,
    .vision-section,
    .faq-section { padding: 3rem 0; }
    .type-grid { grid-template-columns: 1fr 1fr; }
}
