/* =========================================================================
   Studio Legale — stylesheet
   Palette: deep forest green (trust) + lime accent (from reference) + warm paper
   Type:    EB Garamond (headings) / Lato (body)
   ========================================================================= */

:root {
    --green-900: #14352b;   /* darkest — hero/footer/dark sections */
    --green-800: #1c4638;
    --green-700: #235441;
    --green-600: #2f6b52;
    --lime-500:  #a4d037;   /* CTA / accent — from reference */
    --lime-600:  #8fbb2a;
    --lime-050:  #eef6d8;

    --paper:     #f7f8f3;   /* page background */
    --white:     #ffffff;
    --ink:       #16211c;   /* body text */
    --muted:     #55655c;   /* secondary text */
    --line:      #e3e7dd;   /* borders */

    --radius:    16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(20,53,43,.06), 0 2px 8px rgba(20,53,43,.05);
    --shadow-md: 0 6px 24px rgba(20,53,43,.10);
    --shadow-lg: 0 20px 50px rgba(20,53,43,.18);
    --container: 1160px;
    --ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    font-family: 'Lato', system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.12;
    color: var(--green-900);
    margin: 0 0 .4em;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--green-700); text-decoration: none; }

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

.eyebrow {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 14px;
}
.eyebrow--light { color: var(--lime-500); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: .98rem;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease),
                border-color .2s var(--ease), box-shadow .2s var(--ease);
    white-space: nowrap;
}
.btn-cta {
    background: var(--lime-500);
    color: var(--green-900);
    box-shadow: 0 6px 16px rgba(164,208,55,.35);
}
.btn-cta:hover { background: var(--lime-600); box-shadow: 0 8px 22px rgba(164,208,55,.45); }
.btn-ghost {
    background: transparent;
    color: var(--green-900);
    border-color: var(--green-900);
}
.btn-ghost:hover { background: var(--green-900); color: var(--white); }
.btn-ghost--light { color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost--light:hover { background: var(--white); color: var(--green-900); border-color: var(--white); }
.btn-lg    { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* --- Header / nav ------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247,248,243,.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--green-900);
    font-family: 'EB Garamond', serif;
    font-weight: 600;
    font-size: 1.3rem;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--green-900);
    color: var(--lime-500);
}
.brand-mark svg { width: 22px; height: 22px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-links a {
    font-weight: 700;
    font-size: .95rem;
    color: var(--green-900);
    transition: color .2s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--green-600); }
.nav-links a.is-active:not(.btn) { color: var(--green-600); }
.nav-cta { color: var(--green-900) !important; padding: 11px 22px; }

.nav-burger { display: none; cursor: pointer; }
.nav-burger span {
    display: block;
    width: 26px; height: 2.5px;
    margin: 5px 0;
    background: var(--green-900);
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
}

/* --- Hero --------------------------------------------------------------- */
.hero {
    background:
        radial-gradient(120% 120% at 85% 0%, rgba(164,208,55,.10), transparent 55%),
        linear-gradient(180deg, #fbfcf7 0%, var(--paper) 100%);
    padding: 84px 0 96px;
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: center;
}
.hero-copy h1 { margin-bottom: .35em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }
.hero-trust {
    display: flex;
    gap: 36px;
    list-style: none;
    padding: 26px 0 0;
    margin: 0;
    border-top: 1px solid var(--line);
}
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong {
    font-family: 'EB Garamond', serif;
    font-size: 2rem;
    color: var(--green-800);
    line-height: 1;
}
.hero-trust span { font-size: .85rem; color: var(--muted); margin-top: 4px; }

.hero-card {
    position: relative;
    background: var(--green-900);
    color: #dfeadb;
    border-radius: var(--radius);
    padding: 38px 34px;
    box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: var(--white); font-size: 1.6rem; }
.hero-card p { color: rgba(223,234,219,.85); font-size: 1rem; }
.hero-card .btn { margin-top: 8px; }
.hero-card-badge {
    display: grid; place-items: center;
    width: 52px; height: 52px;
    border-radius: 12px;
    background: rgba(164,208,55,.16);
    color: var(--lime-500);
    margin-bottom: 18px;
}
.hero-card-note {
    margin: 16px 0 0;
    font-size: .82rem;
    color: rgba(223,234,219,.7);
    text-align: center;
}

/* --- Sections ----------------------------------------------------------- */
.section { padding: 92px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-sub { color: var(--muted); font-size: 1.12rem; }

/* --- Services grid ------------------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 26px;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--lime-500);
}
.service-icon {
    display: grid; place-items: center;
    width: 58px; height: 58px;
    border-radius: 14px;
    background: var(--lime-050);
    color: var(--green-700);
    margin-bottom: 20px;
}
.service-card h3 { margin-bottom: .4em; }
.service-card > p { color: var(--muted); font-size: .98rem; }
.service-points {
    list-style: none;
    padding: 0;
    margin: 8px 0 22px;
}
.service-points li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 9px;
    font-size: .95rem;
    color: var(--ink);
}
.service-points li::before {
    content: "";
    position: absolute;
    left: 0; top: .5em;
    width: 14px; height: 8px;
    border-left: 2px solid var(--lime-600);
    border-bottom: 2px solid var(--lime-600);
    transform: rotate(-45deg);
}
.service-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--green-700);
    transition: gap .2s var(--ease), color .2s var(--ease);
}
.service-link:hover { gap: 13px; color: var(--green-600); }

/* --- Dark studio section ------------------------------------------------ */
.section--dark {
    background:
        radial-gradient(100% 120% at 0% 0%, rgba(164,208,55,.10), transparent 50%),
        var(--green-900);
    color: #d9e6d5;
}
.section--dark h2 { color: var(--white); }
.studio-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.studio-copy p { color: rgba(217,230,213,.82); font-size: 1.1rem; max-width: 46ch; }
.studio-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.studio-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0; margin: 0;
}
.studio-features li {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--radius-sm);
    padding: 22px 20px;
}
.studio-features h4 { color: var(--lime-500); font-family: 'Lato', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.studio-features p { color: rgba(217,230,213,.78); font-size: .92rem; margin: 0; }

/* --- CTA band ----------------------------------------------------------- */
.cta-band { background: var(--lime-050); padding: 64px 0; }
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.cta-inner h2 { margin-bottom: .2em; }
.cta-inner p { color: var(--muted); margin: 0; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--green-900); color: #cddbc8; padding: 66px 0 26px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand--footer { color: var(--white); }
.footer-tagline { color: rgba(205,219,200,.75); margin-top: 14px; max-width: 34ch; }
.footer-col h4 { color: var(--white); font-family: 'Lato', sans-serif; font-weight: 700; font-size: .95rem; letter-spacing: .04em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(205,219,200,.82); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--lime-500); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 22px;
    font-size: .84rem;
    color: rgba(205,219,200,.6);
}

/* --- Form pages --------------------------------------------------------- */
.form-hero {
    background:
        radial-gradient(90% 130% at 100% 0%, rgba(164,208,55,.12), transparent 55%),
        var(--green-900);
    color: #d9e6d5;
    padding: 54px 0 60px;
}
.form-hero h1 { color: var(--white); }
.form-hero .lead { color: rgba(217,230,213,.85); max-width: 60ch; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(217,230,213,.8);
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 22px;
    transition: color .2s var(--ease);
}
.back-link:hover { color: var(--lime-500); }

.form-section { padding-top: 56px; }
.form-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 44px;
    align-items: start;
}

/* Service picker (no service selected) */
.picker-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.picker-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.picker-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--lime-500); }
.picker-card h3 { margin-bottom: .35em; }
.picker-card p { color: var(--muted); font-size: .96rem; }
.picker-go { font-weight: 700; color: var(--green-700); }

/* Intake form */
.intake-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 32px;
    box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; display: flex; flex-direction: column; }
.field label {
    font-weight: 700;
    font-size: .9rem;
    color: var(--green-900);
    margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--ink);
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fcfdfa;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--lime-600);
    box-shadow: 0 0 0 4px rgba(164,208,55,.22);
}
.field-error { color: #b42318; font-size: .82rem; font-weight: 700; margin-top: 6px; }

.field--check { margin-top: 4px; }
.check { flex-direction: row; align-items: flex-start; gap: 11px; font-weight: 400; font-size: .92rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green-700); flex: 0 0 auto; }
.check a { color: var(--green-700); text-decoration: underline; }

.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin: 16px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Alerts */
.alert { grid-column: 1 / -1; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 6px; }
.alert-error { background: #fdeceb; border: 1px solid #f4c7c3; color: #8a2016; }
.alert-success {
    display: flex;
    gap: 18px;
    background: var(--white);
    border: 1px solid var(--lime-500);
    box-shadow: var(--shadow-md);
    padding: 34px 32px;
}
.alert-success .alert-icon {
    flex: 0 0 auto;
    display: grid; place-items: center;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--lime-050);
    color: var(--green-700);
}
.alert-success h2 { font-size: 1.7rem; margin-bottom: .3em; }
.alert-success p { color: var(--muted); }
.alert-success .btn { margin-top: 10px; }

/* Form sidebar */
.form-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.aside-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
}
.aside-card h3 { margin-bottom: .5em; }
.aside-contact { background: var(--green-900); color: #d9e6d5; border-color: var(--green-900); }
.aside-contact h4 { color: var(--white); font-family: 'Lato', sans-serif; font-size: 1rem; }
.aside-contact p { color: rgba(217,230,213,.8); font-size: .92rem; }
.aside-phone { display: block; font-family: 'EB Garamond', serif; font-size: 1.5rem; color: var(--lime-500); font-weight: 600; }
.aside-mail  { display: block; color: rgba(217,230,213,.9); margin-top: 4px; font-size: .95rem; }
.aside-switch h4 { font-family: 'Lato', sans-serif; font-size: .95rem; color: var(--green-900); margin-bottom: 12px; }
.aside-switch-links { display: flex; flex-direction: column; gap: 8px; }
.aside-switch-links a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .92rem;
    color: var(--green-900);
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.aside-switch-links a:hover { border-color: var(--lime-500); background: var(--lime-050); }
.aside-switch-links a.is-active { background: var(--green-900); color: var(--white); border-color: var(--green-900); }

/* =========================================================================
   Multistep quiz (Typeform-style) — richiesta.php
   ========================================================================= */

/* Slim top bar (replaces the tall hero on quiz pages) */
.quiz-topbar {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}
.back-link--dark { color: var(--green-700); margin: 0; }
.back-link--dark:hover { color: var(--green-600); }

/* Top progress bar */
.quiz-progress {
    position: sticky;
    top: 74px;                 /* below the sticky header */
    z-index: 40;
    height: 6px;
    background: var(--line);
    margin-bottom: 0;
}
.quiz-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--green-600), var(--lime-500));
    border-radius: 0 4px 4px 0;
    transition: width .45s var(--ease);
}
.quiz-progress-pct {
    position: absolute;
    right: 16px;
    top: 10px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--green-700);
}

.form-section--quiz { padding-top: 0; padding-bottom: 0; }
.quiz-container { max-width: 760px; }

/* The form fills a comfortable stage so each step feels focused */
.quiz { position: relative; }
.quiz-viewport {
    position: relative;
    min-height: min(72vh, 640px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0 120px;
}
.quiz .alert-error { margin: 24px 0 0; }

/* Steps: stacked by default (no-JS), one-at-a-time with JS */
.step { padding: 8px 0; }
html.js .quiz--js .step { display: none; }
html.js .quiz--js .step.is-active { display: block; }

.step-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .08em;
    color: var(--green-600);
    margin-bottom: 14px;
}
.step-kicker svg { opacity: .7; }
.step-q {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    line-height: 1.14;
    margin-bottom: .35em;
}
.step-hint { color: var(--muted); font-size: 1.08rem; margin-bottom: 26px; max-width: 52ch; }
.step-hint strong { color: var(--green-800); }

.step--intro .eyebrow { margin-bottom: 18px; }
.step-switch { margin-top: 30px; font-size: .92rem; color: var(--muted); }
.step-switch a { font-weight: 700; color: var(--green-700); margin: 0 4px; text-decoration: underline; }
.step-switch a:hover { color: var(--green-600); }

/* Option (choice) cards */
.opt-list { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.opt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: border-color .18s var(--ease), background .18s var(--ease),
                transform .18s var(--ease), box-shadow .18s var(--ease);
}
.opt:hover { border-color: var(--green-600); transform: translateX(3px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-key {
    flex: 0 0 auto;
    display: grid; place-items: center;
    width: 30px; height: 30px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--green-800);
    background: var(--paper);
    transition: inherit;
}
.opt-label { flex: 1; font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.opt-check {
    flex: 0 0 auto;
    display: grid; place-items: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--lime-500);
    color: var(--green-900);
    opacity: 0;
    transform: scale(.6);
    transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.opt:has(input:checked) {
    border-color: var(--lime-600);
    background: var(--lime-050);
    box-shadow: 0 0 0 3px rgba(164,208,55,.25);
}
.opt:has(input:checked) .opt-key { background: var(--green-900); color: var(--lime-500); border-color: var(--green-900); }
.opt:has(input:checked) .opt-check { opacity: 1; transform: scale(1); }
.opt:has(input:focus-visible) { border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(164,208,55,.28); }

/* Free-text step inputs */
.step-input {
    width: 100%;
    max-width: 560px;
    font-family: 'Lato', sans-serif;
    font-size: 1.15rem;
    color: var(--ink);
    padding: 14px 4px;
    border: none;
    border-bottom: 2px solid var(--line);
    background: transparent;
    transition: border-color .2s var(--ease);
}
.step-input:focus { outline: none; border-bottom-color: var(--lime-600); }
textarea.step-input { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; resize: vertical; min-height: 140px; }
textarea.step-input:focus { border-color: var(--lime-600); box-shadow: 0 0 0 4px rgba(164,208,55,.22); }

/* Contact step reuses .field but stacked */
.step .field { max-width: 560px; }

.step-actions { margin-top: 30px; display: flex; align-items: center; gap: 14px; }
.kbd {
    font-family: 'Lato', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(0,0,0,.12);
    color: inherit;
}

/* Floating bottom nav */
.quiz-nav {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 8px 8px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-md);
}
.quiz-nav.is-hidden { opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s var(--ease); }
.quiz-back {
    display: inline-flex; align-items: center; gap: 6px;
    border: none; background: transparent; cursor: pointer;
    font-family: 'Lato', sans-serif; font-weight: 700; font-size: .92rem;
    color: var(--green-800);
    transition: color .2s var(--ease), opacity .2s var(--ease);
}
.quiz-back:hover { color: var(--green-600); }
.quiz-back:disabled { opacity: .35; cursor: not-allowed; }
.quiz-counter {
    font-size: .82rem; font-weight: 700; color: var(--muted);
    padding: 8px 14px; background: var(--paper); border-radius: 999px;
}
.quiz-counter-now { color: var(--green-800); }

/* Step animations */
@keyframes stepDown { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes stepUp   { from { opacity: 0; transform: translateY(-22px); } to { opacity: 1; transform: none; } }
.anim-down { animation: stepDown .38s var(--ease); }
.anim-up   { animation: stepUp .38s var(--ease); }

@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-7px)} 40%,80%{transform:translateX(7px)} }
.step.shake .opt-list, .step.shake .step-input, .step.shake .field { animation: shake .4s var(--ease); }

.step.has-error .field-error,
.step .field-error:not([hidden]) { display: block; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
    .hero-inner,
    .studio-inner,
    .form-wrap { grid-template-columns: 1fr; }
    .hero-card { order: -1; }
    .form-aside { position: static; }
    .studio-features { grid-template-columns: 1fr 1fr; }

    /* Mobile nav */
    .nav-burger { display: block; z-index: 60; }
    .nav-links {
        position: fixed;
        inset: 74px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 12px 24px 24px;
        transform: translateY(-120%);
        transition: transform .3s var(--ease);
        box-shadow: var(--shadow-md);
    }
    .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .nav-cta { margin-top: 14px; text-align: center; border-bottom: none; }
    .nav-toggle:checked ~ .nav-links { transform: translateY(0); }
}
@media (max-width: 620px) {
    body { font-size: 16px; }
    .section, .hero { padding: 60px 0; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .studio-features { grid-template-columns: 1fr; }
    .hero-trust { gap: 24px; flex-wrap: wrap; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .intake-form { padding: 26px 20px; }

    /* Quiz on small screens */
    .quiz-viewport { min-height: 62vh; padding: 24px 0 110px; }
    .quiz-progress { top: 74px; }
    .quiz-nav {
        left: 16px; right: 16px; bottom: 16px;
        justify-content: space-between;
    }
    .opt-label { font-size: .98rem; }
}
