/* Wanderform marketing landing — paper / ink editorial */
:root {
  --paper: #F7F3EE;
  --ink: #1C1917;
  --ink-muted: #78716C;
  --terra: #C45C26;
  --terra-soft: #E8A07A;
  --olive: #6B7F5A;
  --line: #E7E5E4;
  --white: #FFFFFF;
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --shadow: 0 8px 32px rgba(28, 25, 23, 0.08);
  --shadow-soft: 0 4px 20px rgba(28, 25, 23, 0.06);
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
}

body.landing {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.landing a { color: inherit; text-decoration: none; }
.landing img { display: block; max-width: 100%; height: auto; }

.landing .wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.l-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 243, 238, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.l-nav.is-scrolled {
  border-bottom-color: var(--line);
}

.l-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.l-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.l-brand img.mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.l-brand img.wordmark {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.l-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.l-nav-links a:hover {
  color: var(--ink);
}

.l-nav-cta {
  flex-shrink: 0;
}

.l-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 820px) {
  .l-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: var(--pad);
    right: var(--pad);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }
  .l-nav-links.is-open { display: flex; }
  .l-nav-links a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
  }
  .l-nav-links a:hover { background: rgba(28, 25, 23, 0.04); }
  .l-nav-toggle { display: inline-flex; align-items: center; }
  .l-nav-inner { position: relative; }
  .l-brand img.wordmark { display: none; }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  border-radius: 999px;
  border: 1.5px solid transparent;
  padding: 0.75rem 1.35rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}

.btn-primary:hover {
  background: #a94d1f;
  border-color: #a94d1f;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink-muted);
  background: rgba(28, 25, 23, 0.03);
}

.btn-on-dark {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn-on-dark:hover {
  background: var(--white);
}

.btn-ghost-on-dark {
  background: transparent;
  color: var(--paper);
  border-color: rgba(247, 243, 238, 0.35);
}

.btn-ghost-on-dark:hover {
  border-color: var(--paper);
  background: rgba(247, 243, 238, 0.08);
}

.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

/* —— Hero —— */
.l-hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6.5rem);
  position: relative;
  overflow: hidden;
}

.l-hero::before {
  content: "";
  position: absolute;
  inset: -20% 40% auto -10%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(196, 92, 38, 0.09), transparent 70%);
  pointer-events: none;
}

.l-hero::after {
  content: "";
  position: absolute;
  inset: auto -5% -30% 50%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(107, 127, 90, 0.08), transparent 70%);
  pointer-events: none;
}

.l-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.l-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.25rem;
}

.l-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--terra);
  border-radius: 1px;
}

.l-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 14ch;
}

.l-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.l-lead {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  max-width: 38ch;
  margin-bottom: 2rem;
}

.l-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.l-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.l-pill {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

.l-pill span {
  color: var(--olive);
  margin-right: 0.25rem;
}

/* Hero visual — phone preview card */
.l-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.l-preview {
  width: min(100%, 280px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow), 0 0 0 8px #ebe6df, 0 0 0 9px var(--line);
  padding: 1.25rem 1.15rem 1.5rem;
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}

.l-preview-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.l-preview-top img {
  width: 24px;
  height: 24px;
}

.l-preview-top span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.l-preview-search {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.l-preview-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.l-mini-card {
  border-radius: 12px;
  padding: 0.85rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.l-mini-card .swatch {
  height: 48px;
  border-radius: 8px;
  margin-bottom: 0.55rem;
}

.l-mini-card strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.l-mini-card p {
  font-size: 0.7rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

.l-preview-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.l-preview-nav .on {
  color: var(--terra);
}

@media (max-width: 900px) {
  .l-hero-grid {
    grid-template-columns: 1fr;
  }
  .l-hero-visual { order: -1; }
  .l-preview {
    width: min(100%, 220px);
    aspect-ratio: auto;
    max-height: 340px;
  }
  .l-hero h1 { max-width: none; }
}

/* —— Sections shared —— */
.l-section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.l-section-head {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.l-section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.l-section-head p {
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

.l-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.65rem;
}

/* —— Features —— */
.l-features {
  background:
    linear-gradient(180deg, transparent, rgba(231, 229, 228, 0.35) 0%, transparent 100%);
}

.l-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.l-feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.35rem 1.6rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.l-feature:hover {
  border-color: var(--terra-soft);
  box-shadow: var(--shadow);
}

.l-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 92, 38, 0.1);
  color: var(--terra);
}

.l-feature:nth-child(2) .l-feature-icon {
  background: rgba(107, 127, 90, 0.12);
  color: var(--olive);
}

.l-feature:nth-child(3) .l-feature-icon {
  background: rgba(232, 160, 122, 0.25);
  color: #a94d1f;
}

.l-feature:nth-child(4) .l-feature-icon {
  background: rgba(28, 25, 23, 0.06);
  color: var(--ink);
}

.l-feature h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.l-feature p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  flex: 1;
}

.l-feature .l-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--terra);
}

.l-feature .l-link:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .l-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .l-feature-grid { grid-template-columns: 1fr; }
}

/* —— How it works —— */
.l-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.l-step {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.l-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--terra-soft);
  display: block;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.l-step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.l-step p {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

@media (max-width: 720px) {
  .l-steps { grid-template-columns: 1fr; }
}

/* —— Quote / social —— */
.l-quotes {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.l-quotes .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.l-quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.8;
  color: var(--terra-soft);
  margin-bottom: 1rem;
}

.l-quotes blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}

.l-quotes cite {
  font-style: normal;
  font-size: 0.875rem;
  color: rgba(247, 243, 238, 0.65);
  font-weight: 500;
}

.l-quote-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.l-stat {
  border: 1px solid rgba(247, 243, 238, 0.15);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  background: rgba(247, 243, 238, 0.04);
}

.l-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.l-stat span {
  font-size: 0.875rem;
  color: rgba(247, 243, 238, 0.65);
}

@media (max-width: 720px) {
  .l-quotes .wrap { grid-template-columns: 1fr; }
}

/* —— Final CTA —— */
.l-cta {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.l-cta-band {
  background: linear-gradient(135deg, var(--terra) 0%, #a94d1f 55%, #8f421a 100%);
  color: var(--paper);
  border-radius: 24px;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  box-shadow: var(--shadow);
}

.l-cta-band h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  max-width: 18ch;
}

.l-cta-band p {
  opacity: 0.9;
  max-width: 36ch;
  font-size: 1rem;
}

.l-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Footer —— */
.l-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
}

.l-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.l-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 22rem;
}

.l-footer-brand .row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.l-footer-brand img {
  width: 28px;
  height: 28px;
}

.l-footer-brand .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.l-footer-brand p {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.l-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.l-footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.l-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.l-footer-col a {
  font-size: 0.9375rem;
  color: var(--ink);
}

.l-footer-col a:hover {
  color: var(--terra);
}

.l-partners .l-section-head {
  max-width: 40rem;
}

.l-affiliate-disclosure {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(107, 127, 90, 0.08);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 40rem;
}

.l-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* App chrome link (on app.html desktop) */
.app-back {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: rgba(247, 243, 238, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

.app-back:hover { color: var(--ink); border-color: var(--ink-muted); }

@media (max-width: 420px) {
  .app-back { display: none; }
}
