/* Pierian Networks — open source, mobile-first, Android-compliant
   No frameworks. System fonts. Works without JavaScript. */

:root {
  /* Robberg Tide — old Pierian navy+teal, Garden Route light */
  --navy: #0b3a6e;
  --navy-dark: #06233f;
  --navy-mid: #155a8a;
  --teal: #0a6e7a;
  --cyan: #7dd3c7;
  --foam: #e8f7f4;
  --sand: #f4efe4;
  --paper: #f7f4ee;
  --card: #fffcf7;
  --ink: #1c2a33;
  --muted: #4a5c66;
  --line: #d7cfc0;
  --ok: #0a6e7a;
  --warn: #b45309;
  --radius: 16px;
  --shadow: 0 12px 28px rgba(6, 35, 63, 0.1);
  --max: 1120px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-mid); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
  border-radius: 6px;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

/* Header */
.site-header {
  position: relative;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  min-height: var(--header-h);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  border-bottom: 4px solid var(--teal);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .01em;
  padding: 8px 0;
}
.brand img, .brand svg { width: 36px; height: 36px; }
.brand span { white-space: nowrap; }

#nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
}
.nav-btn svg { width: 26px; height: 26px; }

.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a {
  color: #e2e8f0;
  text-decoration: none;
  padding: 10px 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
}
.nav a:hover, .nav a[aria-current="page"] {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--cyan); }

@media (max-width: 1100px) {
  .nav-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: var(--header-h);
    background: var(--navy-dark);
    flex-direction: column;
    padding: 8px 16px 16px;
    gap: 4px;
  }
  .nav a { width: 100%; }
  #nav-toggle:checked ~ .nav { display: flex; }
}

/* Hero */
.hero {
  background:
    linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 55%, var(--teal) 100%);
  color: #fff;
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin-inline: auto; }
}
.hero-art {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.18);
}
.hero-art img { width: 100%; display: block; }
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.hero .kicker {
  display: inline-block;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 10px;
}
.hero p.lead {
  margin: 0 0 24px;
  font-size: 1.12rem;
  max-width: 40rem;
  color: #dbeafe;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary { background: var(--cyan); color: var(--navy-dark); }
.btn-primary:hover { background: #b8ebe3; color: var(--navy-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-mid); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

/* Sections */
section { padding: 56px 0; }
.section-muted { background: var(--sand); }
h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -.02em;
}
.sub {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 42rem;
}

.grid {
  display: grid;
  gap: 16px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 10px 0 0; padding-left: 1.15rem; color: var(--muted); }
.card li { margin: 4px 0; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 12px 0 36px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  color: inherit;
  text-decoration: none;
  min-height: 200px;
  box-shadow: var(--shadow);
}
.plan-card:hover { border-color: var(--teal); }
.plan-art {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--foam);
  color: var(--teal);
  display: grid; place-items: center;
  font-weight: 800;
  margin-bottom: 6px;
}
.plan-price { font-size: 1.35rem; font-weight: 800; color: var(--navy-dark); }
.plan-unit, .plan-note { color: var(--muted); font-size: .88rem; }
.plan-cta { margin-top: auto; font-weight: 650; color: var(--navy-mid); font-size: .9rem; }
.icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--foam);
  color: var(--teal);
  display: grid; place-items: center;
  margin-bottom: 12px;
  font-weight: 800;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 14px 16px;
}
.stat b { display: block; font-size: 1.15rem; }
.stat span { color: #bfdbfe; font-size: .88rem; }

.hero .stat-row { margin-top: 32px; max-width: 720px; }

.quote-table a.row-link {
  color: inherit;
  text-decoration: none;
  display: block;
}
.quote-table tbody tr { cursor: pointer; }
.quote-table tbody tr:hover td { background: var(--foam); }
.quote-table .price { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.quote-table .ask { white-space: nowrap; font-weight: 650; color: var(--navy-mid); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 520px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { background: var(--navy); color: #fff; font-weight: 650; }
tr:last-child td { border-bottom: 0; }
.price { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.note {
  background: #fff7ed;
  border-left: 4px solid var(--warn);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  color: #7c2d12;
  margin: 16px 0 0;
}

/* Contact / forms */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 650; margin: 0 0 6px; }
input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  font-size: 16px; /* prevents Android/iOS zoom */
  background: #fff;
  margin-bottom: 14px;
}
textarea { min-height: 120px; resize: vertical; }
select { appearance: auto; }
.rate-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  background: var(--foam);
  border: 1px solid #b5ddd6;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 16px;
}
.rate-box strong { color: var(--navy); }
.rate-price { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy-dark); }
.rate-meta { color: var(--muted); font-size: .9rem; width: 100%; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
}
.captcha {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 16px;
  background: #fff;
}
.captcha legend { font-weight: 700; padding: 0 6px; }
.captcha-q { margin: 0 0 10px; color: var(--muted); }
.captcha-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 240px;
}
.captcha-grid button {
  aspect-ratio: 1;
  min-height: 72px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--foam);
  padding: 6px;
  cursor: pointer;
}
.captcha-grid button[aria-pressed="true"] {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 2px var(--teal);
}
.captcha-grid svg { width: 100%; height: 100%; display: block; }
.captcha-msg { color: #9a3412; margin: 8px 0 0; font-size: .9rem; }
.check-row input { width: auto; min-height: 22px; margin: 3px 0 0; }
.check-row label { margin: 0; font-weight: 500; }
.dl { margin: 0; }
.dl div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dl dt { color: var(--muted); font-weight: 650; }
.dl dd { margin: 0; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  padding: 36px 0 24px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.site-footer a { color: #e2e8f0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .88rem;
}

.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 36px 0;
}
.page-hero h1 { margin: 0 0 6px; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.page-hero p { margin: 0; color: #bfdbfe; max-width: 40rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
