/* iconfig.id public site */
:root {
  --ink: #0b1324;
  --ink-2: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --brand: #1f4fd1;
  --brand-ink: #173c9f;
  --brand-soft: #eaf0ff;
  --ok: #15803d;
  --ok-soft: #e7f6ec;
  --warn: #b45309;
  --warn-soft: #fdf3e2;
  --bad: #b91c1c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 19, 36, .06), 0 8px 24px rgba(11, 19, 36, .08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
img { max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -.02em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.logo img { width: 28px; height: 28px; }
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--text); }
.nav a:hover { color: var(--ink); }
.top .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--font); padding: 12px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-lg { padding: 15px 22px; font-size: 16px; }
.link-plain { color: var(--text); font-weight: 600; font-size: 15px; }

/* hero */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.hero h1 { font-size: 48px; font-weight: 800; letter-spacing: -.035em; margin-bottom: 18px; }
.hero h1 span { color: var(--brand); }
.hero p.lead { font-size: 18px; color: var(--text); margin: 0 0 28px; max-width: 520px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.checks span::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }

/* product mock */
.app { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; font-size: 13px; color: var(--ink-2); }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; display: inline-block; }
.app-bar .url { margin-left: 10px; flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; color: var(--muted); font-size: 12px; }
.app-nav { display: flex; gap: 16px; padding: 10px 16px; background: #0f1f45; color: #c7d2fe; font-size: 12px; font-weight: 600; overflow: hidden; white-space: nowrap; }
.app-nav b { color: #fff; }
.app-nav .badge { background: #dc2626; color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.app-body { padding: 16px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
.panel { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.panel h5 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.off { background: #f1f5f9; color: var(--muted); }
.pill.bad { background: #fde8e8; color: var(--bad); }
.sig { font-size: 26px; font-weight: 800; color: var(--ok); letter-spacing: -.02em; }
.sig small { font-size: 13px; color: var(--muted); font-weight: 600; }
.btnrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.btnrow span { border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 9px; font-weight: 600; font-size: 12px; }
.btnrow span.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
.mini { width: 100%; border-collapse: collapse; }
.mini td, .mini th { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.mini th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.mini tr:last-child td { border-bottom: 0; }
.ports { display: flex; gap: 6px; }
.ports span { width: 24px; height: 18px; border-radius: 4px; background: var(--ok-soft); border: 1px solid #b7e2c4; font-size: 10px; display: grid; place-items: center; font-weight: 700; color: var(--ok); }
.ports span.off { background: #f1f5f9; border-color: var(--line); color: var(--muted); }

/* sections */
section.block { padding: 88px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 680px; margin-bottom: 44px; }
.head.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker { font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.head h2 { font-size: 36px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.head p { font-size: 17px; margin: 0; color: var(--text); }

/* devices strip */
.devices { padding: 36px 0; border-bottom: 1px solid var(--line); }
.devices .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.devices .label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.devices .list { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: #fff; }
.chip b { color: var(--brand); font-weight: 700; margin-right: 4px; }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip .copy { order: 2; }
.feature h3 { font-size: 28px; font-weight: 800; margin-bottom: 14px; letter-spacing: -.025em; }
.feature p { margin: 0 0 18px; font-size: 16.5px; }
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bullets li { padding-left: 28px; position: relative; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%231f4fd1' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.bullets b { color: var(--ink); }

/* telegram mock */
.tg { background: #e6ebee; border-radius: 12px; padding: 18px; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.tg .msg { background: #fff; border-radius: 12px 12px 12px 4px; padding: 10px 14px; max-width: 360px; font-size: 14px; color: var(--ink-2); box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.tg .msg + .msg { margin-top: 10px; }
.tg .from { font-weight: 700; color: var(--brand); font-size: 13px; margin-bottom: 2px; }
.tg .time { text-align: right; color: var(--muted); font-size: 11px; }

/* grid of small features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h4 { font-size: 17px; font-weight: 700; margin: 12px 0 6px; }
.card p { margin: 0; font-size: 15px; color: var(--text); }
.ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; }
.ico svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* hardware */
.hw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hw .card { text-align: center; }
.hw .photo { height: 120px; display: grid; place-items: center; margin-bottom: 8px; }
.hw .photo img { max-height: 110px; }
.hw .models { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 14px; }
.step h4 { font-size: 17px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 15px; }

/* pricing */
.pricing { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.calc { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.toggle { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.toggle button { border: 0; background: transparent; font: 600 14px var(--font); padding: 8px 14px; border-radius: 7px; cursor: pointer; color: var(--text); }
.toggle button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.toggle .save { color: var(--ok); font-size: 12px; margin-left: 4px; }
.stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; width: max-content; }
.stepper button { width: 44px; height: 44px; border: 0; background: var(--bg-soft); font-size: 20px; cursor: pointer; color: var(--ink); }
.stepper input { width: 64px; height: 44px; border: 0; text-align: center; font: 700 18px var(--font); color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); }
.calc .row:first-of-type { padding-top: 0; }
.calc .row label { font-weight: 600; color: var(--ink); }
.calc .total { padding-top: 20px; }
.calc .plan-name { font-size: 14px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.calc .amount { font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; margin: 4px 0; }
.calc .amount small { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.calc .per { color: var(--muted); font-size: 14px; }
.plans-cmp { display: grid; gap: 12px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.plan.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.plan .top-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan h4 { font-size: 18px; }
.plan .price { font-weight: 700; color: var(--ink); }
.plan .price small { color: var(--muted); font-weight: 500; }
.plan p { margin: 4px 0 10px; font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.plan li.no { color: var(--muted); text-decoration: line-through; }
.incl { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 20px; font-size: 15px; }
.incl div::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; color: var(--ink); font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; }

/* final cta */
.final { background: var(--ink); color: #cbd5e1; border-radius: 20px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.final h2 { color: #fff; font-size: 34px; font-weight: 800; margin-bottom: 12px; }
.final p { margin: 0; font-size: 17px; }
.final .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.final .btn-ghost { background: transparent; color: #fff; border-color: #475569; }
.final .btn-ghost:hover { border-color: #fff; }

/* contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact .card a { font-weight: 700; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 14px; color: var(--muted); background: #fff; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
footer.site h5 { margin: 0 0 12px; color: var(--ink); font-size: 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.site ul a { color: var(--text); }
footer.site .copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* simple pages (login, register, verify) */
.page { padding: 56px 0 80px; background: var(--bg-soft); min-height: calc(100vh - 64px - 200px); }
.box { max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.box h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.box .sub { color: var(--muted); margin: 0 0 22px; font-size: 15px; }

@media (max-width: 960px) {
  .hero .wrap, .feature, .pricing, .final { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
  .hero h1 { font-size: 38px; }
  .grid, .hw, .steps, .contact { grid-template-columns: 1fr 1fr; }
  .incl { grid-template-columns: 1fr 1fr; }
  .final { padding: 36px; }
  .final .cta { justify-content: flex-start; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 32px; }
  .head h2 { font-size: 28px; }
  section.block { padding: 64px 0; }
  .grid, .hw, .steps, .contact, .incl { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: 1fr; }
  .top .actions .link-plain { display: none; }
  .calc { padding: 20px; }
  .calc .amount { font-size: 32px; }
  footer.site .cols { grid-template-columns: 1fr; }
  .box { padding: 24px; }
}
