/* YesYouCamp design system — shared by the redesigned funnel pages.
   Mobile-first. One stylesheet, no framework. */

:root {
  --forest-900: #12301f;
  --forest-800: #1a4430;
  --forest-700: #1f5a3c;
  --forest-600: #23704a;
  --forest-500: #2e8b5a;
  --forest-100: #e3f1e8;
  --forest-50:  #f2f8f4;
  --sun-600: #d9661f;
  --sun-500: #f07a2c;
  --sun-100: #fdebdc;
  --sand-50:  #fbf9f5;
  --sand-100: #f4f0e8;
  --sand-200: #e8e1d4;
  --ink-900: #17201b;
  --ink-700: #3a463f;
  --ink-500: #66736b;
  --ink-300: #a7b1aa;
  --white: #fff;
  --danger: #c0392b;
  --danger-bg: #fdecea;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(18, 48, 31, .06), 0 1px 3px rgba(18, 48, 31, .08);
  --shadow: 0 6px 20px rgba(18, 48, 31, .10);
  --shadow-lg: 0 18px 50px rgba(18, 48, 31, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--forest-600); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2 { font-family: var(--display); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-500); }
.small { font-size: .875rem; }
.center { text-align: center; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; }
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--forest-600); margin-bottom: .6rem;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 245, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--sand-200);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--forest-800); text-decoration: none;
}
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-700); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--forest-700); }
.nav-links a.btn-forest, .nav-links a.btn-forest:hover { color: var(--white); }
.nav-links .hide-sm { display: none; }
@media (max-width: 480px) {
  .brand { font-size: 1.12rem; }
  .brand svg { width: 22px; height: 22px; }
  .nav-links { gap: 12px; }
  .hide-xs { display: none !important; }
}
@media (min-width: 760px) { .nav-links .hide-sm { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: 1rem;
  padding: 13px 22px; min-height: 48px;
  border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), background .15s, box-shadow .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--sun-500); color: var(--white); box-shadow: 0 6px 16px rgba(240, 122, 44, .35); }
.btn-primary:hover:not(:disabled) { background: var(--sun-600); }
.btn-forest { background: var(--forest-700); color: var(--white); }
.btn-forest:hover:not(:disabled) { background: var(--forest-800); }
.btn-ghost { background: transparent; color: var(--forest-700); border-color: var(--sand-200); }
.btn-ghost:hover { background: var(--white); }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn .spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label {
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-500);
}
.input, select.input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink-900);
  background: var(--white); border: 2px solid var(--sand-200); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 50px; outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2366736b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.input:focus { border-color: var(--forest-500); box-shadow: 0 0 0 4px rgba(46, 139, 90, .15); }
.input.invalid { border-color: var(--danger); }
.hint { font-size: .85rem; color: var(--ink-500); }
.form-error {
  display: none; background: var(--danger-bg); color: var(--danger);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem;
}
.form-error.show { display: block; }

/* ---------- Search card (hero + trip bar) ---------- */
.search-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 16px; display: grid; gap: 12px; text-align: left; color: var(--ink-900);
}
@media (min-width: 860px) {
  .search-card { grid-template-columns: 2.2fr 1.2fr .9fr auto; align-items: end; padding: 14px; }
  .search-card .btn { height: 50px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); overflow: hidden; background: var(--forest-900); }
.hero video, .hero .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,48,31,.35) 0%, rgba(18,48,31,.55) 60%, rgba(18,48,31,.85) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 860px) { .hero .wrap { padding-top: 96px; padding-bottom: 88px; } }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 40ch; opacity: .95; margin-bottom: 28px; }
.hero .proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: .92rem; opacity: .95; }
.hero .proof span { display: inline-flex; align-items: center; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  background: rgba(255,255,255,.14); color: var(--white); border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: 7px 14px; transition: background .15s;
}
.chip:hover { background: rgba(255,255,255,.26); }
.chip-light { background: var(--white); color: var(--forest-800); border-color: var(--sand-200); }
.chip-light:hover { background: var(--forest-50); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; border: 1px solid var(--sand-200); }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--forest-100); color: var(--forest-700); font-weight: 800; margin-bottom: 12px;
}
.stat { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--forest-700); line-height: 1; }
.quote { font-size: 1.02rem; }
.quote footer { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.quote img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* ---------- Plans ---------- */
.plans { display: grid; gap: 14px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan {
  position: relative; background: var(--white); border: 2px solid var(--sand-200); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s var(--ease);
}
.plan:hover { box-shadow: var(--shadow); }
.plan.selected { border-color: var(--forest-500); box-shadow: 0 0 0 4px rgba(46,139,90,.14), var(--shadow); }
.plan.featured { border-color: var(--sun-500); }
.plan.featured.selected { border-color: var(--forest-500); }
.plan .badge {
  position: absolute; top: -12px; left: 18px; background: var(--sun-500); color: var(--white);
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.plan .price { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1; }
.plan .price small { font-family: var(--font); font-size: .95rem; font-weight: 500; color: var(--ink-500); }
.plan ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 7px; font-size: .95rem; }
.plan li { position: relative; padding-left: 26px; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--forest-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%2323704a' stroke-width='2' fill='none'/%3E%3C/svg%3E") center no-repeat;
}
.plan li.neg::before { background: var(--sand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M1 1l6 6M7 1L1 7' stroke='%23a7b1aa' stroke-width='2'/%3E%3C/svg%3E") center no-repeat; color: var(--ink-500); }
.plan .radio {
  position: absolute; top: 20px; right: 20px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--ink-300); background: var(--white);
}
.plan.selected .radio { border-color: var(--forest-500); box-shadow: inset 0 0 0 4px var(--white); background: var(--forest-500); }

.panel {
  background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; margin-top: 18px; display: grid; gap: 16px;
  animation: rise .25s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tiers { display: grid; gap: 10px; }
@media (min-width: 600px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  border: 2px solid var(--sand-200); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, background .15s;
}
.tier input { position: absolute; opacity: 0; pointer-events: none; }
.tier strong { font-size: 1.25rem; }
.tier span { font-size: .85rem; color: var(--ink-500); }
.tier:has(input:checked) { border-color: var(--forest-500); background: var(--forest-50); }
.tier.checked { border-color: var(--forest-500); background: var(--forest-50); }
#card-element { border: 2px solid var(--sand-200); border-radius: var(--radius-sm); padding: 14px; background: var(--white); min-height: 50px; }
#card-element.StripeElement--focus { border-color: var(--forest-500); box-shadow: 0 0 0 4px rgba(46,139,90,.15); }
.trust { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--ink-500); }
.trust span { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Trip summary / proof ---------- */
.trip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius); padding: 14px 18px;
}
.trip .tag { background: var(--forest-50); color: var(--forest-800); border-radius: 999px; padding: 4px 10px; font-size: .88rem; font-weight: 600; }
.proofbox {
  display: grid; gap: 10px; background: var(--forest-900); color: var(--white); border-radius: var(--radius); padding: 18px 20px;
}
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: minmax(110px, 160px) 1fr 44px; gap: 10px; align-items: center; font-size: .88rem; }
.bar .track { height: 10px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; background: var(--sun-500); width: 0; transition: width .8s var(--ease); }
.bar.slow .fill { background: rgba(255,255,255,.55); }

/* ---------- Campground results ---------- */
.results { display: grid; gap: 10px; }
.cg {
  display: flex; align-items: center; gap: 14px; background: var(--white); border: 2px solid var(--sand-200);
  border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s;
  user-select: none;
}
.cg:hover { border-color: var(--ink-300); }
.cg.selected { border-color: var(--forest-500); background: var(--forest-50); }
.cg .box {
  flex: 0 0 22px; height: 22px; border-radius: 6px; border: 2px solid var(--ink-300); background: var(--white);
  display: grid; place-items: center;
}
.cg.selected .box { background: var(--forest-500); border-color: var(--forest-500); }
.cg.selected .box::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.cg .name { flex: 1; font-weight: 600; }
.cg .meta { font-size: .82rem; color: var(--ink-500); font-weight: 500; }
.cg a.ext { font-size: .82rem; color: var(--ink-500); text-decoration: none; }
.cg.available { cursor: default; border-style: dashed; }
.cg .open { color: var(--forest-600); font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; }
.skeleton { height: 54px; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--sand-100), var(--white), var(--sand-100)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.notice { border-radius: var(--radius); padding: 16px 18px; background: var(--forest-50); border: 1px solid var(--forest-100); }
.notice.warn { background: var(--sun-100); border-color: #f8d2b4; }

.sticky-cta {
  position: sticky; bottom: 0; z-index: 40; margin-top: 18px;
  background: rgba(251,249,245,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--sand-200); padding: 12px 0;
}
.sticky-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Referral ---------- */
.referral {
  background: linear-gradient(135deg, var(--forest-800), var(--forest-600)); color: var(--white);
  border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 14px;
}
.referral h3 { font-family: var(--display); font-size: 1.45rem; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-link {
  flex: 1 1 220px; min-width: 0; font: inherit; font-size: .95rem; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 0; background: rgba(255,255,255,.15); color: var(--white);
}
.referral .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.referral .btn-ghost:hover { background: rgba(255,255,255,.1); }
.progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; }
.progress > div { height: 100%; background: var(--sun-500); }
.invite-banner {
  background: var(--sun-100); color: var(--ink-900); text-align: center; font-size: .92rem; font-weight: 600; padding: 9px 16px;
}

/* ---------- FAQ ---------- */
details.faq { background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius-sm); padding: 4px 18px; }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--forest-600); }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--ink-700); }

/* ---------- Alerts (manage) ---------- */
.alert-item { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
.pill-on { background: var(--forest-100); color: var(--forest-700); }
.pill-off { background: var(--sand-100); color: var(--ink-500); }
.pill-sun { background: var(--sun-100); color: var(--sun-600); }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--ink-500); margin: 6px 0 10px; }
.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: none; }
.switch input:disabled + span { opacity: .6; cursor: progress; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--ink-300); transition: background .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: var(--shadow-sm); }
.switch input:checked + span { background: var(--forest-500); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid rgba(46,139,90,.4); outline-offset: 2px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 100;
  background: var(--ink-900); color: var(--white); padding: 12px 18px; border-radius: 999px; font-size: .92rem; font-weight: 600;
  transition: opacity .2s, transform .2s var(--ease); pointer-events: none; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.footer { background: var(--forest-900); color: rgba(255,255,255,.75); padding: 40px 0 28px; font-size: .92rem; }
.footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer .cols { display: grid; gap: 22px; }
@media (min-width: 760px) { .footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 { color: var(--white); margin: 0 0 10px; font-size: .95rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
