﻿:root {
    --ink: #14213D;
    --cobalt: #2541B2;
    --cobalt-dark: #1A2F86;
    --tape: #FFC233;
    --chalk: #EEF1F6;
    --muted: #5B6475;
    --line: #D5DAE4;
    --font: "Bricolage Grotesque", system-ui, sans-serif;
}

html { font-size: 17px; }
body {
    font-family: var(--font);
    font-optical-sizing: auto;
    color: var(--ink);
    background: #fff;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--cobalt); text-underline-offset: .2em; }
a:hover { color: var(--cobalt-dark); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
h1, h2, h3, .h4 { font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: #fff; padding: .5rem 1rem; }

/* Header */
.topbar { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: inline-grid; grid-template-columns: repeat(3, 7px); gap: 2px; }
.brand-mark i { width: 7px; height: 7px; background: var(--cobalt); border-radius: 1px; }
.brand-mark i:nth-child(-n+4) { background: var(--tape); }

.navlink { color: var(--ink); font-weight: 500; text-decoration: none; }
.navlink:hover { color: var(--cobalt); text-decoration: underline; }
.linklike { background: none; border: 0; padding: 0; font: inherit; }

/* Buttons */
.btn-cj {
    display: inline-block; border: 0; border-radius: 6px;
    background: var(--cobalt); color: #fff; font-weight: 700;
    padding: .9rem 1.6rem; font-size: 1.05rem; text-decoration: none;
    transition: background-color .15s;
}
.btn-cj:hover { background: var(--cobalt-dark); color: #fff; }
.btn-cj-small { padding: .5rem 1rem; font-size: .95rem; }

.btn-cj-big { padding: 1.05rem 2rem; font-size: 1.15rem; }

/* Hero: graph-paper background, sentence form on the left, example request on the right */
.hero {
    padding: 4.5rem 0 5rem;
    background-color: #F8F9FC;
    background-image:
        linear-gradient(rgba(37,65,178,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,65,178,.06) 1px, transparent 1px);
    background-size: 28px 28px;
    border-bottom: 1px solid var(--line);
}
.sentence {
    font-size: clamp(2.1rem, 4.3vw, 3.7rem); font-weight: 800;
    letter-spacing: -.035em; line-height: 1.18; margin: 0 0 2.25rem;
}
.slot-btn {
    font: inherit; letter-spacing: inherit; color: var(--cobalt); text-align: left;
    background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
    text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: .1em;
    text-underline-offset: .14em; text-decoration-skip-ink: none;
}
.slot-btn::after {
    content: ""; display: inline-block; width: .28em; height: .28em; margin: 0 .12em 0 .22em;
    border-right: .07em solid currentColor; border-bottom: .07em solid currentColor;
    vertical-align: .22em; transform: rotate(45deg); transition: transform .15s;
}
.slot-btn[aria-expanded="true"]::after { transform: translateY(.1em) rotate(-135deg); }
.slot-btn:hover { color: var(--cobalt-dark); }
.slot-btn:focus-visible { outline-offset: 6px; }
.hero-note { color: var(--muted); margin: 1rem 0 0; }

/* Picker panel */
.picker { position: relative; display: inline-block; }
.picker-panel {
    position: absolute; z-index: 20; top: calc(100% + 12px); left: 0;
    width: min(560px, 90vw); max-height: 420px; overflow: auto;
    display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 18px 40px -12px rgba(20,33,61,.28), 0 2px 6px rgba(20,33,61,.06);
    padding: .75rem; font-size: 1rem; font-weight: 400; letter-spacing: 0; line-height: 1.4; color: var(--ink);
}
.picker-panel[hidden] { display: none; }
.picker-search {
    display: block; width: 100%; font: inherit; border: 1.5px solid var(--line); border-radius: 6px;
    padding: .6rem .8rem; margin-bottom: .5rem; position: sticky; top: 0;
}
.picker-search:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(37,65,178,.18); }
.picker-list { display: block; }
.picker-group { display: block; margin-top: .6rem; }
.picker-group[hidden] { display: none; }
.picker-group-title { display: block; font-size: .85rem; font-weight: 700; color: var(--muted); padding: 0 .5rem .3rem; }
.picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.picker-list-cats .picker-group { columns: 2; column-gap: .25rem; }
.picker-list-cats .picker-group-title { column-span: all; }
.picker-opt {
    display: flex; align-items: center; gap: .55rem; width: 100%; text-align: left;
    font: inherit; font-weight: 500; color: var(--ink); background: none; border: 0;
    padding: .45rem .5rem; border-radius: 6px; cursor: pointer; break-inside: avoid;
}
.picker-opt[hidden] { display: none; }
.picker-opt:hover, .picker-opt:focus-visible { background: var(--chalk); outline: none; }
.picker-opt[aria-pressed="true"] { background: #FFF1C7; }
.picker-opt svg { width: 18px; height: 18px; color: var(--cobalt); flex: none; }
.picker-empty { display: block; padding: .75rem .5rem; color: var(--muted); }
.picker-empty[hidden] { display: none; }
@media (max-width: 640px) {
    .picker { position: static; }
    .picker-panel { position: fixed; left: 10px; right: 10px; bottom: 10px; top: auto; width: auto; max-height: 72vh; }
    .picker-grid { grid-template-columns: repeat(2, 1fr); }
    .picker-list-cats .picker-group { columns: 1; }
}

/* Example request card */
.demo {
    position: relative; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 1.5rem; box-shadow: 0 30px 60px -30px rgba(20,33,61,.35);
}
.demo-tag {
    position: absolute; top: -.8rem; left: 1.25rem; background: var(--ink); color: #fff;
    font-size: .8rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px;
}
.demo-head { display: flex; gap: .9rem; align-items: center; padding-bottom: 1.1rem; border-bottom: 1px dashed var(--line); }
.demo-icon { width: 46px; height: 46px; border-radius: 10px; background: #FFF1C7; display: grid; place-items: center; color: var(--ink); flex: none; }
.demo-title { font-weight: 800; font-size: 1.15rem; margin: 0; letter-spacing: -.01em; }
.demo-meta { margin: 0; color: var(--muted); font-size: .95rem; }
.demo-offer { padding-top: 1.1rem; }
.demo-label { margin: 0 0 .5rem; color: var(--muted); font-weight: 500; font-size: .95rem; }
.demo-incl { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.demo-incl li { display: flex; gap: .55rem; align-items: center; padding: .25rem 0; }
.demo-incl svg { width: 18px; height: 18px; color: var(--cobalt); flex: none; }
.demo-btn { display: block; text-align: center; background: var(--cobalt); color: #fff; font-weight: 700; padding: .75rem; border-radius: 6px; }
@media (prefers-reduced-motion: no-preference) {
    .demo-offer { animation: arrive .6s cubic-bezier(.2,.8,.2,1) .5s both; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 640px) { .hero { padding: 2.75rem 0 3rem; } .band, .cats { padding: 3rem 0; } }

/* Steps */
.band { background: var(--chalk); padding: 4rem 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
    content: counter(step); display: block; font-size: 3.2rem; font-weight: 800; line-height: 1;
    color: var(--cobalt); margin-bottom: .6rem;
}
.steps h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.steps p { color: var(--muted); margin: 0; max-width: 34ch; }

/* Categories */
.cats { padding: 4.5rem 0; }
.cats h2 { font-size: 2.2rem; margin-bottom: 2.5rem; }
.cat-group h3 { font-size: 1.05rem; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-bottom: .9rem; }
.cat-group ul { list-style: none; padding: 0; margin: 0; }
.cat-group a svg { width: 18px; height: 18px; color: var(--cobalt); flex: none; }
.cat-group a { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.cat-group a:hover { color: var(--cobalt); }

/* Forms */
.page { padding: 3.5rem 0 4.5rem; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .6rem; }
fieldset { margin-bottom: 1.75rem; }
.legend-note { color: var(--muted); margin: -.5rem 0 1rem; }
legend { float: none; font-size: 1.25rem; font-weight: 800; margin-bottom: .9rem; }
.form-label { font-weight: 500; margin-bottom: .3rem; }
.form-control, .form-select {
    font-family: inherit; font-size: 1.05rem; color: var(--ink);
    border: 1.5px solid var(--line); border-radius: 6px; padding: .7rem .85rem;
}
.form-control:focus, .form-select:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(37,65,178,.18); }
.input-validation-error { border-color: #B42318; }
.field-validation-error { color: #B42318; font-size: .92rem; display: block; margin-top: .3rem; }
.aside { border-left: 3px solid var(--tape); padding-left: 1.5rem; }
.aside h2 { font-size: 1.2rem; margin-bottom: .75rem; }
.aside ol { padding-left: 1.2rem; color: var(--muted); }
.aside li { margin-bottom: .5rem; }

.notice { border-left: 4px solid var(--tape); background: #FFF6DB; padding: 1rem 1.25rem; border-radius: 0 6px 6px 0; }
.notice-ok { border-left-color: var(--cobalt); background: var(--chalk); }

/* Request page */
.linkbox { background: var(--chalk); border-radius: 8px; padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; }
.linkbox input { font-family: ui-monospace, monospace; font-size: .9rem; background: #fff; }
.summary dt { font-weight: 500; color: var(--muted); }
.summary dd { margin-bottom: 1rem; }
.eyebrow-icon { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-weight: 500; margin-bottom: .4rem; }
.eyebrow-icon svg { width: 18px; height: 18px; color: var(--cobalt); }
.answer { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; box-shadow: 0 30px 60px -34px rgba(20,33,61,.35); }
.answer h2 { font-size: 1.4rem; margin-bottom: .7rem; }
.offer-price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: .6rem; }
.offer-msg { white-space: pre-line; }
.contact-card { background: var(--chalk); border-radius: 8px; padding: 1.1rem 1.4rem; }
.contact-card p { display: flex; align-items: center; gap: .5rem; }
.contact-card svg { width: 18px; height: 18px; color: var(--cobalt); }

/* Staff area */
.tabs { display: flex; gap: .3rem; background: var(--chalk); padding: .25rem; border-radius: 8px; }
.tabs a { padding: .4rem .9rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 500; }
.tabs a[aria-current="page"] { background: #fff; box-shadow: 0 1px 3px rgba(20,33,61,.12); }
.empty { padding: 3rem 1.5rem; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: 12px; }
.req-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.req-list li { border-bottom: 1px solid var(--line); }
.req-list a, .staff-row { display: flex; align-items: center; gap: 1rem; padding: 1rem .5rem; color: var(--ink); text-decoration: none; }
.req-list a:hover { background: #F8F9FC; }
.req-list svg { width: 20px; height: 20px; color: var(--cobalt); flex: none; }
.req-main { display: flex; flex-direction: column; flex: 1; line-height: 1.35; }
.req-when { font-size: .92rem; white-space: nowrap; }
.status { display: inline-block; font-size: .85rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; white-space: nowrap; }
.st-new { background: var(--tape); color: var(--ink); }
.st-wait { background: var(--chalk); color: var(--cobalt); }
.st-ok { background: #DCF5E7; color: #146C43; }
.st-off { background: var(--chalk); color: var(--muted); }

/* Footer */
.footer-cj { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: .95rem; }
.footer-cj a { color: var(--muted); }
