:root {
  --bg: #f5f2ec;
  --bg-soft: #ece7de;
  --surface: #fffdf9;
  --text: #162235;
  --muted: #5f6877;
  --line: #dad2c7;
  --brand: #18263d;
  --brand-soft: #42526a;
  --accent: #a88455;
  --accent-soft: #efe1ce;
  --focus: #18263d;
  --maxw: 1160px;
  --radius: 22px;
  --shadow-sm: 0 10px 28px rgba(16, 25, 39, 0.05);
  --shadow: 0 24px 70px rgba(16, 25, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8f5ef 0%, #f5f2ec 28%, #f8f6f1 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

p,
ul,
ol {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  z-index: 200;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.top-gradient {
  position: absolute;
  inset: 0 0 auto 0;
  height: 760px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 16%, rgba(168, 132, 85, 0.12), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(24, 38, 61, 0.14), transparent 31%),
    linear-gradient(to bottom, #efe9df 0%, rgba(245, 242, 236, 0.96) 36%, rgba(248, 246, 241, 0) 88%);
}

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

.section {
  position: relative;
  padding: 5.25rem 0;
}

.section h2 {
  margin: 0;
  max-width: 16ch;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2rem, 3.1vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section .intro {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
}

.surface {
  border-top: 1px solid rgba(218, 210, 199, 0.92);
  border-bottom: 1px solid rgba(218, 210, 199, 0.92);
  background: linear-gradient(180deg, rgba(236, 231, 222, 0.72), rgba(248, 246, 241, 0.92));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(218, 210, 199, 0.76);
  background: rgba(248, 245, 239, 0.84);
  backdrop-filter: blur(14px);
}

.header-row {
  min-height: 80px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--brand);
}

.wordmark-logo {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.9rem;
  box-shadow: 0 14px 30px rgba(24, 38, 61, 0.15);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem;
  color: var(--brand-soft);
  font-size: 0.9rem;
  border: 1px solid rgba(218, 210, 199, 0.92);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.72);
  box-shadow: var(--shadow-sm);
  order: 3;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-current {
  background: rgba(24, 38, 61, 0.08);
  color: var(--brand);
}

.main-nav a.is-current {
  box-shadow: inset 0 0 0 1px rgba(24, 38, 61, 0.08);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.85rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 30px rgba(24, 38, 61, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  background: #21324d;
  box-shadow: 0 16px 34px rgba(24, 38, 61, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  border-color: rgba(218, 210, 199, 0.96);
  color: var(--brand);
  background: rgba(255, 253, 249, 0.86);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: rgba(255, 253, 249, 1);
  border-color: rgba(168, 132, 85, 0.42);
}

.hero,
.page-hero {
  padding: 6.8rem 0 5rem;
}

.hero-grid,
.page-hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(168, 132, 85, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.74);
  color: var(--brand-soft);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 1.35rem 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.8rem, 6.4vw, 5.15rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 11ch;
}

.page-hero h1 {
  max-width: 12ch;
}

.hero p,
.page-hero p {
  margin-top: 1.4rem;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
}

.hero-actions,
.button-row {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.trust-list {
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--brand);
  font-size: 0.92rem;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(218, 210, 199, 0.96);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: var(--shadow-sm);
}

.trust-list li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 0.45rem;
}

.signal-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(24, 38, 61, 0.12);
  border-radius: 28px;
  background: linear-gradient(180deg, #1d2c45 0%, #121c2d 100%);
  color: #fff;
  box-shadow: 0 26px 70px rgba(18, 28, 45, 0.22);
  padding: 1.75rem;
}

.signal-panel::after {
  content: "";
  position: absolute;
  inset: -20% auto auto 48%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 66%);
  pointer-events: none;
}

.signal-title {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d8c7b1;
  font-weight: 700;
}

.signal-panel ul {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
  color: rgba(247, 250, 252, 0.9);
  display: grid;
  gap: 0.85rem;
  font-size: 0.96rem;
}

.signal-panel li {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.signal-panel li:first-child {
  padding-top: 0;
  border-top: 0;
}

.grid-1,
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.card {
  height: 100%;
  border: 1px solid rgba(218, 210, 199, 0.96);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.96);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.card p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.pricing-card {
  position: relative;
  padding-top: 1.7rem;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(247, 244, 238, 0.96));
}

.pricing-card::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(168, 132, 85, 0));
}

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

.price {
  margin-top: 0.95rem;
  color: var(--brand);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.7rem, 5vw, 3.6rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.flow-list,
.bullet-list {
  margin-top: 1rem;
  padding: 0;
  list-style: none;
  color: var(--brand-soft);
  font-size: 0.93rem;
  display: grid;
  gap: 0.55rem;
}

.flow-list li,
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.flow-list li::before,
.bullet-list li::before {
  color: var(--accent);
  flex: 0 0 auto;
}

.flow-list li::before {
  content: "\2014";
}

.bullet-list li::before {
  content: "\2022";
}

.security-note {
  margin-top: 1.5rem;
  border: 1px solid rgba(218, 210, 199, 0.96);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  color: var(--brand);
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}

.cta-strip {
  padding-top: 0;
}

.cta-panel {
  border: 1px solid rgba(218, 210, 199, 0.96);
  border-radius: 28px;
  padding: clamp(1.45rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(248, 246, 241, 0.98));
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  max-width: 15ch;
}

.cta-panel p {
  margin-top: 0.9rem;
  max-width: 60ch;
  color: var(--muted);
}

.cta-meta {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(218, 210, 199, 0.96);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: var(--shadow-sm);
  color: var(--brand);
  font-size: 0.92rem;
}

.cta-meta span::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 0.45rem;
}

.details-list {
  margin-top: 2rem;
  border: 1px solid rgba(218, 210, 199, 0.96);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: var(--shadow-sm);
}

.details-list details {
  border-top: 1px solid rgba(218, 210, 199, 0.82);
  padding: 1.15rem 1.35rem;
}

.details-list details:first-child {
  border-top: 0;
}

.details-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--brand);
  position: relative;
  padding-right: 1.6rem;
}

.details-list summary::-webkit-details-marker {
  display: none;
}

.details-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -0.1rem;
  color: var(--accent);
  font-size: 1.2rem;
}

.details-list details[open] summary::after {
  content: "\2212";
}

.details-list p {
  margin-top: 0.75rem;
  max-width: 70ch;
  color: var(--muted);
}

.contact-box {
  border: 1px solid rgba(218, 210, 199, 0.96);
  border-radius: 28px;
  padding: clamp(1.45rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(248, 246, 241, 0.98));
  box-shadow: var(--shadow);
}

.contact-form {
  margin-top: 1.3rem;
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(201, 193, 182, 0.96);
  border-radius: 14px;
  padding: 0.78rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(168, 132, 85, 0.65);
  box-shadow: 0 0 0 4px rgba(168, 132, 85, 0.12);
  outline: none;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.error {
  color: #b91c1c;
  font-size: 0.82rem;
  min-height: 1rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.mailto {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.92rem;
  font-weight: 500;
}

.success {
  color: #136b57;
  font-size: 0.9rem;
  min-height: 1.1rem;
  margin-top: 0.3rem;
}

footer {
  border-top: 1px solid rgba(24, 38, 61, 0.22);
  padding: 2rem 0 2.4rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  background: #17263d;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  align-items: center;
}

.footer-navs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.8rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.footer-contact a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-wordmark {
  color: #fff;
}

.footer-wordmark .wordmark-logo {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.06);
}

.footer-note {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

@media (min-width: 860px) {
  .hero-grid,
  .page-hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  }

  .main-nav {
    order: 0;
    width: auto;
    overflow: visible;
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 859px) {
  .header-row {
    min-height: auto;
    padding: 0.9rem 0;
  }

  .header-row .btn {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--maxw), 100% - 1.25rem);
  }

  .section {
    padding: 4.1rem 0;
  }

  .hero,
  .page-hero {
    padding: 5.25rem 0 4.1rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.9rem);
  }

  .hero-actions,
  .button-row,
  .cta-meta,
  .trust-list {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .button-row .btn,
  .cta-meta span,
  .trust-list li {
    width: 100%;
    justify-content: center;
  }

  .signal-panel {
    padding: 1.4rem;
  }

  .footer-row,
  .footer-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-navs,
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
  }
}
