/* Sales home. Login / 404 stay on landing.css + body.landing. */

html {
  overflow-x: clip;
}

body.sale {
  display: block;
  padding: 0;
  background: #efece4;
  color: #1a1714;
  overflow-x: clip;
}

body.sale::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: -12vmax;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 28%, rgba(154, 61, 26, 0.1), transparent 19rem),
    radial-gradient(circle at 82% 70%, rgba(196, 132, 42, 0.07), transparent 22rem),
    linear-gradient(rgba(26, 23, 20, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 23, 20, 0.026) 1px, transparent 1px),
    radial-gradient(circle, rgba(26, 23, 20, 0.08) 0 1px, transparent 1.5px);
  background-size: auto, auto, 72px 72px, 72px 72px, 24px 24px;
  opacity: 0.72;
  transform: translate3d(var(--texture-x, -1.5%), var(--texture-y, -1%), 0)
    rotate(var(--texture-r, 0deg));
  transition: transform var(--texture-duration, 34s) cubic-bezier(0.45, 0, 0.55, 1);
}

body.sale > * {
  position: relative;
  z-index: 1;
}

.sale-skip {
  position: fixed;
  left: 0.75rem;
  top: -5rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: #fffdf8;
  color: #1a1714;
  font-weight: 700;
}

.sale-skip:focus {
  top: 0.75rem;
}

body.sale > .sale-skip {
  position: fixed;
  z-index: 100;
}

.sale-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem clamp(1.1rem, 3vw, 2.4rem);
  background: rgba(239, 236, 228, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ddd6c8;
}

body.sale > .sale-nav {
  position: sticky;
  z-index: 20;
}

.sale-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: inherit;
  font-size: 1.15rem;
}

.sale-brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
}

.sale-brand em {
  font-style: normal;
  color: #9a3d1a;
  font-weight: 650;
}

.sale-links {
  display: flex;
  gap: 1.15rem;
  margin-left: auto;
  font-size: 0.92rem;
}

.sale-links a {
  text-decoration: none;
  color: #5a554c;
}

.sale-links a:hover { color: #1a1714; }

.sale-links a[aria-current="page"] {
  color: #1a1714;
  font-weight: 650;
}

.sale-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #c9c2b4;
  border-radius: 9px;
  background: #fffdf8;
  color: #1a1714;
  cursor: pointer;
}

.sale-nav-toggle:focus-visible {
  outline: 3px solid #9a3d1a;
  outline-offset: 2px;
}

.sale-nav-backdrop[hidden] {
  display: none;
}

.sale-signin { flex: 0 0 auto; }

.sale-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.6rem, 4vw, 3.2rem) clamp(1.1rem, 3vw, 2.4rem) 2rem;
}

.sale-hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 4.4vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.sale-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a3d1a;
}

.sale-lede,
.sale-block p {
  margin: 0 0 1.15rem;
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: #5a554c;
}

.sale-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.sale-hero-photo,
.sale-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(26, 23, 20, 0.14);
}

.sale-hero-photo img,
.sale-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.sale-photo-desk img {
  object-fit: cover;
  aspect-ratio: 4 / 3;
  object-position: 50% 28%;
}

.sale-product-view {
  position: relative;
  width: min(100%, 46rem);
  margin: 0 auto;
  padding: 1rem 0 1.75rem;
  perspective: 90rem;
  isolation: isolate;
}

.sale-product-view::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% 4% 2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 61, 26, 0.2), transparent 68%);
  filter: blur(28px);
}

.sale-product-view figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0 0 0.65rem 2rem;
  color: #5a554c;
  font-size: 0.82rem;
}

.sale-product-view figcaption span {
  color: #9a3d1a;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sale-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 800;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.8);
  border-radius: 14px;
  background: #f3efe6;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.85) inset,
    0 28px 55px rgba(26, 23, 20, 0.22),
    0 8px 18px rgba(26, 23, 20, 0.14);
  transform: rotateX(1.5deg) rotateY(-4deg);
  transform-origin: center;
}

.sale-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 22% 78%, rgba(26, 23, 20, 0.06));
}

.sale-screen iframe {
  position: absolute;
  inset: 0;
  width: 200%;
  height: 200%;
  border: 0;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
}

.sale-phone {
  position: absolute;
  z-index: 4;
  right: -1.25rem;
  bottom: -0.25rem;
  width: clamp(9rem, 29%, 12.5rem);
  padding: 1.05rem 0.42rem 0.5rem;
  border: 1px solid #39342e;
  border-radius: 1.55rem;
  background: #1a1714;
  box-shadow:
    0 24px 45px rgba(26, 23, 20, 0.3),
    0 2px 0 rgba(255, 255, 255, 0.16) inset;
  transform: rotate(2.5deg);
}

.sale-phone-speaker {
  position: absolute;
  top: 0.48rem;
  left: 50%;
  width: 2.4rem;
  height: 0.22rem;
  border-radius: 999px;
  background: #625b52;
  transform: translateX(-50%);
}

.sale-phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border-radius: 1rem;
  background: #f3efe6;
}

.sale-phone-screen iframe {
  position: absolute;
  inset: 0;
  width: 200%;
  height: 200%;
  border: 0;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
}

.sale-phone-papers {
  right: auto;
  left: -1.25rem;
  transform: rotate(-2.5deg);
}

.sale-product-view-right .sale-screen {
  transform: rotateX(1.5deg) rotateY(4deg);
}

.sale-sample-note {
  margin: 0.75rem 2rem 0 auto !important;
  color: #5a554c !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.04em;
  text-align: right;
}

.sale-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin: 0 clamp(1.1rem, 3vw, 2.4rem) 2.5rem;
  padding: 1.15rem 1.25rem;
  background: #fffdf8;
  border: 1px solid #e4dccf;
  border-radius: 14px;
}

.sale-strip p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #5a554c;
}

.sale-strip strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #1a1714;
}

.sale-block {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.1rem, 3vw, 2.4rem);
}

.sale-block h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 2.6vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.sale-block-ink {
  position: relative;
  overflow: hidden;
  background: #1a1714;
  color: #efece4;
}

.sale-block-ink::before {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 36%, rgba(232, 160, 122, 0.1), transparent 23rem),
    repeating-linear-gradient(115deg, transparent 0 54px, rgba(255, 253, 248, 0.026) 54px 55px);
  transform: translate3d(var(--dark-texture-x, -1%), var(--dark-texture-y, 0%), 0)
    rotate(var(--dark-texture-r, 0deg));
  transition: transform var(--dark-texture-duration, 40s) cubic-bezier(0.45, 0, 0.55, 1);
}

.sale-block-ink > * {
  position: relative;
  z-index: 1;
}

.sale-block-ink .sale-eyebrow { color: #e8a07a; }
.sale-block-ink p,
.sale-block-ink li { color: #cfc6b6; }
.sale-block-ink h2 { color: #efece4; }
.sale-block-ink .sale-product-view figcaption { color: #cfc6b6; }
.sale-block-ink .sale-product-view figcaption span { color: #e8a07a; }
.sale-block-ink .sale-sample-note { color: #aaa092 !important; }

.sale-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}

.sale-split-rev { direction: rtl; }
.sale-split-rev > * { direction: ltr; }

.sale-list {
  margin: 0;
  padding-left: 1.1rem;
  max-width: 38rem;
}

.sale-list li { margin: 0.4rem 0; color: #5a554c; }

.sale-narrow {
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.sale-narrow p { margin-left: auto; margin-right: auto; }

.sale-audit-story {
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.sale-audit-story strong {
  color: #1a1714;
}

.sale-product-view-audit {
  width: min(100%, 49rem);
}

.sale-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.75rem, 4vw, 3rem);
}

.sale-cards article {
  padding: 1.2rem 1.15rem 1.3rem;
  background: #fffdf8;
  border: 1px solid #e4dccf;
  border-radius: 12px;
}

.sale-cards h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.sale-cards p {
  margin: 0;
  font-size: 0.95rem;
  color: #5a554c;
}

.sale-close {
  padding: clamp(2.4rem, 6vw, 4.5rem) clamp(1.1rem, 3vw, 2.4rem);
  background:
    linear-gradient(180deg, rgba(26, 23, 20, 0.18), rgba(26, 23, 20, 0.55)),
    url("/assets/img/landing/hero-yard.jpg") center 62% / cover no-repeat;
  color: #efece4;
  text-align: center;
}

.sale-close h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
}

.sale-close p {
  margin: 0 auto 1.2rem;
  max-width: 28rem;
  color: #efece4;
}

.sale-cta-center {
  justify-content: center;
}

.sale-close .btn {
  background: #e8a07a;
  color: #1a1714;
}

.sale-close .btn.ghost {
  background: transparent;
  color: #efece4;
  border: 1px solid rgba(239, 236, 228, 0.6);
}

.sale-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.4rem;
  padding: 1.2rem clamp(1.1rem, 3vw, 2.4rem) 1.6rem;
  border-top: 1px solid #ddd6c8;
  font-size: 0.88rem;
  color: #5a554c;
}

.sale-foot .sale-brand { font-size: 1rem; }
.sale-foot .sale-brand img { width: 2rem; height: 2rem; }
.sale-foot p { margin: 0; flex: 1; }

.sale-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}

.sale-foot-links a {
  color: #1a1714;
  text-decoration: none;
}

.sale-foot-links a:hover {
  text-decoration: underline;
}

.legal-page {
  width: min(46rem, 100%);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.8rem) clamp(1.1rem, 3vw, 2.4rem) 3.2rem;
}

.legal-page h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.legal-meta {
  margin: 0 0 1.25rem;
  color: #5a554c;
  font-size: 0.9rem;
}

.legal-page h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  scroll-margin-top: 4.5rem;
}

.legal-page p,
.legal-page li {
  font-size: 0.95rem;
  line-height: 1.55;
}

.legal-page p { margin: 0 0 0.85rem; }

.legal-page ul,
.legal-page ol {
  margin: 0 0 0.95rem;
  padding-left: 1.25rem;
}

.legal-page li { margin: 0 0 0.35rem; }

.legal-page a {
  color: #9a3d1a;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.legal-toc {
  margin: 1.4rem 0 1.8rem;
  padding: 0.95rem 1.1rem 1rem;
  border: 1px solid #ddd6c8;
  border-radius: 10px;
  background: #fffdf8;
}

.legal-toc p {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a554c;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 1.5rem;
}

.legal-toc li {
  margin: 0 0 0.28rem;
  font-size: 0.88rem;
  break-inside: avoid;
}

.legal-toc a {
  color: #1a1714;
  text-decoration: none;
}

.legal-toc a:hover { text-decoration: underline; }

.legal-callout {
  margin: 1rem 0 1.15rem;
  padding: 1rem 1.1rem 0.25rem;
  border: 1px solid #e4dccf;
  border-left: 4px solid #9a3d1a;
  border-radius: 8px;
  background: #fffdf8;
}

.legal-callout p { margin-bottom: 0.85rem; }

@media (max-width: 700px) {
  .legal-toc ol { columns: 1; }
}

@media (max-width: 900px) {
  .sale-hero,
  .sale-split,
  .sale-split-rev,
  .sale-audit-story,
  .sale-strip,
  .sale-cards {
    grid-template-columns: 1fr;
  }

  .sale-split-rev { direction: ltr; }

  .sale-nav {
    justify-content: flex-start;
  }

  .sale-nav-toggle {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    z-index: 3;
  }

  .sale-links {
    position: fixed;
    inset: 0 0 0 auto;
    display: flex;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    width: min(18rem, 82vw);
    min-height: 100dvh;
    padding: 5.5rem 1.25rem 1.5rem;
    background: #fffdf8;
    border-left: 1px solid #ddd6c8;
    transform: translateX(105%);
    visibility: hidden;
    transition:
      transform 0.2s ease,
      visibility 0s linear 0.2s;
  }

  .sale-links a {
    display: block;
    padding: 0.7rem 0.75rem;
    border-radius: 8px;
    color: #1a1714;
    font-weight: 650;
  }

  .sale-signin {
    position: relative;
    z-index: 3;
  }

  body.sale-menu-open {
    overflow: hidden;
  }

  body.sale-menu-open .sale-links {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }

  .sale-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 15;
    background: rgba(26, 23, 20, 0.46);
  }

  body.sale > .sale-nav-backdrop {
    position: fixed;
    z-index: 15;
  }

  .sale-hero { padding-top: 1.2rem; }

  .sale-product-view {
    width: min(100%, 40rem);
    margin-top: 0.75rem;
  }

  .sale-phone {
    right: 0.25rem;
    width: clamp(8.5rem, 25%, 10.5rem);
  }

  .sale-phone-papers {
    right: auto;
    left: 0.25rem;
  }

  .sale-screen iframe {
    width: 240%;
    height: 240%;
    transform: scale(0.4166667);
  }
}

@media (max-width: 600px) {
  .sale-hero-copy h1 { font-size: 2.05rem; }

  .sale-product-view {
    padding-bottom: 1rem;
  }

  .sale-phone {
    display: none;
  }

  .sale-product-view figcaption {
    margin-left: 0.5rem;
  }

  .sale-screen {
    border-radius: 9px;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.75) inset,
      0 12px 26px rgba(26, 23, 20, 0.16);
    transform: none;
  }

  .sale-product-view-right .sale-screen {
    transform: none;
  }

  .sale-screen iframe {
    width: 360%;
    height: 360%;
    transform: scale(0.2777778);
  }

  .sale-sample-note {
    margin-right: 0.5rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.sale::before,
  .sale-block-ink::before {
    transition: none;
    transform: none;
  }

  .sale-screen,
  .sale-product-view-right .sale-screen {
    transform: none;
  }

  .sale-links {
    transition: none;
  }
}
