/* ============ Cairn — landing page ============
   Loaded after site.css and scoped to body.home, so the 3D viewer page
   (munro.html) keeps the original design system untouched. Palette is the
   app's: pine greens, the cairn's cream field, warm amber accent. */

body.home {
  --pine-950: #0a1f14;
  --pine-900: #10281c;
  --pine-800: #143a2a;
  --pine-600: #2f6b4f;
  --stone: #4e7c3a;
  --field: #fbe7ce;
  --amber: #f2a65a;
  --amber-700: #b9701f;
  --ink: #16211b;
  --muted: #5d6f65;
  --paper: #ffffff;
  --sand: #faf7f2;
  --line: rgba(20, 58, 42, 0.1);

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --sh-sm: 0 1px 2px rgba(16, 40, 28, .04), 0 4px 16px -6px rgba(16, 40, 28, .10);
  --sh-md: 0 2px 4px rgba(16, 40, 28, .04), 0 18px 40px -16px rgba(16, 40, 28, .22);
  --sh-lg: 0 40px 80px -32px rgba(10, 31, 20, .45);

  background: var(--sand);
  color: var(--ink);
}
body.home .wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* ---------- header ---------- */
body.home header.site {
  position: sticky; top: 0; height: 68px; padding: 0;
  background: rgba(250, 247, 242, .78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
body.home header.site.scrolled { border-bottom-color: var(--line); }
body.home header.site .bar {
  max-width: 1180px; margin: 0 auto; height: 100%;
  padding: 0 clamp(20px, 5vw, 40px);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 34px);
}
body.home header.site .logo {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  letter-spacing: -.4px; color: var(--ink); display: flex; align-items: center; gap: 10px;
}
body.home header.site .logo svg { width: 30px; height: 30px; border-radius: 8px; }
body.home header.site nav { display: flex; gap: 26px; flex: 1; }
body.home header.site nav a {
  color: var(--muted); font-size: 14px; font-weight: 500; border: 0;
  padding: 4px 0; transition: color .15s;
}
body.home header.site nav a:hover { color: var(--pine-800); }
body.home #profileBtn {
  background: var(--pine-800); color: #fff; border-radius: 999px;
  padding: 10px 20px; font-size: 13.5px; font-weight: 600; box-shadow: none;
  transition: background .16s, transform .16s;
}
body.home #profileBtn:hover { background: var(--pine-600); transform: none; }
@media (max-width: 720px) { body.home header.site nav { display: none; } }
@media (max-width: 430px) { body.home .kicker { letter-spacing: .07em; font-size: 11.5px; } }

/* ---------- hero ---------- */
body.home .hero {
  position: static; min-height: 0; display: block; overflow: visible;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(242, 166, 90, .16), transparent 62%),
    radial-gradient(900px 480px at 6% 4%, rgba(47, 107, 79, .12), transparent 60%),
    var(--sand);
  color: var(--ink);
  padding: clamp(46px, 8vw, 92px) 0 clamp(40px, 6vw, 72px);
}
body.home .hero .inner {
  max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
body.home .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pine-600); background: rgba(47, 107, 79, .09);
  border-radius: 999px; padding: 7px 14px; margin: 0 0 20px;
}
body.home .kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
}
body.home .hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -1.6px;
  margin: 0 0 20px; max-width: 15ch; text-wrap: balance; color: var(--pine-950);
}
body.home .hero h1 em { font-style: italic; color: var(--amber-700); }
body.home .hero .lede {
  margin: 0 0 30px; color: var(--muted); max-width: 48ch;
  font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.62;
}
body.home .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
body.home .btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 15px 26px; border: 1px solid transparent;
  transition: transform .16s cubic-bezier(.2,.8,.3,1), box-shadow .16s, background .16s;
}
body.home .btn.primary {
  background: var(--pine-800); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(20, 58, 42, .7);
}
body.home .btn.primary:hover { background: var(--pine-600); transform: translateY(-2px); }
body.home .btn.ghost { background: transparent; color: var(--pine-800); border-color: var(--line); }
body.home .btn.ghost:hover { background: rgba(20, 58, 42, .05); }
body.home .btn.soon { color: var(--muted); cursor: default; }
body.home .btn.soon:hover { background: transparent; transform: none; }
body.home .btn .tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--field); color: var(--amber-700); border-radius: 999px; padding: 3px 8px;
}

/* phone trio — sized so the whole screen fits; never crop, the bottom of each
   screenshot is where the message and the primary button are */
body.home .shots { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 0; }
body.home .phone {
  position: relative; width: clamp(148px, 19vw, 200px); flex: 0 0 auto;
  border-radius: 28px; padding: 6px; background: #12211a;
  box-shadow: var(--sh-lg);
}
/* height:auto is load-bearing — the <img> width/height attributes become a
   presentational `height: 1212px`, which otherwise stretches the screenshot */
body.home .phone img { display: block; width: 100%; height: auto; border-radius: 23px; }
body.home .phone.back { transform: rotate(-5deg) translateY(26px) scale(.93); z-index: 1; margin-right: -12%; }
body.home .phone.front { z-index: 3; }
body.home .phone.side { transform: rotate(5deg) translateY(26px) scale(.93); z-index: 2; margin-left: -12%; }
@media (max-width: 900px) {
  body.home .hero .inner { grid-template-columns: 1fr; }
  body.home .shots { order: -1; }
  body.home .phone.back, body.home .phone.side { display: none; }
  body.home .phone.front { width: min(62vw, 260px); }
}

/* ---------- stat strip ---------- */
body.home .strip { border-block: 1px solid var(--line); background: var(--paper); }
body.home .strip .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; padding-block: clamp(22px, 3vw, 34px);
}
body.home .strip .stat { text-align: center; }
body.home .strip .stat b {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 3vw, 34px); color: var(--pine-800); letter-spacing: -.5px;
}
body.home .strip .stat span {
  font-size: 12.5px; color: var(--muted); letter-spacing: .02em;
}
@media (max-width: 620px) { body.home .strip .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 22px; } }

/* ---------- section furniture ---------- */
body.home section.band { padding: clamp(60px, 9vw, 110px) 0; }
body.home .eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--amber-700); margin: 0 0 12px;
}
body.home h2.sec-head {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -1px;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0 0 14px;
  color: var(--pine-950); max-width: 20ch; text-wrap: balance;
}
body.home .section-lede {
  color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.62;
  max-width: 58ch; margin: 0;
}

/* ---------- features ---------- */
body.home .features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(16px, 2.2vw, 24px); margin-top: clamp(34px, 5vw, 54px);
}
body.home .feature {
  background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--sh-sm); border: 1px solid var(--line);
  transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s;
}
body.home .feature:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
body.home .feature .ico {
  width: 46px; height: 46px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: rgba(47, 107, 79, .1); color: var(--pine-600); margin-bottom: 18px;
}
body.home .feature:nth-child(2) .ico { background: rgba(242, 166, 90, .18); color: var(--amber-700); }
body.home .feature .ico svg { width: 23px; height: 23px; }
body.home .feature h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  margin: 0 0 9px; letter-spacing: -.3px; color: var(--pine-950);
}
body.home .feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.62; }

/* ---------- dark showcase ---------- */
body.home .showcase {
  background:
    radial-gradient(760px 420px at 88% 12%, rgba(242, 166, 90, .16), transparent 62%),
    var(--pine-950);
  color: #eef4f0;
}
body.home .showcase .wrap {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 5vw, 68px); align-items: center;
}
body.home .showcase .eyebrow { color: var(--amber); }
body.home .showcase h2.sec-head { color: #fff; }
body.home .showcase .section-lede { color: #b3c6ba; }
body.home .checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 13px; }
body.home .checks li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; color: #cfdcd4; line-height: 1.55;
}
body.home .checks svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; color: var(--amber); }
body.home .showcase .shots { justify-content: flex-end; }
body.home .terrain-shot { margin: 0; }
body.home .terrain-shot img {
  display: block; width: 100%; height: auto; border-radius: var(--r-md);
  box-shadow: var(--sh-lg); border: 1px solid rgba(255, 255, 255, .1);
}
body.home .terrain-shot figcaption {
  margin-top: 14px; font-size: 12.5px; color: #8ea79a; letter-spacing: .01em;
}
@media (max-width: 900px) {
  body.home .showcase .wrap { grid-template-columns: 1fr; }
  body.home .showcase .terrain-shot { order: -1; }
}

/* ---------- munro grid ---------- */
body.home .grid-wrap { max-width: 1180px; padding: 0 clamp(20px, 5vw, 40px) clamp(70px, 9vw, 110px); }
body.home .grid-head { display: block; margin: 0 0 26px; }
body.home .grid-head h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -1px;
  font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; color: var(--pine-950);
}
body.home .grid-head .sub { color: var(--muted); font-size: 16px; display: block; }
body.home .bagcount:empty { display: none; }
body.home .bagcount {
  display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600;
  color: var(--pine-600); background: rgba(47, 107, 79, .1);
  border-radius: 999px; padding: 6px 14px;
}
body.home .filters {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px;
}
body.home .searchbox {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--sh-sm); padding: 0 18px; height: 46px; min-width: min(320px, 100%);
  display: flex; align-items: center; gap: 10px; color: var(--muted);
  transition: border-color .16s, box-shadow .16s;
}
body.home .searchbox:focus-within { border-color: var(--pine-600); box-shadow: 0 0 0 4px rgba(47,107,79,.1); }
body.home .searchbox svg { width: 17px; height: 17px; }
body.home .searchbox input {
  border: 0; outline: 0; background: transparent; flex: 1; height: 100%;
  font: inherit; font-size: 14.5px; color: var(--ink);
}
body.home .pills { display: flex; flex-wrap: wrap; gap: 8px; }
body.home .rpill {
  border: 1px solid var(--line); background: var(--paper); color: var(--muted);
  border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: all .15s;
}
body.home .rpill:hover { color: var(--pine-800); border-color: rgba(20,58,42,.24); }
body.home .rpill.active { background: var(--pine-800); border-color: var(--pine-800); color: #fff; }

body.home .grid {
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: clamp(18px, 2.4vw, 26px);
}
body.home .card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.3,1), box-shadow .22s;
}
body.home .card.in { opacity: 1; transform: none; }
body.home .card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
body.home .card .img { aspect-ratio: 16 / 11; }
body.home .card .img .title h2 { font-size: 23px; letter-spacing: -.4px; }
body.home .card .img .title .ht { color: var(--field); font-size: 13.5px; }
body.home .card .img .region {
  background: rgba(10, 31, 20, .55); font-size: 10.5px; letter-spacing: .1em;
}
body.home .card .body { padding: 18px 20px 20px; gap: 12px; }
body.home .card .blurb { color: var(--muted); font-size: 14px; line-height: 1.6; }
body.home .pill {
  background: rgba(47, 107, 79, .1); color: var(--pine-600);
  font-size: 11.5px; font-weight: 600; padding: 5px 12px;
}
body.home .pill.ghost { background: rgba(20, 58, 42, .05); color: var(--muted); }
body.home .empty {
  text-align: center; color: var(--muted); padding: 60px 0; font-size: 15px;
}

/* ---------- footer ---------- */
body.home footer.site {
  background: var(--pine-950); color: #93a99c; padding: clamp(44px, 6vw, 66px) 0 46px;
  font-size: 13px; line-height: 1.7; text-align: left; border: 0;
}
body.home footer.site .wrap { display: grid; gap: 26px; }
body.home footer.site .top {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .09);
}
body.home footer.site .logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 19px; font-weight: 700; color: #fff;
}
body.home footer.site .logo svg { width: 28px; height: 28px; border-radius: 8px; }
body.home footer.site a { color: #cfe0d5; text-decoration: none; border-bottom: 1px solid rgba(207,224,213,.3); }
body.home footer.site a:hover { color: #fff; }
body.home footer.site .safety { color: #b9cfc1; }
body.home footer.site .links { display: flex; gap: 20px; flex-wrap: wrap; }
body.home footer.site .links a { border: 0; }

@media (prefers-reduced-motion: reduce) {
  body.home * { transition: none !important; animation: none !important; }
  body.home .card { opacity: 1; transform: none; }
}
