:root {
  --bg: #f6f5f1;
  --card: #ffffff;
  --ink: #1d1d1b;
  --muted: #6b6a64;
  --line: #e4e2da;
  --accent: #2f5bea;
  --accent-ink: #ffffff;
  --accent-soft: #e8eefe;
  --ok: #1f7a4d;
  --ok-soft: #e3f4ea;
  --warn: #8a5a00;
  --warn-soft: #fdf1d8;
  --bad: #b3261e;
  --bad-soft: #fbe5e3;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--card);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 650; }
.logo {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink); color: #fff; font-weight: 700;
}
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

main { max-width: 1080px; margin: 0 auto; padding: 28px 24px 80px; }

.layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.steps { position: sticky; top: 20px; list-style: none; margin: 0; padding: 0; }
.steps li a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-size: 15px;
}
.steps li a:hover { background: #ecebe5; }
.steps li.current a { background: var(--card); box-shadow: 0 0 0 1px var(--line); font-weight: 600; }
.steps li.locked a { color: #a9a79f; pointer-events: none; }
.dot {
  flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--line); font-size: 12px; font-weight: 600; background: var(--card);
}
.dot.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.dot.ph { background: var(--warn-soft); border-color: #e9c46a; color: var(--warn); }
.steps-compact { display: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.card.flat { box-shadow: none; }
.lead { font-size: 17px; color: var(--muted); margin-bottom: 20px; }

label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.field { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=date], input[type=password], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #d6d4cb; border-radius: 10px; padding: 10px 12px;
}
input:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { min-height: 150px; resize: vertical; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
textarea.prose { font: inherit; min-height: 110px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > input { flex: 1 1 220px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; border-radius: 10px; padding: 10px 18px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(0.95); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--ink); border-color: #d6d4cb; }
.btn.ghost { background: transparent; color: var(--muted); border-color: transparent; padding-left: 8px; padding-right: 8px; }
.btn.big { font-size: 17px; padding: 14px 24px; }
.btn.danger { background: #fff; color: var(--bad); border-color: #efc4c0; }
.actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 18px; flex-wrap: wrap; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--accent-soft); color: var(--accent); }
.pill.grey { background: #efeee9; color: var(--muted); }

.notice { border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: 15px; }
.notice.warn { background: var(--warn-soft); color: #5e3d00; }
.notice.ok { background: var(--ok-soft); color: #134d31; }
.notice.bad { background: var(--bad-soft); color: #7d1a14; }
.notice.info { background: var(--accent-soft); color: #1f3d9e; }

table.facts { width: 100%; border-collapse: collapse; font-size: 15px; }
table.facts th, table.facts td { text-align: left; padding: 9px 8px; border-top: 1px solid var(--line); vertical-align: top; }
table.facts th { width: 34%; color: var(--muted); font-weight: 500; }
table.facts td { overflow-wrap: anywhere; }
.nf { color: #9a988f; font-style: italic; }
ul.plain { margin: 0; padding-left: 18px; }
ul.plain li { margin-bottom: 4px; }
a.src, span.src { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
a.src::before, span.src::before { content: "↗ "; }

.domains { list-style: none; margin: 0; padding: 0; }
.domains li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.domains li:first-child { border-top: 0; }
.domains .namewrap { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.domains .name { font-weight: 600; overflow-wrap: anywhere; }
.domains .price { font-size: 14px; color: var(--muted); margin-top: 2px; }
.domains .price.nf { color: #9a988f; font-style: italic; }
ul.plain { margin: 0; padding-left: 18px; }
ul.plain li { margin-bottom: 4px; }
a.src, span.src { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
a.src::before, span.src::before { content: "↗ "; }
.domains li .btn { flex: none; }
.domains li.picked .name::after { content: "  ✓ picked"; color: var(--ok); font-weight: 600; font-size: 14px; }
.fromline { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: #f3f2ed; border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }

.tg { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; }
.qr { width: 240px; height: 240px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; overflow: hidden; }
.qr svg { width: 100%; height: 100%; }
.qr.ph { border: 2px dashed #d6d4cb; color: var(--muted); text-align: center; padding: 18px; font-size: 14px; background: #fbfaf7; }
ol.simple { margin: 0 0 14px; padding-left: 20px; }
ol.simple li { margin-bottom: 6px; }
code { font: 13.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: #f3f2ed; padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

.desktop { border-radius: 14px; overflow: hidden; border: 1px solid #2b2b2b; background: #1b1c1f; color: #c9c9c9; margin-bottom: 16px; }
.desktop .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #2a2b2f; font-size: 13px; color: #9a9a9a; }
.desktop .bar i { width: 10px; height: 10px; border-radius: 50%; background: #55565b; display: inline-block; }
.desktop .bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desktop .screen { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 20px; }
.desktop .screen strong { color: #fff; display: block; font-size: 18px; margin-bottom: 6px; }
.desktop .screen.live { aspect-ratio: 16 / 11.5; padding: 0; }
.desktop .screen.live > div { padding: 20px; }
.desktop .screen iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.desktop .bar-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.desktop .bar-actions a, .linkbtn { color: #c9c9c9; font: inherit; font-size: 13px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.desktop .bar-actions a:hover, .linkbtn:hover { color: #fff; }

.net { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.net:first-of-type { border-top: 0; }
.net .ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.net .ico.instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.net .ico.linkedin { background: #0a66c2; }
.net .ico.x { background: #111; }
.net .who { flex: 1 1 180px; }

.summary { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.kv { display: grid; grid-template-columns: 112px 1fr; gap: 8px 12px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: flex-start; flex-wrap: wrap; }
.timeline li:first-child { border-top: 0; }
.timeline .state { flex: 0 0 190px; }
.timeline .what { flex: 1 1 220px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .n { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }

.drop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 2px dashed #d6d4cb; border-radius: 12px; padding: 14px; background: #fbfaf7; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.docs { list-style: none; margin: 12px 0 0; padding: 0; }
.docs li { display: flex; align-items: center; gap: 10px 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.docs .kind { flex: none; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); background: #efeee9; border-radius: 6px; padding: 3px 6px; }
.docs .what { flex: 1 1 200px; min-width: 0; }
.docs .name { font-weight: 600; overflow-wrap: anywhere; }
.docs .name a { color: var(--ink); }

.netcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.netcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.netcard.current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.netcard.done { border-color: #b9dfc8; background: #f6fbf8; }
.netcard .nc-top { display: flex; align-items: center; gap: 10px; }
.netcard .nc-top .ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.netcard .acts { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.small-btn { padding: 7px 12px; font-size: 14px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.ico.instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.ico.linkedin { background: #0a66c2; }
.ico.x { background: #111; }
.desktop.big .screen.live { aspect-ratio: 16 / 11; }
.desktop:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.desktop:fullscreen .screen.live { aspect-ratio: auto; flex: 1; }
.live { font-size: 12.5px; color: #9a9a9a; margin-right: 10px; }
.live.on { color: #7ee2a8; }
.live.on::before { content: "● "; }
.tips ul { margin: 0; padding-left: 18px; font-size: 15px; }
.tips li { margin-bottom: 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 50; box-shadow: 0 6px 24px rgba(0,0,0,.15); }
.toast.ok { background: var(--ok); color: #fff; }
.toast.warn { background: var(--warn-soft); color: #5e3d00; }
.phone-only { display: none; }

.clients { list-style: none; padding: 0; margin: 0; }
.clients li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.clients li:first-child { border-top: 0; }
.clients .who { flex: 1 1 200px; }
.clients .who a { font-weight: 600; color: var(--ink); text-decoration: none; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; padding: 40px 10px; }

/* Step 4: the agent's email address */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card.mail { padding: 0; overflow: hidden; }
.mail-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px 16px; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 19px; }
.mail-from { flex: 1 1 auto; min-width: 0; }
.mail-from input.from-name { font: inherit; font-size: 18px; font-weight: 650; border: 1px dashed transparent; background: transparent; padding: 2px 6px; margin-left: -7px; width: 100%; border-radius: 8px; color: var(--ink); }
.mail-from input.from-name:hover { border-color: #d6d4cb; background: #fbfaf7; }
.mail-from input.from-name:focus { border: 1px solid var(--accent); background: #fff; outline: 2px solid var(--accent-soft); }
.from-addr { font-size: 16px; color: var(--muted); overflow-wrap: anywhere; }
.from-addr strong { color: var(--ink); }
.mail-state { flex: none; }
.mail-body { border-top: 1px solid var(--line); padding: 14px 22px 4px 82px; background: #fcfbf8; }
.mail-subject { font-weight: 600; margin-bottom: 10px; }
.mail-body .line { height: 9px; border-radius: 6px; background: #ebe9e2; margin-bottom: 9px; }
.mail-note { margin: 0; padding: 4px 22px 14px 82px; background: #fcfbf8; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; padding: 8px 14px; border-radius: 999px; border: 1px solid #d6d4cb; background: #fff; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip em { font-style: normal; font-size: 13.5px; color: var(--muted); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.chip.on em { color: #dfe6ff; }
.own { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.own label { font-weight: 500; color: var(--muted); }
.domain-input { flex: 1 1 220px; display: flex; align-items: center; border: 1px solid #d6d4cb; border-radius: 10px; background: #fff; overflow: hidden; }
.domain-input:focus-within { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.domain-input input[type=text] { border: 0; outline: 0; border-radius: 0; flex: 1; min-width: 0; }
.domain-input span { padding: 0 12px 0 2px; color: var(--muted); font-weight: 600; }
#ownResult { margin-top: 8px; }
#ownResult:empty { display: none; }

.buy { border-color: #c9d6fb; background: linear-gradient(180deg, #fff, #f7f9ff); }
.buy-row { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.buy-text { flex: 1 1 260px; min-width: 0; }
.buy-title { font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }
.confirm { margin-top: 14px; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid #c9d6fb; }
.confirm-title { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.ticks { margin: 0 0 14px; padding: 0; list-style: none; }
.ticks li { padding-left: 24px; position: relative; margin-bottom: 5px; }
.ticks li::before { content: "•"; position: absolute; left: 8px; color: var(--muted); }

.progress { list-style: none; margin: 4px 0 0; padding: 0; }
.progress > li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; position: relative; }
.progress > li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 40px; bottom: -6px; width: 2px; background: var(--line); }
.progress > li.done:not(:last-child)::after { background: #b9dfc8; }
.progress .mark { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; border: 2px solid var(--line); background: #fff; }
.progress > li.done .mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.progress > li.now .mark { border-color: var(--accent-soft); }
.progress > li.now .mark .spinner { width: 16px; height: 16px; }
.progress > li.bad .mark { background: var(--bad); border-color: var(--bad); color: #fff; }
.progress > li.todo strong { color: var(--muted); font-weight: 600; }

.progress .pw { flex: 1 1 auto; min-width: 0; }
.subchecks { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fcfbf8; }
.subchecks .bar { height: 6px; background: #e4e2da; border-radius: 99px; overflow: hidden; margin: 6px 0 8px; }
.subchecks .bar span { display: block; height: 100%; background: var(--ok); transition: width .4s; }
.subchecks ul { list-style: none; margin: 0; padding: 0; }
.subchecks li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.subchecks li:first-child { border-top: 0; }
.sc-mark { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 1.5px solid #d6d4cb; background: #fff; }
.sc-mark .spinner { width: 12px; height: 12px; border-width: 2px; }
.subchecks li.ok .sc-mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.subchecks li.bad .sc-mark { background: var(--bad); border-color: var(--bad); color: #fff; }
.sc-what { flex: 1 1 auto; min-width: 0; }
.sc-what .muted { font-size: 13px; }
.sc-state { flex: none; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.subchecks li.ok .sc-state { color: var(--ok); }
.waiting { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--accent-soft); color: #1f3d9e; }
.waiting .spinner { flex: none; margin-top: 2px; }
.bubble { margin-top: 14px; padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: var(--ok-soft); max-width: 560px; }
.bubble-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; color: #134d31; }

/* Public pages: home, privacy, terms */
main.page { max-width: 760px; }
.legal h2 { margin-top: 26px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.footlinks { margin-top: 24px; text-align: center; }

@media (max-width: 860px) {
  main { padding: 18px 16px 60px; }
  .top { padding: 12px 16px; }
  .top .muted { display: none; }
  .layout { grid-template-columns: 1fr; gap: 14px; }
  .steps { display: none; }
  .steps-compact { display: block; }
  .steps-compact .bar { height: 6px; background: #e4e2da; border-radius: 99px; overflow: hidden; margin-top: 6px; }
  .steps-compact .bar span { display: block; height: 100%; background: var(--accent); }
  .grid2, .grid3, .summary, .tg { grid-template-columns: 1fr; }
  .tg .qr { margin: 0 auto; }
  .stats { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .card { padding: 18px 16px; }
  h1 { font-size: 22px; }
  .actions .btn { flex: 1 1 auto; }
  .netcards { grid-template-columns: 1fr; }
  .phone-only { display: block; }
  .desktop.big .screen.live { aspect-ratio: 4 / 5; }
  .mail-head { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .mail-from { flex-basis: calc(100% - 60px); }
  .mail-state { margin-left: 58px; }
  .mail-body, .mail-note { padding-left: 16px; padding-right: 16px; }
  .buy-row .btn { flex: 1 1 100%; }
  .sc-what .muted { display: block; }
}
