/* ============================================================
   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: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle film-grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
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: 64px 0; }
.section-tight { padding-top: 24px; }
.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;
}
.btn-primary { background: var(--forest); color: var(--bone); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(30, 58, 43, 0.6); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -8px rgba(198, 240, 53, 0.7); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.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(244, 240, 230, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.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: var(--forest); border-radius: 9px; }
.logo .mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; transition: color 0.2s; }
.nav-links a: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: 84px 0 64px; 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(40% 40% at 25% 30%, rgba(46, 106, 79, 0.20), transparent 70%),
    radial-gradient(35% 35% at 80% 25%, rgba(198, 240, 53, 0.18), transparent 70%),
    radial-gradient(45% 45% at 60% 80%, rgba(46, 106, 79, 0.14), transparent 70%);
  filter: blur(20px);
  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 .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 .doors   { animation-delay: 0.45s; }
@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: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--forest); background: var(--bone-2);
  border: 1px solid var(--line); padding: 7px 15px; border-radius: var(--radius-pill);
  margin-bottom: 30px;
}
/* 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(44px, 7.5vw, 88px); max-width: 14ch; margin: 0 auto; }
.hero .sub { margin: 28px auto 0; font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 50ch; }

/* Calm version for reduced-motion users. */
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero .eyebrow, .hero h1, .hero .sub, .hero .doors { animation: none; }
  .eyebrow .dot { animation: none; }
}

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 40px auto 0; max-width: 760px; text-align: left; }
@media (max-width: 640px) { .doors { grid-template-columns: 1fr; } }
.door {
  background: var(--bone-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.door:hover { transform: translateY(-4px); border-color: var(--forest); }
.door-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--forest); display: grid; place-items: center; margin-bottom: 20px; }
.door-icon svg { width: 24px; height: 24px; }
.door h3 { font-size: 24px; margin-bottom: 8px; }
.door p { font-size: 15.5px; color: var(--muted); }
.door-arrow { margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--forest); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 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-stars { color: var(--clay); font-size: 14px; font-weight: 600; }
.members { display: flex; margin-top: 18px; align-items: center; }
.member { width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--bone); background: var(--bone-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--forest); margin-left: -9px; }
.member:first-child { margin-left: 0; }
.members-label { margin-left: 13px; font-size: 14px; color: var(--muted); }
.review { margin-top: 16px; background: var(--bone-2); border-radius: 13px; padding: 15px; font-size: 14.5px; line-height: 1.5; }
.review-head { font-size: 13px; color: var(--clay); font-weight: 600; margin-bottom: 6px; }

/* ---------- 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); }

/* ============================================================
   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;
  }

  /* --- Tighten spacing for small screens --- */
  .wrap { padding: 0 20px; }

  .hero { padding: 60px 0 52px; }
  section { padding: 56px 0; }
  .section-tight { padding-top: 24px; }

  .doors { margin-top: 32px; gap: 16px; }
  .door { padding: 26px 24px; }

  .toggle { margin: 18px 0 30px; }
  .cta { padding: 52px 26px; }
  .calc { padding: 26px 20px; }
  .pricing-page { padding-top: 36px; }
}
