:root { color-scheme: dark; --bg: #0b1118; --panel: #111c27; --text: #eef3f6; --muted: #b3c2cc; --mint: #b9f4a5; --line: #405363; font-family: Inter, system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.65; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .22em; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:where(a, button, input, textarea, select, summary, pre):focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.04em; }
p { max-width: 76ch; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
p code { padding: .12rem .32rem; background: #263747; color: #d4f6c6; border-radius: 4px; font-size: .9em; }
.wrap { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 20; padding: .75rem 1rem; background: var(--mint); color: var(--bg); }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 96px; border-bottom: 1px solid #253746; }
.brand { display: flex; align-items: center; gap: .2rem; text-decoration: none; font-size: 1.3rem; font-weight: 760; letter-spacing: -.05em; }
.brand > span:last-child { color: var(--mint); }
.brand-mark { color: var(--mint); font-size: 2.2rem; margin-right: .5rem; }
nav { display: flex; gap: 1.8rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a[aria-current], nav a:hover { color: var(--mint); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .7rem 1.1rem; border: 1px solid var(--mint); border-radius: 7px; background: var(--mint); color: #152416; font-weight: 650; text-decoration: none; }
.button.secondary { border-color: #607784; background: transparent; color: var(--text); }
.small { font-size: .88rem; min-height: 44px; }
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6rem; align-items: center; padding-block: 5.2rem 4.7rem; }
.eyebrow { font-size: .76rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: 1rem; }
h1 { font-size: clamp(2.8rem, 5.1vw, 4.8rem); font-weight: 720; }
h1 span { color: var(--mint); }
.hero-copy { color: var(--muted); font-size: 1.18rem; margin-top: 1.5rem; max-width: 42ch; }
.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.6rem; }
.hero-actions > a:last-child { color: var(--mint); font-size: .92rem; padding-block: .6rem; }
.badge { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .75rem; border: 1px solid #607784; border-radius: 99px; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.badge.live { color: var(--mint); border-color: #68875c; background: #233321; }
.badge i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.how-it-works { padding: 1.7rem 2rem; background: linear-gradient(140deg, #1b2c2b, #12202a 65%); border: 1px solid #415957; border-radius: 14px; }
.how-it-works h2 { font-size: 1.2rem; }
.how-it-works ol { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.how-it-works li { display: flex; align-items: start; gap: 1rem; position: relative; padding-bottom: 1.6rem; }
.how-it-works li:last-child { padding-bottom: 0; }
.how-it-works li:not(:last-child)::after { content: ''; position: absolute; top: 38px; bottom: 5px; left: 17px; width: 1px; background: #658178; }
.step-number { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%; border: 1px solid #658178; color: var(--mint); font-size: .88rem; }
.how-it-works p { color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.8rem; }
.section-heading .eyebrow { margin-bottom: .6rem; }
h2 { font-size: clamp(1.65rem, 2.4vw, 2.2rem); }
.section-heading > p { max-width: 35ch; color: var(--muted); font-size: .95rem; }
.playground { display: grid; grid-template-columns: 300px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: clip; background: var(--panel); }
.library { padding: 1rem; border-right: 1px solid var(--line); background: #0d1721; }
.case-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.case-list button { display: flex; gap: .85rem; align-items: start; width: 100%; text-align: left; background: transparent; color: #cfdae2; border: 1px solid transparent; border-radius: 7px; padding: .85rem .75rem; line-height: 1.45; font-size: .9rem; }
.case-list button span { font: .75rem/1.8 ui-monospace, monospace; color: #8ba1b2; }
.case-list button:hover { background: #20313e; }
.case-list button[aria-pressed="true"] { border-color: var(--mint); background: #213329; color: var(--mint); }
.case-list button[aria-pressed="true"] span { color: var(--mint); }
.library-note { color: var(--muted); font-size: .83rem; margin: 1.5rem .75rem .5rem; }
.example { min-width: 0; padding: 2rem; }
.example-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.example-heading .eyebrow { margin-bottom: .5rem; }
.example-heading h3 { font-size: 1.6rem; }
#example-why { color: var(--muted); margin-top: .75rem; }
.message-box, .question-box { margin-top: 1.6rem; }
label, h4 { display: block; font-size: .95rem; font-weight: 650; }
textarea, input, select { border: 1px solid #738a99; border-radius: 7px; background: #0c1620; color: var(--text); width: 100%; min-width: 0; padding: .8rem 1rem; }
textarea { resize: vertical; min-height: 108px; margin-top: .6rem; line-height: 1.6; }
#message-hint { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.question-box > p { margin-top: .4rem; font-size: 1.08rem; }
.answer-options { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.option { border: 1px solid #607784; border-radius: 5px; padding: .24rem .65rem; font-size: .8rem; color: #d9e4ec; }
.result-box { margin-top: 1.6rem; padding: 1.3rem 1.5rem; background: #182b25; border: 1px solid #49685a; border-radius: 9px; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.result-heading > span { color: #bed1c3; font-size: .76rem; }
.result-answer { font-size: 1.7rem; color: var(--mint); font-weight: 680; margin: .7rem 0 1rem; line-height: 1.3; }
.answer-bars { display: grid; gap: .55rem; }
.bar { display: grid; grid-template-columns: 100px minmax(60px, 1fr) 45px; align-items: center; gap: .75rem; font-size: .82rem; }
.bar > span:first-child { overflow-wrap: anywhere; }
.bar > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
meter { width: 100%; height: .9rem; accent-color: var(--mint); }
meter::-webkit-meter-bar { background: #354b40; border: none; border-radius: 4px; }
meter::-webkit-meter-optimum-value { background: var(--mint); }
.result-explanation { font-size: .85rem; margin-top: .8rem; color: #d4e4d8; }
.result-note { margin-top: .8rem; font-size: .8rem; color: #bed1c3; }
.live-form { margin-top: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.3rem; }
.form-heading { display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
.text-button { border: none; background: transparent; color: var(--mint); font-size: .83rem; text-decoration: underline; text-underline-offset: .2em; padding: .5rem; min-height: 44px; }
#key-hint { color: var(--muted); font-size: .83rem; margin: .6rem 0 1rem; }
.run-controls { display: flex; align-items: stretch; gap: .65rem; margin-top: .4rem; }
.run-controls .button { flex-shrink: 0; }
.run-note { margin-top: .65rem; color: var(--muted); font-size: .8rem; }
.run-note a { color: var(--mint); }
.status { font-size: .86rem; min-height: 1.7em; color: var(--mint); margin-top: .8rem; }
.status.error { color: #ffc5bb; }
.api-section { margin-top: 4.5rem; }
.api-section > p { color: var(--muted); margin-bottom: 1.5rem; }
.endpoint { display: inline-flex; flex-wrap: wrap; gap: .75rem; align-items: center; font: .88rem/1.6 ui-monospace, monospace; color: #d5e4ec; border: 1px solid var(--line); border-radius: 7px; padding: .6rem .8rem; }
.endpoint b { color: var(--mint); }
.code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.code-card { border: 1px solid var(--line); border-radius: 9px; background: #0d1721; overflow: hidden; }
figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; background: #182735; border-bottom: 1px solid var(--line); }
figcaption strong { display: block; font-size: .92rem; }
figcaption span { display: block; color: var(--muted); font-size: .76rem; margin-top: .2rem; }
.copy-button { background: transparent; color: var(--mint); border: 1px solid #718a77; border-radius: 5px; font-size: .76rem; padding: .5rem .7rem; min-height: 44px; white-space: nowrap; }
pre { margin: 0; overflow: auto; padding: 1.3rem; color: #d4e4ef; font-size: .82rem; line-height: 1.65; scrollbar-width: thin; }
.code-card pre { min-height: 320px; max-height: 510px; }
.curl-details { margin-top: 1rem; padding: 1rem 1.3rem; border: 1px solid var(--line); border-radius: 9px; background: #0d1721; }
summary { cursor: pointer; font-weight: 600; }
.curl-details p { margin: 1rem 0; color: var(--muted); font-size: .88rem; }
.curl-details pre { padding-inline: 0; }
.reading-guide { margin-block: 4.5rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2rem; }
.guide-icon { display: inline-block; color: var(--mint); font: 1.1rem/1.5 ui-monospace, monospace; padding: .5rem .75rem; background: #20332a; border: 1px solid #49685a; border-radius: 7px; margin-bottom: 1rem; }
.guide-grid h3 { font-size: 1.2rem; }
.guide-grid p { color: var(--muted); font-size: .92rem; margin-top: .65rem; }
.preview-note { margin-top: 2.5rem; padding: 1.5rem 1.8rem; border: 1px solid var(--line); border-radius: 9px; background: #111d28; }
.preview-note h3 { font-size: 1.15rem; }
.preview-note p { font-size: .9rem; color: var(--muted); margin-top: .75rem; max-width: 100ch; }
.jev-section { padding-bottom: 4.5rem; scroll-margin-top: 1.5rem; }
.jev-section .section-heading { margin-bottom: 1rem; }
.jev-intro { color: var(--muted); margin-bottom: 1.8rem; max-width: 85ch; }
.jev-workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 1.5rem; }
.jev-builder, .jev-output { min-width: 0; padding: 1.7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.jev-builder { border-top: 3px solid var(--mint); }
.jev-builder h3, .jev-output h3, .jev-code-heading h3 { font-size: 1.18rem; letter-spacing: -.02em; }
.jev-form-heading, .jev-output-heading, .jev-question-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.jev-form-heading { margin-bottom: 1rem; }
.jev-form-heading .text-button { flex-shrink: 0; }
.jev-required { color: var(--muted); font-size: .78rem; font-weight: 400; }
.jev-help { color: var(--muted); font-size: .82rem; line-height: 1.6; }
.jev-help a { color: var(--mint); }
#jev-state-hint { margin-top: .4rem; }
.jev-question-title { margin-block: 1.8rem .5rem; }
#jev-questions { display: grid; gap: 1rem; margin-block: 1rem; }
.jev-question { min-width: 0; margin: 0; padding: .7rem 1rem 1rem; border: 1px solid #607784; border-radius: 9px; background: #0d1721; }
.jev-question legend { padding-inline: .45rem; color: var(--mint); font-size: .92rem; font-weight: 650; }
.jev-question-heading { align-items: start; margin-bottom: .8rem; }
.jev-question-heading .jev-help { align-self: center; }
.jev-question-remove { padding: .2rem .35rem; margin-block: -.3rem; min-height: 44px; flex-shrink: 0; }
.jev-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.jev-field { min-width: 0; margin-bottom: 1rem; }
.jev-field:last-child { margin-bottom: 0; }
.jev-field label { margin-bottom: .4rem; font-size: .87rem; }
.jev-field .jev-help { margin-top: .35rem; font-size: .76rem; }
.jev-field textarea { margin-top: 0; min-height: 94px; }
.jev-field select { min-height: 52px; padding-inline: .75rem; }
.jev-criteria { margin-top: 1rem; }
.jev-builder :where(input, select, textarea) { font-size: 1rem; }
.jev-builder button:disabled { cursor: default; }
.jev-key-area { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 1.5rem; }
.jev-key-area > .jev-help { margin-block: .7rem 1rem; }
#jev-api-key { margin-top: .4rem; }
.jev-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1rem; }
.jev-output-heading { align-items: start; flex-wrap: wrap; margin-bottom: .8rem; }
.jev-output-heading .endpoint { font-size: .75rem; padding: .35rem .6rem; }
.jev-empty { padding: 2rem 1rem; text-align: center; }
.jev-empty .guide-icon { margin-bottom: .7rem; }
.jev-empty p { color: var(--muted); font-size: .9rem; margin: .65rem auto 0; max-width: 38ch; }
.jev-caution { margin-top: 1.2rem; }
.jev-result { padding: 1.2rem; margin-top: 1rem; background: #182b25; border: 1px solid #49685a; border-radius: 9px; overflow-wrap: anywhere; }
.jev-result h3 { color: var(--mint); margin-bottom: .65rem; }
.jev-result > p { margin-top: .6rem; font-size: .9rem; }
.jev-result .result-answer { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 680; line-height: 1.3; overflow-wrap: anywhere; }
.jev-result .answer-bars { margin-top: .8rem; }
.jev-result .bar { grid-template-columns: minmax(70px, 1fr) minmax(60px, 1.5fr) 45px; }
.jev-code-heading { margin-block: 1.8rem 1rem; }
.jev-code-heading p { margin-top: .4rem; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
footer a { color: var(--text); }
@media (max-width: 1000px) { .hero { gap: 2.5rem; } .playground { grid-template-columns: 250px minmax(0, 1fr); } .example { padding: 1.5rem; } .run-controls { flex-direction: column; } }
@media (max-width: 1000px) { .jev-workspace { grid-template-columns: minmax(0, 1fr); } .jev-output { min-height: 260px; } }
@media (max-width: 760px) { .wrap { width: calc(100% - 32px); } .site-header { flex-wrap: wrap; gap: .75rem; padding-block: 1rem; } .site-header > .button { display: none; } nav { gap: 1rem; font-size: .86rem; } .hero { grid-template-columns: 1fr; padding-block: 3rem; gap: 2rem; } h1 { font-size: clamp(2.5rem, 9vw, 4rem); } .hero-copy { font-size: 1.08rem; } .section-heading { flex-direction: column; align-items: start; gap: .8rem; } .section-heading > p { max-width: none; } .playground { grid-template-columns: 1fr; } .library { border-right: none; border-bottom: 1px solid var(--line); } .case-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case-list button { font-size: .8rem; padding: .65rem .5rem; min-height: 64px; gap: .5rem; } .library-note { margin-top: 1rem; } .example { padding: 1.3rem 1rem; } .example-heading { align-items: start; flex-direction: column; gap: .65rem; } .result-box { padding: 1rem; } .result-heading { flex-direction: column; align-items: start; gap: .25rem; } .code-grid, .guide-grid { grid-template-columns: 1fr; } .guide-grid { gap: 1.8rem; } .code-card pre { min-height: 0; } .api-section, .reading-guide { margin-top: 3rem; } figcaption { padding: .85rem; gap: .6rem; } footer { flex-direction: column; align-items: start; gap: .8rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 760px) { .jev-section { padding-bottom: 3rem; } .jev-builder, .jev-output { padding: 1.2rem 1rem; } .jev-form-heading { flex-wrap: wrap; gap: .4rem; } .jev-form-heading .text-button { padding-left: 0; } .jev-question-title { gap: .6rem; } .jev-fields { grid-template-columns: 1fr; gap: 0; } .jev-question { padding-inline: .8rem; } .jev-question-heading { align-items: center; gap: .5rem; } .jev-question-heading .jev-help { font-size: .73rem; } .jev-question-remove { font-size: .75rem; } .jev-result { padding: 1rem; } .jev-result .bar { grid-template-columns: minmax(55px, 1fr) minmax(50px, 1fr) 40px; gap: .5rem; } .jev-actions { gap: .6rem; } }
