/* ==========================================================================
   REleadkeep — speed-to-lead site
   Palette: forest #173B2C · cream #F5F1E8 · copper #C05F2B · charcoal #2B2320
   Type: Playfair Display (headlines) + Inter (body)
   ========================================================================== */

:root {
  --forest: #173B2C;
  --forest-deep: #10291E;
  --cream: #F5F1E8;
  --cream-soft: #FAF7F1;
  --copper: #C05F2B;
  --copper-deep: #A64F22;
  --charcoal: #2B2320;
  --line: rgba(43, 35, 32, 0.14);
  --line-forest: rgba(23, 59, 44, 0.14);
  --line-cream: rgba(245, 241, 232, 0.22);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --wrap-narrow: 720px;
  --pad: 32px;
  --section-y: 112px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* kill double-tap zoom on touch devices (pinch and scroll stay normal) */
  touch-action: manipulation;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* kill double-tap zoom on touch devices */
  touch-action: manipulation;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.wrap-narrow { max-width: var(--wrap-narrow); }

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

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.h2-cream { color: var(--cream); }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 22px;
}

.section-sub {
  margin: 14px 0 0;
  font-size: 1.03rem;
  color: rgba(43, 35, 32, 0.68);
}

.section-head { margin-bottom: 64px; }
.section-head-left { margin-bottom: 40px; }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

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

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  padding: 17px 32px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.btn-copper {
  background: var(--copper);
  color: #FFF8F3;
}

.btn-copper:hover { background: var(--copper-deep); transform: translateY(-1px); }
.btn-copper:active { transform: translateY(0); }

.btn-sm { padding: 13px 24px; font-size: 0.9rem; }

.btn:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ==========================================================================
   1. NAV
   ========================================================================== */

.nav {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  justify-self: start;
}

.brand-mark { width: 32px; height: 26px; }

.brand-name {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 34px;
  justify-self: center;
}

.nav-links a {
  font-size: 0.88rem;
  text-decoration: none;
  color: rgba(43, 35, 32, 0.78);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--charcoal);
  border-bottom-color: var(--copper);
}

.nav-inner > .btn { justify-self: end; }

/* ==========================================================================
   2. HERO — split: forest panel + CSS phone mockup
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  background: var(--forest);
  color: var(--cream);
  display: flex;
  align-items: center;
  padding: 104px clamp(32px, 5vw, 96px) 104px max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
}

.hero-copy-inner { max-width: 520px; }

.hero .eyebrow { color: rgba(245, 241, 232, 0.7); }

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 4.4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}
.hero-sub {
  font-size: 1.06rem;
  font-weight: 300;
  color: rgba(245, 241, 232, 0.82);
  max-width: 440px;
  margin: 0 0 40px;
}

/* --- right half: solid blocks + phone --- */

.hero-visual {
  position: relative;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 40px;
  overflow: hidden;
}

.shape-block {
  position: absolute;
  inset: 64px clamp(28px, 6vw, 88px);
  background: rgba(23, 59, 44, 0.07);
  border-radius: 20px;
  transform: rotate(-2.2deg);
}

.shape-ring {
  position: absolute;
  top: 46px;
  right: clamp(18px, 5vw, 64px);
  width: 116px;
  height: 116px;
  border: 1px solid rgba(192, 95, 43, 0.42);
  border-radius: 50%;
}

/* --- phone --- */

.phone {
  position: relative;
  width: 312px;
  max-width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(43, 35, 32, 0.1);
  border-radius: 36px;
  padding: 11px;
  box-shadow: 0 30px 60px rgba(43, 35, 32, 0.16), 0 2px 4px rgba(43, 35, 32, 0.06);
}

.phone-screen {
  background: var(--cream-soft);
  border-radius: 26px;
  padding: 16px 16px 22px;
  overflow: hidden;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(43, 35, 32, 0.5);
  padding: 0 6px 10px;
}

.phone-status-right { display: inline-flex; gap: 3px; align-items: flex-end; }

.phone-status-right i {
  display: block;
  width: 3px;
  background: rgba(43, 35, 32, 0.35);
  border-radius: 1px;
}
.phone-status-right i:nth-child(1) { height: 5px; }
.phone-status-right i:nth-child(2) { height: 8px; }
.phone-status-right i:nth-child(3) { height: 11px; }

.phone-head {
  text-align: center;
  padding: 6px 0 14px;
  border-bottom: 1px solid var(--line);
}

.phone-head-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 20px;
}

.msg { display: flex; flex-direction: column; gap: 5px; }
.msg-in { align-items: flex-start; }
.msg-out { align-items: flex-end; }
.msg-pill { align-items: flex-end; padding-top: 2px; }

.bubble {
  font-size: 0.83rem;
  line-height: 1.5;
  padding: 12px 15px;
  max-width: 88%;
}

.bubble-in {
  background: #E7E3D9;
  color: var(--charcoal);
  border-radius: 16px 16px 16px 5px;
}

.bubble-out {
  background: var(--forest);
  color: var(--cream);
  border-radius: 16px 16px 5px 16px;
}

.stamp {
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(43, 35, 32, 0.45);
  padding: 0 4px;
}

.pill {
  display: inline-block;
  background: #DCE9DA;
  color: var(--forest);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 13px;
  border-radius: 999px;
}

/* ---------- visually hidden (labels that only screen readers need) ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- caption under the hero mockup ---------- */

.hero-phone-stack {
  position: relative; /* keeps the phone and caption above the CSS shapes */
  display: grid;
  justify-items: center;
  gap: 22px;
}

.hero-caption {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(43, 35, 32, 0.5);
}

/* ==========================================================================
   2b. INTERACTIVE DEMO — a phone message screen
   The visitor plays the seller: their texts sit on the right in our forest
   green, the lead line answers from the left in message grey. Replies come
   from our own model server (POST /api/demo-chat), with replies.json as the
   safety net, so the thread always reads like a real conversation.
   ========================================================================== */

.wrap-demo {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-head-center { text-align: center; }

.section-head-center .section-sub {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow-dark { color: var(--copper); }

/* --- the phone: forest body, copper hairline, phone proportions --------- */

.demo-phone {
  --imsg-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --imsg-sent: #17553d;
  --imsg-received: #e9e9eb;
  --imsg-ink: #16181c;
  --imsg-screen: #f7f7fa;

  width: min(392px, 100%);
  padding: 10px;
  background: linear-gradient(168deg, #1e4f3a 0%, #173B2C 56%, #102a1f 100%);
  border: 1px solid rgba(192, 95, 43, 0.5);
  border-radius: 46px;
  box-shadow: 0 34px 66px rgba(23, 59, 44, 0.26), 0 3px 8px rgba(43, 35, 32, 0.14);
}

.demo-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--imsg-screen);
  border-radius: 37px;
  overflow: hidden;
  font-family: var(--imsg-font);
  color: var(--imsg-ink);
}

/* --- status bar --------------------------------------------------------- */

.imsg-statusbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 22px 4px;
  background: var(--imsg-screen);
}

.imsg-clock { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em; }

.imsg-status { display: inline-flex; align-items: center; gap: 5px; color: var(--imsg-ink); }

.imsg-signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }

.imsg-signal i {
  display: block;
  width: 3px;
  background: var(--imsg-ink);
  border-radius: 1px;
}
.imsg-signal i:nth-child(1) { height: 4px; }
.imsg-signal i:nth-child(2) { height: 6px; }
.imsg-signal i:nth-child(3) { height: 8px; }
.imsg-signal i:nth-child(4) { height: 11px; }

.imsg-wifi { width: 15px; height: 11px; }

.imsg-battery {
  position: relative;
  display: inline-block;
  width: 23px;
  height: 11px;
  padding: 1.5px;
  border: 1px solid rgba(22, 24, 28, 0.42);
  border-radius: 3.5px;
}

.imsg-battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 4px;
  background: rgba(22, 24, 28, 0.42);
  border-radius: 0 1px 1px 0;
}

.imsg-battery i {
  display: block;
  height: 100%;
  width: 74%;
  background: var(--imsg-ink);
  border-radius: 1.5px;
}

.imsg-island {
  position: absolute;
  left: 50%;
  top: calc(50% - 1px);
  transform: translate(-50%, -50%);
  width: 76px;
  height: 21px;
  background: #16181c;
  border-radius: 999px;
}

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

.imsg-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 12px 10px;
  background: rgba(247, 247, 250, 0.9);
  border-bottom: 0.5px solid rgba(23, 59, 44, 0.16);
}

.imsg-nav::after { content: ""; flex: 0 0 auto; width: 58px; }

.imsg-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: 58px;
  color: var(--forest);
}

.imsg-back svg { width: 11px; height: 17px; }

.imsg-badge {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--copper);
  background: rgba(192, 95, 43, 0.12);
  border-radius: 999px;
  padding: 1px 7px;
}

.imsg-contact {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.imsg-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e7efe9;
  border: 1px solid rgba(23, 59, 44, 0.16);
}

.imsg-avatar svg { width: 18px; height: 15px; }

.imsg-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.imsg-name { font-size: 0.82rem; font-weight: 600; line-height: 1.25; }

.imsg-sub {
  font-size: 0.6rem;
  line-height: 1.3;
  color: rgba(22, 24, 28, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- the thread --------------------------------------------------------- */

.demo-thread {
  flex: 1 1 auto;
  min-height: 272px;
  max-height: 386px;
  gap: 9px;
  padding: 13px 12px 10px;
  overflow-y: auto;
  background: var(--imsg-screen);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.imsg-day {
  align-self: center;
  padding: 2px 0 8px;
  font-size: 0.64rem;
  font-weight: 500;
  color: rgba(22, 24, 28, 0.45);
}

.demo-thread .msg { gap: 3px; max-width: 100%; }

.demo-thread .bubble {
  position: relative;
  z-index: 1;
  max-width: 78%;
  padding: 8px 12px 9px;
  font-size: 0.88rem;
  line-height: 1.36;
  letter-spacing: 0.002em;
  overflow-wrap: anywhere;
}

.demo-thread .bubble-in {
  background: var(--imsg-received);
  color: var(--imsg-ink);
  border-radius: 18px 18px 18px 5px;
}

.demo-thread .bubble-out {
  background: var(--imsg-sent);
  color: #F7FBF8;
  border-radius: 18px 18px 5px 18px;
}

/* consecutive messages from the same side stack with tighter corners */

.demo-thread .bubble:not(:first-child) { margin-top: 1px; }
.demo-thread .msg-in .bubble:not(:first-child) { border-top-left-radius: 7px; }
.demo-thread .msg-in .bubble:not(:last-of-type) { border-bottom-left-radius: 7px; }
.demo-thread .msg-out .bubble:not(:first-child) { border-top-right-radius: 7px; }
.demo-thread .msg-out .bubble:not(:last-of-type) { border-bottom-right-radius: 7px; }

/* bubble tails: a curl of bubble colour tucked behind the last bubble of the
   group, its outer corners rounded so the join reads as a smooth text tail */

.demo-thread .bubble:last-of-type::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -1px;
  width: 13px;
  height: 15px;
}

.demo-thread .bubble-in:last-of-type::after {
  left: -7px;
  background: var(--imsg-received);
  border-radius: 8px 0 0 8px;
}

.demo-thread .bubble-out:last-of-type::after {
  right: -7px;
  background: var(--imsg-sent);
  border-radius: 0 8px 8px 0;
}

/* --- typing indicator, receipts, timer ----------------------------------- */

.demo-thread .demo-typing { display: inline-flex; align-items: center; gap: 5px; padding: 13px 14px; }

/* the typing bubble is not a message: no tail */
.demo-thread .demo-typing::before,
.demo-thread .demo-typing::after { display: none; }

.demo-thread .demo-typing i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(22, 24, 28, 0.38);
  animation: demo-bounce 1.25s infinite ease-in-out;
}

.demo-thread .demo-typing i:nth-child(2) { animation-delay: 0.16s; }
.demo-thread .demo-typing i:nth-child(3) { animation-delay: 0.32s; }

@keyframes demo-bounce {
  0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.imsg-receipt {
  padding: 1px 5px 0;
  font-size: 0.62rem;
  color: rgba(22, 24, 28, 0.5);
}

.demo-thread .pill.demo-timer {
  align-self: flex-start;
  margin-top: 1px;
  padding: 3px 10px;
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--copper);
  background: #FFFFFF;
  border: 1px solid rgba(192, 95, 43, 0.32);
  border-radius: 999px;
}

/* --- quick replies ------------------------------------------------------ */

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 9px 12px 4px;
  background: var(--imsg-screen);
  border-top: 0.5px solid rgba(23, 59, 44, 0.12);
}

.demo-chips[hidden] { display: none; }

.demo-chip {
  font-family: var(--sans);
  font-size: 0.74rem;
  line-height: 1.3;
  text-align: left;
  color: var(--forest);
  background: #FFFFFF;
  border: 1px solid rgba(23, 59, 44, 0.22);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.demo-chip:hover {
  border-color: var(--copper);
  color: var(--copper);
  background: #FFFFFF;
}

.demo-chip:disabled { opacity: 0.45; cursor: not-allowed; }

/* --- composer ----------------------------------------------------------- */

.imsg-input {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px 12px;
  background: var(--imsg-screen);
}

.imsg-field {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 7px 14px;
  background: #FFFFFF;
  border: 0.5px solid rgba(22, 24, 28, 0.24);
  border-radius: 19px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.imsg-field:focus-within {
  border-color: rgba(192, 95, 43, 0.6);
  box-shadow: 0 0 0 2px rgba(192, 95, 43, 0.12);
}

.imsg-field input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--imsg-font);
  /* 16px minimum: anything smaller makes iOS Safari zoom the page on focus */
  font-size: 16px;
  color: var(--imsg-ink);
}

.imsg-field input::placeholder { color: rgba(22, 24, 28, 0.42); }

.demo-send {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #FFF8F3;
  background: var(--copper);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.demo-send svg { width: 17px; height: 17px; }

.demo-send:hover:not(:disabled) { background: var(--copper-deep); transform: translateY(-1px); }

.demo-send:disabled {
  background: rgba(22, 24, 28, 0.18);
  color: rgba(255, 255, 255, 0.92);
  cursor: default;
}

/* --- under the phone ---------------------------------------------------- */

.demo-cta-row { margin: 26px 0 0; }

.demo-caption {
  max-width: 450px;
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(43, 35, 32, 0.6);
}

.demo-reset-row { margin: 6px 0 0; }

.demo-reset {
  background: none;
  border: 0;
  padding: 6px 2px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: rgba(43, 35, 32, 0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.demo-reset:hover { color: var(--copper); }

@media (max-width: 420px) {
  .demo-phone { padding: 8px; border-radius: 40px; }
  .demo-screen { border-radius: 32px; }
  .demo-thread { padding: 11px 9px 8px; min-height: 250px; max-height: 340px; }
  .demo-thread .bubble { max-width: 84%; font-size: 0.85rem; }
  .imsg-clock { font-size: 0.72rem; }
  .imsg-name { font-size: 0.78rem; }
  .imsg-sub { font-size: 0.56rem; }
  .imsg-island { width: 66px; height: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-thread { scroll-behavior: auto; }
  .demo-thread .demo-typing i { animation: none; opacity: 0.6; }
}

/* ==========================================================================
   3. SECTION SHELL
   ========================================================================== */

.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}

.section-alt { background: var(--cream); }

section[id] { scroll-margin-top: 96px; }

/* ==========================================================================
   3b. PLAIN STATEMENTS — the cost of a slow reply. No numbers, no statistics.
   ========================================================================== */

.statements {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  display: grid;
  gap: 26px;
}

.statements li {
  position: relative;
  padding-left: 34px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--charcoal);
}

.statements li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 18px;
  height: 1px;
  background: var(--copper);
}

/* ==========================================================================
   3. HOW IT WORKS
   ========================================================================== */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.step {
  border-top: 1px solid var(--line-forest);
  padding-top: 30px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 22px;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}

.step-body {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(43, 35, 32, 0.7);
  max-width: 300px;
}

/* ==========================================================================
   4. WHAT YOU GET
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 38px 30px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover { border-color: rgba(192, 95, 43, 0.5); transform: translateY(-2px); }

.card p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.35;
}

/* ==========================================================================
   5. PRICING
   ========================================================================== */

.price-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 56px clamp(28px, 5vw, 56px);
  max-width: 560px;
}

.price {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

.price-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(43, 35, 32, 0.58);
}

.price-guarantee {
  margin: 18px 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--copper);
}

.checks {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checks li {
  position: relative;
  padding-left: 28px;
  font-size: 1rem;
  color: rgba(43, 35, 32, 0.86);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  transform: rotate(-45deg) translateY(-2px);
}

/* ==========================================================================
   6. FAQS
   ========================================================================== */

.faqs { max-width: 780px; }

.faq {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}

.faq:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 500;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--copper);
  border-bottom: 1.5px solid var(--copper);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s ease;
}

.faq[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }

.faq p {
  margin: -6px 0 26px;
  font-size: 0.98rem;
  color: rgba(43, 35, 32, 0.72);
  max-width: 620px;
}

/* ==========================================================================
   7. BOOK A CALL (form)
   ========================================================================== */

.form {
  display: grid;
  gap: 22px;
  max-width: 560px;
}

.field { display: grid; gap: 9px; }

.field label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(43, 35, 32, 0.6);
}

.field input,
.field textarea {
  font-family: var(--sans);
  /* 16px minimum: anything smaller makes iOS Safari zoom the page on focus */
  font-size: 1rem;
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 15px 16px;
  width: 100%;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field textarea { resize: vertical; min-height: 116px; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(43, 35, 32, 0.35); }

.field input:focus,
.field textarea:focus {
  border-color: var(--copper);
  background: #FFFFFF;
  outline: none;
}

.field.has-error input,
.field.has-error textarea { border-color: #A33A21; }

.form .btn { justify-self: start; margin-top: 6px; }

.form-status {
  margin: 4px 0 0;
  font-size: 0.92rem;
  min-height: 1.4em;
  color: rgba(43, 35, 32, 0.72);
}

.form-status.is-ok { color: var(--forest); font-weight: 500; }
.form-status.is-error { color: #A33A21; }

/* ==========================================================================
   7b. WHO'S BEHIND THIS
   ========================================================================== */

.who-body {
  margin: 0;
  max-width: 640px;
  font-size: 1.05rem;
  color: rgba(43, 35, 32, 0.8);
}

/* ==========================================================================
   8. CLOSING BAND
   ========================================================================== */

.closing {
  background: var(--forest);
  color: var(--cream);
  padding: 104px 0;
  text-align: center;
  border-top: 1px solid var(--line-forest);
}

.closing .h2 { font-size: clamp(2rem, 3.6vw, 3rem); }

.closing-sub {
  margin: 18px 0 40px;
  font-size: 1.06rem;
  font-weight: 300;
  color: rgba(245, 241, 232, 0.8);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
}

.footer-meta {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: rgba(43, 35, 32, 0.6);
}

/* ==========================================================================
   10. ADMIN (/admin.html)
   ========================================================================== */

.admin-bar { background: var(--forest); color: var(--cream); }

.admin-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.admin-bar .brand-name { color: var(--cream); }

.admin-bar-label {
  margin-right: auto;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.66);
}

.admin-bar a.back {
  font-size: 0.85rem;
  text-decoration: none;
  color: rgba(245, 241, 232, 0.78);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.admin-bar a.back:hover { color: var(--cream); border-bottom-color: var(--copper); }

.admin-main { padding: 64px 32px 104px; }

.admin-meta {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: rgba(43, 35, 32, 0.65);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 32px;
}

.btn-ghost-copper {
  background: transparent;
  color: var(--copper);
  border: 1px solid rgba(192, 95, 43, 0.5);
}

.btn-ghost-copper:hover { background: rgba(192, 95, 43, 0.09); transform: translateY(-1px); }

.admin-table-wrap {
  overflow-x: auto;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  text-align: left;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(43, 35, 32, 0.55);
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 232, 0.5);
}

.admin-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(43, 35, 32, 0.08);
  vertical-align: top;
  line-height: 1.5;
}

.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: rgba(245, 241, 232, 0.35); }
.admin-table td.when { white-space: nowrap; font-size: 0.82rem; color: rgba(43, 35, 32, 0.6); }
.admin-table td.msg { min-width: 240px; color: rgba(43, 35, 32, 0.8); }
.admin-table td.tel { white-space: nowrap; }
.admin-table a { color: var(--copper); text-decoration: none; }
.admin-table a:hover { text-decoration: underline; }

.admin-empty {
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(43, 35, 32, 0.25);
  border-radius: 4px;
  padding: 60px 32px;
  text-align: center;
  color: rgba(43, 35, 32, 0.6);
}

.admin-empty p { margin: 0 0 8px; }
.admin-empty p:last-child { margin-bottom: 0; }

.admin-problem p { margin: 0 0 10px; }
.admin-problem p:last-child { margin-bottom: 0; }

.admin-problem {
  background: rgba(163, 58, 33, 0.06);
  border: 1px solid rgba(163, 58, 33, 0.35);
  border-radius: 4px;
  padding: 22px 26px;
  font-size: 0.94rem;
  color: #7E2C18;
}

.admin-problem code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: rgba(43, 35, 32, 0.07);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1000px) {
  :root { --section-y: 88px; }

  .hero { grid-template-columns: 1fr; }

  .hero-copy {
    padding: 72px var(--pad) 80px;
    justify-content: flex-start;
  }

  .hero-copy-inner { max-width: 620px; }

  .hero-visual { padding: 72px 32px; }

  .steps { grid-template-columns: 1fr; gap: 40px; }

  .step-body { max-width: 520px; }

  .cards { grid-template-columns: repeat(2, 1fr); }

  .price-card { max-width: 100%; }

  .nav-links { gap: 24px; }

  .admin-main { padding: 48px 24px 80px; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }

  .nav-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
    row-gap: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
    min-height: 0;
  }

  /* five links now, so tighten them up to keep one tidy row on phones */
  .nav-links {
    grid-column: 1 / -1;
    justify-self: start;
    gap: 10px 12px;
    flex-wrap: wrap;
    order: 3;
  }

  .nav-links a { font-size: 0.84rem; }

  .nav-inner > .btn { grid-column: 2; }

  .hero-visual { padding: 64px 24px; }

  .shape-block { inset: 48px 18px; }

  .shape-ring { top: 28px; right: 14px; width: 88px; height: 88px; }

  .section-head { margin-bottom: 44px; }

  .cards { grid-template-columns: 1fr; gap: 16px; }

  .card { padding: 28px 24px; }

  .closing { padding: 80px 0; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 420px) {
  .hero-visual .phone { width: 288px; }

  .nav-links { gap: 9px 10px; }

  .nav-links a { font-size: 0.79rem; }

  .hero-copy { padding: 60px 22px 68px; }

  .wrap { --pad: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   11. COOKIE CONSENT (banner · preferences panel · notice)
   ==========================================================================
   The banner sits in the page flow above the nav instead of floating over the
   page, so it can never cover the demo or the lead form, and it is the first
   thing a keyboard reaches. Both choice buttons are the same size and the same
   distance away: same layer, same size, same number of clicks.
   ========================================================================== */

.cookie-banner {
  position: relative;
  z-index: 10;
  background: var(--forest);
  color: var(--cream);
  border-bottom: 3px solid var(--copper);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.cookie-banner-copy { max-width: 640px; }

.cookie-banner-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.26rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.88);
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cookie-btn {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  background: var(--copper);
  color: #FFF8F3;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cookie-btn:hover { background: var(--copper-deep); }

.cookie-btn-alt { background: var(--cream); color: var(--forest); }
.cookie-btn-alt:hover { background: #FFFFFF; }

.cookie-manage {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 2px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--cream);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-manage:hover { color: #FFFFFF; text-decoration-thickness: 2px; }

.cookie-manage-dark { color: var(--copper-deep); }
.cookie-manage-dark:hover { color: var(--charcoal); }

.cookie-btn:focus-visible,
.cookie-manage:focus-visible,
.cookie-modal-close:focus-visible,
.cookie-toggle input:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.cookie-banner .cookie-btn:focus-visible,
.cookie-banner .cookie-manage:focus-visible { outline-color: var(--cream); }

.footer-consent { display: flex; align-items: center; gap: 10px; margin: 0; }
.footer-consent-sep { color: rgba(43, 35, 32, 0.35); }

/* ---------- the two dialogs ---------- */

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 18px;
  overflow-y: auto;
  background: rgba(16, 41, 30, 0.6);
}

.cookie-modal[hidden] { display: none; }

.cookie-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: auto;
  padding: 34px 34px 28px;
  background: var(--cream-soft);
  border-radius: 4px;
  box-shadow: 0 30px 70px rgba(9, 25, 18, 0.38);
}

.cookie-modal-card-read { max-width: 640px; }

.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: rgba(43, 35, 32, 0.55);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-modal-close:hover { background: rgba(43, 35, 32, 0.07); color: var(--charcoal); }

.cookie-modal-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 10px;
  padding-right: 34px;
}

.cookie-modal-intro { margin: 0 0 24px; font-size: 0.95rem; color: rgba(43, 35, 32, 0.72); }

.cookie-cat {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: 18px;
}

.cookie-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-cat-title { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0; }

.cookie-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-deep);
  background: rgba(192, 95, 43, 0.1);
  border-radius: 999px;
  padding: 4px 10px;
}

.cookie-cat-text { margin: 6px 0 0; font-size: 0.92rem; color: rgba(43, 35, 32, 0.72); }

.cookie-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.92rem;
  cursor: pointer;
}

.cookie-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--copper); }
.cookie-toggle input:disabled { cursor: not-allowed; }

.cookie-gpc { margin: 10px 0 0; font-size: 0.85rem; color: var(--copper-deep); }

.cookie-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cookie-modal-card-read p { margin: 0 0 12px; font-size: 0.93rem; color: rgba(43, 35, 32, 0.78); }

.cookie-notice-head {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-deep);
  margin: 22px 0 8px;
}

.cookie-notice-foot { font-style: italic; }

@media (max-width: 900px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .cookie-banner-actions { width: 100%; }
  .cookie-btn { flex: 1 1 200px; text-align: center; padding: 15px 18px; }
  .cookie-manage { flex: 1 1 100%; text-align: left; }
}

@media (max-width: 520px) {
  .cookie-banner-title { font-size: 1.1rem; }
  .cookie-banner-text { font-size: 0.9rem; }

  .cookie-modal { padding: 0; }
  .cookie-modal .cookie-modal-card {
    max-width: none;
    min-height: 100%;
    border-radius: 0;
    padding: 26px 20px 24px;
  }

  .cookie-modal-actions .cookie-btn { flex: 1 1 100%; text-align: center; }
}
