/* MSA Connect — styles
   1. Fonts & tokens   2. Base   3. Buttons & links   4. Header & menu
   5. Hero   6. Showroom   7. Sections   8. Pricing   9. Contact & form
   10. Footer   11. Simple pages   12. Motion & reduced motion */

/* 1. Fonts & tokens ------------------------------------------------ */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-normal.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-normal.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f0e8;
  --paper-bright: #fbf9f4;
  --surface: #e9e4d9;
  --ink: #151714;
  --muted: #5d6058;
  --green: #174c3c;
  --green-dark: #0f3a2d;
  --soft: #dce6df;
  --line: rgba(21, 23, 20, 0.14);
  --line-strong: rgba(21, 23, 20, 0.5);
  --on-dark-muted: rgba(243, 240, 232, 0.68);
  --error: #a1261b;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 64px;
  --radius: 8px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --section: clamp(84px, 11vw, 148px);
}

/* 2. Base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
em { font-style: italic; }
[hidden] { display: none !important; }
::selection { background: var(--green); color: var(--paper); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.kicker { color: var(--muted); font-size: 0.95rem; }
.h2 { font-size: clamp(2.2rem, 3.9vw + 0.7rem, 4.1rem); line-height: 1.02; }
.h3 { font-size: clamp(1.45rem, 1.2vw + 1.1rem, 1.9rem); line-height: 1.12; }
.lead { max-width: 36ch; margin-top: 1.1rem; font-size: clamp(1.08rem, 0.4vw + 1rem, 1.25rem); color: var(--muted); }

.tag {
  display: inline-block;
  padding: 5px 9px 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font: 600 0.78rem/1 var(--sans);
  letter-spacing: 0.02em;
  vertical-align: 0.12em;
}
.tag-light { color: var(--paper); }

/* 3. Buttons & links ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-large { min-height: 56px; padding: 0 26px; font-size: 1.05rem; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--green); color: var(--paper); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--green); }
.btn-light:hover { background: var(--paper-bright); }
.btn-light:focus-visible, .inquiry :focus-visible, .showroom :focus-visible, .site-footer :focus-visible { outline-color: var(--paper); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.25s;
}
.text-link:hover { text-decoration-color: transparent; }

/* 4. Header & menu -------------------------------------------------- */
.prelaunch {
  padding: 10px var(--gutter);
  background: #f2c94c;
  color: var(--ink);
  font-size: 0.92rem;
  text-align: center;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(243, 240, 232, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line); }
.site-header.is-static { position: relative; }
.header-row { height: 100%; display: flex; align-items: center; gap: 2rem; }

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  min-height: 44px;
  align-items: center;
  font: 600 1.35rem/1 var(--serif);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark em { font-weight: 400; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 1.75rem; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.97rem;
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }
.nav a[aria-current="true"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.menu-button, .menu-close {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-lines { display: grid; gap: 6px; width: 22px; }
.menu-lines span { display: block; height: 1.5px; background: currentColor; }
.close-x { position: relative; width: 20px; height: 20px; }
.close-x::before, .close-x::after {
  content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 1.5px; background: currentColor;
}
.close-x::before { transform: rotate(45deg); }
.close-x::after { transform: rotate(-45deg); }

.menu {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom));
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.menu[open] { display: flex; flex-direction: column; }
.menu::backdrop { background: rgba(21, 23, 20, 0.4); }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.menu-close { display: grid; }
.menu-links { margin-top: 1.5rem; }
.menu-links a {
  display: block;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font: 400 clamp(1.9rem, 7vw, 2.4rem)/1.2 var(--serif);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.menu-foot { margin-top: auto; display: grid; gap: 0.75rem; padding-top: 2rem; }

@media (max-width: 860px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-button { display: grid; }
}
@media (max-width: 480px) {
  .header-row { gap: 0.75rem; }
  .header-actions { gap: 0.25rem; }
  .header-cta { padding: 0 14px; }
  .wordmark { font-size: 1.2rem; }
  .menu-button { margin-right: -8px; }
}

/* 5. Hero ------------------------------------------------------------ */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; gap: 3rem; }
.hero-title {
  margin-top: 1rem;
  font-size: clamp(2.7rem, 6.2vw + 0.6rem, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-title .line > span { display: block; }
.hero-title em { color: var(--green); }
.hero-lead { max-width: 34ch; margin-top: 1.6rem; font-size: clamp(1.12rem, 0.5vw + 1rem, 1.3rem); color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 2rem; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-facts dt { color: var(--muted); font-size: 0.85rem; }
.hero-facts dd { margin-top: 0.15rem; font: 500 1.15rem/1.25 var(--serif); }

.hero-demo { position: relative; justify-self: center; width: min(100%, 360px); }
.hero-demo::before {
  content: "";
  position: absolute;
  inset: 8% -4% 14% 18%;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: var(--soft);
}
.phone {
  width: min(78%, 290px);
  margin-inline: auto;
  padding: 9px;
  border-radius: 38px;
  background: var(--ink);
  box-shadow: 0 30px 60px -28px rgba(21, 23, 20, 0.45);
}
.phone img { width: 100%; border-radius: 30px; }
.hero-demo figcaption { margin-top: 1.25rem; color: var(--muted); font-size: 0.92rem; text-align: center; }
.hero-demo figcaption a { color: var(--ink); text-underline-offset: 4px; }
.hero-demo .tag { margin-right: 0.35rem; color: var(--green); }

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 0 2rem; }
  .hero-copy { grid-column: 1 / 8; }
  .hero-demo { grid-column: 9 / 13; justify-self: end; }
  .hero-demo::before { right: -10%; }
  .hero-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 6. Showroom -------------------------------------------------------- */
.showroom {
  padding-top: var(--section);
  padding-bottom: var(--section);
  background: var(--ink);
  color: var(--paper);
}
.showroom-head { display: grid; gap: 1.5rem; }
.showroom-intro { display: grid; gap: 1rem; max-width: 34rem; color: var(--on-dark-muted); font-size: 1.08rem; }
.showroom-intro p:nth-child(2) { color: var(--paper); }
.muted-light { color: var(--on-dark-muted); font-size: 0.95rem; }
@media (min-width: 900px) {
  .showroom-head { grid-template-columns: 7fr 5fr; align-items: end; gap: 3rem; }
}

.tour { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); }
.tour-sticky { display: flex; align-items: center; padding-block: 1rem; }
/* Scroll-driven version: only once script.js is running and motion is welcome */
.js .tour.is-live { height: 280vh; }
.js .tour.is-live .tour-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  padding-block: 0;
}
.tour-grid { display: grid; align-items: center; gap: 2rem; }

.tour-notes { counter-reset: note; display: grid; gap: 0.2rem; }
.tour-notes li {
  counter-increment: note;
  position: relative;
  padding: 0.7rem 0 0.7rem 2.6rem;
  color: var(--on-dark-muted);
  font: 400 1.15rem/1.35 var(--serif);
  transition: color 0.4s var(--ease);
}
.tour-notes li::before {
  content: "0" counter(note);
  position: absolute;
  left: 0;
  top: 0.95rem;
  font: 500 0.78rem/1 var(--sans);
  letter-spacing: 0.04em;
}
.tour-notes li.is-active { color: var(--paper); }
.tour-notes li.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.35rem;
  width: 1.6rem;
  height: 1px;
  background: var(--paper);
}

.device { display: grid; justify-items: center; }
.browser {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #0b0c0e;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(243, 240, 232, 0.12);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 40px;
  padding: 0 14px;
  background: #e7e3da;
  color: #55584f;
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #c9c4b9; }
.address {
  flex: 1;
  max-width: 420px;
  margin-inline: auto;
  padding: 5px 12px;
  border-radius: 6px;
  background: #f6f3ec;
  font-size: 0.8rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-view {
  position: relative;
  height: calc(100vh - var(--header-h) - 140px);
  height: calc(100svh - var(--header-h) - 140px);
  max-height: 640px;
  min-height: 320px;
  overflow: hidden;
  background: #0b0c0e;
}
.tour-img { width: 100%; }
.tour.is-live .tour-img { will-change: transform; }
/* Without the scroll effect, the frame is simply scrollable, and every note is shown */
.tour:not(.is-live) .browser-view { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(243, 240, 232, 0.35) transparent; }
.tour:not(.is-live) .tour-notes li { color: var(--paper); }
.tour:not(.is-live) .tour-notes li.is-active::after { display: none; }
.browser-view:focus-visible { outline: 3px solid var(--paper); outline-offset: -3px; }

@media (min-width: 760px) {
  .tour-grid { grid-template-columns: 4fr 8fr; gap: clamp(2rem, 4vw, 4rem); }
}

/* Phones: the browser becomes a phone, one note at a time */
@media (max-width: 759px) {
  .js .tour.is-live { height: 240vh; }
  .tour-grid { justify-items: center; gap: 1rem; }
  .tour-notes { order: 2; min-height: 3.2em; text-align: center; }
  .tour-notes li { display: none; padding: 0; font-size: 1.05rem; }
  .tour-notes li::before, .tour-notes li.is-active::after { display: none; }
  .tour-notes li.is-active { display: block; }
  .tour:not(.is-live) .tour-notes { order: 0; min-height: 0; }
  .tour:not(.is-live) .tour-notes li { display: block; margin-bottom: 0.5rem; }
  .browser {
    width: min(74vw, 290px);
    padding: 8px;
    border-radius: 34px;
    background: #000;
    box-shadow: 0 0 0 1px rgba(243, 240, 232, 0.18), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  }
  .browser-bar { display: none; }
  .browser-view {
    height: calc(100svh - var(--header-h) - 150px);
    max-height: 600px;
    min-height: 360px;
    border-radius: 26px;
  }
}

/* Before / after */
.compare-block { display: grid; gap: 2rem; margin-top: clamp(5rem, 10vw, 8rem); }
.compare-copy { max-width: 34rem; }
.compare-copy p { margin-top: 1rem; color: var(--on-dark-muted); }
.compare-copy .note { font-size: 0.92rem; }
.compare-frame {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: #26282a;
  box-shadow: 0 0 0 1px rgba(243, 240, 232, 0.12);
}
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.compare-label {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(21, 23, 20, 0.78);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
}
.compare-label-before { left: 12px; }
.compare-label-after { right: 12px; background: var(--green); }

.compare-control { display: block; margin-top: 0.75rem; }
.compare-control input {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.compare-control input::-webkit-slider-runnable-track { height: 2px; background: rgba(243, 240, 232, 0.35); border-radius: 2px; }
.compare-control input::-moz-range-track { height: 2px; background: rgba(243, 240, 232, 0.35); border-radius: 2px; }
.compare-control input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 40px;
  height: 40px;
  margin-top: -19px;
  border: 0;
  border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151714' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.compare-control input::-moz-range-thumb {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151714' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.compare-control input:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; }
@media (min-width: 900px) {
  .compare-block { grid-template-columns: 4fr 8fr; align-items: center; gap: 4rem; }
}

.live-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: clamp(3rem, 6vw, 4.5rem); color: var(--on-dark-muted); }

/* 7. Sections -------------------------------------------------------- */
/* Offer */
.offer-grid { display: grid; gap: 2.5rem; }
.offer-lists { display: grid; gap: 2.5rem; }
.list-title { font: 600 0.95rem/1.3 var(--sans); letter-spacing: 0; color: var(--muted); margin-bottom: 0.75rem; }
.rule-list li { padding: 0.9rem 0; border-top: 1px solid var(--line); font-size: 1.07rem; }
.rule-list li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .offer-lists { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (min-width: 1000px) {
  .offer-grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .offer-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Who we build for */
.for { background: var(--surface); }
.trades {
  max-width: 22em;
  margin-top: clamp(2rem, 4vw, 3rem);
  font: 400 clamp(1.75rem, 3.4vw + 0.5rem, 3.3rem)/1.2 var(--serif);
  letter-spacing: -0.02em;
}
.trades span { white-space: nowrap; }
.trades em { color: var(--green); }
.for-note { max-width: 40ch; margin-top: 2rem; color: var(--muted); font-size: 1.1rem; }

/* Process */
.steps { counter-reset: step; display: grid; gap: 0 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.steps li { position: relative; display: grid; grid-template-columns: 3rem 1fr; align-content: start; column-gap: 1rem; padding-block: 1.75rem; border-top: 1px solid var(--line); }
.step-num { grid-row: span 2; font: italic 400 2.6rem/0.9 var(--serif); color: var(--green); }
.steps h3 { font-size: 1.35rem; line-height: 1.2; }
.steps p { margin-top: 0.6rem; color: var(--muted); }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .step-num { grid-row: auto; margin-bottom: 1.25rem; font-size: 3.4rem; }
}

/* Trust */
.trust-grid { display: grid; gap: 2.5rem; }
.rules { counter-reset: rule; }
.rules li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  font: 400 clamp(1.15rem, 0.6vw + 1rem, 1.4rem)/1.35 var(--serif);
}
.rules li::before { content: counter(rule); color: var(--green); font-style: italic; }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.zeros { display: grid; gap: 1.5rem; }
.zeros li { display: flex; align-items: baseline; gap: 0.9rem; color: var(--muted); font-size: 1.05rem; }
.zero { font: 400 clamp(3.4rem, 5vw, 5rem)/0.8 var(--serif); color: var(--green); }
@media (min-width: 1000px) {
  .trust-grid { grid-template-columns: 5fr 7fr; gap: 1rem 4rem; }
  .trust-grid .h2 { grid-row: span 2; align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); }
  .zeros { grid-template-columns: repeat(3, 1fr); margin-top: 1.5rem; }
  .zeros li { flex-direction: column; gap: 0.6rem; }
}

/* Founder */
.founder { background: var(--surface); }
.founder-grid { display: grid; gap: 2rem; }
.founder .h2 { margin-top: 0.75rem; }
.letter { max-width: 36rem; }
.letter p + p { margin-top: 1rem; }
.letter-lead { font: 400 clamp(1.5rem, 1.6vw + 1rem, 2.1rem)/1.25 var(--serif); letter-spacing: -0.015em; }
.letter p:not(.letter-lead):not(.signature):not(.signature-role) { color: #33362f; font-size: 1.08rem; }
.signature { margin-top: 2rem !important; font: italic 400 2.6rem/1 var(--serif); color: var(--green); }
.signature-role { margin-top: 0.4rem !important; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 1000px) { .founder-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }

/* FAQ */
.faq-grid { display: grid; gap: 2.5rem; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 64px;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  font: 400 clamp(1.15rem, 0.6vw + 1rem, 1.4rem)/1.3 var(--serif);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--green); }
.faq-list details p { max-width: 60ch; padding-bottom: 1.4rem; color: var(--muted); }
@media (min-width: 1000px) {
  .faq-grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .faq-grid .h2 { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* 8. Pricing --------------------------------------------------------- */
.pricing { background: var(--soft); }
.pricing-head .lead { color: #3f4a44; }
.plans { display: grid; gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1.5px solid rgba(21, 23, 20, 0.2);
  border-radius: var(--radius-lg);
}
.plan-main { background: var(--paper-bright); border-color: var(--ink); }
.plan-flag { color: var(--green); font-size: 0.92rem; font-weight: 600; }
.plan h3 { margin-top: 0.4rem; font-size: 1.7rem; }
.price { display: flex; align-items: baseline; gap: 0.45rem; margin-top: 1.25rem; }
.price .from, .price .cur { color: var(--muted); font-size: 0.95rem; }
.price .amount { font: 400 clamp(3.2rem, 4vw + 1.5rem, 4.6rem)/0.9 var(--serif); letter-spacing: -0.03em; }
.check-list { flex: 1; display: grid; align-content: start; gap: 0.1rem; margin: 1.5rem 0 1.75rem; }
.check-list li { position: relative; padding: 0.55rem 0 0.55rem 1.9rem; border-top: 1px solid var(--line); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.95rem;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg);
}
.assurances { display: grid; gap: 0.75rem; margin-top: 2rem; }
.assurances li { padding-left: 1rem; border-left: 2px solid var(--green); }
.costs { display: grid; gap: 1.5rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid rgba(21, 23, 20, 0.18); }
.costs-body > p { max-width: 50ch; }
.costs-list { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.costs-list dt { font-weight: 600; }
.costs-list dd { margin-top: 0.2rem; color: #3f4a44; max-width: 56ch; }
@media (min-width: 800px) {
  .plans { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .assurances { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}
@media (min-width: 1000px) { .costs { grid-template-columns: 5fr 7fr; gap: 4rem; } }

/* 9. Contact & form -------------------------------------------------- */
.inquiry { background: var(--green); color: var(--paper); }
.inquiry-grid { display: grid; gap: 3rem; }
.kicker-light { color: rgba(243, 240, 232, 0.78); }
.inquiry .h2 { margin-top: 0.75rem; }
.inquiry .lead { color: rgba(243, 240, 232, 0.85); margin-bottom: 2rem; }
.inquiry-note { max-width: 40ch; margin-top: 0.9rem; color: rgba(243, 240, 232, 0.78); font-size: 0.92rem; }
.direct { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(243, 240, 232, 0.25); color: rgba(243, 240, 232, 0.85); }
.direct ul { display: grid; gap: 0.1rem; margin-top: 0.4rem; }
.direct a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); font-weight: 600; text-underline-offset: 5px; overflow-wrap: anywhere; }
.fr { margin-top: 1.25rem; font-style: italic; }

.contact-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
}
.contact-card :focus-visible { outline-color: var(--green); }
.contact-intro { margin-top: 0.5rem; color: var(--muted); }
.contact-form { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field label { display: block; margin-bottom: 0.35rem; font-size: 0.92rem; font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-bright);
  color: var(--ink);
  font: 400 16px/1.4 var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(21, 23, 20, 0.45); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 76, 60, 0.18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: 0.35rem; color: var(--error); font-size: 0.88rem; }
.field-error:empty { display: none; }
.contact-form button[disabled] { opacity: 0.7; cursor: progress; }
.form-status { font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.is-notice { padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.form-status.is-error { padding: 0.9rem 1rem; border-radius: var(--radius); background: #f6e3df; color: var(--error); }
.form-status a { font-weight: 600; }
.form-legal { color: var(--muted); font-size: 0.85rem; }
@media (min-width: 1000px) { .inquiry-grid { grid-template-columns: 6fr 6fr; gap: 5rem; align-items: start; } }

/* 10. Footer --------------------------------------------------------- */
.site-footer { padding-block: 4rem 2.5rem; background: var(--ink); color: var(--paper); }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand p { margin-top: 0.4rem; color: var(--on-dark-muted); }
.footer-contact, .footer-links { display: grid; align-content: start; color: var(--on-dark-muted); }
.footer-contact li, .footer-links li { min-height: 40px; display: flex; align-items: center; }
.footer-contact a, .footer-links a { color: var(--paper); text-decoration: none; }
.footer-contact a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(243, 240, 232, 0.16); color: var(--on-dark-muted); font-size: 0.88rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* 11. Simple pages (404, thanks, privacy) ----------------------------- */
.simple-main { padding-block: clamp(4rem, 12vw, 9rem); min-height: 70vh; }
.simple-title { max-width: 16ch; margin-top: 1rem; font-size: clamp(2.5rem, 5vw + 1rem, 4.8rem); }
.simple-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.25rem; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.6rem; }
.prose p { margin-top: 0.75rem; color: #33362f; }
.prose ul { margin-top: 0.75rem; padding-left: 1.25rem; list-style: disc; color: #33362f; }
.prose li + li { margin-top: 0.5rem; }
.prose a { color: var(--green); font-weight: 600; }
.prose .updated { margin-top: 3rem; color: var(--muted); font-size: 0.9rem; }

/* 12. Motion ---------------------------------------------------------- */
/* Signature: masked text reveal. Pure CSS for the headline, so it never depends on JavaScript. */
.hero-title .line > span { animation: mask-up 0.9s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes mask-up { from { transform: translateY(105%); } to { transform: translateY(0); } }

/* Section headings reveal the same way when they scroll into view (only once JS is ready) */
[data-reveal] { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-reveal] > span { display: block; }
.js [data-reveal]:not(.is-in) > span { transform: translateY(105%); }
.js [data-reveal] > span { transition: transform 0.9s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal]:not(.is-in) > span { transform: none; }
  /* script.js never turns the tour live here; the frame scrolls by hand instead */
  .tour-img { transform: none !important; }
}

/* Contact fallbacks and navigation remain usable without JavaScript. */
.inquiry-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-outline-light { border-color: var(--paper); color: var(--paper); }
.btn-outline-light:hover { background: var(--paper); color: var(--green); }
.footer-contact a, .form-status a { overflow-wrap: anywhere; }
.inquiry-grid > *, .hero-grid > *, .tour-grid > * { min-width: 0; }
@media (max-width: 860px) {
  html:not(.js) .site-header { height: auto; position: relative; }
  html:not(.js) .header-row { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .nav { display: block; order: 3; width: 100%; }
  html:not(.js) .nav ul { flex-wrap: wrap; gap: 0 1rem; }
}
@media (max-width: 360px) {
  .header-cta { padding-inline: 10px; }
  .header-row { gap: 0.4rem; }
  .btn-large { padding-inline: 18px; }
}
html:not(.js) .compare-control { display: none; }
