/* ============================================================
   Landscapey — landing.css
   Editorial-garden aesthetic. Magazine grid, soft warmth,
   restrained motion, distinctive serif headlines.
   ============================================================ */

/* ──────────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(64px, 10vh, 128px) 0 clamp(80px, 12vh, 140px);
  background:
    radial-gradient(900px 520px at 88% 18%, rgba(148, 165, 133, 0.22), transparent 65%),
    radial-gradient(700px 400px at 12% 90%, rgba(200, 170, 132, 0.16), transparent 70%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  overflow: hidden;
}
/* faint grain texture for editorial paper feel */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero-copy { max-width: 620px; }
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(56px, 8.5vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 24px 0 28px;
  font-weight: 400;
}
.hero-headline em {
  font-style: italic;
  color: var(--moss);
  display: inline-block;
  position: relative;
}
.hero-headline em::after {
  content: "";
  position: absolute;
  left: 0; right: 6px;
  bottom: 8px;
  height: 4px;
  background: var(--sage);
  opacity: 0.35;
  border-radius: 2px;
  z-index: -1;
}
.hero-sub {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-cta-upload {
  position: relative;
}
.hero-cta-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.hero-trust {
  margin-top: 36px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-trust span::before {
  content: "";
  width: 14px; height: 14px;
  background: var(--moss);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ── Hero before/after card ─────────────────── */
.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 540px;
  margin-left: auto;
  width: 100%;
}
.hero-art::before {
  /* Soft offset shadow card behind, very magazine */
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  background: var(--cream);
  border-radius: var(--radius-xl);
  z-index: 0;
  opacity: 0.85;
}

.ba-card {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--cream);
  box-shadow:
    0 40px 80px -30px rgba(28, 31, 26, 0.32),
    0 16px 32px -16px rgba(28, 31, 26, 0.18),
    inset 0 0 0 1px rgba(28, 31, 26, 0.06);
}

.ba-slider {
  --pos: 50%;
  position: relative;
  width: 100%; height: 100%;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.ba-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ba-after-wrap {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  will-change: clip-path;
}

/* Fallback gradients so the page looks intentional before real images exist */
.ba-img.placeholder-before {
  background:
    linear-gradient(180deg, rgba(150, 145, 130, 0.25), rgba(120, 115, 100, 0.55)),
    linear-gradient(135deg, #b8b3a3, #8a8473);
}
.ba-img.placeholder-after {
  background:
    radial-gradient(800px 400px at 70% 30%, rgba(255, 230, 180, 0.4), transparent 60%),
    linear-gradient(135deg, #6b8159 0%, #8aa178 50%, #c8aa84 100%);
}

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--paper);
  transform: translateX(-50%);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(28, 31, 26, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c3a25' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6 4 12l4 6M16 6l4 6-4 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}

.ba-tag {
  position: absolute;
  bottom: 18px;
  background: rgba(28, 31, 26, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--paper);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-tag.is-before { left: 18px; }
.ba-tag.is-after  { right: 18px; }

.hero-art-caption {
  position: absolute;
  bottom: -56px;
  left: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--mist);
}
.hero-art-caption span {
  color: var(--ink);
  font-style: normal;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  font-size: 12px;
  text-transform: uppercase;
  margin-right: 10px;
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-art   { margin-left: 0; max-width: 100%; }
  .hero-art-caption { position: static; margin-top: 20px; }
  .hero-art::before { display: none; }
}

/* ──────────────────────────────────────────────────
   SHOWCASE — "See what's possible"
   ────────────────────────────────────────────────── */
.showcase {
  padding: clamp(96px, 14vh, 180px) 0;
  background: var(--paper);
  position: relative;
}
.showcase-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 880px) {
  .showcase-head { grid-template-columns: 1fr; align-items: start; }
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.sample-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
  isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  text-decoration: none;
  color: inherit;
}
.sample-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -28px rgba(28, 31, 26, 0.25);
}

/* Magazine grid: alternate sizes for editorial rhythm */
.sample-card:nth-child(1) { grid-column: span 7; aspect-ratio: 7 / 5; }
.sample-card:nth-child(2) { grid-column: span 5; aspect-ratio: 5 / 5; }
.sample-card:nth-child(3) { grid-column: span 5; aspect-ratio: 5 / 5; }
.sample-card:nth-child(4) { grid-column: span 7; aspect-ratio: 7 / 5; }

@media (max-width: 880px) {
  .sample-card { grid-column: span 12 !important; aspect-ratio: 4 / 3 !important; }
}

.sample-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.7s var(--ease), transform 1.2s var(--ease);
}
.sample-img.is-after {
  opacity: 0;
}
.sample-card:hover .sample-img.is-after { opacity: 1; }
.sample-card:hover .sample-img.is-before { transform: scale(1.04); }

/* Placeholder gradients so each card is distinct without real images */
.sample-card[data-style="modern"] .sample-img.is-before    { background: linear-gradient(135deg, #9c9789 0%, #7c7868 100%); }
.sample-card[data-style="modern"] .sample-img.is-after     { background: radial-gradient(700px 400px at 30% 30%, rgba(255, 230, 180, 0.35), transparent 60%), linear-gradient(135deg, #4a5b3e 0%, #94a585 100%); }
.sample-card[data-style="cottage"] .sample-img.is-before   { background: linear-gradient(135deg, #b3a896 0%, #8a8170 100%); }
.sample-card[data-style="cottage"] .sample-img.is-after    { background: radial-gradient(700px 400px at 70% 40%, rgba(255, 200, 180, 0.4), transparent 60%), linear-gradient(135deg, #c8aa84 0%, #b85c3a 100%); }
.sample-card[data-style="drought"] .sample-img.is-before   { background: linear-gradient(135deg, #a8a290 0%, #76705f 100%); }
.sample-card[data-style="drought"] .sample-img.is-after    { background: radial-gradient(700px 400px at 50% 50%, rgba(220, 200, 140, 0.5), transparent 60%), linear-gradient(135deg, #b8a060 0%, #6e7548 100%); }
.sample-card[data-style="japanese"] .sample-img.is-before  { background: linear-gradient(135deg, #989386 0%, #6e6a5d 100%); }
.sample-card[data-style="japanese"] .sample-img.is-after   { background: radial-gradient(700px 400px at 40% 60%, rgba(180, 200, 180, 0.4), transparent 60%), linear-gradient(135deg, #3f5235 0%, #2c3a25 100%); }

.sample-meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 24px 22px;
  color: var(--paper);
  background: linear-gradient(180deg, transparent 0%, rgba(28, 31, 26, 0.78) 100%);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}
.sample-name {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
}
.sample-style-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(247, 244, 236, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(247, 244, 236, 0.25);
  color: var(--paper);
}

.sample-hover-hint {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(247, 244, 236, 0.85);
  backdrop-filter: blur(6px);
  color: var(--moss-deep);
  opacity: 1;
  transition: opacity 0.4s var(--ease);
}
.sample-card:hover .sample-hover-hint { opacity: 0; }

/* ──────────────────────────────────────────────────
   STEPS — "How it works"
   ────────────────────────────────────────────────── */
.steps {
  padding: clamp(96px, 14vh, 180px) 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}
.steps-head {
  text-align: center;
  margin-bottom: 80px;
}
.steps-head .eyebrow { justify-content: center; }
.steps-head .section-heading { max-width: 760px; margin-left: auto; margin-right: auto; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  position: relative;
}
.steps-grid::before {
  /* connecting hairline behind the three steps, desktop only */
  content: "";
  position: absolute;
  top: 56px;
  left: 12%; right: 12%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}

.step {
  position: relative;
  padding-top: 12px;
}
.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  font-style: italic;
  color: var(--moss);
  background: var(--paper-deep);
  padding-right: 14px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.step-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  font-weight: 400;
  color: var(--ink);
}
.step-desc {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  max-width: 320px;
}
@media (max-width: 880px) {
  .steps-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps-grid::before { display: none; }
}

/* ──────────────────────────────────────────────────
   ALSO — Build guide & Pros
   ────────────────────────────────────────────────── */
.also {
  padding: clamp(96px, 14vh, 180px) 0;
  background: var(--paper);
}
.also-head { text-align: left; margin-bottom: 64px; max-width: 720px; }

.also-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.also-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 4vw, 56px);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.also-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -28px rgba(28, 31, 26, 0.18);
}
.also-card::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(148, 165, 133, 0.18), transparent 70%);
  z-index: 0;
}
.also-card-inner { position: relative; z-index: 1; }
.also-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--paper);
  display: grid; place-items: center;
  color: var(--moss-deep);
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.also-card h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin: 0 0 14px;
  color: var(--ink);
}
.also-card p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 440px;
}
.also-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--moss-deep);
  border-bottom: 1px solid var(--moss-deep);
  padding-bottom: 4px;
  transition: gap 0.4s var(--ease);
}
.also-link:hover { gap: 14px; }
.also-link svg { width: 14px; height: 14px; }

@media (max-width: 880px) {
  .also-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────
   CLOSE CTA
   ────────────────────────────────────────────────── */
.close-cta {
  padding: clamp(64px, 10vh, 140px) 0;
  background: var(--paper);
}
.close-cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(72px, 10vw, 140px) clamp(40px, 8vw, 100px);
  background:
    radial-gradient(900px 500px at 80% 20%, rgba(148, 165, 133, 0.5), transparent 60%),
    radial-gradient(700px 400px at 15% 90%, rgba(200, 92, 58, 0.18), transparent 65%),
    linear-gradient(135deg, var(--moss-deep) 0%, var(--moss) 50%, #1f2a18 100%);
  color: var(--paper);
  text-align: center;
}
.close-cta-card::before {
  /* grain texture again for cohesion with hero */
  content: "";
  position: absolute; inset: 0;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  pointer-events: none;
}

.close-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-soft);
  margin-bottom: 24px;
}
.close-cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 24px;
  position: relative;
}
.close-cta-card h2 em {
  font-style: italic;
  color: var(--sage-soft);
}
.close-cta-card p {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(247, 244, 236, 0.78);
  max-width: 540px;
  margin: 0 auto 40px;
  position: relative;
}
.close-cta-card .hero-cta { justify-content: center; position: relative; }
.close-cta-card .hero-trust { justify-content: center; color: rgba(247, 244, 236, 0.55); margin-top: 32px; position: relative; }
.close-cta-card .hero-trust span::before { background: var(--sage-soft); }

/* ──────────────────────────────────────────────────
   File-upload feedback (subtle state when file picked)
   ────────────────────────────────────────────────── */
.upload-flash {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 60px);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  z-index: 100;
  pointer-events: none;
}
.upload-flash.is-in {
  transform: translate(-50%, 0);
  opacity: 1;
}
.upload-flash svg { width: 16px; height: 16px; color: var(--sage-soft); }
