/* HonkIP. One blue accent, slate greys, plain surfaces. */
:root {
  --bg: #f6f7f9; --card: #fff; --line: #e4e7ec; --line-strong: #d0d5dd; --soft: #f2f4f7;
  --text: #101828; --text-2: #344054; --muted: #667085;
  --accent: #2563eb; --accent-dark: #1d4ed8; --accent-bg: #eff4ff; --accent-line: #c7d7fe;
  --ok: #067647; --ok-bg: #ecfdf3; --ok-dot: #17b26a;
  --warn: #b54708; --warn-bg: #fffaeb; --warn-dot: #f79009;
  --err: #b42318; --err-bg: #fef3f2;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 17px; line-height: 1.35; margin: 0; font-weight: 700; }
h3 { font-size: 15px; margin: 0; font-weight: 700; }
p { margin: 0 0 12px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.grow { flex: 1; min-width: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Buttons and fields */
.btn, button { font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; border-radius: 9px; padding: 9px 16px; line-height: 1.3;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--text-2); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; box-shadow: var(--shadow); white-space: nowrap; }
.btn:hover, button:hover { background: var(--soft); text-decoration: none; }
.btn.primary, button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover, button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.small, button.small { padding: 6px 11px; font-size: 13.5px; }
.btn.quiet, button.quiet { border-color: transparent; box-shadow: none; background: none; color: var(--muted); }
.btn.quiet:hover, button.quiet:hover { background: var(--soft); color: var(--text); }
button.danger { background: var(--err); border-color: var(--err); color: #fff; }
button.link { border: 0; background: none; box-shadow: none; color: var(--accent); padding: 0; font-weight: 600; }
button:disabled { opacity: .5; cursor: default; }
.btn i, button i { font-size: 17px; }
label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin: 0 0 6px; }
input, select { font: inherit; font-size: 15px; width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--text); box-shadow: var(--shadow); }
input::placeholder { color: #98a2b3; }
input:focus, select:focus { outline: 3px solid var(--accent-bg); border-color: var(--accent); }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > .grow { min-width: 160px; }
.joined { display: flex; }
.joined input { border-radius: 9px 0 0 9px; }
.joined select { border-radius: 0 9px 9px 0; border-left: 0; width: auto; max-width: 55%; background: var(--soft); color: var(--text-2); }

/* Surfaces */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.card-sub { color: var(--muted); margin: 4px 0 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-pad { padding: 20px 24px; }
.divider { border-top: 1px solid var(--line); margin: 18px 0; }
.note { border-radius: 10px; padding: 11px 14px; font-size: 14.5px; margin-bottom: 18px; border: 1px solid transparent; }
.note.ok { background: var(--ok-bg); color: var(--ok); border-color: #abefc6; }
.note.err { background: var(--err-bg); color: var(--err); border-color: #fecdca; }
.note.warn { background: var(--warn-bg); color: var(--warn); border-color: #fedf89; }
.code { font-family: var(--mono); font-size: 13.5px; background: var(--soft); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; white-space: pre-wrap; word-break: break-all; margin: 0 0 10px; color: var(--text-2); }
.key { font-family: var(--mono); font-size: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 9px; padding: 11px 14px; word-break: break-all; margin: 10px 0; }

/* Status: a dot and plain words */
.state { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.state.ok { color: var(--ok); } .state.ok::before { background: var(--ok-dot); box-shadow: 0 0 0 3px #dcfae6; }
.state.wait { color: var(--warn); } .state.wait::before { background: var(--warn-dot); box-shadow: 0 0 0 3px #fef0c7; }
.state.off { color: var(--muted); } .state.off::before { background: #98a2b3; }
.tag-ok { color: var(--ok); font-size: 14px; font-weight: 600; white-space: nowrap; }
.tag-wait { color: var(--warn); font-size: 14px; font-weight: 600; white-space: nowrap; }
.tag-ok i { vertical-align: -2px; }

/* Lists and tables */
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list form { margin: 0; }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid var(--line); }
.rows form { margin: 0; }
.ico { width: 38px; height: 38px; border-radius: 10px; background: var(--soft); color: var(--text-2); display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.ico.blue { background: var(--accent-bg); color: var(--accent); }
.sub { font-family: var(--mono); font-size: 13px; color: var(--muted); word-break: break-all; }
.name-cell b { display: block; font-weight: 700; color: var(--text); }
table.log { width: 100%; border-collapse: collapse; font-size: 14px; }
table.log td, table.log th { text-align: left; padding: 10px 24px; border-top: 1px solid var(--line); }
table.log th { color: var(--muted); font-weight: 600; font-size: 13px; background: var(--soft); border-top: 0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 14.5px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; color: var(--text); word-break: break-all; }

details.add { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
details.add summary { cursor: pointer; color: var(--accent); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.add summary::-webkit-details-marker { display: none; }
details.add[open] summary { margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { font-size: 13.5px; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); color: var(--text-2); background: #fff; }
.tabs a:hover { background: var(--soft); text-decoration: none; }
.tabs a.on { border-color: var(--accent-line); color: var(--accent); background: var(--accent-bg); font-weight: 600; }

/* ---------- Signed-in app ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand em { color: var(--accent); font-style: normal; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.brand .brand-mark i { color: #fff; }
.side .brand { padding: 2px 10px 18px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: 14.5px; }
.nav a i { font-size: 19px; color: var(--muted); }
.nav a:hover { background: var(--soft); text-decoration: none; }
.nav a.on { background: var(--accent-bg); color: var(--accent); }
.nav a.on i { color: var(--accent); }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 10px 0; font-size: 13.5px; }
.side-foot .who-mail { color: var(--text); font-weight: 600; word-break: break-all; }
.side-foot .who-plan { color: var(--muted); margin: 2px 0 10px; }
.side-foot form { margin: 0; }
.main { padding: 32px 40px 56px; max-width: 1180px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-2 > div > .card:last-child { margin-bottom: 0; }
.mobile-top { display: none; }

/* My home: the main status panel */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
.home-label { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.home-name { font-family: var(--mono); font-size: 30px; font-weight: 700; margin: 4px 0 10px; word-break: break-all; letter-spacing: -.02em; }
.home-side { border-left: 1px solid var(--line); padding-left: 28px; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.flow { display: flex; align-items: flex-end; margin: 6px 0 4px; }
.flow .node { width: 96px; flex: none; text-align: center; font-size: 13px; color: var(--muted); }
.flow .node.mid { width: 150px; }
.flow .circ { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: var(--soft); color: var(--text-2); }
.flow .mid .circ { background: var(--accent-bg); color: var(--accent); }
.flow .end .circ { background: var(--ok-bg); color: var(--ok); }
.flow .line { flex: 1; border-top: 2px dashed var(--line-strong); margin-bottom: 36px; }
.flow-note { text-align: center; font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }

/* Pictures */
.hero-media { position: relative; }
.hero-art { width: 100%; height: auto; display: block; }
.hero-badge { position: absolute; left: 22px; bottom: 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; box-shadow: 0 6px 20px rgba(16, 24, 40, .08); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.how img { width: 100%; height: auto; display: block; margin: 0 0 16px; }
.how h3::before { counter-increment: step; content: counter(step) ". "; color: var(--accent); }
.waiting-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.waiting-art img { width: 100%; height: auto; display: block; }
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 48px; align-items: center; max-width: 1000px; margin: 12px auto 0; }
.auth-split .auth { margin: 0; }
.auth-split img { width: 100%; height: auto; display: block; }
.auth-aside h2 { font-size: 24px; margin: 22px 0 8px; letter-spacing: -.01em; }

/* Domains */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.offer { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; }
.offer .name { font-family: var(--mono); font-weight: 700; word-break: break-all; }
.offer .price { color: var(--muted); font-size: 14px; margin: 2px 0 12px; }
.offer form, .offer button { width: 100%; margin: 0; }
.offer.gone { background: var(--soft); }
.offer.gone .name { color: var(--muted); font-weight: 400; }
.choice { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; margin-bottom: 10px; cursor: pointer; color: var(--text); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); }
.choice input { width: auto; margin-top: 4px; box-shadow: none; accent-color: var(--accent); }

/* Setup */
.setup-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.devices { position: sticky; top: 20px; padding: 10px; }
.devices h3 { font-size: 12.5px; color: var(--muted); font-weight: 700; margin: 10px 10px 4px; }
.devices a { display: block; padding: 7px 10px; border-radius: 7px; color: var(--text-2); font-size: 14px; }
.devices a:hover { background: var(--soft); text-decoration: none; }
.devices a.on { background: var(--accent-bg); color: var(--accent); font-weight: 700; }
.steps { margin: 0 0 14px; padding-left: 22px; }
.steps li { padding: 5px 0 8px 6px; color: var(--text-2); }

/* Account */
.usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 12px; }
.usage span { display: block; color: var(--muted); font-size: 13.5px; }
.usage b { font-size: 20px; }
.bar { height: 8px; border-radius: 4px; background: var(--soft); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--accent); padding: 21px; }
.plan .cost { font-size: 30px; font-weight: 800; margin: 6px 0 12px; letter-spacing: -.02em; }
.plan .cost span { font-size: 14.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14.5px; }
.plan ul li { padding: 3px 0; }
.plan ul + .btn { margin-top: 18px; }

/* ---------- Public pages ---------- */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--text-2); font-weight: 600; font-size: 14.5px; }
.top nav a.on { color: var(--accent); }
.who { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 14.5px; }
.who a:not(.btn) { color: var(--text-2); font-weight: 600; }
.public-main { padding-top: 32px; padding-bottom: 56px; min-height: calc(100vh - 64px - 74px); }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px 0 56px; }
.hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -.025em; }
.hero .lede { font-size: 18.5px; color: var(--muted); margin: 18px 0 26px; max-width: 520px; }
.hero .btn { padding: 12px 20px; font-size: 15.5px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-card { padding: 28px 24px 22px; }
.section { padding: 36px 0 12px; }
.section-title { font-size: 26px; letter-spacing: -.015em; margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 24px; font-size: 16px; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.how p { color: var(--muted); margin: 6px 0 0; }
.plain { margin: 0; padding-left: 20px; color: var(--text-2); }
.plain li { padding: 6px 0; }
.plain li b { color: var(--text); }
.faq { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; }
.faq dt { font-weight: 700; }
.faq dd { margin: 5px 0 0; color: var(--muted); }
.legal { max-width: 760px; }
.legal h2 { margin: 24px 0 6px; }
.legal p, .legal li { color: var(--text-2); }
.auth { width: 100%; max-width: 430px; margin: 24px auto; padding: 30px; }
.auth h1 { font-size: 24px; margin-bottom: 6px; }
.foot { border-top: 1px solid var(--line); background: #fff; }
.foot .wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; padding-top: 22px; padding-bottom: 26px; color: var(--muted); font-size: 14px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }
.foot .brand { font-size: 16px; color: var(--text); }
.foot .brand-mark { width: 24px; height: 24px; font-size: 14px; border-radius: 6px; }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .side.open { display: flex; position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 30; box-shadow: 0 10px 40px rgba(16, 24, 40, .2); }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .main { padding: 22px 18px 48px; }
  .grid-2, .home-hero, .setup-grid { grid-template-columns: 1fr; }
  .home-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .devices { position: static; }
  .hero { grid-template-columns: 1fr; padding: 20px 0 32px; gap: 28px; }
  .hero h1 { font-size: 34px; }
  .how, .faq { grid-template-columns: 1fr; }
  .waiting-art, .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .card { padding: 18px; }
  .rows li, table.log td, table.log th { padding-left: 16px; padding-right: 16px; }
  .home-name { font-size: 22px; }
  h1 { font-size: 23px; }
  .top nav { display: none; }
  .who { gap: 10px; }
  .flow .node { width: 72px; } .flow .node.mid { width: 108px; }
  .flow .mid .mono { font-size: 11px; }
}
