/* Orbsen site template — design tokens stamped at scaffold time.
   The agent customizes from here; keep the custom properties as the source
   of truth for brand colours and fonts. */

:root {
    --primary: #593196;
    --primary-dark: #3d1f6b;
    --accent: #b491f0;
    --nav-bg: #2a1250;
    --ink: #1b0847;
    --muted: #5a4d76;
    --bg: #f8f7fb;
    --surface: #ffffff;
    --border: #e6e0f2;
    --font: "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-head: "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(43, 18, 80, .10);
    --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -.01em; }

/* --- nav ------------------------------------------------------------- */
header.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--nav-bg);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 24px;
    flex-wrap: wrap;
}

header.nav .brand {
    font-weight: 700;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

header.nav .brand img { max-height: 38px; }
header.nav .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
header.nav .bt { font-weight: 700; }
header.nav .bs { font-size: .7rem; opacity: .85; font-weight: 400; }

header.nav .links { display: flex; gap: 4px; flex-wrap: wrap; }
header.nav .item { position: relative; }

header.nav .item > a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    opacity: .85;
    font-size: .95rem;
    padding: 6px 8px;
}

header.nav .item > a:hover { opacity: 1; }

header.nav .sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--nav-bg);
    padding: 8px;
    border-radius: 0 0 8px 8px;
    min-width: 170px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
    z-index: 20;
}

header.nav .item:hover .sub,
header.nav .item:focus-within .sub { display: flex; }

header.nav .sub a {
    color: #fff;
    opacity: .85;
    text-decoration: none;
    font-size: .9rem;
    padding: 4px 6px;
}

header.nav .sub a:hover { opacity: 1; }

.nt { display: none; }

.hamb {
    display: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    user-select: none;
}

@media (max-width: 768px) {
    .hamb { display: block; }
    header.nav .links { display: none; flex-basis: 100%; flex-direction: column; gap: 6px; }
    .nt:checked ~ .links { display: flex; }
    header.nav .sub { position: static; display: flex; padding: 2px 0 2px 16px; box-shadow: none; background: transparent; }
}

/* --- hero + pages ----------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #7a4fc0 100%);
    color: #fff;
    padding: 120px 24px 128px;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(180, 145, 240, .40), transparent 42%),
        radial-gradient(circle at 82% 78%, rgba(120, 79, 192, .45), transparent 46%);
    pointer-events: none;
}

.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }

.hero .eyebrow {
    display: inline-block;
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    margin: 0 0 22px;
    opacity: .9;
}

.hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0 0 .5rem; }
.hero p { opacity: .92; font-size: clamp(1.05rem, 2.5vw, 1.3rem); margin: 0 auto; max-width: 620px; }

.hero .cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: .98rem;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }

.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.page-head {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 64px 24px;
    text-align: center;
}

.page-head h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.4rem); }

/* --- content sections ------------------------------------------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }
.section-tight { padding-top: 40px; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 0 0 .5rem; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.prose {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px;
    font-size: 1.08rem;
}

.prose h2 { margin-top: 0; }
.prose a { color: var(--primary); }

/* --- cards ------------------------------------------------------------ */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(43, 18, 80, .16); }

.card .ico {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.card h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }

/* --- footer ------------------------------------------------------------ */
footer.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    max-width: var(--maxw);
    margin: 40px auto 0;
    padding: 28px 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .85rem;
    flex-wrap: wrap;
}

footer.foot .tag { opacity: .8; }

/* --- score card admin + settings ------------------------------------- */
.admin-grid,
.settings-grid {
    max-width: 620px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.admin-row,
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
}

.admin-label,
.settings-label { font-weight: 600; }

.admin-ctrl { display: flex; align-items: center; gap: 14px; }

.stepper {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}

.stepper:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stepper:active { transform: translateY(0); }

.admin-count {
    min-width: 48px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink);
}

.admin-actions {
    max-width: 620px;
    margin: 26px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-total { color: var(--muted); font-size: 1.05rem; }
.admin-total strong { color: var(--primary); font-size: 1.3rem; }

.admin-actions .btn-ghost { color: var(--primary); border-color: var(--primary); }
.admin-actions .btn-ghost:hover { background: rgba(89, 49, 150, .08); }

.settings-field { display: flex; align-items: center; gap: 8px; }

.settings-field input {
    width: 110px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    text-align: right;
}

.settings-unit { color: var(--muted); }

