/* ============================================================
   InterHive - Layout, nav, sections, buttons, footer
   ------------------------------------------------------------
   THIS SITE DELIBERATELY DOES NOT USE CSS SCROLL-SNAP.

   Scroll-snap was tried across two separate implementations and a
   full rebuild, in both `mandatory` and `proximity` strictness, and
   was abandoned each time. Scrolling here is plain and unforced by
   design. Do not add `scroll-snap-type`, `scroll-snap-align` or
   `scroll-snap-stop` anywhere in this codebase.

   Unrelated and still in use: JS-triggered smooth anchor jumps
   (js/nav.js) and IntersectionObserver reveal animations
   (js/animate.js). Neither has anything to do with the above.
   ============================================================ */

/* ---------- Wrapper ---------- */
.wrap{
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Nav ----------
   Deliberately opaque. No backdrop-filter: continuous blur
   repaint on a fixed element during scroll is a confirmed
   cause of scroll stutter. */
.nav{
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: var(--void);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner{
  height: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo{
  display: flex; align-items: center;
  margin-right: auto;
  flex-shrink: 0;
}
.nav__logo img{ height: 26px; width: auto; display: block; }
.nav__links{
  display: flex; align-items: center; gap: 30px;
  list-style: none; margin: 0; padding: 0;
}
.nav__links a{
  font-size: .93rem;
  color: var(--ink-3);
  transition: color .25s var(--ease);
  white-space: nowrap;
}
.nav__links a:hover{ color: var(--ink-1); }
.nav__links a[aria-current="page"]{ color: var(--ink-1); }

.nav__toggle{
  display: none;
  background: none; border: 1px solid var(--hairline);
  width: 40px; height: 36px; border-radius: 3px;
  cursor: pointer; padding: 0;
  color: var(--ink-2);
}
.nav__toggle span{
  display: block; width: 16px; height: 1px; background: currentColor;
  margin: 3px auto; transition: transform .3s var(--ease), opacity .2s;
}
.nav[data-open="true"] .nav__toggle span:nth-child(1){ transform: translateY(4px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:nth-child(2){ opacity: 0; }
.nav[data-open="true"] .nav__toggle span:nth-child(3){ transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  padding: .78em 1.5em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn--primary{
  background: var(--gold);
  color: var(--void);
  font-weight: 600;
}
.btn--primary:hover{
  background: var(--ember);
  box-shadow: var(--gold-glow-sm);
}
.btn--ghost{
  border-color: var(--hairline);
  color: var(--ink-2);
  background: transparent;
}
.btn--ghost:hover{
  border-color: var(--gold);
  color: var(--ink-1);
}
.btn--sm{ font-size: .88rem; padding: .62em 1.2em; }

/* ---------- Sections ----------
   min-height 100vh + top padding that clears the fixed nav.
   Sections taller than the viewport simply extend past it. */
.section{
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--hairline);
}
.section--alt{ background: var(--surface-2); }
.section--flush{ border-bottom: none; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: .70rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
  display: flex; align-items: center; gap: .8em;
}
.eyebrow::before{
  content: "";
  width: 26px; height: 1px; background: var(--gold);
  display: block; flex-shrink: 0;
}

.lede{
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  color: var(--ink-2);
  line-height: 1.62;
  max-width: 62ch;
}
.measure{ max-width: 64ch; }

.section__head{ margin-bottom: 3.2rem; }

/* ---------- Grid helpers ---------- */
.grid-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 3.2rem;
  align-items: center;
}

/* ---------- Cards ---------- */
.card{
  background: var(--surface-3);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1.9rem;
  transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.card--link:hover{
  border-color: var(--gold-35);
  background: var(--surface-4);
  transform: translateY(-3px);
}
.card h3{ margin-bottom: .55rem; }
.card p{ font-size: .97rem; color: var(--ink-3); }
.card__num{
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--gold);
  letter-spacing: .18em;
  display: block;
  margin-bottom: 1rem;
}

/* ---------- Numbered steps ---------- */
.steps{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
}
.step{
  background: var(--surface-2);
  padding: 2.2rem 1.9rem;
}
.step__n{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--gold);
  display: block;
  margin-bottom: 1.4rem;
}
.step h3{ font-size: 1.28rem; margin-bottom: .6rem; }
.step p{ font-size: .95rem; color: var(--ink-3); margin: 0; }

/* ---------- Tier section ---------- */
.tier__head{
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.tier__name{
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  color: var(--ink-1);
  line-height: 1;
  margin: 0;
}
.tier__price{
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: .04em;
  padding: .4em .8em;
  border: 1px solid var(--gold-35);
  border-radius: 2px;
  white-space: nowrap;
}
.feat{
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
}
.feat li{
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: .8rem;
  font-size: .97rem;
  color: var(--ink-2);
}
.feat li::before{
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(200,155,60,.5);
}

/* ---------- Forms ---------- */
.form{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.1rem;
  margin-top: 2.4rem;
}
.field{ display: flex; flex-direction: column; gap: .55rem; }
.field--full{ grid-column: 1 / -1; }
.field label{
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.field input, .field select, .field textarea{
  font-family: var(--font-body);
  font-size: .97rem;
  color: var(--ink-1);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: .85em 1em;
  width: 100%;
  transition: border-color .25s var(--ease);
}
.field textarea{ resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--gold);
  outline: none;
}
.field input::placeholder, .field textarea::placeholder{ color: var(--ink-4); }
.field select{ appearance: none; cursor: pointer; }
/* Netlify honeypot: a trap field bots fill in and humans never see.
   display:none keeps it out of the render, out of the tab order and out of
   the a11y tree, while still submitting with the form. Do not switch this
   to a clip/off-screen "visually hidden" technique - that would leave it
   focusable and announced to screen readers, who would then fail the check. */
.hp{ display: none; }

.form__note{
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  color: var(--ink-4);
  text-transform: uppercase;
}

/* ---------- Closing CTA ---------- */
.cta-band{
  text-align: center;
  padding: 6.5rem 0;
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(ellipse 70% 100% at 50% 100%, var(--gold-06), transparent 70%),
    var(--surface-2);
}
.cta-band h2{ margin-bottom: 1.1rem; }
.cta-band .lede{ margin: 0 auto 2.4rem; text-align: center; }
.cta-band__row{
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer{
  background: var(--void);
  padding: 5rem 0 2.4rem;
}
.footer__brand img{ height: 28px; width: auto; display: block; margin-bottom: 1.3rem; }
.footer ul{ list-style: none; margin: 0; padding: 0; }
.footer li{ margin-bottom: .72rem; font-size: .94rem; }
.footer li a{ color: var(--ink-3); transition: color .25s var(--ease); }
.footer li a:hover{ color: var(--gold); }
.footer__bottom{
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__copy{
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--ink-4);
}
.social{ display: flex; gap: .6rem; }
.social a{
  width: 36px; height: 36px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  display: grid; place-items: center;
  color: var(--ink-4);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.social a:hover{ color: var(--gold); border-color: var(--gold-35); }
.social svg{ width: 15px; height: 15px; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .grid-2{ grid-template-columns: 1fr; gap: 2.4rem; }
  .steps{ grid-template-columns: 1fr; }
}

@media (max-width: 719px){
  :root{ --gutter: 20px; }
  body{ font-size: 16px; }
  .nav__links{
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--void);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav[data-open="true"] .nav__links{ display: flex; }
  .nav__links li{ width: 100%; }
  .nav__links a{
    display: block; padding: 13px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 1rem;
  }
  .nav__links li:last-child a{ border-bottom: none; }
  .nav__links .btn{ width: 100%; margin-top: 14px; }
  .nav__toggle{ display: block; }
  .nav__inner{ gap: 12px; }

  /* Sections stop forcing viewport height on small screens */
  .section{
    min-height: 0;
    padding: calc(var(--nav-h) + 3.2rem) 0 3.2rem;
  }
  .form{ grid-template-columns: 1fr; }
  .cta-band{ padding: 4.5rem 0; }
  .cta-band__row .btn{ width: 100%; }
}

/* ---------- Hero-specific sizing ----------
   The hero is the one section that should comfortably fit a
   single viewport, so its rhythm is tightened relative to
   .section defaults. */
.section--hero{
  padding: calc(var(--nav-h) + 2.6rem) 0 2.6rem;
}
.section--hero .viz{ padding: 1.5rem; }
.section--hero h1{ font-size: clamp(2.2rem, 4.3vw, 3.3rem); }
.section--hero .grid-2{ gap: 2.6rem; }

@media (max-width: 960px){
  .section--hero{ padding: calc(var(--nav-h) + 3rem) 0 3rem; }
}

/* ---------- Long-form document (legal) ---------- */
.doc-head{
  padding: calc(var(--nav-h) + 4.5rem) 0 2.6rem;
}
.doc-head h1{ font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.doc-meta{
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 2rem;
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.clause{
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0 2rem;
  padding: 2.8rem 0;
  border-top: 1px solid var(--hairline);
}
.clause__n{
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--gold);
  padding-top: .5rem;
}
.clause h2{
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  margin-bottom: .9rem;
}
.clause h3{
  font-size: 1.02rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink-1);
  margin: 1.7rem 0 .5rem;
}
.clause p,
.clause li{ max-width: 68ch; }
.clause p{ color: var(--ink-2); }

.clause ul{
  list-style: none;
  margin: .8rem 0 0;
  padding: 0;
}
.clause ul li{
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .6rem;
  color: var(--ink-2);
  font-size: .97rem;
}
.clause ul li::before{
  content: "";
  position: absolute;
  left: 0; top: .68em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.clause ul li b{ color: var(--ink-1); font-weight: 600; }

/* Contact / operator blocks inside a clause */
.kv{
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--surface-2);
  padding: 1.3rem 1.5rem;
  margin-top: 1.4rem;
  max-width: 68ch;
}
.kv + .kv{ margin-top: .9rem; }
.kv__k{
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: block;
  margin-bottom: .5rem;
}
.kv__v{ color: var(--ink-1); font-size: 1rem; }
.kv p{ font-size: .95rem; color: var(--ink-3); margin: .5rem 0 0; }
.kv a{ color: var(--gold); border-bottom: 1px solid var(--gold-35); }
.kv a:hover{ color: var(--ember); }

.doc-link{
  color: var(--gold);
  border-bottom: 1px solid var(--gold-35);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.doc-link:hover{ color: var(--ember); border-color: var(--ember); }


@media (max-width: 719px){
  .clause{ grid-template-columns: 1fr; gap: .6rem; }
  .clause__n{ padding-top: 0; }
  .doc-head{ padding: calc(var(--nav-h) + 3rem) 0 2rem; }
}

/* ---------- Document part header (Privacy / Terms) ---------- */
.doc-part{
  padding: 3.6rem 0 1.4rem;
  border-top: 2px solid var(--gold-35);
}
.doc-part--first{ border-top: 1px solid var(--hairline); }
.doc-part h2{
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: .8rem;
}
.doc-part p{
  max-width: 68ch;
  color: var(--ink-3);
  font-size: 1.02rem;
}
.doc-jump{
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

/* ============================================================
   HOMEPAGE COMPONENTS
   ------------------------------------------------------------
   Added for the homepage rebuild. These are layout classes only:
   every colour, font, easing and motion rule comes from the
   existing tokens, and reveal behaviour is still the shared
   [data-reveal] engine in js/animate.js. No existing rule above
   this block was modified.
   ============================================================ */

/* ---------- Footer brand block additions ---------- */
.footer__loc{
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 1rem;
}
.footer__brand .social{ margin-top: 1.9rem; }
.footer__legal{
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__legal a{
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--ink-4);
  transition: color .25s var(--ease);
}
.footer__legal a:hover{ color: var(--gold); }
