/* Portal (platform) styles — mobile-first, no build step. */
:root {
  --bg: #fbf7f1; --paper: #fff; --ink: #1b1511; --soft: #6b5e52; --line: #eadfd1;
  --dark: #17110c; --dark-2: #241b14; --on-dark: #f7efe4; --on-dark-soft: #cbb9a5;
  --accent: #f4a72a; --accent-2: #e8901a; --green: #1f8a5b; --red: #c62828; --blue: #2f5bd3;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 17, 12, .06), 0 14px 36px rgba(23, 17, 12, .10);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 8vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; font-family: var(--font); letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--soft); }
.small { font-size: .88rem; }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; background: var(--ink); color: #fff; transition: transform .12s, background .15s; }
.btn:active { transform: scale(.98); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #ffb942; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--danger { background: var(--red); color: #fff; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; text-decoration: underline; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 241, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 12px; min-height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.25rem/1 var(--display); text-decoration: none; }
.logo__mark { width: 34px; height: 34px; border-radius: 10px; background: conic-gradient(from 210deg, var(--accent), #ff6a3d, var(--accent-2), var(--accent)); display: grid; place-items: center; color: var(--dark); font: 800 1.05rem/1 var(--font); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top nav a.nav { display: none; padding: 8px 10px; text-decoration: none; font-weight: 500; color: var(--soft); }
.top nav a.nav:hover { color: var(--ink); }
@media (min-width: 820px) { .top nav a.nav { display: inline-block; } }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 760px; max-height: 760px; background: radial-gradient(circle, rgba(244, 167, 42, .35), transparent 65%); pointer-events: none; }
.hero__in { position: relative; display: grid; gap: 36px; padding: 48px 0 56px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; font-weight: 600; color: var(--on-dark); }
.eyebrow b { color: var(--accent); }
.hero h1 { margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 1.12rem; color: var(--on-dark-soft); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 18px; }
.hero__cta .btn--ghost { color: var(--on-dark); }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--on-dark-soft); font-size: .92rem; }
.ticks li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.phone { justify-self: center; width: min(300px, 78vw); aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 10px; background: #0b0806; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 2px #3a2e24; transform: rotate(-3deg); }
.phone__screen { height: 100%; border-radius: 31px; overflow: hidden; background: #fffaf3; color: var(--ink); display: flex; flex-direction: column; }
.phone__hero { position: relative; height: 42%; background: center / cover no-repeat; }
.phone__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22, 16, 11, .85), rgba(22, 16, 11, 0) 60%); }
.phone__hero span { position: absolute; z-index: 1; left: 14px; bottom: 12px; color: #fff; font: 700 1.3rem/1 var(--display); }
.phone__hero small { position: absolute; z-index: 1; left: 14px; top: 14px; color: #fff; background: rgba(0, 0, 0, .45); padding: 4px 8px; border-radius: 99px; font-size: .7rem; }
.phone__list { padding: 10px 12px; display: grid; gap: 8px; }
.phone__item { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; font-size: .78rem; }
.phone__item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.phone__item b { display: block; font-size: .82rem; }
.phone__item i { font-style: normal; font-weight: 700; }
.phone__bar { margin: auto 12px 12px; background: var(--accent); border-radius: 12px; padding: 10px; text-align: center; font-weight: 700; font-size: .85rem; }
@media (min-width: 900px) { .hero__in { grid-template-columns: 1.25fr 1fr; align-items: center; padding: 88px 0 96px; } }

/* sections */
.sec { padding: 64px 0; }
.sec--alt { background: #f4ece0; }
.sec--dark { background: var(--dark); color: var(--on-dark); }
.sec__head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.sec__head p { color: var(--soft); font-size: 1.05rem; }
.sec--dark .sec__head p { color: var(--on-dark-soft); }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 979px) { .grid--4 { grid-template-columns: 1fr 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feat__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff1d9; font-size: 1.3rem; margin-bottom: 12px; }
.feat p { color: var(--soft); margin: 0; }

/* compare */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: #f7efe3; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); }
.compare .us { background: #fff6e6; font-weight: 600; }
.compare thead .us { background: var(--accent); color: var(--ink); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.scroll-x .compare { min-width: 620px; }

/* pricing */
.cycle { display: inline-flex; padding: 4px; border-radius: 999px; background: #efe5d6; margin: 0 auto 26px; }
.cycle button { border: 0; background: none; padding: 10px 16px; border-radius: 999px; font: 600 .95rem/1 var(--font); cursor: pointer; color: var(--soft); }
.cycle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.plan { position: relative; display: flex; flex-direction: column; }
.plan--hot { border: 2px solid var(--accent); }
.plan__badge { position: absolute; top: -12px; left: 22px; background: var(--accent); color: var(--ink); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan__price { font: 700 2.2rem/1 var(--display); margin: 6px 0 2px; }
.plan__price small { font: 500 .95rem var(--font); color: var(--soft); }
.plan__for { color: var(--soft); font-size: .92rem; min-height: 2.8em; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 8px; font-size: .94rem; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }
.plan li.soon { color: var(--soft); }
.plan li.soon::before { content: "◷"; color: var(--soft); }
.plan .btn { margin-top: auto; }

/* faq */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--soft); }

.cta-band { border-radius: 24px; padding: 36px 24px; background: linear-gradient(135deg, #2a1d12, #17110c); color: var(--on-dark); text-align: center; }
.cta-band p { color: var(--on-dark-soft); }

.foot { padding: 36px 0 48px; color: var(--soft); font-size: .9rem; border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; justify-content: space-between; }
.foot a { color: var(--soft); }

/* ================= app (account, wizard, admin) ================= */
.app-main { padding: 22px 0 80px; min-height: 70vh; }
.narrow { max-width: 560px; margin: 0 auto; }
.mid { max-width: 820px; margin: 0 auto; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 1.5rem; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span, .field legend { font-weight: 600; font-size: .92rem; }
.field small { color: var(--soft); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=time], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d9cbb8; border-radius: 12px; background: #fff; font: 16px/1.3 var(--font); color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(244, 167, 42, .55); outline-offset: 1px; }
.row { display: grid; gap: 12px; }
@media (min-width: 560px) { .row--2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.err { background: #fdecea; color: #8e1c1c; border-radius: 10px; padding: 10px 12px; font-size: .92rem; margin-bottom: 12px; }
.ok { background: #e6f4ec; color: #145c3b; border-radius: 10px; padding: 10px 12px; font-size: .92rem; margin-bottom: 12px; }
.note { background: #fff6e1; color: #5b4310; border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.slug { display: flex; align-items: stretch; border: 1px solid #d9cbb8; border-radius: 12px; overflow: hidden; background: #fff; }
.slug input { border: 0; border-radius: 0; min-width: 0; }
.slug span { display: flex; align-items: center; padding: 0 12px; background: #f6efe5; color: var(--soft); font-size: .92rem; white-space: nowrap; }
.slug-msg { font-size: .88rem; min-height: 1.3em; }
.slug-msg.good { color: var(--green); } .slug-msg.bad { color: var(--red); }

.steps { display: flex; gap: 6px; margin: 0 0 18px; }
.steps i { flex: 1; height: 5px; border-radius: 99px; background: #e8dccb; }
.steps i.on { background: var(--accent); }
.step-title { font-size: .85rem; font-weight: 600; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }

.choices { display: grid; gap: 10px; }
@media (min-width: 560px) { .choices--2 { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--accent); background: #fff8ea; }
.choice:has(input:focus-visible) { outline: 3px solid rgba(244, 167, 42, .55); }
.choice b { display: block; }
.choice .price { float: right; font-weight: 700; }
.choice small { color: var(--soft); display: block; margin-top: 2px; }
.swatch { display: flex; gap: 4px; margin-top: 8px; }
.swatch i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .08); }

.days { display: flex; flex-wrap: wrap; gap: 6px; }
.days label { position: relative; }
.days input { position: absolute; opacity: 0; }
.days span { display: inline-grid; place-items: center; min-width: 44px; height: 40px; border-radius: 10px; border: 1px solid #d9cbb8; background: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; }
.days input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }

.actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 auto; }

.summary { display: grid; gap: 8px; font-size: .95rem; }
.summary div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.summary div:last-child { border: 0; font-weight: 700; font-size: 1.05rem; }
.testcard { background: linear-gradient(135deg, #2b2e4a, #1b1e34); color: #fff; border-radius: 16px; padding: 18px; margin: 14px 0; }
.testcard .field > span { color: #d8dbf3; }
.testcard input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; letter-spacing: .06em; }
.testbadge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: #ffd54f; color: #3b2a00; letter-spacing: .04em; text-transform: uppercase; }

.biz { display: grid; gap: 12px; }
.biz__card { display: grid; gap: 10px; }
.biz__head { display: flex; gap: 12px; align-items: center; }
.biz__logo { width: 48px; height: 48px; border-radius: 12px; background: #f1e6d6; display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.biz__logo img { width: 100%; height: 100%; object-fit: cover; }
.biz__name { font-weight: 700; font-size: 1.05rem; }
.biz__host { font-size: .88rem; color: var(--soft); word-break: break-all; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: #eee; color: #333; white-space: nowrap; }
.pill--trial { background: #e7efff; color: #22408f; }
.pill--active { background: #e2f4ea; color: #145c3b; }
.pill--expired { background: #fff1d6; color: #7a4b00; }
.pill--suspended { background: #fde4e4; color: #8e1c1c; }
.pill--demo { background: #ffe28a; color: #3b2a00; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .94rem; }
.kv dt { color: var(--soft); }
.kv dd { margin: 0; font-weight: 600; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { font-size: .78rem; text-transform: uppercase; color: var(--soft); letter-spacing: .04em; }
.dns { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; background: #f7f2ea; border-radius: 10px; padding: 10px; overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat b { display: block; font: 700 1.6rem/1.1 var(--display); }
.stat span { color: var(--soft); font-size: .85rem; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 99; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: 92vw; }
.toast--error { background: var(--red); }
.done-hero { text-align: center; padding: 10px 0 6px; }
.done-hero .big { font-size: 3rem; }
.legal { max-width: 760px; margin: 0 auto; padding: 32px 18px 64px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; font-family: var(--font); margin-top: 1.6em; }

/* Monthly order counter (Comenzi Start) */
.meter { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter > span { display: block; height: 100%; background: #2e7d32; border-radius: 99px; }
.meter--near > span { background: #c77700; }
.meter--over > span { background: #b42318; }
.err-text { color: #b42318; font-weight: 600; }

/* Template picker (wizard step 3) */
.tpl-pick { display: grid; gap: 12px; }
@media (min-width: 560px) { .tpl-pick { grid-template-columns: 1fr 1fr; } }
.tpl-card { position: relative; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; }
.tpl-card input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.tpl-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.tpl-card img, .tpl-card__ph { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #f1ece4; }
.tpl-card__body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.tpl-card__body .swatch { margin: 0 0 4px; }
.tpl-card__body small { display: block; }
/* Own domains */
.dom-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.dom-hosts { margin: 6px 0; padding-left: 18px; }
.dns-table td, .dns-table th { font-size: .85rem; }
.dns-table code { word-break: break-all; }
