/* =========================================================
   {{BRAND_NAME}} — styles.css
   Palette: deep teal ink, sea teal, aqua, mist
   Type: Bricolage Grotesque (display) + Manrope (body)
   ========================================================= */

:root {
  --ink: #07333b;
  --teal-900: #0b4a55;
  --teal-700: #0e7c86;
  --teal-500: #16a4ae;
  --aqua: #40e0d0;
  --aqua-soft: #a9efe8;
  --mist: #e6f6f5;
  --foam: #f4fbfa;
  --white: #ffffff;
  --text: #12363d;
  --muted: #4f7278;
  --line: rgba(11, 74, 85, 0.14);
  --line-strong: rgba(11, 74, 85, 0.28);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  /* Type scale (1.25 ratio, 18px base) */
  --fs-xs: 0.8rem;
  --fs-sm: 0.9rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.2rem;
  --fs-lg: 1.5rem;
  --fs-xl: 1.9rem;
  --fs-2xl: 2.4rem;
  --fs-3xl: clamp(2.6rem, 5.4vw, 4.4rem);

  --measure: 66ch;
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);

  --r-sm: 6px;
  --r-md: 14px;
  --r-tide: 36px 8px 36px 8px; /* signature asymmetric corner */

  --shadow-teal: 0 18px 50px -24px rgba(11, 74, 85, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
/* Placeholder tint while photos are missing; invisible once images load */
.hero-media img, .media-frame img, .prose figure img { background: var(--mist); color: var(--muted); font-size: var(--fs-sm); }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }
ul, ol { padding-left: 1.2rem; }
p { margin: 0 0 1.1rem; max-width: var(--measure); }
figure { margin: 0; }
button { font: inherit; }

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
h1 { font-size: var(--fs-3xl); font-variation-settings: "opsz" 96, "wdth" 96; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); font-weight: 600; }
h4 { font-size: var(--fs-md); font-weight: 600; }

.lead { font-size: var(--fs-md); color: var(--muted); }
.small { font-size: var(--fs-sm); color: var(--muted); }

.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { margin-bottom: 0; }

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.section { padding-block: var(--section); }
.hero-grid > *, .steps-grid > *, .split > *, .legal > *, .cta-band > *, .footer-grid > * { min-width: 0; }
.section--foam { background: var(--foam); }
.section--ink { background: var(--ink); color: #d5eceb; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink p { color: #b9d9d8; }
.section--ink a { color: var(--aqua); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--white);
  padding: 0.6rem 1rem; border-radius: var(--r-sm); z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal-700); color: var(--white); }
.btn--primary:hover { background: var(--teal-900); color: var(--white); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--mist); color: var(--ink); }
.btn--aqua { background: var(--aqua); color: var(--ink); }
.btn--aqua:hover { background: var(--aqua-soft); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(11, 74, 85, 0.4);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand-mark { width: 36px; height: 36px; color: var(--teal-700); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  text-decoration: none; color: var(--text); font-weight: 600; font-size: var(--fs-sm);
  padding: 0.35rem 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--aqua); transition: right 0.25s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line-strong);
  border-radius: 999px; padding: 0.55rem 0.9rem; color: var(--ink); font-weight: 700;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 0.9rem; justify-content: center; }
}

/* ---------- Hero (signature) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--foam) 0%, var(--white) 100%);
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4rem, 9vw, 7rem);
}
.hero-ripple {
  position: absolute; right: -12vw; top: -18vw;
  width: clamp(520px, 62vw, 980px); height: auto;
  color: var(--teal-500); opacity: 0.18; pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-note { margin-top: 1.25rem; font-size: var(--fs-sm); color: var(--muted); }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: var(--r-tide);
  box-shadow: var(--shadow-teal);
}
.hero-media figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(7, 51, 59, 0.82); color: var(--white);
  padding: 0.55rem 0.9rem; border-radius: 999px; font-size: var(--fs-xs);
  backdrop-filter: blur(6px);
}

.hero-copy { animation: rise 0.7s var(--ease) both; }
.hero-media { animation: rise 0.7s 0.15s var(--ease) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-ripple { right: -40vw; top: -30vw; }
}

/* Secondary page hero */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--mist);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.page-hero .hero-ripple { opacity: 0.14; top: -30vw; }
.page-hero .lead { margin-bottom: 0; }

.breadcrumb { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: var(--fs-sm); color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal-700); }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 1.6rem 1.25rem 1.6rem 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.stat strong {
  display: block; overflow-wrap: anywhere; font-family: var(--font-display); font-size: var(--fs-xl);
  color: var(--teal-700); letter-spacing: -0.02em; line-height: 1;
}
.stat span { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Feature list (no cards) ---------- */
.feature-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem);
}
.feature-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 1rem;
  padding: 1.6rem 0; border-top: 1px solid var(--line);
}
.feature-list li:nth-child(-n + 2) { border-top-color: var(--line-strong); }
.feature-list h3 { margin-bottom: 0.4rem; }
.feature-list p { margin: 0; color: var(--muted); }
.icon-dot {
  width: 44px; height: 44px; border-radius: 12px 4px 12px 4px;
  background: var(--mist); color: var(--teal-700);
  display: grid; place-items: center;
}
.icon-dot svg { width: 22px; height: 22px; }
@media (max-width: 720px) { .feature-list { grid-template-columns: 1fr; } }

/* ---------- Steps (sequence) ---------- */
.steps-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 1.4rem 0 1.4rem 4rem; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.steps li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1.35rem;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1.5px solid var(--aqua); color: var(--aqua);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; }
.media-frame img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-tide);
}
.media-frame figcaption { margin-top: 0.7rem; font-size: var(--fs-sm); color: var(--muted); }
.section--ink .media-frame figcaption { color: #8fb9b8; }
@media (max-width: 880px) { .steps-grid { grid-template-columns: 1fr; } }

/* ---------- Split (text + image) ---------- */
.split {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.split--reverse { grid-template-columns: 1.1fr 0.9fr; }
.split--reverse .media-frame { order: -1; }
.split .media-frame { position: sticky; top: 100px; }
.benefit + .benefit { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.benefit h3 { margin-bottom: 0.4rem; }
.benefit p:last-child { margin-bottom: 0; }
@media (max-width: 880px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split .media-frame { position: static; order: 0; }
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 20px 6px 20px 6px; padding: 1.6rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.quote blockquote { margin: 0; font-size: var(--fs-md); line-height: 1.5; color: var(--ink); }
.quote blockquote::before { content: "“"; color: var(--aqua); font-family: var(--font-display); font-size: 2.4rem; line-height: 0; margin-right: 0.15rem; vertical-align: -0.35em; }
.quote figcaption { margin-top: auto; font-size: var(--fs-sm); color: var(--muted); }
.quote figcaption strong { display: block; color: var(--text); }
@media (max-width: 880px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- FAQ (native details) ---------- */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 3rem 1.25rem 0; position: relative;
  font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%;
  width: 12px; height: 12px; border-right: 2px solid var(--teal-700); border-bottom: 2px solid var(--teal-700);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 1.4rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-900), var(--teal-700) 55%, var(--teal-500));
  color: var(--white); border-radius: var(--r-tide);
  padding: clamp(2.2rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-band p { color: #d4f1ee; margin-bottom: 0; }
.cta-band .hero-actions { justify-content: flex-end; }
@media (max-width: 720px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .hero-actions { justify-content: flex-start; }
}

/* ---------- Prose / article ---------- */
.prose h2 { font-size: var(--fs-xl); margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { max-width: var(--measure); }
.prose li { margin-bottom: 0.4rem; }
.prose figure { margin: 2rem 0; }
.prose figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); }
.prose figcaption { margin-top: 0.6rem; font-size: var(--fs-sm); color: var(--muted); }

/* Legal layout with sticky TOC */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.toc { position: sticky; top: 100px; border-left: 2px solid var(--line); padding-left: 1rem; }
.toc h2 { font-size: var(--fs-md); margin-bottom: 0.6rem; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: 0.35rem 0; text-decoration: none; color: var(--muted); font-size: var(--fs-sm); }
.toc a:hover, .toc a.is-active { color: var(--teal-700); }
.legal-meta { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 2rem; }
@media (max-width: 880px) {
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
}

/* ---------- Values / team ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.value h3 { margin-bottom: 0.4rem; }
.value h3::before {
  content: ""; display: block; width: 2.4rem; height: 4px; border-radius: 2px;
  background: var(--aqua); margin-bottom: 0.9rem;
}
.value p { margin: 0; color: var(--muted); }
@media (max-width: 880px) { .values { grid-template-columns: 1fr; } }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.6rem 1.8rem; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 0.5rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--teal-700); box-shadow: 0 0 0 4px var(--mist);
}
.timeline time { font-family: var(--font-display); font-weight: 700; color: var(--teal-700); display: block; margin-bottom: 0.2rem; }
.timeline p { margin: 0; }

/* ---------- Vendors ---------- */
.criteria { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 3rem; }
.criteria li { padding-left: 1.6rem; position: relative; }
.criteria li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem; width: 0.7rem; height: 0.7rem;
  border-radius: 3px 1px 3px 1px; background: var(--aqua);
}
.criteria strong { display: block; color: var(--ink); }
@media (max-width: 720px) { .criteria { grid-template-columns: 1fr; } }

.vendor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.vendor {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.4rem;
  background: var(--white); display: flex; flex-direction: column; gap: 0.6rem;
  transition: border-color 0.2s var(--ease);
}
.vendor:hover { border-color: var(--teal-500); }
.vendor-badge {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--aqua);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
}
.vendor h3 { margin: 0.2rem 0 0; }
.vendor .tag { font-size: var(--fs-xs); color: var(--teal-700); font-weight: 700; }
.vendor p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.vendor a { margin-top: auto; font-weight: 700; font-size: var(--fs-sm); }
@media (max-width: 880px) { .vendor-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .vendor-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9d9d8; padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: var(--white); }
.site-footer .brand-mark { color: var(--aqua); }
.site-footer h4 { color: var(--white); margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: #b9d9d8; text-decoration: none; }
.site-footer a:hover { color: var(--aqua); }
.site-footer p { color: #8fb9b8; font-size: var(--fs-sm); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem;
  font-size: var(--fs-xs); color: #8fb9b8;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--white); color: var(--teal-700);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 18px; height: 18px; }
