:root {
  --ink: #182d26;
  --paper: #faf7ee;
  --surface: #fffdf7;
  --muted: #515e54;
  --line: #d7d4c5;
  --coral: #a93429;
  --teal: #245f50;
  --forest: #1c3a31;
  --home-gutter: clamp(18px, 4.4vw, 68px);
  --home-radius: 12px;
}

html, body { overflow-x: visible; }
body { color: var(--ink); }
::selection { background: #f0d1bc; color: var(--ink); }
.wrap { width: min(1280px, calc(100% - 2 * var(--home-gutter))); }
:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #08795e;
  outline-offset: 4px;
}
.contact :focus-visible, .process-band :focus-visible { outline-color: #ffdc81; }
.contact-card :focus-visible { outline-color: #08795e; }
main :is([id], h2) { scroll-margin-top: 105px; }
.home-skip {
  position: fixed;
  z-index: 100;
  inset: 12px auto auto var(--home-gutter);
  transform: translateY(-150%);
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--ink);
}
.home-skip:focus { transform: translateY(0); }

header {
  background: var(--paper);
  border-color: var(--line);
  backdrop-filter: none;
}
header .nav { position: relative; min-height: 76px; gap: 18px; }
.brand { min-width: 0; gap: 5px; }
.brand > span { font-size: 23px; letter-spacing: -.04em; }
.brand small { max-width: none; font-size: 11px; letter-spacing: .08em; }
header nav { gap: clamp(9px, 1vw, 16px); }
header nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
header nav a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 5px; }
header nav .nav-cta { background: var(--forest); color: white; padding-inline: 16px; border-radius: 6px; }
header nav .nav-cta:hover { color: white; }
.nav-tools { gap: 14px; }
.lang-switch { padding: 1px 4px; border-radius: 6px; background: transparent; }
.lang-switch a { display: grid; min-width: 34px; min-height: 44px; place-items: center; padding: 6px; border-radius: 4px; }
.home-menu, .home-menu[hidden] { display: none; }

.hero { background: var(--paper); min-height: auto; display: block; padding: 0; overflow: visible; }
.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 5vw, 84px);
  padding: clamp(52px, 6vw, 102px) 0 42px;
}
.hero-grid > .reveal, .hero h1, .hero p, .hero .hero-actions {
  width: auto;
  max-width: none;
  overflow: visible;
}
.hero h1 {
  margin: 0 0 27px;
  font-size: clamp(41px, 5.6vw, 84px);
  color: var(--ink);
  line-height: 1.09;
  letter-spacing: -.04em;
  text-wrap: balance;
  overflow-wrap: normal;
}
.hero h1 span:first-child { color: var(--teal); }
.hero p { color: var(--muted); font-size: clamp(16px, 1.45vw, 20px); max-width: 32em; line-height: 1.78; }
.hero-actions { align-items: center; gap: 12px; }
.button { border-radius: 6px; font-weight: 750; min-height: 48px; }
.button.primary:hover { background-color: #8e2b22; border-color: #8e2b22; }
.button.secondary:hover { background-color: #e8eade; }
.button.secondary.on-dark:hover { color: var(--forest); }
.hero-actions > a[data-i18n="heroProducts"] {
  padding-inline: 4px;
  background: none;
  border-color: transparent;
  text-underline-offset: 5px;
  text-decoration: underline;
  text-decoration-color: #82958a;
  color: var(--teal);
}
.home-hero-case {
  min-width: 0;
  display: grid;
  background: var(--forest);
  color: #fffaf0;
  border-radius: var(--home-radius);
  overflow: hidden;
}
.home-hero-case img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.36;
  object-fit: cover;
  object-position: center 39%;
}
.home-hero-case > span {
  position: relative;
  display: block;
  min-height: 54px;
  padding: 15px 46px 15px 18px;
  font-weight: 700;
  font-size: 15px;
}
.home-hero-case > span::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  right: 23px;
  top: calc(50% - 5px);
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}
.home-hero-case:hover > span { text-decoration: underline; text-underline-offset: 5px; }
.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 2.1fr);
  gap: 32px;
  min-height: 0;
  padding: 23px 0 28px;
  border: 0;
  border-top: 1px solid var(--line);
  overflow: visible;
}
.hero-panel .signal-card { grid-column: 1; grid-row: 1; margin: 0; padding: 0; }
.signal-card { background: none; color: var(--ink); box-shadow: none; }
.signal-card h2 { font-size: 21px; margin: 0 0 7px; }
.signal-card p { margin: 0; }
.metric-stack { grid-column: 2; grid-row: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; gap: 21px; }
.metric { padding: 0; border: 0; background: none; box-shadow: none; }
.metric strong { font-family: inherit; font-size: 16px; color: var(--teal); }
.metric > span, .hero-panel .signal-card p { font-size: 13px; line-height: 1.6; font-weight: 500; color: var(--muted); }

main > section:not(.hero) { padding-block: clamp(58px, 7vw, 106px); }
.section-head { gap: 30px; margin-bottom: 34px; align-items: end; }
.section-head h2 { text-wrap: balance; letter-spacing: -.025em; }
.section-head p { max-width: 45ch; font-size: clamp(15px, 1.5vw, 18px); }
#pain { background: #eaece1; border-block: 1px solid var(--line); }
#solution, #fit, #answers { background: #f0eee4; }
#services, #pricing, #guides { background: var(--paper); }
#products { background: #e9ede4; }
#cases { background: #fffdf7; }
.trust-grid, .why-grid, .services { gap: clamp(16px, 2.7vw, 40px); }
.trust-card, .why-card, .service {
  background: none;
  border: 0;
  border-top: 1px solid #a7b5a3;
  border-radius: 0;
  box-shadow: none;
  padding: 20px 0 0;
  min-height: 0;
}
.trust-card strong { color: var(--ink); font-family: inherit; font-size: 20px; line-height: 1.35; }
.trust-card span { font-weight: 500; }
.service > b { background: var(--forest) !important; border-radius: 6px; }
.service-page-links a, .case-filters button, .case-link { min-height: 44px; }
.case-link { align-items: center; }
.case-filters { margin-top: 0; }
.case-filters button[aria-pressed="true"] { background: var(--forest); }
.featured-cases { margin-bottom: 26px; }
.featured-case, .case-card, .answer-card, .product-card, .price-card, .fit-card {
  border-radius: var(--home-radius);
  box-shadow: none;
}
.featured-case { background: #e8eee3; border: 1px solid #cfd8ca; }
.featured-copy, .featured-copy .case-details dd { color: var(--ink); }
.featured-copy span, .featured-copy .case-details dt { color: var(--teal); }
.featured-copy .case-details > div { border-color: #c5d4c8; }
.featured-copy .case-link { color: var(--coral); }
.featured-copy > span { display: none; }
.featured-case img, .case-card img { height: auto; aspect-ratio: 1.55; object-fit: contain; background: #edebe2; }
.featured-case:hover, .case-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px #162e2612; }
.answer-card { border-top: 2px solid #aec1ad; }
.product-card, .product-card > *, .price-card { min-width: 0; }
.product-preview { margin: 0; }
.product-card .hero-actions .button { width: auto; max-width: 100%; min-height: 44px; }
.youtube-preview div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.youtube-preview strong { color: var(--coral); }
.pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price-card strong {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.18;
  white-space: normal;
  overflow-wrap: anywhere;
}
.price-card .price-formula { font-size: clamp(22px, 2.35vw, 34px); }
.process-band, .contact { background: var(--forest); }
.step:focus-visible { outline: 3px solid #ffdc81; outline-offset: -4px; }
.contact p { color: #e3eee2; }
.contact-card { background: var(--surface); color: var(--ink); border-radius: var(--home-radius); box-shadow: none; }
.contact-card :is(p, a) { color: var(--muted); }
.lead-form label { color: var(--ink); }
.lead-form :is(input, select, textarea) { border-color: #a4ad9f; }
.lead-form :is(input, select, textarea):focus-visible { outline-color: #08795e; }
.lead-form .form-error { color: var(--coral); }
.lead-form .button[disabled] { cursor: not-allowed; }
footer { padding: 30px 0; }
footer > [data-creator-recruitment-entry] { width: min(1280px, calc(100% - 2 * var(--home-gutter))); margin: 4px auto 0; }
footer a { text-decoration: underline; text-underline-offset: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-grid { animation: home-enter .56s cubic-bezier(.2,.75,.3,1) both; }
  :is(.button, .home-hero-case) { transition: transform .18s ease, background-color .18s ease; }
  :is(.button, .home-hero-case):hover { transform: translateY(-2px); }
  :is(.button, .home-hero-case):active { transform: translateY(0); }
}
@keyframes home-enter {
  from { transform: translateY(8px); }
  to { transform: translateY(0); }
}

@media (max-width: 1230px) {
  .home-menu:not([hidden]) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 15px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  .home-menu:not([hidden]) + .nav-tools {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: none;
    margin: 0;
    padding: 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0 0 var(--home-radius) var(--home-radius);
    box-shadow: 0 16px 24px #182d2615;
    max-height: calc(100svh - 77px);
    overflow: auto;
  }
  .home-menu[aria-expanded="true"]:not([hidden]) + .nav-tools { display: block; }
  header nav { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 12px; }
  header .lang-switch a:not([aria-current]) { display: grid; }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
  .hero h1 { font-size: clamp(36px, 5.8vw, 58px); }
  .hero-panel { grid-template-columns: 1fr; gap: 20px; }
  .hero-panel .signal-card, .metric-stack { grid-column: auto; grid-row: auto; }
  .trust-grid, .why-grid, .featured-cases, .case-grid, .answer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-head { gap: 14px; }
  .product-grid, .product-card, .pricing { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 42px; padding-bottom: 25px; }
  .hero h1 { font-size: clamp(35px, 10.8vw, 62px); margin-bottom: 17px; }
  .hero .hero-actions { display: flex; justify-items: initial; gap: 8px 14px; margin-top: 18px; }
  .hero .hero-actions .button { width: auto; max-width: 100%; flex: none; padding-inline: 12px; font-size: 14px; }
  .hero .hero-actions .primary { width: 100%; }
  .hero .hero-actions > a[data-i18n="heroProducts"] { padding-inline: 4px; }
  .home-hero-case img { aspect-ratio: 1.52; }
  .hero-panel { padding-top: 18px; }
  .metric-stack { grid-template-columns: 1fr; gap: 12px; }
  .metric { border-top: 1px solid var(--line); padding-top: 12px; }
  .metric > span { margin-top: 4px; }
  .trust-grid, .why-grid, .featured-cases, .case-grid, .answer-grid { grid-template-columns: 1fr; }
  .case-filters { gap: 8px; }
  .case-filters button { padding: 6px 11px; }
  .product-card { padding: 18px; }
  .product-card .hero-actions { justify-items: stretch; }
  .product-card .hero-actions .button { width: 100%; }
  .brand > span { font-size: 21px; }
  .brand small { overflow-wrap: anywhere; }
}
