/* Bark & Ride marketing site — implements "Bark and Ride Home.dc.html" from the design project. */
@import url('tokens.css');

*, *::before, *::after { box-sizing: border-box; }
/* The brand is a deliberate light design (sand/green). Without this, Chrome's
   Auto Dark Mode inverts the palette on users who enable it — stripping the
   green from buttons while leaving photography light. Opt out explicitly. */
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0; background: var(--surface-page); color: var(--ink-900);
  font-family: var(--font-body); font-size: var(--text-body-size);
  font-weight: var(--text-body-weight); line-height: var(--text-body-lh);
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); }
a:hover { color: var(--color-primary-hover); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--text-heading); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); }
.bg-white { background: var(--white); }
.bg-sand { background: var(--sand-50); }
.eyebrow {
  color: var(--green-700); font-weight: 600; font-size: 14px; letter-spacing: 1.2px;
  text-transform: uppercase; margin: 0 0 14px;
}
.h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.muted { color: var(--ink-600); }
.faint { color: var(--ink-400); }

/* buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; border-radius: var(--radius-pill);
  transition: background var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease),
              transform var(--duration-fast) var(--ease);
}
.btn-primary { background: var(--color-primary); color: var(--white); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--white); }
.btn-outline { color: var(--green-700); border: 1px solid var(--green-700); }
.btn-outline:hover { background: var(--surface-brand-tint); color: var(--green-800); }

/* banner */
.banner {
  background: var(--ink-900); color: var(--sand-50); text-align: center; font-size: 13px;
  font-weight: 500; letter-spacing: 0.2px; padding: 9px 16px;
}
.banner a { color: var(--green-100); font-weight: 600; }
.banner a:hover { color: var(--white); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--sand-100);
}
.nav .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.4px;
  color: var(--green-700); text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.brand:hover { color: var(--green-800); }
.nav-links { display: flex; gap: 26px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.nav-links a:not(.btn) { color: var(--ink-600); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--green-700); }
.nav-links .btn { font-size: 15px; padding: 10px 22px; }

/* hero */
.hero { background: var(--sand-50); }
.hero .wrap {
  padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface-brand-tint);
  color: var(--green-800); font-size: 13px; font-weight: 600; padding: 6px 14px;
  border-radius: var(--radius-pill); margin-bottom: 24px;
}
.hero h1 { font-size: clamp(40px, 5.8vw, 76px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 24px; text-wrap: balance; }
.hero .lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-600); max-width: 52ch; margin: 0 0 36px; text-wrap: pretty; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .actions .btn-primary { font-size: 17px; padding: 15px 32px; }
.hero .actions .btn-primary:hover { transform: translateY(-1px); }
.hero .actions .btn-outline { font-size: 17px; padding: 15px 26px; }
.hero .note { margin: 28px 0 0; font-size: 14px; color: var(--ink-400); }
.hero-visual { position: relative; }
.hero-photo {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-elevated);
  aspect-ratio: 4 / 4.4; min-height: 360px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute; left: -14px; bottom: 34px; background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated); padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  animation: br-float 6s var(--ease) infinite; font-size: 14px; line-height: 1.4;
}
.hero-card .icon {
  width: 38px; height: 38px; border-radius: 50%; background: var(--surface-brand-tint);
  display: inline-flex; align-items: center; justify-content: center; color: var(--green-700); flex: none;
}
@media (max-width: 480px) { .hero-card { left: 8px; right: 8px; bottom: 16px; } }

/* ticker */
.ticker { background: var(--green-700); color: var(--white); overflow: hidden; padding: 13px 0; }
.ticker-track { display: flex; width: max-content; animation: br-ticker 36s linear infinite; }
.ticker-track > div {
  display: flex; gap: 48px; padding-right: 48px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.4px; text-transform: uppercase; white-space: nowrap;
}

/* how it works */
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.step {
  background: var(--surface-muted); border-radius: var(--radius-md); padding: 28px 26px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.step .num { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--green-700); }
.step h3 { font-size: 21px; letter-spacing: -0.2px; }
.step p { margin: 0; color: var(--ink-600); font-size: 15.5px; line-height: 1.55; text-wrap: pretty; }

/* stay in the loop */
.loop .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
.loop .h2 { margin-bottom: 22px; }
.loop .lead { color: var(--ink-600); font-size: 17px; line-height: 1.65; margin: 0 0 28px; max-width: 50ch; text-wrap: pretty; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.checks svg { color: var(--green-700); margin-top: 2px; flex: none; }
.phone-wrap { display: flex; justify-content: center; }
.phone {
  background: var(--white); border-radius: 24px; box-shadow: var(--shadow-elevated); padding: 26px 22px;
  width: min(100%, 380px); display: flex; flex-direction: column; gap: 12px;
}
.phone .label { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-400); }
.ping { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-muted); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.ping .time {
  width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--surface-brand-tint);
  display: inline-flex; align-items: center; justify-content: center; color: var(--green-700); font-size: 12px; font-weight: 700;
}

/* adventures */
.adv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(40px, 5vw, 56px); }
.adv-head > div { max-width: 600px; }
.adv-head > p { color: var(--ink-600); font-size: 16px; max-width: 36ch; margin: 0; text-wrap: pretty; }
.trips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.trip {
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease);
}
.trip:hover { transform: translateY(-5px); box-shadow: var(--shadow-elevated); }
.trip-media { height: 210px; position: relative; }
.trip-media img { width: 100%; height: 100%; object-fit: cover; }
.trip-media img.focus-left { object-position: 35% 50%; }
/* placeholder until photos are supplied — swap for an <img> */
.trip-placeholder {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--green-800); font-size: 13px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
  background: linear-gradient(160deg, var(--green-50), var(--sand-100));
}
.trip-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12.5px; font-weight: 600; padding: 3px 11px; border-radius: var(--radius-pill); }
.tag-brand { background: var(--surface-brand-tint); color: var(--green-800); }
.tag-muted { background: var(--surface-muted); color: var(--ink-600); }
.trip h3 { font-size: 22px; letter-spacing: -0.3px; }
.trip p { margin: 0; color: var(--ink-600); font-size: 15px; line-height: 1.55; flex: 1; text-wrap: pretty; }
.trip-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--sand-100); padding-top: 14px; margin-top: 4px; }
.trip-foot .meta { font-size: 14px; color: var(--ink-400); }
.trip-foot .price { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--green-700); }
.adv-note { margin: 32px 0 0; color: var(--ink-400); font-size: 14px; }

/* tenets */
.tenets-head { max-width: 640px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.tenets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.tenet { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 30px 28px; }
.tenet .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--surface-brand-tint); color: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.tenet h3 { font-size: 20px; margin: 0 0 10px; letter-spacing: -0.2px; }
.tenet p { margin: 0; color: var(--ink-600); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }

/* faq */
.faq .wrap { max-width: 820px; }
.faq .section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.faq details { border-bottom: 1px solid var(--sand-100); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-weight: 600; font-size: 17px; color: var(--ink-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  color: var(--green-700); font-size: 22px; font-weight: 400; line-height: 1; flex: none;
  transition: transform var(--duration-base) var(--ease);
}
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 0 24px; color: var(--ink-600); font-size: 16px; line-height: 1.65; max-width: 64ch; text-wrap: pretty; }

/* cta */
.cta { background: var(--green-700); text-align: center; }
.cta .wrap { padding-top: clamp(72px, 9vw, 130px); padding-bottom: clamp(72px, 9vw, 130px); }
.cta h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.08; letter-spacing: -0.025em; color: var(--white); margin: 0 auto 20px; max-width: 18ch; text-wrap: balance; }
.cta p { color: var(--green-100); font-size: 18px; margin: 0 auto 40px; max-width: 44ch; text-wrap: pretty; }
.cta .btn { background: var(--white); color: var(--green-800); font-size: 18px; padding: 17px 40px; }
.cta .btn:hover { transform: translateY(-2px); background: var(--sand-50); color: var(--green-800); }

/* footer */
.footer { background: var(--white); border-top: 1px solid var(--sand-100); }
.footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer .brand { font-size: 18px; letter-spacing: -0.3px; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a { color: var(--ink-600); text-decoration: none; font-size: 14px; }
.footer nav a:hover { color: var(--green-700); }
.footer .legal { color: var(--ink-400); font-size: 13px; }

/* motion */
@keyframes br-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes br-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .hero-card { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .step, .trip, .btn { transition: none; }
}

/* ── simple pages (download.html, 404.html) ─────────────────────────────── */
.simple { background: var(--surface-muted); }
.simple .wrap { max-width: 760px; text-align: center; }
.simple h1 {
  font-size: clamp(34px, 5.5vw, 60px); line-height: 1.08; letter-spacing: -0.025em;
  margin: 0 0 20px; text-wrap: balance;
}
.simple .lead {
  color: var(--ink-600); font-size: 18px; line-height: 1.6; margin: 0 auto 36px;
  max-width: 48ch; text-wrap: pretty;
}
.simple .note { color: var(--ink-400); font-size: 14px; margin: 28px 0 0; }

/* store badges — deliberately inert: the app is not listed yet, so these are
   neutral chips, not the official "Download on the App Store" / Google Play
   artwork (which may only be used for a live listing). */
.store-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 8px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; text-align: left;
  background: var(--white); border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: 13px 22px; color: var(--ink-400); box-shadow: var(--shadow-card);
}
.store-badge svg { flex: none; }
.store-badge .lbl { display: flex; flex-direction: column; line-height: 1.25; }
.store-badge .lbl small {
  font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink-400);
}
.store-badge .lbl strong {
  font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink-600);
}

/* contact card — the only live conversion path until the app ships */
.contact-card {
  background: var(--surface-brand-tint); border-radius: var(--radius-md);
  padding: 32px 28px; margin-top: 48px; text-align: center;
}
.contact-card h2 { font-size: 22px; margin: 0 0 10px; letter-spacing: -0.2px; }
.contact-card .btn { font-size: 16px; padding: 14px 28px; }
.contact-card p { margin: 0 0 20px; color: var(--ink-600); font-size: 16px; text-wrap: pretty; }

.actions-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.simple .actions-row .btn { font-size: 17px; padding: 15px 32px; }
