:root {
  --obsidian: #100d12;
  --obsidian-2: #18131b;
  --aubergine: #34223c;
  --plum: #654675;
  --violet: #9872aa;
  --violet-soft: #d0bad8;
  --ivory: #f3efe7;
  --ivory-2: #e8e2d8;
  --paper: #fbf9f4;
  --ink: #29242a;
  --muted: #9a929c;
  --bronze: #a58b62;
  --gold: #d4af6a;
  --gold-light: #f0d9a0;
  --line: rgba(255, 255, 255, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Arial, Helvetica, sans-serif;
  --header: 58px;
  --dock: 68px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--obsidian);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}
body {
  min-height: 100svh;
  padding-top: calc(var(--header) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom, 0px) + 8px);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }

.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: calc(var(--header) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 13, 18, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.app-header .back {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0; background: transparent; color: var(--ivory);
  border-radius: 50%;
  flex: 0 0 auto;
}
.app-header .back:active { background: rgba(255,255,255,.08); }
.app-header .brand {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
.app-header .brand img {
  width: 34px; height: 34px; border-radius: 50%;
}
.app-header .brand-copy { display: grid; line-height: 1; gap: 3px; }
.app-header .brand-copy strong {
  font: 500 17px/.9 var(--serif);
  letter-spacing: .01em;
}
.app-header .brand-copy small {
  color: #8f8791;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.app-header .header-link {
  margin-left: auto;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 4px;
}

.ribbon {
  margin: 0 16px 16px;
  padding: 9px 12px;
  border: 1px dashed rgba(165, 139, 98, .45);
  border-radius: 10px;
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.45;
  background: rgba(165, 139, 98, .08);
}
.ribbon strong { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.page { width: min(100%, 520px); margin: 0 auto; padding: 8px 16px 24px; }
.page.wide { width: min(100%, 720px); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  color: var(--bronze);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 4px 0 10px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--plum);
  border-radius: 2px;
}

h1 {
  margin: 0 0 10px;
  font: 400 1.85rem/1.15 var(--serif);
  color: var(--paper);
}
h2 {
  margin: 0 0 8px;
  font: 400 1.35rem/1.2 var(--serif);
  color: var(--paper);
}
h3 {
  margin: 0 0 6px;
  font: 400 1.12rem/1.25 var(--serif);
}
p { margin: 0 0 12px; color: #cfc8d2; font-size: .95rem; line-height: 1.6; }
.lead { color: #e4dee6; font-size: 1.02rem; line-height: 1.55; }

.hero {
  position: relative;
  isolation: isolate;
  padding: 12px 0 8px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 280px; height: 280px;
  right: -90px; top: -120px;
  border-radius: 50%;
  border: 1px solid rgba(187, 150, 202, .14);
  box-shadow: 0 0 80px rgba(105, 64, 122, .28), inset 0 0 60px rgba(128, 83, 145, .1);
  pointer-events: none;
}

.tiles { display: grid; gap: 12px; margin: 18px 0 8px; }
.tile {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 16px 16px 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(52, 34, 60, .55) 0%, rgba(24, 19, 27, .9) 70%);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.tile:active { transform: scale(.99); }
.tile .kicker {
  grid-column: 1;
  color: var(--bronze);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tile h2 { grid-column: 1; margin: 0; font-size: 1.28rem; }
.tile p { grid-column: 1; margin: 0; font-size: .86rem; color: #b7afb8; }
.tile .go {
  grid-row: 1 / span 3;
  grid-column: 2;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(212, 175, 106, .35);
  color: var(--gold);
  font-size: 16px;
}

.actions { display: grid; gap: 10px; margin: 18px 0 8px; }
.actions.row { grid-template-columns: 1fr 1fr; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .02em;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(180deg, #d4af6a 0%, #a58b62 100%);
  color: #1a140c;
}
.btn-primary:active { filter: brightness(.95); }
.btn-secondary {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(224, 208, 230, .28);
}
.btn-secondary:active { background: rgba(255,255,255,.05); }
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 0;
  min-height: 40px;
  font-size: 13px;
}

.panel {
  margin: 16px 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--obsidian-2);
}
.panel h2, .panel h3 { margin-bottom: 8px; }
.note {
  font-size: .8rem;
  color: #8f8791;
  line-height: 1.5;
}
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(165, 139, 98, .4);
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.steps span {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--aubergine);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
}
.steps strong { display: block; color: var(--paper); font-weight: 650; margin-bottom: 2px; }
.steps p { margin: 0; font-size: .86rem; }

form { display: grid; gap: 14px; margin-top: 8px; }
label { display: block; font-size: 12px; font-weight: 650; color: var(--ivory-2); }
label .note { font-weight: 500; }
input, textarea, select {
  margin-top: 6px;
  width: 100%;
  background: #120f15;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 12px 12px;
  color: var(--paper);
  min-height: 46px;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(212, 175, 106, .45);
  outline-offset: 1px;
  border-color: var(--bronze);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #a58b62 50%), linear-gradient(135deg, #a58b62 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 32px; }
.form-ok, .form-err {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.5;
}
.form-ok { background: rgba(101, 70, 117, .35); border: 1px solid rgba(208, 186, 216, .3); color: var(--ivory); }
.form-ok.show, .form-err.show { display: block; }

.file-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list li {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #120f15;
  border: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ivory);
}
.file-list em { color: #8f8791; font-style: normal; font-size: .75rem; }
.drop {
  border: 1px dashed rgba(165, 139, 98, .45);
  border-radius: 14px;
  padding: 22px 14px;
  text-align: center;
  color: #b7afb8;
  background: rgba(165, 139, 98, .06);
}
.drop strong { display: block; color: var(--gold-light); margin-bottom: 4px; font-weight: 650; }
.drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.drop-btn { margin-top: 12px; }

.cards { display: grid; gap: 12px; margin-top: 8px; }
.card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--obsidian-2);
}
.card .meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(165, 139, 98, .15);
  padding: 4px 8px;
  border-radius: 999px;
}
.card p { margin: 0; font-size: .88rem; }

.contact-list { display: grid; gap: 10px; margin: 8px 0 16px; }
.contact-list a, .contact-list .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--obsidian-2);
}
.contact-list span { color: #8f8791; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.contact-list strong { grid-column: 1; color: var(--paper); font-weight: 650; font-size: .95rem; }
.contact-list .chev { grid-row: 1 / span 2; grid-column: 2; color: var(--gold); align-self: center; }

.embed-wrap {
  margin-top: 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b090d;
}
.embed-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #b7afb8;
}
.embed-bar a { color: var(--gold); font-weight: 700; }
.embed-wrap iframe {
  width: 100%;
  height: 520px;
  border: 0;
  background: #0b090d;
}
.embed-fallback { display: none; padding: 16px; }
.embed-fallback.show { display: block; }

.plan-sec { margin: 22px 0 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.plan-sec:first-of-type { border-top: 0; padding-top: 0; }
.plan-sec ul, .plan-sec ol { margin: 0 0 12px; padding-left: 1.15rem; color: #cfc8d2; }
.plan-sec li { margin: 0 0 8px; font-size: .92rem; line-height: 1.5; }
.plan-sec a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 2px; }
.source { font-size: .75rem; color: #8f8791; line-height: 1.5; }
.source a { color: #c4b18a; }

.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  height: calc(var(--dock) + env(safe-area-inset-bottom, 0px));
  padding: 6px 8px env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(16, 13, 18, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #8f8791;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  min-height: 52px;
}
.dock a svg { width: 22px; height: 22px; }
.dock a.active, .dock a:active { color: var(--gold-light); }

.foot-note {
  margin-top: 28px;
  color: #5c565e;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
.foot-note a {
  color: var(--gold);
  text-decoration: underline;
}
.legal h2 {
  margin: 28px 0 10px;
  font: 400 1.25rem/1.2 var(--serif);
}
.legal p, .legal li, .legal address {
  color: #d8d2d4;
  font-size: 0.95rem;
  line-height: 1.55;
}
.legal address { font-style: normal; }
.legal a { color: var(--gold); text-decoration: underline; }
.legal ul { padding-left: 1.2em; margin: 0 0 12px; }


@media (min-width: 720px) {
  h1 { font-size: 2.15rem; }
  .tiles { grid-template-columns: 1fr 1fr; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.5;
  background: rgba(120, 40, 50, .35);
  border: 1px solid rgba(220, 140, 150, .35);
  color: #f3dfe2;
}
.pay-hook { margin-top: 22px; }
.install-bar {
  margin: 0 16px 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 106, .35);
  background: rgba(165, 139, 98, .1);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.install-bar[hidden] { display: none !important; }
.install-bar p { margin: 0; color: var(--ivory); font-size: .88rem; }
.install-bar .btn { min-height: 40px; padding: 0 12px; font-size: 13px; flex: 0 0 auto; }
.ref-box {
  margin-top: 8px;
  font: 500 1.15rem var(--serif);
  color: var(--gold-light);
  letter-spacing: .04em;
}
.admin-table { display: grid; gap: 14px; }
.admin-card .msg { white-space: pre-wrap; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-actions select { min-height: 42px; flex: 1 0 100%; }
.admin-actions .btn { min-height: 42px; flex: 1; }

.ios-a2hs {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--dock) + env(safe-area-inset-bottom, 0px) + 10px);
  z-index: 40;
  background: #1a151c;
  border: 1px solid rgba(212, 175, 106, .4);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  color: var(--ivory);
}
.ios-a2hs[hidden] { display: none !important; }
.ios-a2hs h2 {
  margin: 0 36px 8px 0;
  font: 600 1.05rem/1.3 var(--serif);
  color: var(--gold-light);
}
.ios-a2hs p { margin: 0 36px 12px 0; font-size: .9rem; line-height: 1.45; color: var(--ivory); }
.ios-a2hs ol {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.ios-a2hs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  line-height: 1.35;
}
.ios-a2hs .step-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(165, 139, 98, .15);
  border: 1px solid rgba(212, 175, 106, .35);
  display: grid;
  place-items: center;
  color: var(--gold-light);
}
.ios-a2hs .step-icon svg { width: 20px; height: 20px; }
.ios-a2hs .dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.ios-a2hs .dismiss:focus { outline: 2px solid var(--gold-light); }
.ios-a2hs .got-it {
  display: block;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--gold, #a58b62);
  color: #100d12;
  font: 600 14px/1 var(--sans, system-ui, sans-serif);
  cursor: pointer;
}

.domain-finder { margin: 22px 0 8px; }
.domain-finder h2 { margin-bottom: 8px; }
.domain-finder form { display: grid; gap: 12px; margin: 14px 0 10px; }
.domain-results {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.domain-results li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 106, .2);
  background: rgba(16, 13, 18, .35);
}
.domain-results .fqdn {
  flex: 1 1 auto;
  font-weight: 650;
  color: var(--ivory);
  word-break: break-all;
}
.domain-results .flag {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
  padding: 4px 8px;
  border-radius: 999px;
}
.domain-results .flag.available {
  color: #100d12;
  background: #d4af6a;
}
.domain-results .flag.taken {
  color: var(--ivory);
  background: rgba(120, 40, 50, .55);
  border: 1px solid rgba(220, 140, 150, .35);
}
.domain-results .flag.unknown {
  color: var(--ivory-2, #cfc6d4);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.domain-results .ask {
  flex: 1 1 100%;
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
  text-align: center;
}
