/* by KAR — opt-in pages
   Palette and type locked to the brand system. Do not swap without checking the Brain. */

:root {
  --ink:   #33291F;
  --cream: #F6F1E8;
  --red:   #CE011F;
  --sand:  #D8CBB8;
  --bark:  #6B5D4D;
  --grey:  #828282;
  --ink-soft: #40352A;
  --max: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 6.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: "Work Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1.4em;
}

.eyebrow.muted { color: var(--bark); }
.eyebrow.on-dark { color: var(--sand); }

.lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink-soft); }

.brandline {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--sand);
  margin: 1.6em 0 0;
}

/* ---------- header ---------- */

.topbar {
  background: var(--ink);
  padding-block: 18px;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mark {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.mark .dot { color: var(--red); }

.mark small {
  display: block;
  font-family: "Work Sans", sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 4px;
}

.langswitch {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  text-decoration: none;
  border: 1px solid rgba(216, 203, 184, 0.45);
  padding: 8px 14px;
  border-radius: 2px;
  white-space: nowrap;
}

.langswitch:hover { border-color: var(--sand); color: var(--cream); }

/* ---------- sections ---------- */

section { padding-block: clamp(56px, 8vw, 96px); }

.dark {
  background: var(--ink);
  color: var(--cream);
}

.dark h1, .dark h2, .dark h3 { color: var(--cream); }
.dark p { color: #E8DFD1; }
.dark a { color: var(--cream); }

.rule {
  width: 64px;
  height: 2px;
  background: var(--red);
  margin: 0 0 2rem;
  border: 0;
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(64px, 9vw, 110px); }

.hero h1 { max-width: 15ch; }

.hero .sub {
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  color: #E8DFD1;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: "Work Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 19px 34px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn:hover { background: #A80019; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }

.btn-wide { width: 100%; text-align: center; }

.btn-row { margin-top: 2.2rem; }

.under-btn {
  font-size: 0.82rem;
  color: var(--bark);
  margin-top: 1rem;
}

.dark .under-btn { color: var(--sand); }

/* ---------- two column ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.split.narrow-right { grid-template-columns: 1.25fr 1fr; }
.split.narrow-left  { grid-template-columns: 1fr 1.35fr; }

.cover-frame {
  box-shadow: 0 24px 60px rgba(51, 41, 31, 0.28);
  border-radius: 2px;
  overflow: hidden;
}

.portrait {
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(51, 41, 31, 0.22);
}

/* ---------- lists ---------- */

.checks { list-style: none; padding: 0; margin: 0 0 2rem; }

.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 1.05em;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 13px;
  height: 2px;
  background: var(--red);
}

.steps { counter-reset: s; list-style: none; padding: 0; margin: 2rem 0 0; }

.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 52px;
  margin-bottom: 1.4em;
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--sand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
}

.dark .steps li::before { border-color: rgba(216,203,184,0.5); color: var(--sand); }

/* ---------- market ---------- */

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  background: var(--sand);
  border: 1px solid var(--sand);
  margin-top: 2.4rem;
}

.market-card {
  background: var(--cream);
  padding: 28px 26px;
}

.market-card h3 { margin-bottom: 0.15em; }

.market-card .price {
  font-family: "Playfair Display", serif;
  font-size: 1.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.1em;
}

.market-card .src {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1em;
}

.market-card p { font-size: 0.95rem; margin: 0; color: var(--ink-soft); }

.towns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px 28px;
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--sand);
}

.town b {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 600;
  display: block;
}

.town span {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.town em { font-style: normal; display: block; font-size: 0.95rem; }

/* ---------- proof ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  margin-top: 2.4rem;
}

.quote {
  border-left: 2px solid var(--red);
  padding-left: 22px;
}

.quote p {
  font-family: "Playfair Display", serif;
  font-size: 1.08rem;
  line-height: 1.5;
  margin-bottom: 0.7em;
}

.quote .who {
  font-family: "Work Sans", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bark);
  margin: 0;
}

.dark .quote .who { color: var(--sand); }

.quote .tr {
  font-family: "Work Sans", sans-serif;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--bark);
  margin-top: 0.7em;
}

.dark .quote .tr { color: var(--sand); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin-top: 3rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(216,203,184,0.35);
}

.stat b {
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  font-weight: 600;
  display: block;
  line-height: 1.1;
}

.stat span {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}

.cases { margin-top: 3rem; }

.cases li { margin-bottom: 1em; }

/* ---------- faq ---------- */

.faq { margin-top: 2.6rem; }

.faq h3 { margin-bottom: 0.3em; }

.faq > div { margin-bottom: 1.8em; }

/* ---------- form ---------- */

.formcard {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(30px, 4vw, 46px);
  border-radius: 2px;
}

.formcard h3 { color: var(--cream); font-size: 1.5rem; }

label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 7px;
  margin-top: 20px;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 14px 15px;
}

input:focus {
  outline: 0;
  border-color: var(--red);
}

.hp { position: absolute; left: -9999px; }

.fineprint {
  font-size: 0.82rem;
  color: var(--sand);
  margin: 14px 0 0;
}

/* ---------- social ---------- */

.social a {
  display: inline-block;
  margin-right: 26px;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 2px;
}

.social a:hover { border-color: var(--red); }

/* ---------- thank you ---------- */

.ty { min-height: 72vh; display: grid; align-content: center; }

.ty .cover-frame { max-width: 280px; margin-bottom: 2.4rem; }

/* ---------- footer ---------- */

footer {
  background: var(--ink);
  color: var(--sand);
  padding-block: 44px;
  font-size: 0.84rem;
}

footer p { margin: 0 0 0.6em; color: var(--sand); }

footer .legal { color: var(--grey); font-size: 0.78rem; }

footer a { color: var(--sand); }

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .split,
  .split.narrow-right,
  .split.narrow-left {
    grid-template-columns: 1fr;
  }
  .split .cover-frame { max-width: 320px; }
  .split .portrait { max-width: 320px; }
  .order-first { order: -1; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 20px; }
  .btn { width: 100%; text-align: center; padding-inline: 18px; }
}
