:root {
  --teal: #16233f;
  --teal-dark: #0d1526;
  --teal-tint: #eef1f7;
  --amber: #b8812a;
  --amber-tint: #faf1e2;
  --ink: #1a1d24;
  --muted: #5c6470;
  --line: #e5e3dc;
  --bg: #f7f5f0;
  --card: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 21, 38, 0.04), 0 1px 1px rgba(15, 21, 38, 0.03);
  --shadow-md: 0 10px 30px -12px rgba(15, 21, 38, 0.18);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

svg { display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
header.site {
  background: rgba(22, 35, 63, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.5);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  gap: 20px;
}

.brand {
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 3.4vw, 2.3rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand span.hl { color: #d9a54f; font-style: italic; }

nav.links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.93rem;
}

nav.links a:not(.nav-cta) {
  text-decoration: none;
  color: #b4c1d6;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

nav.links a:not(.nav-cta):hover,
nav.links a.active:not(.nav-cta) {
  color: #fff;
  border-color: var(--amber);
}

.nav-cta {
  background: var(--amber);
  color: #fff !important;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: none !important;
  box-shadow: 0 6px 16px -8px rgba(184, 129, 42, 0.7);
  transition: background .15s, transform .15s;
}
.nav-cta:hover { background: #a0701f; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 85% -10%, #253a5e 0%, var(--teal) 45%, var(--teal-dark) 100%);
  color: #fff;
  padding: 68px 0 76px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.4;
  pointer-events: none;
}

.hero .wrap { position: relative; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #b9c8dc;
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 16ch;
  letter-spacing: -0.01em;
}

.hero p.lead {
  font-size: 1.1rem;
  color: #cdd8e8;
  max-width: 52ch;
  margin: 0 0 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}

.btn-amber {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(184, 129, 42, 0.6);
}
.btn-amber:hover { background: #a0701f; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover { border-color: #fff; transform: translateY(-1px); }

.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(22, 35, 63, 0.55);
}
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-1px); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections */
section { padding: 68px 0; }
section.tight { padding: 46px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 62ch; margin: 0 0 42px; }
.section-head .eyebrow { color: var(--amber); }
.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 12px;
  color: var(--teal);
  letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--teal);
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 21px; height: 21px; }

/* Tier badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
}
.badge-teal { background: var(--teal); color: #fff; }
.badge-amber { background: var(--amber-tint); color: var(--amber); border: 1px solid #e9d3ab; }

/* Service category blocks (reused on Services page) */
.category {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.category-head {
  padding: 18px 24px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.category-head.teal { background: var(--teal); }
.category-head.amber { background: var(--amber); }
.category-head h3 { margin: 0; font-size: 1.02rem; }
.category-head .sub { font-size: 0.82rem; color: rgba(255,255,255,0.78); margin-top: 3px; }

.service-row {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}
.service-row:first-of-type { border-top: none; }
.service-row h4 { margin: 0 0 5px; font-size: 0.98rem; }
.service-row p { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: 62ch; }

/* Two-column "how it works" panel */
.panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.panel-col {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.panel-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding-left: 4px; }
.step .num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.step h4 { margin: 0 0 6px; color: var(--teal); }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.cta-band p { color: #cdd8e8; margin: 0 0 26px; max-width: 52ch; margin-left: auto; margin-right: auto; }

/* Footer */
footer.site {
  background: var(--teal-dark);
  color: #b9c8dc;
  padding: 42px 0 32px;
  font-size: 0.88rem;
}
footer.site .foot-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
footer.site a { color: #fff; text-decoration: none; }
footer.site .fine { color: #7c8ba0; margin-top: 18px; font-size: 0.8rem; }

/* Contact */
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.contact-row:first-child { border-top: none; padding-top: 0; }
.contact-row .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--teal-tint); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row .ic svg { width: 19px; height: 19px; }
.contact-row a { text-decoration: none; font-weight: 700; color: var(--teal); }
.contact-row span.label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 2px; }

/* Device / app mockups used on the How it works page */
.phone-mock {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  background: #10182b;
  border-radius: 32px;
  padding: 12px;
  box-shadow: var(--shadow-md);
}
.phone-mock .notch {
  width: 46px; height: 5px;
  background: rgba(255,255,255,0.25);
  border-radius: 3px;
  margin: 0 auto 10px;
}
.phone-mock .screen {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  font-size: 0.82rem;
}
.mock-bar {
  background: var(--teal);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.78rem;
}
.mock-bar .sub { font-weight: 500; opacity: 0.75; font-size: 0.72rem; margin-top: 1px; }
.avatar-circle {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.78rem; flex-shrink: 0;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-tint); color: var(--teal);
  border-radius: 999px; padding: 6px 12px;
  font-size: 0.8rem; font-weight: 700;
}
.check-row { display:flex; align-items:center; gap:8px; font-size:0.85rem; padding:5px 0; }
.check-box { width:15px; height:15px; border-radius:4px; flex-shrink:0; display:inline-block; }

@media (max-width: 860px) {
  nav.links { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid, .grid.cols-2 { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 24px; }
}
