/* ============================================================
   Darn Fine Surveys — Warm Minimal Luxury Design System
   ============================================================ */

/* ── Reset & Box Sizing ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CSS Variables ── */
:root {
    /* Colors */
    --bg:            #FAF8F5;
    --surface:       #FFFFFF;
    --surface-warm:   #FDFBF8;
    --border:        #E8E2DA;
    --border-soft:    #F0EBE4;
    --text:          #2D2926;
    --text-warm:     #4A4440;
    --muted:         #8C8179;
    --muted-light:   #B5ADA5;
    --accent:        #C4704A;
    --accent-hover:  #A85D3A;
    --accent-soft:   #F5EBE5;
    --accent-mid:    #E8C4AE;
    --success:       #5A8A6A;
    --success-soft:  #EDF5F0;

    /* Typography */
    --font-display:  'Cormorant Garamond', Georgia, serif;
    --font-body:     'DM Sans', system-ui, sans-serif;

    /* Spacing */
    --radius:        12px;
    --radius-sm:     8px;
    --radius-lg:     18px;
    --shadow-sm:     0 1px 3px rgba(45,41,38,0.06), 0 1px 2px rgba(45,41,38,0.04);
    --shadow-md:     0 4px 12px rgba(45,41,38,0.08), 0 2px 4px rgba(45,41,38,0.04);
    --shadow-lg:     0 12px 32px rgba(45,41,38,0.10), 0 4px 8px rgba(45,41,38,0.06);
}

/* ── Base ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 15px;
    min-height: 100vh;
}

/* ── Selection ── */
::selection {
    background: var(--accent-mid);
    color: var(--text);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-light); }

/* ── Focus ── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ── Links ── */
a {
    color: inherit;
    text-decoration: none;
}

/* ── Typography ── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
}

/* ── Layout ── */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.92);
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: opacity 0.15s;
}
.logo:hover { opacity: 0.8; }

.logo-mark {
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s, transform 0.1s;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover {
    border-color: var(--muted-light);
    background: var(--surface-warm);
}

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

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--radius);
}

/* ── Hero Section ── */
.hero {
    text-align: center;
    padding: 4rem 0 3.5rem;
    animation: fade-up 0.5s ease both;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
    background: var(--accent-soft);
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text);
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Stats Row ── */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fade-up 0.5s 0.1s ease both;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}
.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.stat-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-transform: uppercase;
}

/* ── Popular Surveys ── */
.popular-section {
    margin-bottom: 3rem;
    animation: fade-up 0.5s 0.15s ease both;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
}

.section-nav {
    display: flex;
    gap: 0.4rem;
}

.section-nav .btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.875rem;
}

.popular-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.popular-scroll::-webkit-scrollbar { display: none; }

.popular-card {
    flex: 0 0 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    cursor: pointer;
}
.popular-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--accent-mid);
}

.popular-card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
    flex: 1;
}

.popular-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.775rem;
    color: var(--muted);
}

.popular-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.popular-meta-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-mid);
    flex-shrink: 0;
}

/* ── Section Intro ── */
.section-intro {
    margin-bottom: 2rem;
    animation: fade-up 0.5s 0.05s ease both;
}

.section-intro h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.section-intro p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ── Card / Form Card ── */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* ── Field ── */
.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}
.field:last-child { margin-bottom: 0; }

.field label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-warm);
}

.field label .hint {
    font-weight: 400;
    color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.925rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="url"]::placeholder,
textarea::placeholder { color: var(--muted-light); }

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%238C8179' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ── Checkbox Field ── */
.field-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.field-check input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.field-check span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-warm);
    line-height: 1.5;
}

/* ── Divider ── */
.form-divider {
    height: 1px;
    background: var(--border);
    margin: 1.75rem 0;
}

/* ── Question Block (Create Form) ── */
.question-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, opacity 0.4s ease;
}
.question-block:hover {
    box-shadow: var(--shadow-md);
}

.question-dimmed {
    opacity: 0.42;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.question-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.question-label-input {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    background: transparent;
    padding: 0;
    width: 100%;
    color: var(--text);
    outline: none;
}
.question-label-input:focus {
    box-shadow: none;
}

/* ── Choices ── */
.choices-section {
    border-top: 1px dashed var(--border-soft);
    margin-top: 1rem;
    padding-top: 1rem;
}

.choices-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.choice-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}
.choice-row input { flex: 1; }

/* ── Action Rows ── */
.add-question-row {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0 1.5rem;
}

.submit-row {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ── Survey View (Taking / Results) ── */
.survey-hero {
    text-align: center;
    padding: 2.5rem 0 2rem;
    animation: fade-up 0.4s ease both;
}

.survey-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.survey-countdown {
    font-size: 0.85rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.survey-countdown strong {
    color: var(--accent);
    font-weight: 600;
}

.countdown-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border);
    display: inline-block;
}

.survey-disclaimer {
    font-size: 0.85rem;
    color: var(--muted);
    background: var(--accent-soft);
    border: 1px solid var(--accent-mid);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.55;
}

.survey-disclaimer-icon {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 0.05rem;
}

.alert-success {
    font-size: 0.9rem;
    background: var(--success-soft);
    border: 1px solid #B5D4C0;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--success);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Survey Meta Bar ── */
.survey-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.survey-meta-left {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.survey-meta-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ── Response Count ── */
.response-count {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}

/* ── Required Badge ── */
.required-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-mid);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
}

.required-star { color: var(--accent); margin-left: 0.2em; }

/* ── Question Description ── */
.question-description {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.25rem;
    margin-bottom: 0.85rem;
    line-height: 1.55;
}

/* ── Choice Options ── */
.choices-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.choice-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.925rem;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
    user-select: none;
}
.choice-option:hover {
    border-color: var(--accent-mid);
    background: var(--accent-soft);
}
.choice-option input[type="radio"],
.choice-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}

/* ── Insights ── */
.insights-section {
    margin-bottom: 2rem;
    animation: fade-up 0.5s 0.2s ease both;
}

.insights-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.85rem;
}

.insight-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    box-shadow: var(--shadow-sm);
}

.insight-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.insight-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-warm);
}

/* ── Result Bars ── */
.result-bars {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
}

.result-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr) auto;
    align-items: center;
    gap: 0.85rem;
}

.result-label {
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-bar-wrap {
    height: 8px;
    background: var(--border-soft);
    border-radius: 99px;
    overflow: hidden;
}

.result-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #E8975A 100%);
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 3px;
}

.result-stat {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-warm);
}
.result-pct {
    font-weight: 400;
    color: var(--muted);
}

.no-responses {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 1rem;
    font-style: italic;
}

/* ── Text Answer Grid ── */
.text-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
}

.text-card {
    background: var(--surface-warm);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    font-size: 0.875rem;
    line-height: 1.55;
    word-break: break-word;
    color: var(--text-warm);
}

/* ── Question Result Block ── */
.question-result-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    animation: fade-up 0.4s ease both;
}

.question-result-block .question-header {
    margin-bottom: 0.75rem;
}

.question-result-block .question-label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
}

/* ── Done Page ── */
.done-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.done-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.done-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem 2.5rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: done-card-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes done-card-in {
    from { opacity: 0; transform: scale(0.88) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.done-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 2px solid var(--accent-mid);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.done-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.done-subtext {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.done-btn {
    width: 100%;
    justify-content: center;
}

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    background: var(--surface);
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-logo-mark {
    display: flex;
    align-items: center;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-nav a:hover { color: var(--text); }

.footer-dot { opacity: 0.4; }

/* ── Animations ── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── 404 / Not Found ── */
.not-found {
    text-align: center;
    padding: 4rem 0;
    animation: fade-up 0.4s ease both;
}

.not-found-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 2px solid var(--accent-mid);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.not-found h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.not-found p {
    color: var(--muted);
    margin-bottom: 1.75rem;
}

/* ── Utilities ── */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    main { padding: 2rem 1rem 4rem; }

    .hero { padding: 2.5rem 0 2rem; }
    .hero h1 { font-size: 2.2rem; }

    .stats-row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .stat-card { padding: 1.1rem; }
    .stat-number { font-size: 2rem; }

    .form-card { padding: 1.25rem; }
    .question-block { padding: 1.1rem; }

    .survey-meta-bar { flex-direction: column; align-items: flex-start; }
    .survey-meta-actions { width: 100%; }

    .result-row {
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
    }
    .result-bar-wrap { display: none; }

    .footer-inner { gap: 0.5rem; }
}
