/* realestateone LLC: realestateonellc.com
 *
 * Evergreen and brass on cool limestone. One bold piece (the hero's
 * architectural elevation that draws itself); everything else stays quiet.
 * Everything reads without scripts; site.js only adds the scroll reveals.
 */

:root {
  --ink: #0f2723;
  --ink-2: #163a34;
  --spruce: #1f4a43;
  --brass: #a87a2c;
  --brass-lit: #d6ae62;
  --brass-soft: #f3e7cf;
  --stone: #edefeb;
  --stone-2: #e3e7e2;
  --white: #ffffff;
  --text: #24342f;
  --muted: #5a6964;
  --line: rgba(15, 39, 35, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --ok: #1d6b4f;
  --ok-soft: #e3f1ea;
  --danger: #b4372b;
  --danger-soft: #fbe9e6;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(15, 39, 35, 0.06), 0 18px 40px -24px rgba(15, 39, 35, 0.35);
  --shadow-lg: 0 2px 4px rgba(15, 39, 35, 0.05), 0 40px 80px -40px rgba(15, 39, 35, 0.55);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page: 1180px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--spruce);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  color: var(--ink);
  margin: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: 'SOFT' 50, 'opsz' 96;
  letter-spacing: -0.022em;
  line-height: 1.04;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--brass);
}

h3 {
  font-family: var(--body);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0;
}

.wrap {
  width: min(var(--page), 100% - 40px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
}

.skip:focus {
  left: 12px;
  color: var(--white);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(237, 239, 235, 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(237, 239, 235, 0.9);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.32rem;
  font-variation-settings: 'SOFT' 50, 'opsz' 36;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-name small {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  margin-left: 6px;
  color: var(--brass);
  vertical-align: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background-color 0.2s;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(15, 39, 35, 0.06);
}

.nav-link[aria-current='page'] {
  color: var(--ink);
  background: rgba(15, 39, 35, 0.07);
}

.nav .btn {
  margin-left: 10px;
}

.label-short {
  display: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: 600 1rem/1 var(--body);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, box-shadow 0.25s var(--ease), color 0.2s;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 10px 24px -12px rgba(15, 39, 35, 0.7);
}

.btn-primary:hover {
  background: var(--spruce);
  color: var(--white);
  box-shadow: 0 16px 30px -14px rgba(15, 39, 35, 0.75);
}

.btn-primary svg {
  color: var(--brass-lit);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(15, 39, 35, 0.22);
}

.btn-ghost:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(15, 39, 35, 0.4);
}

.btn-light {
  background: var(--brass-lit);
  color: var(--ink);
}

.btn-light:hover {
  background: #e2bd75;
  color: var(--ink);
}

.btn-light svg {
  color: var(--ink);
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.93rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
}

.lead {
  font-size: 1.16rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 560px;
}

.section {
  padding: clamp(80px, 11vw, 140px) 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
}

.section-head p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--muted);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow::after {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
}

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

.hero {
  position: relative;
  padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 120px);
  overflow: hidden;
}

.hero::before {
  /* A soft pool of light behind the drawing. */
  content: '';
  position: absolute;
  right: -10%;
  top: -20%;
  width: 70%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(214, 174, 98, 0.18), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.85rem);
  max-width: 12ch;
}

.hero .lead {
  margin-top: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.assurances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px 28px;
  margin: 40px 0 0;
  padding: 26px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--text);
}

.assurances li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.assurances svg {
  width: 18px;
  height: 18px;
  color: var(--brass);
  flex: none;
}

/* The signature: an architect's elevation of "your property", drawn live. */
.elevation {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(120% 90% at 70% 10%, #1f4a43 0%, var(--ink) 62%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  aspect-ratio: 1 / 1.02;
  isolation: isolate;
}

.elevation-tag {
  position: absolute;
  top: 22px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.elevation-tag b {
  color: var(--brass-lit);
  font-weight: 500;
}

.elevation > svg {
  position: absolute;
  inset: 10% 6% 24%;
  width: 88%;
  height: 66%;
  overflow: visible;
}

.elevation .ln {
  fill: none;
  stroke: var(--brass-lit);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.6s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

.elevation .ln.faint {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
}

.elevation .fill {
  fill: rgba(214, 174, 98, 0.1);
  opacity: 0;
  animation: fade 1s ease forwards;
  animation-delay: var(--d, 1.4s);
}

.elevation .dim-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  fill: rgba(255, 255, 255, 0.55);
  opacity: 0;
  animation: fade 0.8s ease forwards;
  animation-delay: var(--d, 1.8s);
}

.elevation .plaque {
  fill: var(--brass-lit);
  opacity: 0;
  animation: fade 0.6s ease forwards;
  animation-delay: 2s;
}

.elevation .plaque-text {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  fill: var(--ink);
  opacity: 0;
  animation: fade 0.6s ease forwards;
  animation-delay: 2.15s;
}

/* The card over the drawing: what happens after the form, step by step. */
.journey {
  position: absolute;
  left: -28px;
  bottom: -32px;
  width: min(330px, 82%);
  padding: 20px 20px 10px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: 1.1s;
}

.journey-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.journey-head strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.journey-head span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.journey ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.journey li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.journey li:first-child {
  border-top: 0;
}

.journey li b {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.journey li small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.tick {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line);
  display: grid;
  place-items: center;
}

.tick svg {
  width: 14px;
  height: 14px;
  color: var(--white);
  opacity: 0;
  transform: scale(0.4);
  animation: pop 0.45s var(--ease) forwards;
  animation-delay: var(--d);
}

.tick::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--spruce);
  transform: scale(0);
  animation: pop-bg 0.45s var(--ease) forwards;
  animation-delay: var(--d);
}

.tick svg {
  position: relative;
}

.tick.you::before {
  background: var(--brass);
}

/* -------------------------------------------------------- situations */

.situations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.situation {
  position: relative;
  padding: 30px 26px 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.situation:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.situation .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--stone);
  color: var(--spruce);
  margin-bottom: 26px;
  transition: background-color 0.3s, color 0.3s;
}

.situation:hover .icon {
  background: var(--ink);
  color: var(--brass-lit);
}

.situation .icon svg {
  width: 28px;
  height: 28px;
}

.situation p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ------------------------------------------------------------- steps */

.steps-band {
  background: var(--white);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps::before,
.steps::after {
  /* The line the three steps sit on; it fills in as the section comes into view. */
  content: '';
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: var(--line);
}

.steps::after {
  background: var(--brass);
  transform-origin: left;
  transform: scaleX(1);
}

.js .steps::after {
  transform: scaleX(0);
  transition: transform 1.6s var(--ease) 0.2s;
}

.js .steps.in::after {
  transform: scaleX(1);
}

.step {
  position: relative;
}

.step-no {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--ink);
}

.step:last-child .step-no {
  background: var(--ink);
  color: var(--brass-lit);
  box-shadow: none;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
}

/* --------------------------------------------------------- texting */

.texting {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  position: relative;
}

.texting::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px;
  -webkit-mask-image: radial-gradient(70% 80% at 25% 50%, #000, transparent);
  mask-image: radial-gradient(70% 80% at 25% 50%, #000, transparent);
  pointer-events: none;
}

.texting .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.texting h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
}

.texting h2 em {
  color: var(--brass-lit);
}

.texting .eyebrow {
  color: var(--brass-lit);
}

.texting .lead {
  color: rgba(255, 255, 255, 0.68);
  margin-top: 20px;
}

.terms-list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}

.terms-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.97rem;
}

.terms-list span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-lit);
  padding-top: 3px;
}

.terms-list a {
  color: var(--white);
}

.phone {
  justify-self: center;
  width: min(340px, 100%);
  padding: 12px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2a4f48, #0b1d1a);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phone-screen {
  border-radius: 36px;
  background: #f6f7f5;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.phone-top {
  padding: 16px 20px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.phone-top .notch {
  width: 90px;
  height: 22px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #0b1d1a;
}

.phone-top .avatar {
  width: 40px;
  height: 40px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
}

.phone-top .avatar svg {
  width: 24px;
  height: 24px;
}

.phone-top b {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
}

.phone-top small {
  font-size: 0.74rem;
  color: var(--muted);
}

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

.thread .stamp {
  align-self: center;
  font-size: 0.68rem;
  color: var(--muted);
  margin: 2px 0 4px;
}

.bubble {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 0.86rem;
  line-height: 1.42;
}

.bubble.in {
  align-self: flex-start;
  background: #e4e8e5;
  color: var(--ink);
  border-bottom-left-radius: 6px;
}

.bubble.out {
  align-self: flex-end;
  background: var(--spruce);
  color: var(--white);
  border-bottom-right-radius: 6px;
}

.js .thread .bubble {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.js .thread.in .bubble {
  opacity: 1;
  transform: none;
}

.js .thread.in .bubble:nth-of-type(2) { transition-delay: 0.5s; }
.js .thread.in .bubble:nth-of-type(3) { transition-delay: 1s; }
.js .thread.in .bubble:nth-of-type(4) { transition-delay: 1.7s; }
.js .thread.in .bubble:nth-of-type(5) { transition-delay: 2.2s; }

.phone-caption {
  margin-top: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------- promises */

.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.promise {
  padding-top: 26px;
  border-top: 1px solid var(--ink);
}

.promise h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  font-variation-settings: 'SOFT' 50, 'opsz' 48;
}

.promise p {
  margin-top: 12px;
  color: var(--muted);
}

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

.faq-band {
  background: var(--white);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.faq-layout .section-head {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
}

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

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '';
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform 0.35s var(--ease), background-color 0.2s;
}

.faq summary:hover::after {
  background-color: var(--stone);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 52px 26px 0;
  color: var(--muted);
}

/* ------------------------------------------------------------ about */

.company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.company h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
}

.company .lead + .lead {
  margin-top: 16px;
}

.company h2 + .lead {
  margin-top: 24px;
}

.company-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 12px 32px;
}

.company-card dl {
  margin: 0;
}

.company-card dl > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.company-card dl > div:last-child {
  border-bottom: 0;
}

.company-card dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}

.company-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

/* -------------------------------------------------------------- cta */

.cta {
  padding: 0 0 clamp(80px, 10vw, 120px);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 100% 0%, #1f4a43 0%, var(--ink) 60%);
  color: rgba(255, 255, 255, 0.72);
}

.cta-panel::after {
  /* A roofline in brass, echoing the hero drawing. */
  content: '';
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 360px;
  height: 260px;
  border: 1px solid rgba(214, 174, 98, 0.25);
  border-bottom: 0;
  transform: perspective(400px) rotateX(0deg);
  clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%);
  background: linear-gradient(rgba(214, 174, 98, 0.08), transparent);
  pointer-events: none;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.1rem);
  max-width: 16ch;
}

.cta-panel h2 em {
  color: var(--brass-lit);
}

.cta-panel p {
  margin-top: 14px;
  font-size: 1.08rem;
}

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

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  padding: 72px 0 36px;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 40px;
}

.site-footer .brand,
.site-footer .brand-name {
  color: var(--white);
}

.site-footer .brand-name small {
  color: var(--brass-lit);
}

.site-footer h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-lit);
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer address {
  font-style: normal;
  line-height: 1.8;
}

.footer-about {
  margin-top: 18px;
  max-width: 340px;
}

.legal-line {
  grid-column: 1 / -1;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* -------------------------------------------------------- sell page */

.sell {
  padding: clamp(40px, 6vw, 72px) 0 clamp(80px, 10vw, 120px);
}

.sell .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.sell-intro {
  position: sticky;
  top: 108px;
}

.sell-intro h1 {
  font-size: clamp(2.5rem, 5vw, 4.1rem);
}

.sell-intro .lead {
  margin-top: 22px;
}

.next-steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.next-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding-bottom: 22px;
}

.next-steps li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19.5px;
  top: 40px;
  bottom: 2px;
  width: 1px;
  background: var(--line);
}

.next-steps b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
}

.next-steps span {
  padding-top: 8px;
  color: var(--text);
}

.sell-note {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.93rem;
  color: var(--muted);
}

.sell-note svg {
  width: 22px;
  height: 22px;
  color: var(--brass);
  flex: none;
  margin-top: 1px;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 4vw, 44px);
}

.form-card h2 {
  font-size: 2rem;
}

.form-card .form-sub {
  margin: 8px 0 26px;
  font-size: 0.93rem;
  color: var(--muted);
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 0 16px;
}

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

.grid-3 {
  grid-template-columns: 1.4fr 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.field label .req {
  color: var(--danger);
}

.field label .opt {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(15, 39, 35, 0.18);
  border-radius: 12px;
  background: #fbfcfb;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2723' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.field input:hover,
.field select:hover {
  border-color: rgba(15, 39, 35, 0.32);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--spruce);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(31, 74, 67, 0.12);
}

.field input::placeholder {
  color: #93a09c;
}

.field input[aria-invalid='true'] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(180, 55, 43, 0.1);
}

.field .error {
  font-size: 0.86rem;
  color: var(--danger);
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  margin: 8px 0 24px;
  padding: 18px 18px;
  border-radius: 14px;
  background: var(--stone);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.consent:hover {
  box-shadow: inset 0 0 0 1px rgba(15, 39, 35, 0.18);
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--spruce);
  cursor: pointer;
}

.consent .optional {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--white);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 1px;
}

.form-card .btn-primary {
  width: 100%;
  min-height: 56px;
  font-size: 1.04rem;
}

.form-foot {
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}

.notice {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.93rem;
}

.notice-error {
  background: var(--danger-soft);
  color: var(--danger);
}

.done {
  text-align: center;
  padding: 24px 0;
  outline: none;
}

.done-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok-soft);
  color: var(--ok);
}

.done h2 {
  margin-bottom: 14px;
}

.done p {
  margin-top: 10px;
  color: var(--muted);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.program {
  margin-top: 20px;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px var(--line);
}

.program h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
}

.program ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--text);
}

/* ------------------------------------------------------------ legal */

.legal {
  padding: clamp(48px, 7vw, 88px) 0 clamp(80px, 10vw, 120px);
}

.legal article {
  max-width: 760px;
  margin-inline: auto;
}

.legal h1 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
}

.legal .updated {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal .intro {
  margin: 32px 0 8px;
  font-size: 1.15rem;
  color: var(--text);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.legal section {
  padding-top: 36px;
}

.legal h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.legal p,
.legal li {
  color: var(--text);
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
  margin: 0;
}

.legal .callout {
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: inset 3px 0 0 var(--brass), var(--shadow);
}

/* ------------------------------------------------------------ motion */

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop-bg {
  to {
    transform: scale(1);
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.hero-copy > * {
  animation: enter 0.9s var(--ease) backwards;
}

.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }

/* Scroll reveals: only when the script runs, so the page never hides content without it. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal] {
    transform: none;
  }
}

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

@media (max-width: 1040px) {
  .situations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey {
    left: 16px;
  }
}

@media (max-width: 900px) {
  .hero .wrap,
  .texting .wrap,
  .faq-layout,
  .company,
  .sell .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .elevation {
    max-width: 560px;
    width: 100%;
    margin-bottom: 40px;
  }

  .faq-layout .section-head,
  .sell-intro {
    position: static;
  }

  .phone {
    order: 2;
  }

  .promises {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer .wrap > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-link {
    display: none;
  }

  .label-full {
    display: none;
  }

  .label-short {
    display: inline;
  }

  .nav .btn {
    margin-left: 0;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .steps::before,
  .steps::after {
    top: 28px;
    bottom: 28px;
    left: 27.5px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .steps::after,
  .js .steps::after {
    transform-origin: top;
    transform: scaleY(1);
  }

  .js .steps:not(.in)::after {
    transform: scaleY(0);
  }

  .step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 20px;
  }

  .step-no {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .step h3 {
    padding-top: 6px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(var(--page), 100% - 32px);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .assurances {
    grid-template-columns: minmax(0, 1fr);
  }

  .situations {
    grid-template-columns: minmax(0, 1fr);
  }

  .elevation {
    aspect-ratio: 1 / 1.12;
  }

  .journey {
    left: 12px;
    right: 12px;
    bottom: -40px;
    width: auto;
  }

  .terms-list li,
  .company-card dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .company-card {
    padding: 8px 22px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq details p {
    padding-right: 0;
  }

  .site-footer .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .phone-screen {
    min-height: 0;
  }
}

.terms-list p {
  margin: 0;
}

.nav .btn {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .nav .btn svg {
    display: none;
  }
}

/* On a phone the drawing and the card stack inside the panel instead of overlapping. */
@media (max-width: 600px) {
  .elevation {
    aspect-ratio: auto;
    padding: 0 12px 12px;
  }

  .elevation > svg {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    padding: 52px 2% 4px;
  }

  .journey {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
  }
}

@media (max-width: 380px) {
  .brand-name small {
    display: none;
  }
}

@media (max-width: 600px) {
  .elevation-tag span:last-child {
    display: none;
  }
}
