/* WhiteLabel site styles. One family (Familjen Grotesk), forest, chalk, lime. */

:root {
  --forest: #0E3A2C;
  --deep: #0A2A20;
  --chalk: #E6EADB;
  --chalk-light: #ECF1E6;
  --lime: #D4F34A;
  --sage: #8FB3A3;
  --muted: #3C5A4E;
  --line: rgba(14, 58, 44, 0.25);
  --line-light: rgba(236, 241, 230, 0.3);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Familjen Grotesk', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--forest);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.s-forest :focus-visible, .s-deep :focus-visible { outline-color: var(--lime); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; overflow: hidden; }
.s-chalk { background: var(--chalk); color: var(--forest); }
.s-forest { background: var(--forest); color: var(--chalk-light); }
.s-deep { background: var(--deep); color: var(--chalk-light); }
.s-lime { background: var(--lime); color: var(--forest); }

/* Print grain, sits behind the content so type stays crisp */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .055 0 0 0 0 .227 0 0 0 0 .173 20 0 0 0 -12.2'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
}
.s-forest.grain::after, .s-deep.grain::after {
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .925 0 0 0 0 .945 0 0 0 0 .902 20 0 0 0 -12.2'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
}
.s-lime.grain::after { opacity: 0.1; }
.grain > * { position: relative; z-index: 1; }
.grain > .site-header { position: absolute; z-index: 5; }

/* Type */
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: clamp(28px, 5.4vw, 66px); line-height: 1.1; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; }
h3 { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
.ln { display: block; }
.lime { color: var(--lime); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* One flat, sharp highlight band */
.hl {
  background: linear-gradient(transparent 12%, var(--lime) 12%, var(--lime) 90%, transparent 90%);
  padding: 0 0.12em;
  margin: 0 -0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--forest);
  color: var(--chalk-light);
  padding: 15px 28px;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--deep); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-lime { background: var(--lime); color: var(--forest); }
.btn-lime:hover { background: #E2FA6B; }
.btn-outline { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); padding: 13px 26px; }
.btn-outline:hover { background: var(--forest); color: var(--chalk-light); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* Header */
.site-header { top: 0; left: 0; right: 0; padding: 22px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.mark { fill: currentColor; display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); font-size: 15px; }
.nav-links a { text-decoration: none; }
.nav-links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

/* Logo settles into place once on load */
.mark .top { animation: markTop 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
.mark .bottom { animation: markBottom 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
@keyframes markTop { from { transform: translate(-4px, -3px); } to { transform: none; } }
@keyframes markBottom { from { transform: translate(4px, 3px); } to { transform: none; } }

/* Hero */
.hero { padding-top: clamp(130px, 15vw, 190px); padding-bottom: clamp(72px, 9vw, 120px); }
.hero .lede { margin-top: clamp(32px, 4vw, 48px); font-size: 19px; max-width: 34em; }
.hero .lede strong { font-weight: 600; }
.hero .lede span { color: var(--muted); }
.hero .cta { margin-top: 28px; }
.eyebrow { font-size: 15px; color: var(--muted); margin: 0 0 22px; }

/* Gap section */
.gap-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.gap-grid p { font-size: 19px; max-width: 28em; margin-top: 28px; }
.chart { width: 100%; max-width: 380px; justify-self: end; }
.chart text { font-family: inherit; }

/* Rows */
.rows { margin-top: clamp(32px, 4vw, 48px); border-top: 2px solid var(--forest); }
.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.row:last-child { border-bottom: 2px solid var(--forest); }
.row p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.row .arrow { font-size: 28px; transition: transform 0.15s; }
.row:hover .arrow { transform: translateX(6px); }
.row:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.section-intro { max-width: 34em; margin-top: 18px; color: var(--muted); font-size: 18px; }
.note { margin-top: 28px; font-size: 17px; }

/* Start section */
.start-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.start-grid > div > p { font-size: 19px; max-width: 30em; margin: 22px 0 0; }
.chaps { margin: 36px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--forest); }
.chaps li { padding: 14px 0; border-bottom: 1px solid rgba(14, 58, 44, 0.3); display: grid; grid-template-columns: 1fr; }
.chaps strong { font-size: 19px; font-weight: 600; }
.chaps span { font-size: 15px; }
details.all { margin-top: 18px; }
details.all summary, .faq summary { cursor: pointer; }
details.all summary { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
details.all ol { margin: 14px 0 0; padding-left: 1.4em; columns: 2; column-gap: 32px; }
details.all li { padding: 3px 0; break-inside: avoid; }

.tag { max-width: 340px; }
.tag-top {
  position: relative;
  background: var(--forest);
  color: var(--chalk-light);
  border-radius: 10px;
  padding: 36px 26px 24px;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
}
.tag-top::before { content: ""; position: absolute; top: 14px; right: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); }
.tag-bottom {
  margin: 12px 0 0 20px;
  background: var(--forest);
  color: var(--chalk-light);
  border-radius: 10px;
  padding: 24px 26px;
}
.tag-bottom .price { display: block; font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.tag-bottom small { display: block; margin-top: 8px; color: var(--sage); font-size: 15px; }
.tag-notes { margin: 20px 0 0 20px; font-size: 15px; }
.tag-notes p { margin: 0 0 4px; }
.tag .btn-outline { margin: 18px 0 0 20px; }

/* Background / reel */
.reel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
  min-height: clamp(200px, 30vw, 340px);
  background: var(--forest);
  border: 1px solid #2F6B58;
  color: var(--chalk-light);
  text-decoration: none;
}
.reel .play { width: 62px; height: 62px; border-radius: 50%; background: var(--chalk-light); display: grid; place-items: center; }
.reel .play svg { margin-left: 4px; }
.reel:hover .play { background: var(--lime); }
.reel-note { margin: 14px 0 0; font-size: 14px; color: var(--sage); max-width: 44em; }
.s-deep .section-intro { color: var(--sage); }

/* FAQ */
.faq { margin-top: clamp(32px, 4vw, 48px); border-top: 2px solid var(--forest); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 2px solid var(--forest); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: clamp(18px, 2vw, 21px); font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 26px; max-width: 42em; color: var(--muted); font-size: 17px; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-grid > div > p { font-size: 19px; max-width: 26em; margin-top: 22px; }
.mail { font-weight: 600; font-size: 19px; }
form.contact .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; }
form.contact .field { margin-bottom: 18px; }
form.contact input, form.contact select, form.contact textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--forest);
  background: var(--chalk-light);
  border: 1.5px solid var(--forest);
  border-radius: 0;
  padding: 13px 14px;
  appearance: none;
  -webkit-appearance: none;
}
form.contact select {
  background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
form.contact textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 14px; margin-top: 14px; }
.success { background: var(--forest); color: var(--chalk-light); padding: 36px; }
.success h3 { color: var(--lime); font-size: 28px; margin-bottom: 10px; }
.success p { margin: 0; }

/* Stats (realtor page) */
.stats { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.stat-num { display: block; font-size: clamp(84px, 15vw, 170px); font-weight: 700; letter-spacing: -0.045em; line-height: 0.9; color: var(--lime); }
.stat-num.second { font-size: clamp(64px, 10vw, 110px); }
.stat-line { font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.2; margin: 18px 0 0; letter-spacing: -0.01em; }
.stat-sub { margin: 14px 0 0; font-size: 18px; max-width: 18em; }
.bridge { margin-top: clamp(36px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line-light); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; max-width: 28em; }
.source { margin-top: 28px; font-size: 14px; color: var(--sage); }

.band {
  margin-top: 36px;
  background: var(--lime);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.band h3 { font-size: 20px; }
.band .price { display: block; font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.band p { margin: 0; font-size: 15px; }
.s-chalk .band .btn { white-space: nowrap; }
.chaps.agents li { grid-template-columns: 1fr auto; align-items: baseline; gap: 16px; padding: 18px 0; }
.chaps.agents span { text-align: right; color: var(--muted); }

/* Privacy page */
.prose { max-width: 40em; }
.prose h2 { font-size: 26px; margin: 36px 0 10px; }
.prose p, .prose li { font-size: 17px; }

/* Footer */
.footer { padding: 36px 0; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--sage); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Smaller screens */
@media (max-width: 820px) {
  .nav-links a:not(.btn) { display: none; }
  .gap-grid, .start-grid, .contact-grid, .stats { grid-template-columns: 1fr; }
  .chart { justify-self: start; max-width: 340px; }
  .band { grid-template-columns: 1fr; gap: 14px; }
  .chaps.agents li { grid-template-columns: 1fr; gap: 2px; }
  .chaps.agents span { text-align: left; }
  details.all ol { columns: 1; }
}
@media (max-width: 540px) {
  form.contact .row2 { grid-template-columns: 1fr; }
  .brand { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark .top, .mark .bottom { animation: none; }
}

/* Success state on dark sections */
.s-forest .success { background: var(--lime); color: var(--forest); }
.s-forest .success h3 { color: var(--forest); }
.s-forest .form-note, .s-forest .muted { color: var(--sage); }
.s-forest form.contact input, .s-forest form.contact select, .s-forest form.contact textarea { border-color: var(--chalk-light); }

/* Intake questionnaire */
.intake-sec .sec-num { display: block; font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.intake-sec h2 { font-size: clamp(28px, 3.6vw, 42px); }
.sec-intro { max-width: 36em; margin: 16px 0 0; font-size: 18px; color: var(--muted); }
.qs { margin-top: 32px; max-width: 46em; border-top: 2px solid var(--forest); }
.q { padding: 26px 0; border-bottom: 1px solid var(--line); }
.q .qn { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.q label.qt { display: block; margin: 2px 0 4px; font-size: clamp(18px, 2vw, 21px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.q .hint { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.q label.qt + textarea, .q label.qt + input { margin-top: 10px; }
.q .field:last-child { margin-bottom: 0; }
.s-forest .sec-intro, .s-forest .intake-sec .sec-num, .s-forest .q .qn, .s-forest .q .hint { color: var(--sage); }
.s-forest .qs { border-top-color: var(--chalk-light); }
.s-forest .q { border-bottom-color: var(--line-light); }
.s-lime .form-note { max-width: 40em; }
.s-lime .form-note a { font-weight: 500; }
.hero .lede.small { margin-top: 12px; font-size: 16px; }
