:root {
  --ink: #17324d;
  --ink-deep: #0c2238;
  --paper: #f7f0e4;
  --paper-bright: #fffaf1;
  --surface: #ffffff;
  --aqua: #2d8f8b;
  --aqua-dark: #166b68;
  --rust: #c65b3c;
  --rust-dark: #973c27;
  --mustard: #e6b95c;
  --muted: #627281;
  --line: rgba(23, 50, 77, 0.17);
  --shadow: 0 18px 50px rgba(12, 34, 56, 0.11);
  --shadow-small: 0 8px 24px rgba(12, 34, 56, 0.09);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --max: 1180px;
  --reading: 760px;
  --radius: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(45, 143, 139, .07), transparent 24rem),
    var(--paper-bright);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--aqua-dark); text-underline-offset: .18em; }
a:hover { color: var(--rust-dark); }
button, input { font: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .7rem 1rem;
  color: var(--surface);
  background: var(--ink-deep);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

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

.narrow { width: min(calc(100% - 2rem), var(--reading)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 7rem) 0; }
.section-tight { padding: clamp(2.3rem, 4vw, 4rem) 0; }
.section-ink { color: #eef7f5; background: var(--ink-deep); }
.section-aqua { color: var(--ink-deep); background: #cfe8e4; }
.section-paper { background: var(--paper); }

.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, .96);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--ink-deep);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink-deep);
  border-radius: 50% 50% 50% 8px;
  color: var(--surface);
  background: var(--rust);
  box-shadow: 4px 4px 0 var(--mustard);
  transform: rotate(-5deg);
}

.brand-mark span { transform: rotate(5deg); font-size: 1.15rem; }
.brand-name { display: grid; line-height: 1.02; }
.brand-name small { margin-top: .22rem; color: var(--muted); font-size: .64rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }

.menu-toggle {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
  content: "";
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-2px) rotate(-45deg); }

.site-nav {
  position: absolute;
  inset: 78px 0 auto;
  display: block;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-bright);
  box-shadow: var(--shadow-small);
}

.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.site-nav ul { margin: 0; padding: 0; display: grid; gap: .35rem; list-style: none; }
.site-nav a { display: block; padding: .75rem 1rem; border-radius: 999px; color: var(--ink); font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink-deep); background: #dceeea; }

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--rust-dark);
  font-size: .77rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-ink .eyebrow { color: #f2c77a; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(2.55rem, 7vw, 5.8rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4vw, 3.65rem); letter-spacing: -.04em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -.025em; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #fffaf1; }

.lead {
  max-width: 730px;
  margin: 1.35rem 0 0;
  color: #425b6e;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
}

.section-ink .lead { color: #c7d8e2; }

.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .72rem 1.1rem;
  border: 2px solid var(--ink-deep);
  border-radius: 999px;
  color: var(--surface);
  background: var(--ink-deep);
  box-shadow: 4px 4px 0 var(--mustard);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.button:hover { color: var(--surface); transform: translate(-1px, -2px); box-shadow: 6px 7px 0 var(--mustard); }
.button-secondary { color: var(--ink-deep); background: transparent; box-shadow: none; }
.button-secondary:hover { color: var(--ink-deep); background: #fff; box-shadow: none; }
.section-ink .button { color: var(--ink-deep); border-color: #fffaf1; background: #fffaf1; }

.home-hero { padding: clamp(2rem, 5vw, 5rem) 0 4rem; overflow: hidden; }
.hero-grid { display: grid; align-items: center; gap: 2.2rem; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 em { color: var(--rust); font-style: normal; }

.hero-photo {
  position: relative;
  min-height: 380px;
}

.hero-photo::before {
  position: absolute;
  inset: 5% -4% -5% 7%;
  border: 2px dashed rgba(23, 50, 77, .26);
  border-radius: 47% 53% 42% 58% / 58% 37% 63% 42%;
  content: "";
  transform: rotate(4deg);
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 47% 53% 42% 58% / 58% 37% 63% 42%;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.route-tag {
  position: absolute;
  right: -.25rem;
  bottom: 1rem;
  z-index: 2;
  max-width: 190px;
  padding: .8rem 1rem;
  border: 2px solid var(--ink-deep);
  border-radius: 16px;
  color: var(--ink-deep);
  background: var(--mustard);
  box-shadow: 6px 6px 0 var(--ink-deep);
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.35;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.trust-strip { padding: 1rem 0; color: #e7f1f4; background: var(--ink-deep); }
.trust-list { margin: 0; padding: 0; display: grid; gap: .4rem 1.25rem; list-style: none; font-size: .82rem; font-weight: 750; }
.trust-list li::before { margin-right: .5rem; color: var(--mustard); content: "●"; }

.section-head { max-width: 780px; margin-bottom: 2.2rem; }
.section-head p:last-child { max-width: 680px; margin: 1rem 0 0; color: #536878; }
.section-ink .section-head p:last-child { color: #c7d8e2; }

.card-grid { display: grid; gap: 1rem; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-small);
}

.card-number {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  color: #fff;
  background: var(--aqua-dark);
  font-size: .75rem;
  font-weight: 900;
}

.card p { margin: .75rem 0 0; color: #536878; }
.card a.stretched { margin-top: auto; padding-top: 1.2rem; font-weight: 800; }
.card a.stretched::after { position: absolute; inset: 0; content: ""; }
.card:hover { border-color: rgba(45, 143, 139, .52); transform: translateY(-2px); }

.feature-grid { display: grid; align-items: center; gap: 2rem; }
.photo-frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
.photo-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-frame.portrait img { aspect-ratio: 4 / 5; }
.photo-frame.wide img { aspect-ratio: 16 / 8; }
.photo-caption { margin: 0; padding: .7rem 1rem; color: var(--muted); background: var(--surface); font-size: .75rem; }

.route-map { position: relative; display: grid; gap: 1rem; }
.route-step { position: relative; padding: 1.2rem 1.2rem 1.2rem 4.3rem; border: 1px solid rgba(255,255,255,.15); border-radius: 22px; background: rgba(255,255,255,.06); }
.route-step::before { position: absolute; left: 1.25rem; top: 1.2rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 2px solid #f2c77a; border-radius: 50% 50% 50% 5px; color: var(--ink-deep); background: #f2c77a; content: attr(data-step); font-weight: 900; transform: rotate(-4deg); }
.route-step h3 { font-size: 1.3rem; }
.route-step p { margin: .5rem 0 0; color: #c7d8e2; }

.page-hero { padding: clamp(3rem, 7vw, 6.5rem) 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.page-hero h1 { max-width: 960px; font-size: clamp(2.6rem, 6vw, 5rem); }
.breadcrumbs { margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; color: var(--muted); font-size: .8rem; font-weight: 700; }
.breadcrumbs li:not(:last-child)::after { margin-left: .45rem; color: var(--rust); content: "→"; }
.breadcrumbs a { color: inherit; }
.meta-row { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .55rem 1rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.meta-row span { display: inline-flex; align-items: center; gap: .35rem; }

.article-shell { display: grid; gap: 2rem; }
.article-body { min-width: 0; }
.article-body > p:first-of-type { color: #344f63; font-size: 1.18rem; line-height: 1.75; }
.article-body h2 { margin: 3rem 0 1rem; font-size: clamp(1.8rem, 3.5vw, 2.65rem); }
.article-body h3 { margin: 2rem 0 .7rem; }
.article-body p, .article-body ul, .article-body ol { max-width: 760px; }
.article-body li + li { margin-top: .55rem; }
.article-body blockquote { margin: 2.2rem 0; padding: 1.4rem 1.5rem; border-left: 5px solid var(--rust); border-radius: 0 18px 18px 0; color: var(--ink-deep); background: var(--paper); font-family: var(--font-display); font-size: 1.25rem; }
.article-body figure { margin: 2.2rem 0; }
.article-body figure img { width: 100%; border-radius: 22px; box-shadow: var(--shadow-small); }
.article-body figcaption { margin-top: .55rem; color: var(--muted); font-size: .76rem; }

.side-rail { align-self: start; display: grid; gap: 1rem; }
.rail-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-small); }
.rail-card h2 { font-family: var(--font-body); font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.rail-card ul { margin: .9rem 0 0; padding-left: 1.2rem; }
.rail-card li + li { margin-top: .55rem; }

.note, .disclosure {
  margin: 1.7rem 0;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(45, 143, 139, .35);
  border-radius: 18px;
  background: #e6f3f0;
}
.note strong, .disclosure strong { color: var(--ink-deep); }
.disclosure { border-color: rgba(198, 91, 60, .34); background: #fff0e8; }

.comparison-scroll { max-width: 100%; margin: 1.8rem 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; min-width: 650px; border-collapse: collapse; background: var(--surface); }
th, td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--ink-deep); background: #e4f0ed; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

.checklist { margin: 1.5rem 0; padding: 0; display: grid; gap: .7rem; list-style: none; }
.checklist li { position: relative; padding: .85rem 1rem .85rem 3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.checklist li::before { position: absolute; left: 1rem; top: .92rem; width: 1.25rem; height: 1.25rem; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--aqua-dark); content: "✓"; font-size: .7rem; font-weight: 900; }

.stat-grid { display: grid; gap: 1rem; }
.stat { padding: 1.3rem; border-top: 4px solid var(--mustard); border-radius: 0 0 18px 18px; background: rgba(255,255,255,.08); }
.stat strong { display: block; color: #fffaf1; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.stat span { display: block; margin-top: .45rem; color: #c7d8e2; font-size: .8rem; }

.planner {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.3rem, 4vw, 2.5rem);
  border: 2px solid var(--ink-deep);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--mustard);
}
.planner-fields { display: grid; gap: 1rem; }
.field label { display: block; margin-bottom: .35rem; color: var(--ink-deep); font-size: .82rem; font-weight: 850; }
.field input { width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1px solid #8b9aa5; border-radius: 12px; color: var(--ink-deep); background: #fff; }
.planner-output { padding: 1.3rem; border-radius: 18px; color: #eaf5f3; background: var(--ink-deep); }
.planner-output strong { display: block; color: #f2c77a; font-family: var(--font-display); font-size: 1.55rem; }
.planner-output p { margin: .6rem 0 0; }

.source-list { display: grid; gap: 1rem; }
.source-item { padding: 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.source-item h2 { font-family: var(--font-body); font-size: 1.05rem; }
.source-item p { margin: .5rem 0 0; color: #536878; font-size: .9rem; }
.source-item a { overflow-wrap: anywhere; }

.callout {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 30px;
  color: #eef7f5;
  background: var(--ink-deep);
  overflow: hidden;
}
.callout::after { position: absolute; right: -3rem; bottom: -4rem; width: 13rem; height: 13rem; border: 2rem solid rgba(230,185,92,.16); border-radius: 50%; content: ""; }
.callout h2 { max-width: 760px; color: #fffaf1; }
.callout p { position: relative; z-index: 1; max-width: 680px; color: #c7d8e2; }

.legal h2 { margin-top: 2.5rem; font-size: 1.8rem; }
.legal h3 { margin-top: 1.8rem; font-size: 1.25rem; }
.legal p, .legal li { color: #425b6e; }

.site-footer { padding: 3rem 0 1.4rem; color: #c7d8e2; background: #081a2c; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand .brand { color: #fffaf1; }
.footer-brand .brand-name small { color: #9eb3c1; }
.footer-brand p { max-width: 390px; color: #9eb3c1; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.footer-nav h2 { color: #f2c77a; font-family: var(--font-body); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.footer-nav ul { margin: .8rem 0 0; padding: 0; list-style: none; }
.footer-nav li + li { margin-top: .4rem; }
.footer-nav a { color: #c7d8e2; font-size: .88rem; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); color: #8fa7b7; font-size: .73rem; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 620px) {
  .trust-list { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid, .planner-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 820px) {
  .menu-toggle { display: none; }
  .site-nav, .js .site-nav { position: static; display: block; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .site-nav ul { display: flex; align-items: center; gap: .15rem; }
  .site-nav a { padding: .55rem .72rem; font-size: .84rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); }
  .hero-photo { min-height: 570px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 6rem); }
  .feature-grid.reverse > :first-child { order: 2; }
  .card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .article-shell { grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); gap: clamp(2rem, 5vw, 5rem); }
  .side-rail { position: sticky; top: 1.5rem; }
  .footer-grid { grid-template-columns: 1.1fr .9fr; }
}

@media (max-width: 420px) {
  .brand-name small { display: none; }
  .route-tag { right: .2rem; }
  .footer-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
