:root {
  --bg: #f7f4ef;
  --bg-alt: #efe9df;
  --surface: #ffffff;
  --ink: #1a2421;
  --muted: #5c6b66;
  --accent: #2d6a4f;
  --accent-dark: #1b4332;
  --accent-soft: #d8f3dc;
  --border: #d4cdc3;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(26, 36, 33, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1080px;
  --header-offset: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 1.25rem);
}

.section-head[id] {
  scroll-margin-top: calc(var(--header-offset) + 1.25rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img:not(.logo-img) {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.75rem 0;
  background: #ffffff;
}

.logo {
  --logo-height: 2.75rem;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--logo-height);
  text-decoration: none;
  color: var(--ink);
}

.logo-img {
  display: block;
  height: var(--logo-height);
  width: calc(var(--logo-height) * 1.5);
  max-width: none;
  flex: 0 0 calc(var(--logo-height) * 1.5);
  object-fit: contain;
  object-position: center;
}

.logo-text {
  display: flex;
  align-items: center;
  align-self: center;
  height: var(--logo-height);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-text > span {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:not(.btn):hover {
  color: var(--accent-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent-dark);
  border: 1px solid var(--border);
}

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Sections */
section {
  padding: 3.5rem 0;
}

section.alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.6rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Cards grid */
.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .cards.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.card .price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent-dark);
  margin: 0.75rem 0 0.25rem;
}

.card .price-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.card .plan-specs {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.pricing-cards .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-cards .card-desc {
  flex: 1;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.pricing-cards .card .btn {
  margin-top: auto;
  width: 100%;
}

.card .btn {
  margin-top: 1.25rem;
  width: 100%;
}

.card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Compare */
.compare {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

.compare-box {
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 200px;
}

.compare-box.before {
  background: #e8e4dc;
  border: 2px dashed var(--border);
}

.compare-box.after {
  background: linear-gradient(145deg, var(--accent-soft), var(--surface));
  border: 2px solid var(--accent);
}

.compare-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.compare-box ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Contact */
.contact-panel {
  display: grid;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

@media (min-width: 700px) {
  .contact-panel {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-meta p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.contact-meta a {
  font-weight: 600;
  font-size: 1.1rem;
}

form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form .hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: -0.5rem 0 1rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer a:hover {
  color: var(--accent-dark);
}

/* Guide pages (dns.html, etc.) */
.guide-hero {
  padding: 3rem 0 2rem;
}

.guide-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.guide-hero .lead {
  max-width: 48ch;
  color: var(--muted);
  margin: 0;
}

.guide-layout {
  display: grid;
  gap: 2rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 900px) {
  .guide-layout {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.guide-toc {
  position: sticky;
  top: calc(var(--header-offset) + 1rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.guide-toc h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.guide-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-toc li {
  margin-bottom: 0.45rem;
}

.guide-toc a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.guide-toc a:hover {
  color: var(--accent-dark);
}

.guide-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  scroll-margin-top: calc(var(--header-offset) + 1.25rem);
}

.guide-section h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}

.guide-section h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.guide-section p,
.guide-section li {
  color: var(--muted);
}

.guide-section ol {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.guide-section li {
  margin-bottom: 0.5rem;
}

.guide-figure {
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.guide-figure img,
.guide-figure svg {
  display: block;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}

.guide-figure-records svg {
  max-width: 640px;
}

.guide-callout {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.95rem;
}

.guide-callout strong {
  color: var(--ink);
}

.dns-records-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.dns-records-table th,
.dns-records-table td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.dns-records-table th {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

.dns-records-table code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
}

@media (max-width: 699px) {
  :root {
    --header-offset: 4.75rem;
  }

  .nav .hide-mobile {
    display: none;
  }

  .header-inner {
    min-height: 4rem;
    padding: 0.6rem 0;
  }

  .site-header .nav {
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 0;
  }

  .site-header .nav .btn {
    padding: 0.42rem 0.7rem;
    font-size: 0.78rem;
    line-height: 1.15;
    box-shadow: 0 2px 8px rgba(45, 106, 79, 0.28);
  }

  .logo {
    --logo-height: 2.35rem;
    gap: 0.6rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo-text {
    font-size: 1.1rem;
    white-space: nowrap;
  }
}
