:root {
  --bg: #070b16; --bg2: #0d1426; --card: #111a30; --line: #1f2b47; --ink: #eef2ff; --muted: #9aa8c7;
  --brand: #22d3ee; --brand2: #8b5cf6; --good: #34d399; --warn: #fbbf24; --bad: #f87171;
  --radius: 18px; --font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; --head: "Sora", var(--font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.grad { background: linear-gradient(100deg, var(--brand), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15.5px var(--font); text-decoration: none; color: #04121a; background: linear-gradient(100deg, var(--brand), #67e8f9); transition: transform .15s, box-shadow .15s, opacity .15s; box-shadow: 0 10px 30px rgba(34, 211, 238, .25); }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn.small { padding: 8px 14px; font-size: 13.5px; }
.btn.danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1.5px rgba(248, 113, 113, .5); }
.btn.gold { background: linear-gradient(100deg, #fbbf24, #f59e0b); box-shadow: 0 10px 30px rgba(245, 158, 11, .25); }

header.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(7, 11, 22, .75); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 19px var(--head); text-decoration: none; }
.logo img { width: 34px; height: 34px; display: block; }
nav.links { display: flex; gap: 26px; font-size: 15px; }
nav.links a { text-decoration: none; color: var(--muted); }
nav.links a:hover { color: var(--ink); }

.hero { position: relative; padding: 84px 0 60px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 620px; background: radial-gradient(600px 300px at 20% 30%, rgba(34, 211, 238, .22), transparent 70%), radial-gradient(600px 320px at 80% 20%, rgba(139, 92, 246, .25), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 999px; background: rgba(34, 211, 238, .1); color: var(--brand); font: 600 13.5px var(--font); border: 1px solid rgba(34, 211, 238, .25); }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); margin: 18px 0 16px; }
.hero p.lead { font-size: 18.5px; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: 14.5px; }
.trust b { color: var(--ink); }
.frame { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03); }
.frame .bar { display: flex; gap: 7px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.frame .bar span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.frame .bar em { margin-left: 8px; font-style: normal; background: #0a1020; padding: 4px 12px; border-radius: 999px; }
.frame iframe, .frame img { width: 100%; aspect-ratio: 4 / 3; border: 0; display: block; object-fit: cover; }

section { padding: 72px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 12px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tile { text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .2s, border-color .2s; display: flex; flex-direction: column; }
.tile:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .5); }
.tile .shot { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #14203d, #1b1440); position: relative; overflow: hidden; }
.tile .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover .shot img { transform: scale(1.06); }
.tile .body { padding: 16px 18px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tile h3 { font-size: 17px; }
.tile small { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #04121a; font: 800 17px var(--head); margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.price-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch; }
.price-card { background: linear-gradient(160deg, #101b36, #170f33); border: 1px solid rgba(139, 92, 246, .45); border-radius: 24px; padding: 34px; box-shadow: 0 30px 80px rgba(139, 92, 246, .18); }
.price-card .amount { font: 800 62px var(--head); letter-spacing: -0.03em; margin: 8px 0 2px; }
.price-card .amount small { font: 600 18px var(--font); color: var(--muted); letter-spacing: 0; }
ul.ticks { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 11px; }
ul.ticks li { padding-left: 30px; position: relative; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: rgba(52, 211, 153, .16); color: var(--good); display: grid; place-items: center; font: 700 12px var(--font); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature h3 { font-size: 16.5px; margin-bottom: 5px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details p { color: var(--muted); margin: 10px 0 0; }
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* modal + forms */
.modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: rgba(3, 6, 14, .72); backdrop-filter: blur(6px); padding: 20px; }
.modal.open { display: grid; }
.sheet { width: min(440px, 100%); background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); position: relative; }
.sheet h3 { font-size: 23px; margin-bottom: 6px; }
.sheet .x { position: absolute; right: 14px; top: 12px; background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; }
label { display: block; font: 600 13.5px var(--font); color: var(--muted); margin: 16px 0 6px; }
input, textarea, select { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #0a1122; color: var(--ink); font: 16px var(--font); outline: none; }
input:focus, textarea:focus { border-color: var(--brand); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.msg { margin-top: 12px; font-size: 14.5px; min-height: 20px; }
.msg.err { color: var(--bad); } .msg.ok { color: var(--good); } .msg.note { color: var(--warn); }
.phone-in { display: flex; }
.phone-in span { display: grid; place-items: center; padding: 0 13px; border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: #0a1122; color: var(--muted); }
.phone-in input { border-radius: 0 12px 12px 0; }

/* dashboard + admin */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font: 700 12px var(--font); text-transform: uppercase; letter-spacing: .04em; }
.badge.trial { background: rgba(251, 191, 36, .14); color: var(--warn); } .badge.paid { background: rgba(52, 211, 153, .14); color: var(--good); }
.badge.expired, .badge.suspended { background: rgba(248, 113, 113, .14); color: var(--bad); } .badge.building, .badge.pending { background: rgba(34, 211, 238, .14); color: var(--brand); }
.badge.verified { background: rgba(52, 211, 153, .14); color: var(--good); }
.site-card { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; }
.site-card .shot { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #14203d, #1b1440); }
.site-card .shot img { width: 100%; height: 100%; object-fit: cover; }
.url { font: 600 15px ui-monospace, Consolas, monospace; color: var(--brand); word-break: break-all; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pick { cursor: pointer; }
.pick.sel { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(34, 211, 238, .35); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chip { background: #0a1122; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; }
.progress { height: 10px; border-radius: 99px; background: #0a1122; overflow: hidden; margin: 20px 0 10px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand2)); transition: width .4s; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
td code, .mono { font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; word-break: break-all; }
.table-scroll { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.stat b { display: block; font: 800 28px var(--head); }
.stat span { color: var(--muted); font-size: 13.5px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { background: transparent; color: var(--muted); border: 1.5px solid var(--line); padding: 8px 16px; border-radius: 999px; cursor: pointer; font: 600 14px var(--font); }
.tabs button.on { color: #04121a; background: var(--brand); border-color: var(--brand); }
.copy { cursor: pointer; border: 1px solid var(--line); background: #0a1122; color: var(--muted); border-radius: 8px; padding: 3px 9px; font-size: 12px; }
.hide { display: none !important; }

@media (max-width: 900px) {
  .hero .wrap, .price-wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  nav.links { display: none; }
  .site-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps, .feature-list, .row { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  section { padding: 52px 0; }
}

/* the customer's own domain: its own row on every site card */
.own-domain { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .06); }
.own-domain .muted { font-size: 14px; margin-top: 2px; }
/* DNS records stay readable on a phone: the table scrolls sideways instead of breaking the values letter by letter */
#dom-steps table { min-width: 640px; }
/* dark, slim scrollbars everywhere (the browser's white default looked out of place) */
:root { color-scheme: dark; }
* { scrollbar-width: thin; scrollbar-color: #2b3a5e transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2b3a5e; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #3b82f6; background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-button { display: none; }
#text-form { scrollbar-gutter: stable; }
/* editor for the wording inside a 3D site */
#text-form { max-height: 92vh; overflow-y: auto; }
#text-body h4 { margin: 22px 0 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.text-group { padding: 14px 16px 6px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: rgba(255, 255, 255, .03); }
.text-group label { margin-top: 0; }
.text-group input, .text-group textarea { margin-bottom: 10px; }
.text-group textarea { width: 100%; resize: vertical; min-height: 92px; font: inherit; }
.text-step { font-weight: 700; margin-bottom: 8px; color: #7dd3fc; font-size: 14px; }
.text-foot { position: sticky; bottom: -28px; margin: 14px -28px -28px; padding: 14px 28px 20px; background: var(--bg2); border-top: 1px solid var(--line); border-radius: 0 0 22px 22px; }
.own-domain.flash { box-shadow: 0 0 0 3px rgba(34, 211, 238, .55); transition: box-shadow .3s; }
@media (max-width: 640px) { header.top #me { display: none; } }
.map-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.map-row input { flex: 1 1 240px; }
/* location picker */
#map-box { height: min(52vh, 420px); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-top: 12px; background: #0a1122; }
.map-pin i { display: block; width: 26px; height: 26px; margin: 4px; border-radius: 50% 50% 50% 0; background: #ef4444; border: 3px solid #fff; transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .45); }
.leaflet-container { font: inherit; }

/* ── phones (ad traffic): compact header, design picker two-up, thumb-sized taps, sheets that fit the screen ── */
header.top #top-domain .short { display: none; }
@media (max-width: 640px) {
  header.top .wrap { height: 58px; gap: 10px; }
  header.top .logo { font-size: 16px; white-space: nowrap; }
  header.top #top-domain .long { display: none; }
  header.top #top-domain .short { display: inline; }
  .btn { min-height: 46px; }
  .btn.small { min-height: 40px; }
  .panel { padding: 18px 16px; scroll-margin-top: 70px; }
  .panel h2 { font-size: 22px !important; }
  #pick.grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  #pick .tile .body { padding: 9px 10px 11px; flex-direction: column; align-items: stretch; gap: 8px; }
  #pick .tile h3 { font-size: 14px; line-height: 1.25; min-height: 2.5em; }
  #pick .tile .btn { width: 100%; }
  .actions .btn { flex: 1 1 auto; }
  .site-card { grid-template-columns: 1fr; }
  .modal { padding: 12px; }
  .sheet { padding: 22px 18px; border-radius: 18px; max-height: 92vh; overflow: auto; }
}

/* language button in the dashboard header */
#lang-btn { padding: 8px 12px; }
@media (max-width: 640px) { body:not(.site) header.top .wrap > div { gap: 8px !important; } body:not(.site) header.top .logo { font-size: 0; gap: 0; } }

/* the short create form (people arriving from an ad): name, number, address; the rest behind one button */
#w2:not(.quick) .quick-only { display: none !important; }
#w2.quick .full-only, #w2.quick #f-more, #w2.quick #f-call-box { display: none; }
#w2.quick input { font-size: 18px; padding: 14px; }
#w2.quick #create { flex: 1; }
