/* SmartHosting — visual system
   Palette follows NetPoa's own: deep navy for structure, a bright blue for
   links and primary actions, cyan as the brand highlight, and green reserved
   for anything that means "yes, this is yours" — available domains, confirmed
   actions, checkmarks. */

:root {
  --pine:      #0A2A5E;   /* deep navy — masthead and hero */
  --pine-deep: #061B3D;   /* darker navy — footer, admin bar */
  --sea:       #1565D8;   /* primary blue — links, buttons */
  --sea-soft:  #34A5E8;   /* cyan highlight */
  --marigold:  #128053;   /* green — call to action */
  --marigold-d:#0E7346;   /* green, pressed */
  --green:     #128053;   /* green — available, success text */
  --mist:      #EFF4FB;   /* light blue-grey surface */
  --mist-2:    #D3E0F1;   /* borders */
  --ink:       #12203A;
  --ink-soft:  #51617D;
  --paper:     #FFFFFF;
  --rose:      #C63127;

  --measure: 66ch;
  --shell: 1160px;
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Familjen Grotesk', 'Public Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.24rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; max-width: var(--measure); }

a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine); }

:focus-visible {
  outline: 3px solid var(--sea-soft);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

img, svg { max-width: 100%; }

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.shell-narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }

section { padding: 5.5rem 0; }
section.tight { padding: 3.5rem 0; }

.lede { font-size: 1.15rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.center { text-align: center; margin-inline: auto; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font: 600 1rem/1 'Public Sans', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--marigold); color: #fff; }
.btn-primary:hover { background: var(--marigold-d); color: #fff; }
.btn-dark { background: var(--pine); color: #fff; }
.btn-dark:hover { background: var(--pine-deep); color: #fff; }
.btn-ghost { border-color: var(--mist-2); color: var(--pine); background: transparent; }
.btn-ghost:hover { border-color: var(--pine); background: var(--mist); }
.btn-line { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-line:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .92rem; }

/* ------------------------------------------------------------------- header */

.masthead {
  position: sticky; top: 0; z-index: 40;
  background: var(--pine);
  color: #fff;
}
.masthead-inner {
  display: flex; align-items: center; gap: 2rem;
  min-height: 68px;
}
.brand {
  display: flex; align-items: baseline; gap: .1rem;
  font-family: 'Familjen Grotesk', sans-serif;
  font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em;
  color: #fff; text-decoration: none;
}
.brand span { color: var(--sea-soft); }
.brand-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sea-soft); margin-left: 3px; }

.nav { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav a {
  color: rgba(255,255,255,.86); text-decoration: none; font-size: .97rem;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--sea-soft); }
.nav .btn { border-bottom: none; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3);
  color: #fff; border-radius: var(--r-sm); padding: .45rem .7rem; cursor: pointer; font-size: .95rem;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--pine-deep); flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 1.25rem 1.25rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: .8rem; justify-content: center; }
}

/* --------------------------------------------------------------------- hero */

.hero {
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(52,165,232,.42), transparent 60%),
    var(--pine);
  color: #fff;
  padding: 4.5rem 0 4rem;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { color: rgba(255,255,255,.8); max-width: 52ch; }
.hero .eyebrow {
  font-size: .95rem; color: var(--sea-soft); margin-bottom: 1rem;
  display: flex; align-items: center; gap: .55rem;
}
.hero .eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--sea-soft);
}

/* The search line is the loudest element on the site; everything else stays quiet. */
.searchbox { margin-top: 2.2rem; max-width: 720px; }
.search-form {
  display: flex; gap: .5rem; background: #fff; padding: .5rem;
  border-radius: var(--r-lg); box-shadow: 0 18px 44px rgba(6,27,61,.35);
}
.search-form input[type="text"] {
  flex: 1; min-width: 0; border: 0; background: transparent;
  font: 500 1.15rem/1 'Public Sans', sans-serif; color: var(--ink);
  padding: .95rem 1rem;
}
.search-form input::placeholder { color: #8C99AD; }
.search-form input:focus { outline: none; }
.search-form:focus-within { box-shadow: 0 0 0 3px var(--sea-soft), 0 18px 44px rgba(6,27,61,.35); }
.search-note { margin-top: .9rem; font-size: .92rem; color: rgba(255,255,255,.6); }

@media (max-width: 560px) {
  .search-form { flex-direction: column; border-radius: var(--r-md); }
  .search-form .btn { justify-content: center; }
}

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 3rem;
  padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stats div { color: rgba(255,255,255,.72); font-size: .95rem; }
.hero-stats strong {
  display: block; font-family: 'Familjen Grotesk', sans-serif;
  font-size: 1.6rem; color: #fff; letter-spacing: -0.02em;
}

/* --------------------------------------------------------------- tld prices */

.tld-strip { background: var(--mist); padding: 1.6rem 0; }
.tld-row { display: flex; flex-wrap: wrap; gap: .6rem 2.4rem; align-items: baseline; }
.tld-row .label { color: var(--ink-soft); font-size: .95rem; margin-right: .4rem; }
.tld-chip { display: flex; align-items: baseline; gap: .5rem; }
.tld-chip b {
  font-family: 'Familjen Grotesk', sans-serif; font-size: 1.05rem; color: var(--pine);
}
.tld-chip span { font-size: .92rem; color: var(--ink-soft); }

/* ------------------------------------------------------------ search results */

.results { margin-top: 1.5rem; }
.result {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--mist-2); border-radius: var(--r-md);
  background: #fff; margin-bottom: .6rem;
}
.result.headline {
  border-color: var(--pine); border-width: 2px; padding: 1.6rem 1.4rem;
}
.result .name {
  font-family: 'Familjen Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700;
  color: var(--pine); word-break: break-all;
}
.result.headline .name { font-size: 1.7rem; }
.result .price { margin-left: auto; text-align: right; }
.result .price b { font-family: 'Familjen Grotesk', sans-serif; font-size: 1.15rem; }
.result .price small { display: block; color: var(--ink-soft); font-size: .85rem; }
.result .actions { display: flex; gap: .5rem; }

.status {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .9rem; color: var(--ink-soft);
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.available { color: var(--green); font-weight: 600; }
.status.unavailable { color: var(--rose); }
.status.unknown { color: #A06400; }
.status.pending { color: var(--ink-soft); opacity: .7; }
.status.pending::before { animation: pulse 1.1s ease-in-out infinite; }

@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.result.is-taken { background: #FCF4F3; }

/* -------------------------------------------------------------------- plans */

.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.plan {
  border: 1px solid var(--mist-2); border-radius: var(--r-lg);
  padding: 1.9rem 1.6rem; display: flex; flex-direction: column;
}
.plan.featured {
  background: var(--pine); border-color: var(--pine); color: #fff;
}
.plan.featured h3, .plan.featured .plan-price b { color: #fff; }
.plan.featured .plan-blurb, .plan.featured li { color: rgba(255,255,255,.82); }
.plan.featured li::before { color: var(--sea-soft); }
.plan-flag {
  font-size: .85rem; color: var(--sea-soft); margin-bottom: .8rem; font-weight: 600;
}
.plan-price { margin: .4rem 0 1rem; }
.plan-price b {
  font-family: 'Familjen Grotesk', sans-serif; font-size: 2rem; color: var(--pine);
  letter-spacing: -0.03em;
}
.plan-price span { color: inherit; opacity: .7; font-size: .95rem; }
.plan-blurb { color: var(--ink-soft); font-size: .97rem; }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.6rem; }
.plan li {
  position: relative; padding-left: 1.5rem; margin-bottom: .55rem;
  font-size: .96rem; color: var(--ink-soft);
}
.plan li::before {
  content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700;
}
.plan .btn { margin-top: auto; justify-content: center; }

/* --------------------------------------------------------------- spec table */

.spec-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.spec-table th, .spec-table td {
  text-align: left; padding: 1rem .9rem; border-bottom: 1px solid var(--mist-2);
  font-size: .97rem;
}
.spec-table th { font-family: 'Familjen Grotesk', sans-serif; color: var(--pine); font-size: .95rem; }
.spec-table tbody tr:hover { background: var(--mist); }
.spec-table td b { font-family: 'Familjen Grotesk', sans-serif; }

/* ------------------------------------------------------------------ reasons */

.reasons { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.reason {
  padding: 1.7rem 1.6rem 1.7rem 0; border-top: 1px solid var(--mist-2);
}
.reason h3 { margin-bottom: .4rem; color: var(--pine); }
.reason p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* --------------------------------------------------------------- split band */

.band { background: var(--mist); }
.band-dark { background: var(--pine); color: #fff; }
.band-dark h2 { color: #fff; }
.band-dark p { color: rgba(255,255,255,.8); }
.split { display: grid; gap: 3rem; grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.paylist { list-style: none; padding: 0; margin: 1rem 0 0; }
.paylist li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: .97rem;
}
.paylist li span:last-child { color: rgba(255,255,255,.6); }

/* -------------------------------------------------------------------- forms */

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: .35rem; color: var(--pine); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .85rem; font: 400 1rem 'Public Sans', sans-serif;
  border: 1px solid var(--mist-2); border-radius: var(--r-md); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(21,101,216,.16);
}
.field .hint { font-size: .86rem; color: var(--ink-soft); margin-top: .3rem; }
.grid-2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

.panel {
  border: 1px solid var(--mist-2); border-radius: var(--r-lg); padding: 1.8rem;
  background: #fff;
}
.summary-line { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--mist-2); }
.summary-line:last-child { border-bottom: 0; font-weight: 600; }

.notice {
  padding: 1rem 1.15rem; border-radius: var(--r-md); margin-bottom: 1.25rem;
  border-left: 4px solid var(--sea); background: var(--mist); font-size: .96rem;
}
.notice.error { border-left-color: var(--rose); background: #FCEFEE; }
.notice.warn { border-left-color: #E8A33D; background: #FDF6E9; }
.notice p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------- footer */

.footer { background: var(--pine-deep); color: rgba(255,255,255,.7); padding: 4rem 0 2rem; font-size: .95rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer a:hover { color: var(--sea-soft); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55rem; }
.footer-base {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem;
}

/* ------------------------------------------------------------------- admin */

.admin-body { background: var(--mist); }
.admin-bar { background: var(--pine-deep); color: #fff; padding: .9rem 0; }
.admin-bar .shell { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.admin-bar a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .95rem; }
.admin-bar a:hover, .admin-bar a.on { color: var(--sea-soft); }
.admin-bar .right { margin-left: auto; display: flex; gap: 1.2rem; align-items: center; }
.balance-pill {
  background: rgba(255,255,255,.1); padding: .35rem .8rem; border-radius: 999px;
  font-size: .9rem; color: #fff;
}
.admin-main { padding: 2.5rem 0 4rem; }
.card {
  background: #fff; border-radius: var(--r-md); padding: 1.5rem;
  border: 1px solid var(--mist-2); margin-bottom: 1.25rem;
}
.card h2 { font-size: 1.3rem; }
.table-wrap { overflow-x: auto; }
.tag {
  display: inline-block; padding: .15rem .55rem; border-radius: 999px;
  font-size: .8rem; background: var(--mist); color: var(--ink-soft);
}
.tag.ok { background: #E2F4EC; color: var(--green); }
.tag.warn { background: #FDF1DC; color: #A06400; }
.tag.bad { background: #FBE7E5; color: var(--rose); }
.dns-row { display: grid; gap: .5rem; grid-template-columns: 1.2fr .7fr 2fr .6fr auto; margin-bottom: .5rem; }
.dns-row input, .dns-row select { padding: .55rem; font-size: .92rem; border: 1px solid var(--mist-2); border-radius: var(--r-sm); }
@media (max-width: 760px) { .dns-row { grid-template-columns: 1fr 1fr; } }

.skip-link {
  position: absolute; left: -9999px; background: var(--marigold); color: #fff;
  padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: .5rem; }
