/* relayted websitepro - light, modern. Same tokens as relayted shots. */
:root {
  --ink: #141833;
  --muted: #5b6180;
  --line: #e2e5f0;
  --bg: #f5f6fb;
  --card: #ffffff;
  --accent: #3b3ff0;
  --accent-2: #7a3cf0;
  --accent-soft: #eceeff;
  --bolt: #ffb703;
  --ok: #12a150;
  --err: #d92d4a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(30, 34, 90, .05), 0 8px 24px rgba(30, 34, 90, .06);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; margin: 0 0 .6rem; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
h3 { font-size: 1rem; margin: 0 0 .4rem; }
h4 { font-size: .92rem; margin: 1.2rem 0 .4rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }
code { background: var(--accent-soft); padding: .1rem .35rem; border-radius: 6px; word-break: break-all; font-size: .85em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header / footer ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; max-width: 1120px; margin: 0 auto; padding: 1rem 1.25rem; }
.top-right { display: flex; align-items: center; gap: .6rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.langs { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs button { border: 0; background: transparent; padding: .3rem .8rem; border-radius: 999px; font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.wallet-pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.wallet-pill:hover { border-color: var(--accent); }
.wallet-unit { font-weight: 500; color: var(--muted); font-size: .85rem; }

main { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.foot { max-width: 1120px; margin: 0 auto; padding: 2rem 1.25rem 3rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.foot p { margin: 0; }
.foot a { color: var(--ink); }
.heart { color: #e5354f; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding: 1rem 0 2rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 36rem; margin: 0 0 1rem; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.badges li { background: var(--card); border: 1px solid var(--line); padding: .3rem .8rem; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.badges li:first-child { background: var(--bolt); border-color: var(--bolt); }
.hero-art { width: 100%; height: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 .5rem; }

/* ---------- form ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); margin: 0; min-width: 0; }
.form { display: grid; gap: 1rem; max-width: 820px; }
.field { display: grid; gap: .3rem; font-weight: 600; font-size: .92rem; }
input[type="text"] { font: inherit; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
input[type="text"]:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.hint { color: var(--muted); font-size: .88rem; margin: .4rem 0 0; }
fieldset.outputs { border: 0; padding: 0; margin: 0; }
.outputs legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: .5rem; }
.output-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.output { position: relative; cursor: pointer; display: block; }
.output input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.output .box { display: grid; gap: .15rem; border: 1px solid var(--line); border-radius: 14px; padding: .7rem .9rem; background: #fff; transition: border-color .12s, background .12s; height: 100%; }
.output .box b { display: flex; justify-content: space-between; gap: .5rem; }
.output .box small { color: var(--muted); font-weight: 400; }
.output .price { color: var(--accent); font-weight: 700; white-space: nowrap; }
.output input:checked + .box { border-color: var(--accent); background: var(--accent-soft); }
.output input:focus-visible + .box { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1rem; }
.total { font-size: 1rem; color: var(--muted); }
.total b { color: var(--ink); font-size: 1.5rem; letter-spacing: -.02em; margin-left: .4rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: .7rem 1.1rem; border-radius: 12px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .1s, box-shadow .15s; }
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: .4rem .8rem; font-size: .88rem; }
.btn.big { padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0; }
.link { font-size: .9rem; }
.icon-btn { border: 0; background: var(--accent-soft); width: 2.2rem; height: 2.2rem; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }

.notice { padding: .8rem 1rem; border-radius: 12px; background: var(--accent-soft); margin: .6rem 0 1rem; font-size: .92rem; }
.notice.warn { background: #fff4d6; }
.notice.ok { background: #dcf6e7; }
.notice.strong { font-weight: 600; border: 1px solid #f0c95a; }
.error { color: var(--err); font-weight: 600; margin: 0; font-size: .92rem; }

/* ---------- jobs ---------- */
.jobs { max-width: 820px; margin-top: 2rem; }
.job { margin-bottom: 1rem; display: grid; gap: .6rem; }
.job-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.job-host { font-weight: 700; font-size: 1.05rem; word-break: break-all; }
.job-state { font-size: .88rem; color: var(--muted); display: inline-flex; gap: .4rem; align-items: center; }
.job-state.completed { color: var(--ok); font-weight: 600; }
.job-state.refunded { color: var(--err); font-weight: 600; }
.results { display: grid; gap: .4rem; }
.result { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding: .5rem 0; border-top: 1px solid var(--line); }
.result:first-child { border-top: 0; }
.result .name { font-weight: 600; }
.result .state { color: var(--muted); font-size: .88rem; margin-left: .5rem; }
.result .state.failed { color: var(--err); }
.result-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.preview { background: #0f1230; color: #e9ebff; border-radius: 12px; padding: .8rem 1rem; max-height: 320px; overflow: auto; font-size: .82rem; white-space: pre-wrap; word-break: break-word; margin: .3rem 0 0; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--bolt); display: inline-block; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1.2); opacity: 1; } }

/* ---------- drawer / modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(12, 14, 34, .5); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--card); z-index: 50; box-shadow: -12px 0 40px rgba(12, 14, 34, .18); display: flex; flex-direction: column; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; }
.drawer-body { padding: 1.25rem; overflow-y: auto; flex: 1; }
.balance-box { display: grid; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-radius: var(--radius); padding: 1rem 1.25rem; }
.balance-box .hint { color: rgba(255, 255, 255, .8); margin: 0; }
.balance-box b { font-size: 2rem; letter-spacing: -.02em; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; font-weight: 600; background: #fff; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip small { font-weight: 500; opacity: .8; margin-left: .3rem; }
.custom { display: flex; align-items: end; gap: .5rem; margin: .6rem 0; }
.custom .field { flex: 1; }
.quote { font-weight: 600; margin: .6rem 0; }
.qr { width: 240px; height: 240px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.qr svg { width: 100%; height: 100%; display: block; }
.pay-amount { text-align: center; font-size: 1.4rem; margin: .8rem 0 0; }
.waiting { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .92rem; }
.modal { position: fixed; inset: 0; background: rgba(12, 14, 34, .7); z-index: 60; display: grid; place-items: center; padding: 1rem; }
.modal-card { background: var(--card); border-radius: var(--radius); padding: 1.5rem; max-width: 520px; width: 100%; display: grid; gap: .5rem; }
.key-value { display: block; font-size: 1.1rem; font-weight: 700; letter-spacing: .03em; padding: .8rem 1rem; text-align: center; word-break: normal; user-select: all; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; margin: .5rem 0; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); flex: none; margin-top: .15rem; }
.tx { display: flex; justify-content: space-between; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.tx:first-child { border-top: 0; }
.tx small { color: var(--muted); display: block; }
.tx .amt { font-weight: 700; white-space: nowrap; text-align: right; }
.tx .amt.pos { color: var(--ok); }
.cookie-note { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 640px; margin: 0 auto; background: var(--ink); color: #fff; padding: .8rem 1rem; border-radius: 14px; display: flex; gap: .8rem; align-items: center; justify-content: space-between; font-size: .88rem; z-index: 30; }

/* ---------- SEO / legal pages ---------- */
.seo { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem 2rem; }
.seo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.seo-grid a { text-decoration: none; color: var(--ink); }
.seo-grid .card b { display: block; margin-bottom: .2rem; color: var(--accent); }
.legal { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem 3rem; }
.legal h1 { font-size: 2rem; }
.legal h2 { margin-top: 1.6rem; }
.legal .todo { background: #fff4d6; padding: .8rem 1rem; border-radius: 12px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
