:root {
  --paper: #f3f1eb;
  --ink: #18211e;
  --muted: #5d6762;
  --line: #ddd8ce;
  --coral: #f26b62;
  --coral-deep: #e45c54;
  --teal: #1c7f73;
  --teal-soft: #8fd0c4;
  --black: #000;
  --light: #f6f3ee;
  --dim: #b7c2bc;
  --font: "Familjen Grotesk", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
::selection { background: var(--coral); color: #1c110f; }
p { margin: 0; color: var(--muted); }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(44px, 6vw, 76px); color: var(--light); }
h2 { font-size: clamp(32px, 4vw, 48px); color: var(--ink); }
h3 { font-size: 22px; letter-spacing: -.03em; color: var(--ink); }

.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 70;
  pointer-events: none;
}
.skip {
  position: fixed;
  left: 16px;
  top: -48px;
  background: var(--light);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }

#header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
#header.scrolled { border-bottom-color: rgba(255, 255, 255, .14); }
.nav { height: 76px; display: flex; align-items: center; gap: 24px; }
.brand { position: relative; display: block; width: 200px; height: 50px; overflow: hidden; flex-shrink: 0; }
.brand img {
  position: absolute;
  width: 250px;
  height: auto;
  max-width: none;
  left: -26px;
  top: -38px;
  mix-blend-mode: lighten;
}
#navigation { display: flex; align-items: center; gap: 28px; margin-left: auto; }
#navigation a:not(.button) {
  position: relative;
  color: var(--dim);
  font-size: 15px;
  font-weight: 500;
}
#navigation a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
#navigation a:not(.button):hover { color: white; }
#navigation a:not(.button):hover::after { transform: scaleX(1); }
.menu { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--coral);
  color: #1c110f;
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background .2s ease;
}
.button:hover { background: var(--coral-deep); }
.button.small { padding: 10px 14px; font-size: 14px; }
.text-link {
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  width: fit-content;
}
.text-link:hover { color: var(--teal); }

p.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
}
p.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
}
.hero p.kicker, .operation p.kicker, .final-cta p.kicker { color: var(--teal-soft); }

.hero { background: var(--black); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 64px;
  align-items: end;
  padding: 72px 0 80px;
}
.hero .lede { max-width: 42ch; margin-top: 22px; color: var(--dim); font-size: 18px; line-height: 1.6; }
.actions { display: flex; align-items: center; gap: 22px; margin-top: 32px; }
.hero .text-link { color: var(--light); }
.hero .text-link:hover { color: var(--teal-soft); }
.hero-note { margin-top: 28px; color: var(--dim); font-size: 14px; }
.hero-index p { color: var(--dim); font-size: 14px; margin-bottom: 6px; }
.hero-index ol { list-style: none; margin: 0; padding: 0; }
.hero-index li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  color: var(--light);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -.03em;
}
.hero-index span { color: var(--coral); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.hero-copy > *,
.hero-index p,
.hero-index li { animation: enter .85s var(--ease) both; }
.hero-copy > *:nth-child(1) { animation-delay: .04s; }
.hero-copy > *:nth-child(2) { animation-delay: .1s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .22s; }
.hero-copy > *:nth-child(5) { animation-delay: .28s; }
.hero-index p { animation-delay: .18s; }
.hero-index li:nth-child(1) { animation-delay: .24s; }
.hero-index li:nth-child(2) { animation-delay: .3s; }
.hero-index li:nth-child(3) { animation-delay: .36s; }
.hero-index li:nth-child(4) { animation-delay: .42s; }
.hero-index li:nth-child(5) { animation-delay: .48s; }
.hero p.kicker::before { animation: draw .6s .12s var(--ease) both; }

.section { padding: 104px 0; }
.section + .section { border-top: 1px solid var(--line); }
.operation.section { border-top: 0; }
.section-head {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head > p { max-width: 36ch; font-size: 16px; }

.discovery {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px 72px;
  align-items: start;
}
.discovery-copy { padding-top: 36px; }
.discovery-copy p + p { margin-top: 16px; }
.channel-list, .note { grid-column: 1 / -1; }
.channel-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 24px;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.channel-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.02em;
}
.note { margin-top: 14px; font-size: 13px; }
.region-label { margin-top: 48px; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.city-list { margin-top: 0; }
.region .note { max-width: 72ch; }
.system .note { max-width: 68ch; margin-top: 28px; }

.service-lead, .service {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px 28px;
  align-items: end;
}
.service-lead { padding: 28px 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-lead h3 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 12px; }
.service-lead p, .service p { font-size: 15px; max-width: 62ch; }
.service-lead ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.service-lead li { color: var(--ink); font-size: 15px; }
.service-lead li::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 1px;
  margin-right: 10px;
  background: var(--coral);
  vertical-align: middle;
}
.service-lead small { display: block; margin-top: 16px; color: var(--muted); font-size: 13px; }
.service { padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.service h3 { margin-bottom: 6px; transition: color .2s ease; }
.service:hover h3 { color: var(--teal); }
.service-no { color: var(--teal); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 6px; }

.operation { background: var(--black); color: var(--light); }
.operation h2, .operation h3 { color: var(--light); }
.operation .section-head > p, #flow-panel p { color: var(--dim); }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.index-grid.three { grid-template-columns: repeat(3, 1fr); }
.formula {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 40px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.formula span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}
.flow button {
  text-align: left;
  color: var(--dim);
  font-size: 14px;
  font-weight: 500;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  transition: color .2s ease, border-color .2s ease;
}
.flow button span { display: block; margin-bottom: 8px; color: #6f847c; font-size: 12px; font-weight: 600; }
.flow button[aria-selected="true"], .flow button:hover { color: white; }
.flow button[aria-selected="true"] { border-bottom-color: var(--coral); }
.flow button[aria-selected="true"] span { color: var(--coral); }
#flow-panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 28px 48px;
  margin-top: 32px;
  min-height: 150px;
}
.step-number, .flow-tag { color: var(--teal-soft); font-size: 13px; font-weight: 600; }
#flow-panel h3 { margin: 10px 0 16px; font-size: 28px; }
.flow-tag { display: block; }
#flow-panel.swap { animation: enter .45s var(--ease); }

.index-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.index-grid article { border-top: 1px solid var(--line); padding-top: 18px; }
.index-grid span { display: block; margin-bottom: 20px; color: var(--teal); font-size: 13px; font-weight: 600; }
.index-grid h3 { margin-bottom: 10px; font-size: 20px; }
.index-grid p { font-size: 15px; }

.about-grid, .diagnostic, .faq {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.faq { grid-template-columns: .75fr 1.25fr; }
.about-copy p + p, .diagnostic-copy > p + p, .faq-intro p + p { margin-top: 16px; }
.diagnostic-copy > p:not(.kicker), .faq-intro > p:not(.kicker) { margin-top: 18px; }
p.pull, p.contact-note { color: var(--ink); font-weight: 500; }
p.pull { margin-top: 28px; font-size: 22px; line-height: 1.35; letter-spacing: -.02em; }
p.contact-note { margin-top: 28px; max-width: 28ch; }

form { display: grid; gap: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.full { grid-column: span 2; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
label span { color: var(--coral); }
.optional { color: var(--muted); font-weight: 500; }
input, select {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #c9c3b6;
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 16px;
  color: var(--ink);
}
input::placeholder { color: #8a847a; }
select { padding-right: 8px; }
input:focus, select:focus { outline: none; border-bottom-color: var(--coral); }
input:focus-visible, select:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }
.privacy-note { margin-top: 18px; font-size: 13px; line-height: 1.6; }
.privacy-note a { text-decoration: underline; text-underline-offset: 3px; }
.submit { width: 100%; margin-top: 18px; border: 0; min-height: 48px; }
p.direct-contact { margin-top: 22px; font-size: 15px; }
p.direct-contact a { color: var(--ink); font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
p.direct-contact a:hover { color: var(--teal); }
.submit:disabled { opacity: .65; cursor: wait; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#form-status { margin-top: 12px; font-size: 14px; }
#form-status:empty { display: none; }
[data-state="error"] { color: #a53c31; }
[data-state="success"] { color: #1f6b45; }

.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
summary {
  position: relative;
  padding: 20px 36px 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::before, summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  background: currentColor;
}
summary::before { width: 1px; height: 13px; transform: translateY(-50%); transition: opacity .2s ease; }
summary::after { width: 13px; height: 1px; right: 0; }
details[open] summary::before { opacity: 0; }
details p { padding: 0 36px 18px 0; font-size: 15px; max-width: 68ch; }

.final-cta { background: var(--black); color: var(--light); padding: 96px 0 88px; }
.final-cta h2 { color: var(--light); max-width: 14em; margin-bottom: 32px; }
footer { background: var(--black); color: var(--dim); border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-top { padding: 32px 0; }
.footer-top p { color: var(--dim); font-size: 14px; }
.footer-top nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.footer-top a:hover, .footer-bottom a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0 28px; font-size: 13px; }

.privacy-page { max-width: 760px; padding: 72px 0 96px; }
.privacy-page h1 { color: var(--ink); font-size: clamp(36px, 5vw, 56px); margin: 12px 0 8px; }
.privacy-page h2 { font-size: 26px; margin-top: 36px; }
.privacy-page p { color: var(--ink); margin-top: 12px; font-size: 16px; }
.privacy-page > a:first-of-type { font-weight: 600; font-size: 14px; }
.privacy-page .button { margin-top: 32px; }

@keyframes enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

html.js [data-animate]:not(.stagger) {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.js [data-animate]:not(.stagger).in { opacity: 1; transform: none; }
html.js .in p.kicker::before { animation: draw .55s .1s var(--ease) both; }
html.js .stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
html.js .stagger.in > * { opacity: 1; transform: none; }
html.js .stagger.in > *:nth-child(2) { transition-delay: .06s; }
html.js .stagger.in > *:nth-child(3) { transition-delay: .12s; }
html.js .stagger.in > *:nth-child(4) { transition-delay: .18s; }
html.js .stagger.in > *:nth-child(5) { transition-delay: .24s; }
html.js .stagger.in > *:nth-child(6) { transition-delay: .3s; }
html.js .stagger.in > *:nth-child(7) { transition-delay: .36s; }
html.js .stagger.in > *:nth-child(8) { transition-delay: .42s; }

@media (max-width: 980px) {
  .wrap { width: calc(100% - 48px); }
  .hero-grid, .discovery, .section-head, .about-grid, .diagnostic, .faq, #flow-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .discovery-copy { padding-top: 0; }
  .channel-list, .index-grid, .index-grid.three { grid-template-columns: 1fr 1fr; }
  .formula { flex-wrap: wrap; }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .service-lead, .service { grid-template-columns: 42px minmax(0, 1fr); }
  .service-lead .text-link { grid-column: 2; grid-row: 2; justify-self: start; }
  .section { padding: 80px 0; }
}

@media (max-width: 760px) {
  .menu {
    display: block;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 4px;
    position: relative;
  }
  .menu span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 1.5px;
    background: white;
    transition: transform .25s ease, top .25s ease;
  }
  .menu span:first-child { top: 17px; }
  .menu span:last-child { top: 25px; }
  .menu[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(40deg); }
  .menu[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-40deg); }
  #navigation { display: none; }
  #navigation.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px 24px 28px;
    background: var(--black);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }
  #navigation.open a:not(.button) { font-size: 18px; }
  .nav { height: 68px; }
  .brand { width: 160px; height: 40px; }
  .brand img { width: 200px; left: -21px; top: -30px; }
  .hero-grid { padding: 40px 0 48px; }
  .hero .lede { font-size: 16px; }
  .actions { flex-wrap: wrap; gap: 16px; }
  .channel-list, .index-grid, .index-grid.three, .form-grid, .flow { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-top nav { margin-left: 0; flex-wrap: wrap; }
  .footer-bottom span:nth-child(2) { display: none; }
  .section { padding: 64px 0; }
  .final-cta { padding: 72px 0; }
  .wrap { width: calc(100% - 40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js [data-animate], html.js .stagger > * { opacity: 1 !important; transform: none !important; }
}
