/* Merlapanif — smart grid engineering. Layout: sidebar archetype, flexbox only. */

:root {
  --ink: #0f1a1c;
  --ink-soft: #3c4a4d;
  --paper: #f4f1ea;
  --paper-deep: #e8e2d4;
  --white: #ffffff;
  --copper: #c4682b;
  --copper-dark: #9c4f1c;
  --teal: #0d4f52;
  --teal-deep: #08353a;
  --volt: #d9f25c;
  --line: #d3ccbc;
  --fallback: #23484b;
  --sidebar-w: 268px;
  --radius: 4px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
  background-color: var(--fallback);
}

a { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 4.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: 1.32rem; }

p { margin: 0 0 1.05em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--volt); color: var(--ink); padding: 0.6rem 1rem;
}
.skip-link:focus { left: 1rem; }

/* ---------- Advertising disclosure strip ---------- */
.ad-strip {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  background: var(--ink);
  color: #e9e6dd;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-align: center;
}
.ad-strip strong {
  background: var(--volt);
  color: var(--ink);
  padding: 0.05rem 0.45rem;
  border-radius: 2px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Shell ---------- */
.shell {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2rem 1.6rem 1.6rem;
  background: var(--teal-deep);
  color: #dfe9e6;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.brand svg { flex: 0 0 auto; }
.brand:hover { color: var(--volt); }

.sidebar-tag {
  font-size: 0.82rem;
  color: #9fbdb8;
  margin: -0.9rem 0 0;
}

.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.side-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.7rem;
  color: #dfe9e6;
  text-decoration: none;
  border-left: 2px solid transparent;
  font-size: 0.97rem;
}
.side-nav a span { font-family: var(--mono); font-size: 0.72rem; color: #79a19b; }
.side-nav a:hover,
.side-nav a:focus-visible { background: rgba(255, 255, 255, 0.07); color: var(--white); }
.side-nav a[aria-current="page"] { border-left-color: var(--volt); color: var(--white); background: rgba(255, 255, 255, 0.05); }

.side-selection {
  border: 1px dashed #3f7a78;
  padding: 0.9rem;
  font-size: 0.86rem;
  border-radius: var(--radius);
}
.side-selection p { margin: 0 0 0.35rem; color: #9fbdb8; }
.side-selection strong { display: block; color: var(--white); font-weight: 600; margin-bottom: 0.6rem; }

.side-cta {
  display: inline-flex;
  justify-content: center;
  padding: 0.7rem 1rem;
  background: var(--volt);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.side-cta:hover, .side-cta:focus-visible { background: var(--white); }

.sidebar-foot {
  margin-top: auto;
  font-size: 0.78rem;
  color: #87aaa5;
}
.sidebar-foot p { margin: 0 0 0.3rem; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  border: 1px solid #3f7a78;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.menu-toggle:hover, .menu-toggle:focus-visible { background: rgba(255, 255, 255, 0.1); }

.main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ---------- Generic section helpers ---------- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 2.4rem; }
.narrow { max-width: 720px; }
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-dark);
  margin-bottom: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-copper { background: var(--copper); color: var(--white); }
.btn-copper:hover, .btn-copper:focus-visible { background: var(--copper-dark); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--teal-deep); }
.btn-light:hover, .btn-light:focus-visible { background: var(--volt); }

.text-link {
  color: var(--copper-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link:hover, .text-link:focus-visible { color: var(--teal); }

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 86vh;
  background-color: var(--fallback);
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; background-color: var(--fallback); }
.hero-media img { width: 100%; height: 100%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 53, 58, 0.15) 0%, rgba(8, 30, 33, 0.88) 78%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
  padding: 0 3rem 3.6rem;
}
.hero-copy { flex: 0 1 760px; }
.hero-copy .kicker { color: var(--volt); }
.hero-copy p { font-size: 1.12rem; max-width: 560px; color: #e4ece9; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 1.6rem; }
.hero-actions .text-link { color: var(--volt); }
.hero-actions .text-link:hover { color: var(--white); }
.hero-readout {
  flex: 0 0 250px;
  font-family: var(--mono);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 1rem;
  color: #cfe0dc;
}
.hero-readout div { display: flex; justify-content: space-between; padding: 0.25rem 0; }
.hero-readout b { color: var(--volt); font-weight: 500; }

/* ---------- Home: scenario ---------- */
.scenario { padding: 6rem 0 5rem; }
.scenario-row { display: flex; gap: 4rem; align-items: flex-start; }
.scenario-text { flex: 1 1 56%; }
.scenario-aside { flex: 1 1 40%; margin-top: 7rem; position: relative; }
.scenario-aside figure { margin: 0; background-color: var(--fallback); }
.scenario-aside img { width: 100%; height: 420px; }
.scenario-aside figcaption {
  position: relative;
  margin: -3rem 0 0 -2.2rem;
  width: 82%;
  background: var(--paper);
  border-left: 4px solid var(--copper);
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: flex; gap: 1.4rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.timeline time { flex: 0 0 72px; font-family: var(--mono); font-size: 0.85rem; color: var(--copper-dark); padding-top: 0.2rem; }
.timeline p { margin: 0; }

/* ---------- Home: model strip ---------- */
.model {
  position: relative;
  padding: 5.5rem 0;
  color: var(--white);
  background-color: var(--teal-deep);
  background-image: linear-gradient(90deg, rgba(8, 53, 58, 0.96) 0%, rgba(8, 53, 58, 0.82) 60%, rgba(8, 53, 58, 0.55) 100%), url("https://images.unsplash.com/photo-1466611653911-95081537e5b7?w=1400&q=80");
  background-size: cover;
  background-position: center;
}
.model h2 { max-width: 640px; }
.model-lead { max-width: 620px; color: #d4e2df; }
.model-steps { display: flex; gap: 0; margin-top: 3rem; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.model-step { flex: 1 1 0; padding: 1.6rem 1.6rem 0 0; }
.model-step + .model-step { padding-left: 1.6rem; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.model-step b { display: block; font-family: var(--mono); color: var(--volt); font-size: 0.8rem; margin-bottom: 0.6rem; font-weight: 500; }
.model-step p { color: #d4e2df; font-size: 0.96rem; }
.model-note { margin-top: 2.4rem; font-size: 0.9rem; color: #b8cfcb; max-width: 700px; }

/* ---------- Home: fee schedule ---------- */
.fees { padding: 6rem 0 4rem; background: var(--white); }
.fees-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.6rem; }
.fees-head p { max-width: 420px; color: var(--ink-soft); margin: 0; }
.fee-list { display: flex; flex-direction: column; }
.fee-item {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}
.fee-item:nth-child(even) { flex-direction: row-reverse; }
.fee-thumb { flex: 0 0 230px; background-color: var(--fallback); border-radius: var(--radius); overflow: hidden; }
.fee-thumb img { width: 100%; height: 100%; min-height: 170px; }
.fee-body { flex: 1 1 auto; }
.fee-body h3 { margin-bottom: 0.4rem; }
.fee-body p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 0.6rem; }
.fee-body ul { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; color: var(--ink-soft); }
.fee-price {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.6rem;
  padding-left: 1.4rem;
  border-left: 1px dashed var(--line);
}
.fee-item:nth-child(even) .fee-price { border-left: 0; padding-left: 0; border-right: 1px dashed var(--line); padding-right: 1.4rem; }
.price { font-family: var(--serif); font-size: 1.85rem; color: var(--teal-deep); line-height: 1; }
.price small { display: block; font-family: var(--sans); font-size: 0.75rem; color: var(--ink-soft); margin-top: 0.35rem; }
.choose-btn {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--teal);
  background: transparent;
  color: var(--teal);
  border-radius: var(--radius);
  cursor: pointer;
}
.choose-btn:hover, .choose-btn:focus-visible { background: var(--teal); color: var(--white); }
.choose-btn.is-chosen { background: var(--copper); border-color: var(--copper); color: var(--white); }
.fees-foot { margin-top: 1.4rem; font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Home: field notes ---------- */
.notes { padding: 6rem 0; background: var(--paper-deep); }
.notes-row { display: flex; gap: 3rem; align-items: center; }
.notes-visual { flex: 0 0 38%; position: relative; background-color: var(--fallback); align-self: stretch; }
.notes-visual img { width: 100%; height: 100%; min-height: 440px; }
.notes-visual span {
  position: absolute; right: -1.4rem; bottom: 2rem;
  background: var(--volt); color: var(--ink); font-family: var(--mono);
  font-size: 0.78rem; padding: 0.5rem 0.8rem;
}
.notes-quotes { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2.2rem; }
.notes-quotes blockquote { margin: 0; }
.notes-quotes blockquote p { font-family: var(--serif); font-size: 1.28rem; line-height: 1.45; margin-bottom: 0.5rem; }
.notes-quotes blockquote:nth-child(2) { margin-left: 3rem; }
.notes-quotes cite { font-style: normal; font-size: 0.88rem; color: var(--ink-soft); }
.notes-small { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Request form ---------- */
.request { padding: 6rem 0; background: var(--paper); }
.request-box { display: flex; flex-direction: column; gap: 2rem; max-width: 860px; margin: 0 auto; }
.request-intro { text-align: center; max-width: 640px; margin: 0 auto; }
.request-intro p { color: var(--ink-soft); }
.form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  background: var(--white);
  padding: 2.4rem;
  border: 1px solid var(--line);
  border-top: 6px solid var(--teal);
}
.form-step { display: flex; flex-direction: column; gap: 0.5rem; }
.form-step-label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper-dark); }
.form-row { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.field { flex: 1 1 240px; display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.93rem; }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #b9b19f;
  border-radius: var(--radius);
  background: #fdfcf9;
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field .error { color: #a3261b; font-size: 0.84rem; min-height: 1.1em; }
.field.invalid input, .field.invalid select { border-color: #a3261b; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft); }
.consent input { margin-top: 0.3rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.form-actions p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); max-width: 440px; }
.selected-price { font-family: var(--mono); font-size: 0.86rem; color: var(--teal); min-height: 1.2em; }

/* ---------- FAQ ---------- */
.faq { padding: 5rem 0 6rem; background: var(--white); }
.faq-row { display: flex; gap: 4rem; align-items: flex-start; }
.faq-row > div:first-child { flex: 0 0 300px; }
.faq-list { flex: 1 1 auto; display: flex; flex-direction: column; }
.faq-list details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--mono); color: var(--copper); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list summary:hover { color: var(--teal); }
.faq-list details p { margin: 0.8rem 0 0; color: var(--ink-soft); }

/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  background: var(--copper);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 40px;
  box-shadow: 0 8px 24px rgba(15, 26, 28, 0.25);
  transition: opacity 0.25s, transform 0.25s;
}
.float-cta:hover, .float-cta:focus-visible { background: var(--teal-deep); }
.float-cta.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9cfcc; padding: 4rem 0 2rem; font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 3rem; justify-content: space-between; }
.footer-col { flex: 1 1 200px; }
.footer-col h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--volt); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.footer-col a { color: #e6ebe9; text-decoration: none; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--volt); text-decoration: underline; }
.disclaimer {
  margin-top: 2.6rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid #34413f;
  font-size: 0.84rem;
  color: #aeb8b5;
}
.disclaimer strong { color: #e6ebe9; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; font-size: 0.8rem; color: #87918e; }
.email-text { font-family: var(--mono); font-size: 0.92em; user-select: all; }

/* ---------- Inner pages ---------- */
.page-head { padding: 5rem 0 3rem; border-bottom: 1px solid var(--line); }
.page-head p { max-width: 640px; font-size: 1.1rem; color: var(--ink-soft); }
.page-banner { position: relative; height: 380px; background-color: var(--fallback); overflow: hidden; }
.page-banner img { width: 100%; height: 100%; }
.page-banner .banner-label {
  position: absolute; left: 2.4rem; bottom: 0;
  background: var(--paper); padding: 1rem 1.4rem 0.4rem;
  font-family: var(--mono); font-size: 0.8rem; color: var(--copper-dark);
}

.prose { padding: 4rem 0 5rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }

/* About */
.about-split { display: flex; gap: 3.5rem; align-items: flex-start; padding: 5rem 0; }
.about-split > div { flex: 1 1 50%; }
.about-split figure { margin: 0; flex: 1 1 44%; background-color: var(--fallback); }
.about-split img { width: 100%; height: 460px; }
.about-split figcaption { font-size: 0.85rem; color: var(--ink-soft); padding: 0.6rem 0; background: var(--paper); }
.principles { padding: 5rem 0; background: var(--teal-deep); color: #e4ece9; }
.principles h2 { color: var(--white); }
.principle-list { display: flex; flex-wrap: wrap; gap: 0; margin-top: 2rem; }
.principle { flex: 1 1 50%; padding: 1.6rem 2rem 1.6rem 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.principle b { font-family: var(--mono); color: var(--volt); font-weight: 500; font-size: 0.8rem; }
.principle h3 { color: var(--white); margin-top: 0.4rem; }
.principle p { color: #c8d8d5; font-size: 0.96rem; }
.about-mosaic { display: flex; gap: 1.2rem; padding: 5rem 0 2rem; align-items: flex-end; }
.about-mosaic figure { margin: 0; background-color: var(--fallback); }
.about-mosaic figure:first-child { flex: 0 0 58%; }
.about-mosaic figure:first-child img { width: 100%; height: 400px; }
.about-mosaic figure:last-child { flex: 1 1 auto; margin-bottom: -3rem; }
.about-mosaic figure:last-child img { width: 100%; height: 300px; }
.about-closing { padding: 5rem 0 6rem; }
.about-closing .wrap { display: flex; gap: 3rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.about-closing p { max-width: 580px; margin: 0; }

/* Services page */
.svc-table { display: flex; flex-direction: column; margin: 3rem 0; border: 1px solid var(--line); background: var(--white); }
.svc-row { display: flex; align-items: stretch; border-top: 1px solid var(--line); }
.svc-row:first-child { border-top: 0; }
.svc-row > div { padding: 1.4rem 1.4rem; }
.svc-name { flex: 0 0 30%; border-right: 1px solid var(--line); }
.svc-name h3 { margin-bottom: 0.3rem; font-size: 1.18rem; }
.svc-name span { font-family: var(--mono); font-size: 0.78rem; color: var(--copper-dark); }
.svc-detail { flex: 1 1 auto; font-size: 0.95rem; color: var(--ink-soft); }
.svc-detail p:last-child { margin-bottom: 0; }
.svc-cost { flex: 0 0 190px; display: flex; flex-direction: column; justify-content: center; gap: 0.7rem; background: #faf8f3; border-left: 1px solid var(--line); }
.svc-head { background: var(--teal-deep); color: var(--white); font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; }
.svc-head > div { padding: 0.7rem 1.4rem; }
.svc-head .svc-name, .svc-head .svc-cost { background: transparent; border-color: rgba(255, 255, 255, 0.2); }
.svc-extra { display: flex; gap: 3rem; align-items: center; padding: 2rem 0 5rem; }
.svc-extra figure { flex: 0 0 42%; margin: 0; background-color: var(--fallback); }
.svc-extra img { width: 100%; height: 360px; }
.svc-extra > div { flex: 1 1 auto; }

/* Contact page */
.contact-band { display: flex; flex-wrap: wrap; gap: 0; margin: 3rem 0; border-top: 3px solid var(--ink); }
.contact-cell { flex: 1 1 240px; padding: 1.6rem 1.6rem 1.6rem 0; }
.contact-cell + .contact-cell { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.contact-cell h2 { font-size: 1rem; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper-dark); }
.contact-cell p { font-size: 1.1rem; }
.contact-visual { display: flex; gap: 3rem; align-items: center; padding-bottom: 5rem; }
.contact-visual figure { flex: 0 0 48%; margin: 0; background-color: var(--fallback); }
.contact-visual img { width: 100%; height: 380px; }
.contact-visual > div { flex: 1 1 auto; }

/* Thanks */
.thanks { display: flex; gap: 3rem; align-items: center; padding: 6rem 0; }
.thanks > div { flex: 1 1 55%; }
.thanks figure { flex: 1 1 40%; margin: 0; background-color: var(--fallback); }
.thanks img { width: 100%; height: 420px; }
.thanks-service { display: inline-block; background: var(--volt); padding: 0.2rem 0.6rem; font-weight: 600; }
.thanks ol { padding-left: 1.2rem; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: calc(var(--sidebar-w) + 1.4rem);
  bottom: 1.4rem;
  z-index: 90;
  max-width: 480px;
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.3rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--copper);
  box-shadow: 0 14px 36px rgba(15, 26, 28, 0.22);
  font-size: 0.9rem;
}
.cookie.is-visible { display: flex; }
.cookie p { margin: 0; color: var(--ink-soft); }
.cookie-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.55rem 1rem; font-size: 0.88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .fee-item, .fee-item:nth-child(even) { flex-direction: column; }
  .fee-thumb { flex-basis: auto; height: 200px; }
  .fee-price, .fee-item:nth-child(even) .fee-price { flex-basis: auto; flex-direction: row; align-items: center; justify-content: space-between; border: 0; padding: 0; width: 100%; }
  .hero-readout { display: none; }
}

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    overflow: visible;
  }
  .menu-toggle { display: inline-flex; }
  .sidebar-tag, .sidebar-foot { display: none; }
  .side-nav, .side-selection, .side-cta { display: none; width: 100%; }
  .sidebar.is-open .side-nav, .sidebar.is-open .side-selection, .sidebar.is-open .side-cta { display: flex; }
  .sidebar.is-open .side-nav { flex-direction: column; }
  .side-selection { flex-direction: column; }
  .cookie { left: 1rem; right: 1rem; max-width: none; }
  .wrap { padding: 0 1.3rem; }
  .hero { min-height: 72vh; }
  .hero-inner { padding: 0 1.3rem 2.4rem; }
  .scenario-row, .notes-row, .faq-row, .about-split, .svc-extra, .contact-visual, .thanks, .fees-head { flex-direction: column; align-items: stretch; }
  .scenario-aside { margin-top: 0; }
  .scenario-aside figcaption { margin: -2rem 0 0 1rem; }
  .model-steps { flex-direction: column; }
  .model-step + .model-step { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
  .notes-visual img { min-height: 280px; }
  .notes-visual span { right: 1rem; }
  .notes-quotes blockquote:nth-child(2) { margin-left: 0; }
  .faq-row > div:first-child { flex-basis: auto; }
  .form { padding: 1.4rem; }
  .svc-row { flex-direction: column; }
  .svc-name, .svc-cost { border: 0; flex-basis: auto; }
  .svc-head { display: none; }
  .principle { flex-basis: 100%; }
  .about-mosaic { flex-direction: column; align-items: stretch; }
  .about-mosaic figure:last-child { margin-bottom: 0; }
  .contact-cell + .contact-cell { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .float-cta { right: 1rem; bottom: 1rem; }
}
