/* ============================================================
   PATCH — STYLES
   Organized top to bottom:
   1. Base & reset      6. How it works
   2. Layout helpers    7. Teams
   3. Buttons           8. Weather
   4. Navigation        9. Pricing (teaser + page)
   5. Hero & doors     10. CTA & footer
   ============================================================ */

/* ---------- 1. BASE & RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background:
    linear-gradient(150deg, rgba(230, 241, 238, 0.62), transparent 36%),
    linear-gradient(32deg, rgba(184, 217, 91, 0.10), transparent 45%),
    var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; font-weight: 400; color: var(--forest); }

/* ---------- 2. LAYOUT HELPERS ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: 72px 0; }
.section-tight { padding-top: 56px; }
.section-end { padding-bottom: 32px; }

.center { text-align: center; }
.center .sec-title,
.center .lead { margin-left: auto; margin-right: auto; }

.muted-inline { color: var(--muted); font-weight: 500; }


/* section intro type */
.sec-label {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 16px;
}
.sec-title { font-size: clamp(32px, 4.6vw, 50px); max-width: 20ch; }
.lead { font-size: 19px; color: var(--muted); max-width: 52ch; margin-top: 20px; line-height: 1.5; }

/* two-column split used by Teams + Weather */
.split { display: grid; grid-template-columns: 1fr 0.85fr; gap: 54px; align-items: center; }
.split-reverse { grid-template-columns: 0.85fr 1fr; }
@media (max-width: 820px) {
  .split, .split-reverse { grid-template-columns: 1fr; gap: 36px; }
}

/* scroll-reveal animation (class added by main.js) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 3. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border: none; border-radius: var(--radius-pill);
  cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--forest); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(40, 83, 58, 0.54); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -12px rgba(115, 154, 59, 0.5); }
.btn-ghost { background: rgba(255, 255, 255, 0.58); border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--forest); background: white; }
.btn-ghost-dark { border-color: rgba(244, 240, 230, 0.3); color: var(--bone); }

/* ---------- 4. NAVIGATION ---------- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 245, 234, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 24px;
  letter-spacing: -0.02em; cursor: pointer;
}
.logo-sm { font-size: 20px; }
.logo .mark { width: 30px; height: 30px; display: grid; place-items: center; background: #355F43; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.logo .mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-size: 15px; font-weight: 600; color: #4E5B50; cursor: pointer; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn-primary {
  background: #355F43;
  color: #FFFDF5;
  padding: 10px 18px;
  box-shadow: none;
}

.login-trigger {
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(40, 83, 58, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 245, 0.78);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.login-trigger:hover {
  background: #FFFDF5;
  border-color: rgba(40, 83, 58, 0.32);
}
.auth-loading .login-trigger,
.auth-loading .profile-menu {
  visibility: hidden;
}

.profile-menu {
  position: relative;
}
.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 5px 9px 5px 6px;
  border: 1px solid rgba(40, 83, 58, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 245, 0.78);
  color: var(--ink);
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: 0 12px 28px -24px rgba(23, 36, 27, 0.56);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.profile-trigger:hover,
.profile-menu.open .profile-trigger {
  background: #FFFDF5;
  border-color: rgba(40, 83, 58, 0.32);
  box-shadow: 0 16px 34px -26px rgba(23, 36, 27, 0.7);
}
.profile-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}
.profile-copy {
  display: grid;
  gap: 1px;
  text-align: left;
  line-height: 1;
}
.profile-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.profile-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.profile-chevron {
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  transition: transform 0.2s;
}
.profile-menu.open .profile-chevron {
  transform: rotate(180deg);
}
.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 178px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFDF5;
  box-shadow: 0 22px 54px -32px rgba(23, 36, 27, 0.66);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}
.profile-menu.open .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.profile-dropdown a {
  display: block;
  padding: 10px 11px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.profile-dropdown a:hover {
  background: var(--bone-2);
}
.profile-signout {
  width: 100%;
  margin-top: 5px;
  padding: 10px 11px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.profile-signout:hover {
  color: var(--ink);
}

/* Hamburger button — hidden on desktop, shown on mobile (mobile block at end of file). */
.nav-toggle {
  display: none;
  background: transparent; border: 1.5px solid var(--line);
  border-radius: 10px; width: 42px; height: 42px;
  cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- 5. HERO & DOORS ---------- */
.hero { padding: 44px 0 14px; text-align: center; position: relative; overflow: hidden; }

/* Living background: soft green/lime glows that slowly drift behind the hero. */
.hero::before {
  content: ""; position: absolute; inset: -25%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 36% at 22% 28%, rgba(115, 154, 59, 0.15), transparent 70%),
    radial-gradient(32% 34% at 78% 22%, rgba(182, 106, 69, 0.10), transparent 70%),
    radial-gradient(42% 36% at 58% 76%, rgba(230, 241, 238, 0.62), transparent 70%);
  filter: blur(18px);
  animation: aurora 20s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-3%, 2%) scale(1.08); }
  100% { transform: translate(2%, -2%) scale(1.04); }
}

/* Hero content sits above the glow. */
.hero .wrap { position: relative; z-index: 1; }

/* Entrance motion: each piece rises + fades in, staggered, on load. */
.hero .eyebrow,
.hero h1,
.hero .sub,
.hero .hero-actions,
.hero .doors {
  animation: rise-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.hero .eyebrow { animation-delay: 0.05s; }
.hero h1       { animation-delay: 0.15s; }
.hero .sub     { animation-delay: 0.30s; }
.hero .hero-actions { animation-delay: 0.38s; }
.hero .doors   { animation-delay: 0.48s; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--forest); background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line); padding: 6px 13px; border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
/* The status dot gently pings, like a live indicator. */
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime-deep);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(159, 203, 30, 0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(159, 203, 30, 0); }
}
.hero h1 { font-size: clamp(36px, 5.8vw, 62px); max-width: 18ch; margin: 0 auto; }
.hero .sub { margin: 16px auto 0; font-size: clamp(16px, 1.7vw, 19px); color: var(--muted); max-width: 58ch; }
.hero-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* Calm version for reduced-motion users. */
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero .eyebrow, .hero h1, .hero .sub, .hero .hero-actions, .hero .doors { animation: none; }
  .eyebrow .dot { animation: none; }
}

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px auto 0; max-width: 820px; text-align: left; }
@media (max-width: 640px) { .doors { grid-template-columns: 1fr; } }
.door {
  background: rgba(255, 253, 245, 0.82); border: 1px solid rgba(40, 83, 58, 0.16);
  border-radius: var(--radius); padding: 20px; cursor: pointer;
  box-shadow: 0 22px 42px -34px rgba(19, 37, 27, 0.5);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.door:hover { transform: translateY(-4px); border-color: var(--forest); box-shadow: 0 26px 54px -36px rgba(19, 37, 27, 0.7); }
.door-icon { width: 38px; height: 38px; border-radius: 8px; background: #355F43; display: grid; place-items: center; margin-bottom: 12px; }
.door-icon svg { width: 21px; height: 21px; }
.door h3 { font-size: 21px; margin-bottom: 6px; }
.door p { font-size: 14.5px; color: var(--muted); line-height: 1.4; }
.door-arrow { margin-top: 12px; font-weight: 600; font-size: 14px; color: var(--forest); display: inline-flex; align-items: center; gap: 6px; }

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 680px;
  margin: 12px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  text-align: center;
}
.hero-trust div { background: rgba(255, 253, 245, 0.78); padding: 10px 14px; }
.hero-trust strong { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1; color: var(--forest); }
.hero-trust span { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.scroll-cue span:last-child {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 245, 0.74);
}

/* ---------- BROWSE STRIP ---------- */
.browse-strip { padding: 12px 0 48px; }
.browse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 245, 0.82);
  box-shadow: 0 22px 46px -42px rgba(23, 36, 27, 0.42);
}
.browse-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, transform 0.2s;
}
.browse-card:last-child { border-right: none; }
.browse-card::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 4px;
  background: var(--lime-deep);
  opacity: 0.42;
  transform: scaleX(0.32);
  transform-origin: left;
  transition: transform 0.2s, opacity 0.2s;
}
.browse-card:hover { background: rgba(239, 232, 215, 0.58); transform: translateY(-2px); }
.browse-card:hover::before { transform: scaleX(1); opacity: 0.72; }
.browse-card strong { font-family: var(--font-display); font-size: 21px; line-height: 1.1; }
.browse-card span:last-child { color: var(--muted); font-size: 14px; line-height: 1.35; }
.browse-kicker {
  width: max-content;
  padding: 5px 8px;
  border: 1px solid rgba(115, 154, 59, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 245, 0.78);
  color: #6B754E;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.browse-card-sky::before { background: #6F9E99; }
.browse-card-gold::before { background: var(--gold); }
.browse-card-coral::before { background: var(--clay); }
.browse-card-sky .browse-kicker { border-color: rgba(70, 116, 113, 0.28); color: #4D716C; }
.browse-card-gold .browse-kicker { border-color: rgba(150, 116, 37, 0.30); color: #7A683B; }
.browse-card-coral .browse-kicker { border-color: rgba(182, 106, 69, 0.30); color: #8A5D43; }
@media (max-width: 900px) {
  .browse-grid { grid-template-columns: 1fr 1fr; }
  .browse-card:nth-child(2) { border-right: none; }
  .browse-card:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .hero-trust { grid-template-columns: 1fr; }
  .browse-grid { grid-template-columns: 1fr; }
  .browse-card { border-right: none; border-bottom: 1px solid var(--line); }
  .browse-card:last-child { border-bottom: none; }
}

/* ---------- 6. HOW IT WORKS ---------- */
.toggle {
  display: inline-flex; background: var(--bone-2);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 5px; margin: 22px 0 44px;
}
.pane-btn {
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border: none; background: transparent; color: var(--muted);
  padding: 10px 24px; border-radius: var(--radius-pill); cursor: pointer; transition: 0.2s;
}
.pane-btn.on { background: var(--forest); color: var(--bone); }

.pane { display: none; }
.pane.on { display: block; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step-num {
  font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--clay);
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border: 1.5px solid var(--clay); border-radius: 50%; margin-bottom: 16px;
}
.step h4 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 7px; }
.step p { font-size: 15px; color: var(--muted); }

/* tinted full-width band */
.band { background: var(--bone-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-seamless { border-bottom: none; }

/* ---------- 7. TEAMS ---------- */
.team-card {
  background: var(--bone); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: 0 30px 60px -45px rgba(22, 38, 28, 0.5);
}
.team-card-top { display: flex; align-items: center; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.team-avatar { width: 52px; height: 52px; border-radius: 13px; background: var(--forest); color: var(--lime); display: grid; place-items: center; font-family: var(--font-display); font-size: 23px; font-weight: 600; }
.team-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.team-meta { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 3px; }
.team-preview {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(230, 241, 238, 0.7), rgba(255, 253, 245, 0.86));
  padding: 14px;
  display: grid;
  gap: 10px;
}
.team-preview-row {
  display: grid;
  grid-template-columns: 18px 1fr 54px;
  align-items: center;
  gap: 10px;
  min-height: 22px;
}
.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 5px rgba(40, 83, 58, 0.08);
}
.preview-dot-soft { background: var(--clay); box-shadow: 0 0 0 5px rgba(182, 106, 69, 0.08); }
.preview-line {
  height: 8px;
  max-width: 72%;
  border-radius: var(--radius-pill);
  background: rgba(40, 83, 58, 0.14);
}
.preview-line-long { max-width: 92%; }
.preview-line-mid { max-width: 82%; }
.preview-pill {
  height: 18px;
  border-radius: var(--radius-pill);
  background: rgba(184, 217, 91, 0.42);
}
.preview-pill-soft { background: rgba(230, 199, 107, 0.46); }
.team-stats { display: grid; grid-template-columns: 1fr; gap: 1px; margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.team-stats div { background: var(--bone-2); padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.team-stats span { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.team-stats strong { color: var(--forest); font-size: 15px; font-weight: 700; text-align: right; }
.team-note { margin-top: 16px; background: rgba(255, 253, 245, 0.72); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ---------- 8. WEATHER ---------- */
.weather-card {
  background: var(--forest); color: var(--bone);
  border-radius: var(--radius); padding: 32px;
  position: relative; overflow: hidden;
}
.weather-card::after {
  content: ""; position: absolute; right: -90px; top: -90px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 240, 53, 0.18), transparent 70%);
}
.weather-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; }
.weather-row + .weather-row { border-top: 1px solid rgba(244, 240, 230, 0.14); }
.weather-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; background: rgba(244, 240, 230, 0.1); display: grid; place-items: center; }
.weather-icon svg { width: 21px; height: 21px; }
.weather-row b { font-family: var(--font-body); font-weight: 600; font-size: 16px; display: block; }
.weather-row span { font-size: 14px; color: rgba(244, 240, 230, 0.65); }

/* Wind-blown rain across the whole #weather section.
   The individual drops are generated in main.js (randomized so it doesn't
   look like a repeating grid). They sit BEHIND the content (z-index 0). */
#weather { position: relative; overflow: hidden; }
#weather .wrap { position: relative; z-index: 1; }
.rain { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.raindrop {
  position: absolute; top: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, transparent, rgba(46, 74, 58, 0.55));
  animation: drop linear infinite;
  will-change: transform, opacity;
}
/* Each drop falls down and strongly to the left; the streak is tilted to
   match its travel direction. Per-drop length/speed/opacity are set inline. */
@keyframes drop {
  0%   { transform: translate(0, -140px) rotate(31deg); opacity: 0; }
  10%  { opacity: var(--o, 0.4); }
  90%  { opacity: var(--o, 0.4); }
  100% { transform: translate(-66vh, 110vh) rotate(31deg); opacity: 0; }
}
/* Storm wash + occasional lightning, layered ABOVE the section content so it
   colour-grades the text and the card. Gentle wash keeps everything readable;
   flashes are brief. Pure CSS, no JS needed. */
.storm {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(35, 50, 70, 0.16), rgba(28, 40, 58, 0.10));
  animation: storm-wash 9s ease-in-out infinite;
}
@keyframes storm-wash {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 1; }
}
.storm::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(130% 90% at 35% -10%, rgba(225, 238, 255, 0.95), rgba(200, 220, 255, 0.35) 45%, transparent 72%);
  opacity: 0;
  animation: storm-flash 8s ease-out infinite;
}
@keyframes storm-flash {
  0%, 40%, 100% { opacity: 0; }
  41% { opacity: 0.5; }   /* first strike */
  43% { opacity: 0.12; }  /* flicker */
  44% { opacity: 0.6; }   /* second, brighter strike */
  47% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rain { display: none; }
  .storm { animation: none; opacity: 0.85; }
  .storm::after { animation: none; opacity: 0; }
}

/* ---------- 9. PRICING ---------- */
/* teaser (home) */
.price-mini { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 38px 0 30px; }
.price-mini-card { background: var(--bone); border: 1px solid var(--line); border-radius: 18px; padding: 26px 32px; min-width: 200px; }
.price-mini-card .k { font-size: 14px; color: var(--muted); font-weight: 600; }
.price-mini-card .v { font-family: var(--font-display); font-size: 42px; font-weight: 600; color: var(--forest); line-height: 1; margin-top: 8px; }
.price-mini-card .d { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* full pricing page */
.pricing-page { padding-top: 60px; }
.back { font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 26px; }
.back:hover { color: var(--ink); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
@media (max-width: 780px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--bone-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.plan-feat { background: var(--forest); color: var(--bone); border-color: var(--forest); position: relative; }
.plan-tag { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.plan-feat .plan-tag { color: var(--lime); }
.plan-price { font-family: var(--font-display); font-size: 54px; font-weight: 600; line-height: 1; margin: 14px 0 4px; }
.plan-price small { font-size: 19px; font-weight: 500; color: var(--muted); }
.plan-feat .plan-price small { color: rgba(244, 240, 230, 0.6); }
.plan-desc { font-size: 15px; color: var(--muted); }
.plan-feat .plan-desc { color: rgba(244, 240, 230, 0.7); }
.plan-list { list-style: none; margin-top: 22px; }
.plan-list li { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; font-size: 15.5px; }
.plan-list li + li { border-top: 1px solid var(--line); }
.plan-feat .plan-list li + li { border-top: 1px solid rgba(244, 240, 230, 0.14); }
.plan-badge { position: absolute; top: -13px; right: 26px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius-pill); }

/* checkmark bullet (drawn with CSS so there's no markup noise) */
.check { flex: 0 0 21px; width: 21px; height: 21px; border-radius: 50%; position: relative; margin-top: 1px; }
.check::after { content: ""; position: absolute; left: 6px; top: 5px; width: 5px; height: 9px; border: solid; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check-dark { background: var(--forest); }
.check-dark::after { border-color: var(--lime); }
.check-lime { background: var(--lime); }
.check-lime::after { border-color: var(--ink); }

/* calculator */
.calc { margin-top: 34px; background: var(--bone-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; }
.calc h3 { font-family: var(--font-display); font-size: 25px; font-weight: 600; margin-bottom: 6px; }
.calc-sub { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.calc-sub code { background: var(--bone); padding: 2px 7px; border-radius: 6px; font-size: 13px; }
.calc-row { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.calc-row label { font-size: 14px; font-weight: 600; color: var(--muted); min-width: 150px; }
.calc-row input[type="range"] { flex: 1; min-width: 180px; accent-color: var(--forest); height: 4px; }
.calc-val { font-family: var(--font-display); font-size: 23px; font-weight: 600; min-width: 80px; text-align: right; color: var(--forest); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 28px; }
@media (max-width: 620px) { .calc-out { grid-template-columns: 1fr; } }
.calc-card { background: var(--bone); border: 1px solid var(--line); border-radius: 15px; padding: 20px; text-align: center; }
.calc-card.win { background: var(--forest); color: var(--bone); border-color: var(--forest); }
.calc-card-k { font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.calc-card.win .calc-card-k { color: var(--lime); }
.calc-card-v { font-family: var(--font-display); font-size: 36px; font-weight: 600; line-height: 1; margin-top: 8px; }
.calc-note { margin-top: 20px; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- 10. CTA & FOOTER ---------- */
.cta {
  background: var(--forest); color: var(--bone);
  border-radius: 30px; padding: 58px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; left: -80px; bottom: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 240, 53, 0.16), transparent 70%);
}
.cta h2 { font-size: clamp(34px, 5.5vw, 60px); color: var(--bone); }
.cta h2 em { color: var(--lime); }
.cta p { color: rgba(244, 240, 230, 0.7); font-size: 18px; margin: 18px auto 0; max-width: 46ch; }
.cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

footer { padding: 46px 0 38px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 14px; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { cursor: pointer; }
.foot-links a:hover { color: var(--ink); }

/* ---------- AUTH MODAL ---------- */
.auth-modal[hidden] { display: none; }
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 22px;
}
.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 36, 27, 0.42);
}
.auth-panel {
  position: relative;
  width: min(100%, 440px);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFDF5;
  padding: 28px;
  box-shadow: 0 28px 80px -42px rgba(23, 36, 27, 0.76);
}
.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.auth-panel h2 { font-size: 30px; margin-right: 32px; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone);
}
.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.auth-tab.on {
  background: #FFFDF5;
  color: var(--ink);
  box-shadow: 0 10px 24px -22px rgba(23, 36, 27, 0.64);
}
.auth-form {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}
.auth-pane { display: none; }
.auth-pane.on { display: grid; }
.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 9px 11px;
}
.auth-form input:focus,
.auth-form select:focus {
  outline: 2px solid rgba(115, 154, 59, 0.25);
  border-color: rgba(40, 83, 58, 0.42);
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-message {
  min-height: 20px;
  margin-top: 14px;
  color: var(--clay);
  font-size: 14px;
  font-weight: 700;
}
.auth-switch {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.auth-switch button {
  border: 0;
  background: transparent;
  color: var(--forest);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-link {
  width: max-content;
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- DASHBOARD ---------- */
.dashboard-page section { padding-top: 46px; }
.dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.dashboard-head h1 {
  font-size: clamp(34px, 5vw, 54px);
}
.dashboard-status {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 245, 0.72);
  color: var(--muted);
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 800;
}
.dashboard-shell {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 440px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 245, 0.72);
  overflow: hidden;
}
.dashboard-sidebar {
  min-height: 440px;
  border-right: 1px solid var(--line);
  background: var(--bone);
  padding: 10px;
}
.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: rgba(74, 111, 82, 0.1);
  color: #315a3a;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
}
.dashboard-nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.dashboard-nav-item.on {
  background: #315a3a;
  color: var(--paper);
}
.dashboard-main {
  min-height: 440px;
  padding: 18px;
}
.dashboard-view {
  display: none;
}
.dashboard-view.on {
  display: grid;
}
.dashboard-view {
  gap: 16px;
}
.properties-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.properties-toolbar h2 {
  font-size: 26px;
}
.properties-toolbar p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}
.properties-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}
.schedule-preview {
  align-content: start;
}
.schedule-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.schedule-head h2 {
  font-size: 26px;
}
.schedule-head p {
  margin-top: 6px;
  max-width: 680px;
  color: var(--muted);
  font-size: 14px;
}
.schedule-head > span {
  border: 1px solid rgba(49, 90, 58, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(49, 90, 58, 0.1);
  color: #315a3a;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  white-space: nowrap;
}
.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 14px;
}
.schedule-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.86);
  padding: 16px;
}
.schedule-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.schedule-card select,
.schedule-card input,
.schedule-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 9px 10px;
}
.schedule-card textarea {
  resize: vertical;
}
.schedule-property-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.72);
  padding: 12px;
  display: grid;
  gap: 4px;
}
.schedule-property-summary strong {
  font-size: 16px;
}
.schedule-property-summary span,
.size-check p {
  color: var(--muted);
  font-size: 14px;
}
.size-check {
  border: 1px solid rgba(49, 90, 58, 0.2);
  border-radius: 8px;
  background: rgba(49, 90, 58, 0.08);
  padding: 12px;
  display: grid;
  gap: 10px;
}
.size-check strong {
  color: var(--ink);
}
.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.schedule-choice {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.schedule-choice label {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bone);
  color: var(--ink);
  padding: 10px;
}
.schedule-history h3 {
  font-size: 20px;
}
.schedule-history p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}
.history-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.history-list div {
  border-left: 3px solid rgba(49, 90, 58, 0.22);
  background: var(--bone);
  border-radius: 6px;
  padding: 10px 12px;
}
.history-list strong,
.history-list span {
  display: block;
}
.history-list strong {
  font-size: 14px;
}
.history-list span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.properties-list {
  display: grid;
  gap: 8px;
}
.property-group-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 2px 2px;
  text-transform: uppercase;
}
.property-card,
.properties-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.86);
  padding: 12px;
}
.property-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border-left: 4px solid rgba(49, 90, 58, 0.18);
  transform-origin: 18px 50%;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}
.property-card.dragging {
  border-color: rgba(49, 90, 58, 0.36);
  background: var(--paper);
  box-shadow: 0 18px 34px -20px rgba(22, 38, 28, 0.72);
  transform: rotate(-1.6deg) scale(1.012);
  z-index: 2;
}
.drag-handle {
  width: 32px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 3px;
  cursor: grab;
  touch-action: none;
  transition: transform 140ms ease;
}
.drag-handle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: rgba(49, 90, 58, 0.44);
}
.property-dragging {
  user-select: none;
}
.property-dragging .drag-handle {
  cursor: grabbing;
}
.property-card.dragging .drag-handle {
  transform: rotate(3deg);
}
.property-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.property-copy strong {
  font-size: 16px;
}
.property-copy span,
.property-copy small,
.properties-empty {
  color: var(--muted);
  font-size: 14px;
}
.property-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-action,
.favorite-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bone);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-action svg,
.favorite-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.favorite-btn.on {
  border-color: rgba(49, 90, 58, 0.28);
  background: rgba(49, 90, 58, 0.12);
  color: #315a3a;
}
.favorite-btn.on svg {
  fill: currentColor;
}
.icon-action:disabled,
.favorite-btn:disabled,
.danger-link:disabled {
  opacity: 0.55;
  cursor: wait;
}
.mini-form {
  display: grid;
  gap: 12px;
}
.mini-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.mini-form input,
.mini-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 9px 11px;
}
.mini-form input:disabled {
  color: var(--muted);
  background: rgba(236, 232, 218, 0.7);
}
.modal-actions {
  display: grid;
  gap: 10px;
}
.danger-link {
  width: max-content;
  border: 0;
  background: transparent;
  color: var(--clay);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 900;
  padding: 4px 0;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.property-modal[hidden] { display: none; }
.property-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
}
.property-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 31, 24, 0.38);
}
.property-panel {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 22px;
}
.property-panel h2 {
  font-size: 26px;
  margin-bottom: 14px;
}

/* ============================================================
   MOBILE  (<= 680px)
   Two jobs: (1) turn the nav into a hamburger + dropdown panel,
   (2) tighten vertical spacing so sections don't hog the screen.
   Nothing is hidden — just made denser.
   ============================================================ */
@media (max-width: 680px) {

  /* --- Nav: show hamburger, make links a dropdown panel under the bar --- */
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;          /* drops out of the bar's flow */
    top: 100%; left: 0; right: 0; /* sits directly under the nav bar */
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px -18px rgba(22, 38, 28, 0.45);
    padding: 8px 0;
    display: none;               /* hidden until the hamburger opens it */
  }
  nav.open .nav-links { display: flex; }

  .nav-links a { padding: 14px 20px; font-size: 16px; }
  .nav-links a.btn {            /* the CTA becomes a full-width menu row */
    margin: 8px 20px 4px;
    justify-content: center;
  }

  .login-trigger {
    width: calc(100% - 40px);
    margin: 8px 20px 6px;
  }

  .profile-menu {
    margin: 8px 20px 6px;
  }
  .profile-trigger {
    width: 100%;
    justify-content: flex-start;
  }
  .profile-copy {
    flex: 1;
  }
  .profile-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .profile-menu.open .profile-dropdown {
    display: block;
    transform: none;
  }

  /* --- Tighten spacing for small screens --- */
  .wrap { padding: 0 20px; }

  .hero { padding: 36px 0 18px; }
  section { padding: 52px 0; }
  .section-tight { padding-top: 40px; }

  .doors { margin-top: 22px; gap: 12px; }
  .door { padding: 18px; }
  .hero-trust { margin-top: 12px; }
  .scroll-cue { margin-top: 12px; }
  .browse-strip { padding-top: 10px; }

  .toggle { margin: 18px 0 30px; }
  .cta { padding: 52px 26px; }
  .calc { padding: 26px 20px; }
  .pricing-page { padding-top: 36px; }
  .auth-panel { padding: 24px 20px; }
  .auth-grid { grid-template-columns: 1fr; }
  .dashboard-head { display: grid; align-items: start; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-sidebar {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .dashboard-main { min-height: 280px; }
  .properties-toolbar,
  .property-card {
    grid-template-columns: 1fr;
  }
  .properties-toolbar,
  .properties-actions,
  .property-card-actions {
    align-items: stretch;
  }
  .properties-actions {
    display: grid;
  }
  .schedule-head,
  .schedule-layout,
  .schedule-choice {
    grid-template-columns: 1fr;
  }
  .schedule-head {
    display: grid;
  }
  .schedule-head > span {
    width: max-content;
  }
  .inline-actions {
    align-items: stretch;
  }
  .property-card {
    grid-template-columns: auto 1fr;
  }
  .property-card-actions {
    grid-column: 1 / -1;
  }
}
