/* ============================================================
   YardMate — yardmate.ai  ·  landing styles
   Visual language mirrors the iOS app:
   parchment ground · Playfair italic display · forest green +
   terracotta accents · warm glass cards.
   ============================================================ */

:root {
  /* surfaces */
  --parchment:      #F2EEE3;
  --parchment-deep: #EBE4D5;
  --card:           #FBF9F3;
  --card-warm:      #F6F1E6;

  /* ink */
  --ink:      #24231E;
  --ink-soft: #4B4740;
  --muted:    #8B8576;

  /* brand */
  --green:      #1E3127;   /* primary / dark bands / buttons */
  --green-deep: #16261D;
  --sage:       #6E8A63;
  --rust:       #B05A37;   /* eyebrows, accents */
  --terracotta: #C16A3E;   /* feed */
  --water:      #2A6189;   /* water */
  --gold:       #C9A24B;

  /* lines & shadow */
  --line:   rgba(36, 35, 30, 0.10);
  --line-2: rgba(36, 35, 30, 0.06);
  --shadow-sm: 0 2px 10px rgba(36, 35, 30, 0.06);
  --shadow-md: 0 18px 50px -18px rgba(36, 35, 30, 0.30);
  --shadow-lg: 0 40px 90px -30px rgba(36, 35, 30, 0.45);

  /* type */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --brand: 'ABeeZee', 'Inter', -apple-system, sans-serif;  /* YardMate wordmark */

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.08; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.eyebrow--rust  { color: var(--rust); }
.eyebrow--cream { color: rgba(246, 241, 230, 0.7); }

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.96rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85em 1.5em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--pill { background: var(--green); color: #F6F1E6; padding: 0.6em 1.15em; font-size: 0.88rem; }
.btn--pill:hover { box-shadow: var(--shadow-sm); }
.btn--dark { background: var(--green); color: #F6F1E6; box-shadow: var(--shadow-md); }
.btn--dark:hover { box-shadow: var(--shadow-lg); }
.btn--cream { background: var(--card-warm); color: var(--green); box-shadow: 0 14px 40px -14px rgba(0,0,0,.5); }

.btn--store { padding: 0.7em 1.4em; border-radius: 16px; }
.btn--store span { display: inline-flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn--store small { font-size: 0.62rem; font-weight: 500; opacity: 0.8; letter-spacing: 0.02em; }
.btn--store span { font-size: 1.06rem; font-weight: 700; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav.scrolled {
  background: rgba(242, 238, 227, 0.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.scrolled .nav__inner { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--brand);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: 0;
}
.nav__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 1px 4px rgba(36, 35, 30, 0.18);
  outline: 1px solid rgba(36, 35, 30, 0.05);
  outline-offset: -1px;
  transition: transform 0.25s ease;
}
.nav__brand:hover .nav__icon { transform: rotate(-8deg) scale(1.05); }
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.2rem 0;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--rust);
  transition: width 0.25s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta svg { opacity: 0.9; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(7rem, 14vh, 11rem) 0 clamp(3rem, 8vh, 6rem); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(70% 55% at 78% 18%, rgba(110, 138, 99, 0.20), transparent 60%),
    radial-gradient(60% 50% at 8% 90%, rgba(176, 90, 55, 0.10), transparent 55%),
    linear-gradient(180deg, #F5F1E7 0%, var(--parchment) 60%);
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--ink-soft); max-width: 40ch; }
.hero__cta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin: 2rem 0 1.6rem; }
.hero__note { font-size: 0.85rem; color: var(--muted); }
.hero__proof {
  list-style: none; padding: 1.5rem 0 0; margin-top: 1.4rem;
  display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.hero__proof li { font-size: 0.92rem; color: var(--muted); }
.hero__proof strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--ink); font-weight: 600; }

/* hero phones */
.hero__art { position: relative; min-height: 540px; display: flex; align-items: center; justify-content: center; }
.leaf { position: absolute; font-size: 4rem; color: var(--sage); opacity: 0.35; }
.leaf--1 { top: 4%; right: 6%; transform: rotate(12deg); }

/* ============================================================
   DEVICE / PHONE MOCKUPS
   ============================================================ */
.device {
  background: #14130F;
  border-radius: 44px;
  padding: 9px;
  box-shadow: var(--shadow-lg), 0 0 0 1.5px rgba(255,255,255,0.04) inset;
}
.device img { border-radius: 36px; width: 100%; display: block; }

.device--solo { width: min(300px, 78vw); margin: 0 auto; }
.device--bare { background: transparent; padding: 0; box-shadow: none; border-radius: 30px; }
.device--bare img { border-radius: 22px; box-shadow: var(--shadow-md); }

.device--tilt { transform: rotate(-4deg); }

/* overlapping hero pair */
.device--back {
  position: absolute;
  width: 250px;
  top: 0; right: 2%;
  transform: rotate(5deg);
  opacity: 0.96;
}
.device--front {
  position: relative;
  width: 270px;
  left: -6%;
  top: 26px;
  transform: rotate(-3deg);
  z-index: 2;
}

/* ============================================================
   STRIP / MARQUEE
   ============================================================ */
.strip {
  background: var(--green);
  color: rgba(246, 241, 230, 0.92);
  overflow: hidden;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.strip__track {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  animation: marquee 32s linear infinite;
  will-change: transform;
}
.strip__track span[aria-hidden] { color: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   FEATURE (alternating)
   ============================================================ */
.feature {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 7rem) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.feature--reverse .feature__media { order: 2; }
.feature__copy h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.05rem);
  margin-bottom: 1.1rem;
}
.feature__copy .lead { margin-bottom: 1.6rem; }

.ticks { list-style: none; padding: 0; display: grid; gap: 0.85rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--ink-soft); font-size: 1.02rem; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.15em;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--sage);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/0.95rem no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/0.95rem no-repeat;
}

.pills { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.pill {
  font-size: 0.86rem; font-weight: 600;
  padding: 0.5em 1.1em; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
}
.pill--info  { color: var(--green); }
.pill--care  { color: var(--terracotta); border-color: rgba(193,106,62,.3); }
.pill--story { color: var(--water); border-color: rgba(42,97,137,.25); }

/* ============================================================
   CALLOUT (green band)
   ============================================================ */
.callout {
  background:
    radial-gradient(80% 120% at 85% 10%, rgba(110,138,99,0.18), transparent 55%),
    var(--green);
  color: #F1ECDF;
  padding: clamp(4rem, 9vh, 7rem) 0;
  margin: clamp(2rem, 5vh, 4rem) 0;
}
.callout__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.callout .eyebrow--rust { color: #E2A984; }
.callout h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.05rem); margin-bottom: 1.1rem; color: #FBF7EE; }
.callout .lead { color: rgba(241, 236, 223, 0.82); }
.callout__media { display: flex; justify-content: center; }

/* ============================================================
   DISCOVER
   ============================================================ */
.discover { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 9vh, 7rem) var(--gutter); }
.discover__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.discover__head h2 { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 1rem; }
.discover__head em { font-style: italic; color: var(--rust); }
.discover__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: end;
}
.discover__card { display: flex; flex-direction: column; gap: 1rem; }
.discover__card--tall { transform: translateY(-8px); }
.discover__card figcaption {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--ink-soft); text-align: center;
}

/* ============================================================
   FEATURE GRID
   ============================================================ */
.grid-feats {
  background: var(--card-warm);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: clamp(4rem, 9vh, 7rem) 0;
}
.grid-feats__head { text-align: center; max-width: var(--maxw); margin: 0 auto 3rem; padding: 0 var(--gutter); }
.grid-feats__head h2 { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.1rem); }
.grid-feats__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.gf {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gf:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gf__ico { font-size: 1.7rem; display: block; margin-bottom: 0.9rem; }
.gf h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 0.5rem; }
.gf p { color: var(--ink-soft); font-size: 0.98rem; }

/* ============================================================
   DOWNLOAD
   ============================================================ */
.download {
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(110,138,99,0.22), transparent 60%),
    var(--green-deep);
  color: #F4EFE3;
  text-align: center;
  padding: clamp(4.5rem, 11vh, 8rem) var(--gutter);
}
.download__inner { max-width: 640px; margin: 0 auto; }
.download h2 { font-family: var(--serif); font-size: clamp(2.3rem, 5.2vw, 3.6rem); margin-bottom: 1rem; }
.download__sub { color: rgba(244, 239, 227, 0.78); font-size: 1.1rem; margin-bottom: 2.2rem; }
.download__cta { display: flex; justify-content: center; }
.download__note { margin-top: 1.2rem; font-size: 0.85rem; color: rgba(244, 239, 227, 0.55); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--parchment); padding: clamp(3rem, 6vh, 5rem) var(--gutter) 2rem; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 2fr; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--line);
}
.footer__word { font-family: var(--brand); font-style: italic; font-weight: 400; font-size: 1.7rem; }
.footer__tag { color: var(--muted); margin-top: 0.4rem; }
.footer__social { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.footer__social a:hover {
  color: #F6F1E6; background: var(--green); border-color: var(--green);
  transform: translateY(-3px);
}
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer__col h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; font-weight: 600; }
.footer__col a { display: block; color: var(--ink-soft); font-size: 0.95rem; padding: 0.28rem 0; }
.footer__col a:hover { color: var(--rust); }
.footer__base {
  max-width: var(--maxw); margin: 1.6rem auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  font-size: 0.85rem; color: var(--muted);
}

/* ============================================================
   LEGAL PAGES (privacy / terms)
   ============================================================ */
.nav--solid {
  background: rgba(242, 238, 227, 0.86);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(7rem, 14vh, 9.5rem) var(--gutter) clamp(4rem, 8vh, 6rem);
}
.legal__head { margin-bottom: 2.5rem; }
.legal h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.5vw, 3.3rem);
  margin: 0.4rem 0 0.7rem;
}
.legal__meta { color: var(--muted); font-size: 0.9rem; }
.legal__lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 1.4rem 0 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.legal__body h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  margin: 2.6rem 0 0.8rem;
}
.legal__body h3 { font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 0.4rem; color: var(--ink); }
.legal__body p,
.legal__body li { color: var(--ink-soft); font-size: 1.0rem; }
.legal__body p { margin: 0 0 1rem; }
.legal__body ul { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.legal__body li { margin-bottom: 0.5rem; }
.legal__body a { color: var(--rust); text-decoration: underline; text-underline-offset: 2px; }
.legal__body strong { color: var(--ink); }
.legal__back {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 600; font-size: 0.92rem; color: var(--rust);
}
.legal__back:hover { text-decoration: underline; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
/* Fallback (browsers without scroll-driven animations): JS toggles .is-visible.
   Minimal: a gentle rise + fade, long easing, no scale. */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.16,.74,.28,1), transform 1s cubic-bezier(.16,.74,.28,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Premium: motion tied to scroll position — continuous, reversible, Apple-style.
   Each element resolves by its own position in the viewport, so groups stagger
   naturally as you scroll. No JS, runs on the compositor. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Scroll-linked reveal removed — it tied opacity to scroll position, which made
       tall full-width photos flicker (fade in/out) while scrolling. The base
       .reveal + .is-visible (IntersectionObserver, one-shot) handles the fade now. */

    /* subtle parallax depth on the showcase device images */
    .feature__media .device,
    .callout__media .device,
    .discover__card .device {
      animation: device-parallax linear both;
      animation-timeline: view();
      animation-range: cover;
    }
    @keyframes device-parallax {
      from { translate: 0 38px; }
      to   { translate: 0 -38px; }
    }
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__art { min-height: 480px; order: -1; }
  .hero__copy { text-align: center; }
  .hero__sub, .lead { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__proof { justify-content: center; }
  .hero__proof { display: inline-flex; }

  .feature { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .feature--reverse .feature__media { order: 0; }
  .feature__copy .ticks { display: inline-grid; text-align: left; }
  .feature__copy .pills { justify-content: center; }

  .callout__inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .callout__media { order: -1; }

  .discover__grid { grid-template-columns: 1fr 1fr; }
  .discover__card--tall { grid-column: 1 / -1; max-width: 320px; margin: 0 auto; transform: none; }

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

@media (max-width: 640px) {
  .nav__links { display: none; }
  .device--back { width: 200px; right: 8%; }
  .device--front { width: 220px; left: 0; }
  .hero__art { min-height: 430px; }
  .grid-feats__grid { grid-template-columns: 1fr; }
  .discover__grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .discover__card--tall { grid-column: auto; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  .feature__media .device,
  .callout__media .device,
  .discover__card .device { animation: none; translate: none; }
  .strip__track { animation: none; }
  .btn:hover { transform: none; }
}

/* ---- Download toast (app launches July 2026) ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 18px);
  z-index: 100;
  max-width: min(90vw, 460px);
  padding: 13px 24px;
  background: var(--green);
  color: var(--card);
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .2px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  text-align: center;
}
.toast--show { opacity: 1; transform: translate(-50%, 0); }
