:root {
  --navy: #0f385a;
  --navy-deep: #0b2c47;
  --green: #1b874b;
  --green-dark: #146c3c;
  --ink: #163044;
  --muted: #5c6e80;
  --line: #d7e2eb;
  --paper: #ffffff;
  --mist: #f4f7fb;
  --mint: #f2faf6;
  --shadow: 0 16px 40px rgba(15, 56, 90, 0.08);
  --radius: 18px;
  --max: 1120px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(760px, 100%); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mark {
  width: 90px;
  height: 90px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand img {
  width: 120px;
  height: 120px;
  max-width: none;
  object-fit: contain;
}
/* Hide the text label — logo only in the nav */
.brand > span:not(.mark) {
  display: none;
}
.site-footer .mark {
  background: #fff;
  border-radius: 12px;
  width: 72px;
  height: 72px;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 560;
  padding: 8px 12px;
  border-radius: 999px;
}
.site-nav a[aria-current="page"] { background: var(--mist); }
.site-nav a:hover { background: var(--mint); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: var(--green-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--mist); }
.btn-lg { padding: 15px 22px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.hero { padding: 56px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; color: var(--navy); }
h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.05; margin: 0 0 14px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; margin: 0 0 12px; }
h3 { font-size: 1.25rem; margin: 0 0 8px; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--mist);
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.86rem;
  font-weight: 600;
}

.stat-card {
  background: var(--navy);
  color: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.stat-card p { margin: 0; color: #d5e4f0; }
.stat-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 4.4rem;
  line-height: 0.95;
  color: #fff;
  font-weight: 560;
}
.stat-card .green { color: #7ddea8; }
.stat-card .price {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.16);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 10px;
}
.strip article, .card, .post-card, .step, .ground, .price-card, .paper, .notice {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.strip article { padding: 18px 18px 16px; }
.strip span {
  font-family: var(--serif);
  color: var(--green);
  font-size: 1.7rem;
  display: block;
}
.strip p, .card p, .ground p, .step p { color: var(--muted); margin: 0; }

.section { padding: 54px 0; }
.section.mist { background: var(--mist); }
.section.mint { background: var(--mint); }
.section-head { max-width: 680px; margin-bottom: 22px; }
.grid-3, .grid-2 { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.1fr 0.9fr; }
.card, .ground, .step, .post-card { padding: 20px; }
.card h3, .ground h3 { font-family: var(--font); letter-spacing: 0; font-weight: 680; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step-no {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.letter-preview {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}
.letter-preview header, .letter-sheet header.bar {
  background: var(--navy);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.92rem;
}
.letter-preview pre, .letter-sheet pre {
  margin: 0;
  padding: 18px;
  white-space: pre-wrap;
  font-family: "Georgia", serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #24384a;
}

.price-card {
  padding: 26px;
  background: #fff;
}
.price-card .sum {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--navy);
  margin: 8px 0;
}
.price-card ul { margin: 0 0 18px; padding-left: 18px; }
.price-card li { margin: 6px 0; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.faq summary { cursor: pointer; font-weight: 680; color: var(--navy); }
.faq p { color: var(--muted); margin: 8px 0 4px; }

.band {
  background: var(--navy);
  color: #fff;
  border-radius: 28px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.band h2, .band p { color: #fff; }
.band p { color: #d5e4f0; margin: 0; }

.site-footer {
  background: var(--navy-deep);
  color: #d5e4f0;
  padding: 42px 0 28px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 22px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 { color: #fff; font-family: var(--font); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 22px; padding-top: 14px; font-size: 0.88rem; }

.page-hero { padding: 36px 0 10px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }

.post-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; height: 100%; }
.post-card:hover { border-color: var(--green); }
.post-card span { color: var(--green-dark); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.article { padding-bottom: 40px; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.4em; font-size: 1.7rem; }
.prose h3 { margin-top: 1.1em; font-family: var(--font); letter-spacing: 0; }
.prose p, .prose li { color: #24384a; }
.prose a { color: var(--green-dark); }
.note {
  background: var(--mint);
  border-left: 4px solid var(--green);
  padding: 12px 14px;
  border-radius: 12px;
}

.form-card { padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.progress { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.progress span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}
.progress span.on { background: var(--navy); color: #fff; }
label { display: block; font-weight: 650; color: var(--navy); margin: 12px 0 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-weight: 500; color: var(--ink); }
.check input { margin-top: 4px; }
.help { color: var(--muted); font-size: 0.92rem; margin: 4px 0 0; }
.error {
  background: #fff4f4;
  color: #8d1d1d;
  border: 1px solid #f0c8c8;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.files { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.hidden { display: none !important; }
.paywall {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 16px;
}
.letter-sheet { margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.receipt {
  background: var(--mint);
  border: 1px solid #cfe8d8;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 18px; }
.success-box { background: var(--mint); border-radius: 16px; padding: 16px; }

.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  z-index: 25;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.sticky-cta strong { color: var(--navy); }

@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2, .steps, .footer-grid, .strip, .paywall, .contact-grid, .row-2 {
    grid-template-columns: 1fr;
  }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
  }
  .site-nav.open { display: flex; }
  .band { flex-direction: column; align-items: flex-start; }
  .page-appeal .sticky-cta { display: none; }
}
@media (max-width: 760px) {
  body { padding-bottom: 74px; }
  .sticky-cta { display: flex; }
  .page-appeal { padding-bottom: 0; }
  .page-appeal .sticky-cta { display: none; }
}
@media print {
  .site-header, .site-footer, .sticky-cta, .actions, .no-print { display: none !important; }
  .letter-sheet { border: 0; }
}

/* ---- Image evidence preview ---- */
.image-review {
  margin: 14px 0;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.preview-card {
  display: flex;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  align-items: flex-start;
}
.preview-card:last-child { margin-bottom: 0; }
.preview-thumb {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
  border: 1px solid var(--line);
}
.preview-info { flex: 1; min-width: 0; }
.preview-info strong {
  display: block;
  font-size: 0.875rem;
  color: var(--navy);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-hint {
  font-size: 0.8rem;
  color: var(--green-dark);
  margin: 0 0 6px;
  font-weight: 600;
}
.preview-checks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.preview-checks li {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 2px 0 2px 16px;
  position: relative;
}
.preview-checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.75rem;
}
.file-item {
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 3px 0;
}

/* ---- Official resource links in blogs ---- */
.resource-links {
  background: var(--mist);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 28px 0;
}
.resource-links h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--navy);
  margin: 0 0 10px;
  font-family: var(--font);
  font-weight: 700;
}
.resource-links ul {
  margin: 0;
  padding: 0 0 0 16px;
}
.resource-links li { margin: 5px 0; font-size: 0.93rem; }
.resource-links a { color: var(--navy); font-weight: 600; }
.resource-links a:hover { color: var(--green-dark); }

/* ---- Chat widget ---- */
#chat-bubble {
  position: fixed;
  bottom: 88px;
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.35rem;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(15, 56, 90, 0.30);
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.18s;
  line-height: 1;
}
#chat-bubble:hover { background: var(--green); transform: scale(1.06); }

#chat-panel {
  position: fixed;
  bottom: 154px;
  right: 18px;
  width: 318px;
  height: 430px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 36px rgba(15, 56, 90, 0.18);
  z-index: 45;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
#chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chat-header {
  background: var(--navy);
  color: #fff;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: none;
}
.chat-header-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.9rem;
}
.chat-header-title .dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  flex: none;
}
.chat-header-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  display: block;
}
.chat-header-close {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}
.chat-header-close:hover { color: #fff; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}
.msg {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  word-break: break-word;
}
.msg.bot {
  background: var(--mist);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg.user {
  background: var(--navy);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg.typing {
  padding: 11px 15px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.msg.typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: chat-dot 1.2s infinite ease-in-out;
  flex: none;
}
.msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 12px 8px;
  flex: none;
}
.chat-chip {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.75rem;
  color: var(--navy);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font);
  transition: background 0.14s;
  white-space: nowrap;
}
.chat-chip:hover { background: var(--mint); }

.chat-input-row {
  display: flex;
  border-top: 1px solid var(--line);
  padding: 8px;
  gap: 6px;
  flex: none;
}
.chat-input-row input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.855rem;
  outline: none;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.15s;
}
.chat-input-row input:focus { border-color: var(--navy); }
.chat-input-row button {
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.855rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font);
}
.chat-input-row button:hover { background: var(--green-dark); }

@media (max-width: 760px) {
  #chat-bubble { bottom: 84px; }
  #chat-panel { bottom: 148px; width: calc(100vw - 36px); right: 18px; }
}
@media print {
  #chat-bubble, #chat-panel { display: none !important; }
}


