:root {
  --ink: #1d1b19; --ink-2: #57534e; --ink-3: #8a847d;
  --paper: #faf8f5; --card: #ffffff; --line: #e8e3dc;
  --brand: #1f4fd1; --brand-ink: #ffffff; --brand-soft: #e8eefc;
  --ok: #157f3c; --warn: #b45309; --bad: #b91c1c;
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 16px; }
a { color: var(--brand); }
img, video { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 .6em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.center { text-align: center; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.logo-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn, .nav-links a.btn:hover { color: var(--brand-ink); }
.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-2); font: inherit; font-size: .95rem; cursor: pointer; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; border: 1px solid transparent; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.ghost { background: transparent; color: var(--ink-2); border-color: transparent; }
.btn.danger { background: var(--card); color: var(--bad); border-color: var(--line); }
.btn.small { padding: 6px 12px; font-size: .875rem; border-radius: 8px; }
.btn.big { padding: 14px 24px; font-size: 1.05rem; }
label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 6px; }
label .opt { font-weight: 400; color: var(--ink-3); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=number], input:not([type]), textarea, select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 120px; resize: vertical; }
input[type=color] { width: 56px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; }
.hp { position: absolute; left: -5000px; }
.error { background: #fdecec; color: var(--bad); padding: 10px 14px; border-radius: 10px; margin: 12px 0; }
.notice { background: var(--brand-soft); color: #173a99; padding: 10px 14px; border-radius: 10px; margin: 12px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

/* landing */
.hero { padding: 56px 0 40px; text-align: center; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 640px; margin: 0 auto 28px; }
.pill { display: inline-flex; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: .85rem; color: var(--ink-2); margin-bottom: 20px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.section { padding: 56px 0; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--ink-2); }
.compare { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: .95rem; }
.compare th { background: #f4f1ec; }
.table-scroll { overflow-x: auto; }
.price-card { display: flex; flex-direction: column; gap: 6px; }
.price-card .amount { font-size: 2.2rem; font-weight: 750; }
.price-card ul { padding-left: 18px; margin: 8px 0 18px; color: var(--ink-2); }
.price-card.featured { border: 2px solid var(--brand); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0; color: var(--ink-3); font-size: .9rem; }
footer a { color: var(--ink-2); }
.foot { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

/* testimonial cards */
.t-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); break-inside: avoid; margin: 0 0 16px; }
.t-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.t-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); display: grid; place-items: center; font-weight: 700; color: var(--brand); flex: none; }
.t-name { font-weight: 650; }
.t-title { color: var(--ink-3); font-size: .875rem; }
.t-stars { color: #e5a00d; letter-spacing: 2px; font-size: .95rem; margin-bottom: 6px; }
.t-body { white-space: pre-line; margin: 0; }
.t-video { width: 100%; border-radius: 10px; background: #000; margin-bottom: 10px; aspect-ratio: 16/9; }
.masonry { columns: 3 300px; column-gap: 16px; }
.carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.carousel .t-card { flex: 0 0 min(340px, 85%); scroll-snap-align: start; margin: 0; }
.badge { display: inline-block; font-size: .8rem; color: var(--ink-3); text-decoration: none; margin-top: 8px; }
.badge b { color: var(--ink-2); }

/* app */
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 20px; }
.app-head h1 { font-size: 1.6rem; margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--brand); font-weight: 600; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tag { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: #f1ede7; color: var(--ink-2); }
.copy { display: flex; gap: 8px; }
.copy input, .copy textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
pre.code { background: #1d1b19; color: #f4f1ec; padding: 14px; border-radius: 10px; overflow-x: auto; font-size: .85rem; white-space: pre-wrap; word-break: break-all; }
.empty { text-align: center; padding: 40px 16px; color: var(--ink-2); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; padding-left: 40px; position: relative; margin-bottom: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

/* collect */
.collect-logo { max-height: 56px; margin-bottom: 12px; }
.stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { font-size: 2rem; color: #d6d0c8; cursor: pointer; margin: 0; font-weight: 400; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: #e5a00d; }
.stars-input input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }
.rec { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.rec video { width: 100%; border-radius: 8px; background: #000; display: none; margin-bottom: 10px; }
.rec-status { font-size: .9rem; color: var(--ink-2); margin-left: 6px; }

@media (max-width: 640px) {
  .nav-links .hide-sm { display: none; }
  .card { padding: 18px; }
}

/* validator */
.drop { border: 2px dashed var(--line); border-radius: var(--radius); background: var(--card); padding: 32px 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop input[type=file] { margin: 12px auto 0; display: block; max-width: 100%; }
.verdict { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius); margin-bottom: 18px; }
.verdict.ok { background: #e8f6ee; color: #0f5d2c; }
.verdict.bad { background: #fdecec; color: #8f1d1d; }
.verdict .icon { font-size: 2rem; line-height: 1; }
.verdict h2 { margin: 0; font-size: 1.3rem; }
.msg { border: 1px solid var(--line); border-left: 4px solid var(--bad); border-radius: 10px; background: var(--card); padding: 12px 14px; margin-bottom: 10px; }
.msg.warning { border-left-color: var(--warn); }
.msg code { font-size: .8rem; background: #f1ede7; padding: 1px 6px; border-radius: 6px; }
.msg .loc { color: var(--ink-3); font-size: .78rem; word-break: break-all; margin-top: 4px; font-family: ui-monospace, monospace; }
.msg .hint { margin-top: 6px; font-size: .9rem; color: var(--ink-2); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 0; }
.langs { display: inline-flex; gap: 10px; border-left: 1px solid var(--line); padding-left: 12px; }
.langs a { font-weight: 600; font-size: .85rem; }
