/* Arsnova Survey — design tokens (riuso identico AMS Workspace) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --brand-bg: #f3f5f7;
    --brand-bg-2: #eef1f4;
    --brand-surface: #ffffff;
    --brand-surface-2: #f8f9fb;
    --brand-border: rgba(15, 23, 42, 0.08);
    --brand-border-strong: rgba(15, 23, 42, 0.14);
    --brand-copy: #16202a;
    --brand-copy-soft: #536273;
    --brand-copy-muted: #8592a0;
    --brand-accent: #e94e1b;
    --brand-accent-soft: rgba(233, 78, 27, 0.12);
    --brand-success: #18a874;
    --brand-warning: #d99218;
    --brand-danger: #d94f45;
    --brand-info: #2f7de1;
    --sidebar-w: 292px;
    --topbar-h: 92px;
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.06);
    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Montserrat', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--brand-copy);
    background:
        radial-gradient(circle at 0 0, rgba(233, 78, 27, 0.12), transparent 28%),
        linear-gradient(180deg, var(--brand-bg) 0%, var(--brand-bg-2) 100%);
}
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,0.92), transparent 82%);
}
a { color: inherit; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* ===== Brand wordmark placeholder (text-based finché non abbiamo SVG) ===== */
.brand-wordmark-text {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.04em;
    color: var(--brand-copy);
    line-height: 1;
}
.brand-wordmark-accent {
    color: var(--brand-accent);
}

.brand-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    color: var(--brand-copy-soft);
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.12em; text-transform: uppercase;
}
.brand-kicker::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--brand-accent);
    box-shadow: 0 0 0 5px rgba(233, 78, 27, 0.08);
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--brand-copy-muted);
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow::before {
    content: '';
    width: 22px; height: 1px;
    background: linear-gradient(90deg, var(--brand-accent), transparent);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none; cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px; font-weight: 800;
    letter-spacing: 0.02em;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-accent), #f1883d);
    box-shadow: 0 12px 24px rgba(233, 78, 27, 0.16);
}
.btn-secondary {
    color: var(--brand-copy);
    background: rgba(15,23,42,0.04);
    border-color: var(--brand-border);
}
.btn-danger {
    color: #b42318;
    background: rgba(217,79,69,0.1);
    border-color: rgba(217,79,69,0.16);
}
.btn-sm { min-height: 34px; padding: 7px 12px; border-radius: 12px; font-size: 12px; }
.btn-icon { min-width: 36px; min-height: 36px; padding: 0 9px; }

/* ===== Forms ===== */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block; margin-bottom: 8px;
    color: var(--brand-copy-soft);
    font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
}
.form-control {
    width: 100%; min-height: 48px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--brand-border);
    color: var(--brand-copy);
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.form-control:focus {
    outline: none;
    border-color: rgba(233,78,27,0.38);
    box-shadow: 0 0 0 4px rgba(233,78,27,0.12);
    background: #fff;
}
textarea.form-control { min-height: 104px; resize: vertical; }

/* ===== Alerts / badges ===== */
.alert {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid transparent;
    font-size: 13px; font-weight: 700;
    margin-bottom: 18px;
}
.alert-success { color: #13795b; background: rgba(24,168,116,0.12); border-color: rgba(24,168,116,0.18); }
.alert-danger  { color: #b42318; background: rgba(217,79,69,0.12); border-color: rgba(217,79,69,0.18); }
.alert-warning { color: #b66c08; background: rgba(217,146,24,0.14); border-color: rgba(217,146,24,0.18); }

.badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-success { color: #13795b; background: rgba(24,168,116,0.12); border-color: rgba(24,168,116,0.18); }
.badge-warning { color: #b66c08; background: rgba(217,146,24,0.14); border-color: rgba(217,146,24,0.18); }
.badge-danger  { color: #b42318; background: rgba(217,79,69,0.12); border-color: rgba(217,79,69,0.18); }
.badge-info    { color: #175cd3; background: rgba(47,125,225,0.12); border-color: rgba(47,125,225,0.18); }
.badge-muted   { color: var(--brand-copy-soft); background: rgba(15,23,42,0.05); border-color: rgba(15,23,42,0.08); }

/* ===== Panels ===== */
.panel {
    position: relative;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--brand-border);
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(250,251,252,0.96));
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}
.panel.tight { padding: 16px; }
.panel-label {
    color: var(--brand-copy-muted);
    font-size: 11px; font-weight: 800;
    letter-spacing: 0.12em; text-transform: uppercase;
}

h2 { font-size: clamp(30px, 4vw, 52px); line-height: 0.98; letter-spacing: -0.055em; font-weight: 900; }
h3 { font-size: 18px; letter-spacing: -0.025em; line-height: 1.2; font-weight: 800; }
.section-copy { color: var(--brand-copy-soft); font-size: 15px; line-height: 1.7; }

.grid { display: grid; gap: 16px; }
.grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
@media (min-width: 760px) {
    .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
