/*
 * Rebuilt marketing sections — Pricing + Contact.
 *
 * Matches the Webflow design language: the page ALTERNATES light and dark
 * sections, and Pricing + "See LiveHost in action" are DARK editorial
 * sections (deep neutral charcoal + a subtle warm texture bleed, light text,
 * honey accent — honey pops on dark the way black pops on light). Driven by
 * --lh-* tokens; no Webflow IX2 hooks. Pricing uses CSS-only radio tabs so
 * the plan selector works with zero JS.
 */

.lh-section {
  position: relative;
  padding: 5.5rem 0;
  color: var(--lh-ink);
  line-height: 1.5;
}

/* Texture layer: the abstract-streak / dreamlike AVIFs under a wash. Image
   URL passed per-section via --lh-section-tex. Light sections get a pale
   wash; dark sections get a dark scrim that lets the warmth bleed through. */
.lh-section--texture::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgb(var(--lh-cream-1-rgb) / 0.45), rgb(var(--lh-cream-1-rgb) / 0.72)),
    var(--lh-section-tex, none);
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.lh-section > .container { position: relative; z-index: 1; }

.lh-section--light { background-color: var(--lh-cream-1); }

/* ---------- Dark editorial sections (pricing, contact) ---------- */
.lh-section--dark {
  background-color: #241c20;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  margin: 0 12px;
  /* Webflow's .section forces width:100%; margins sit OUTSIDE the box, so
     100% + 24px margin overflows the viewport. width:auto lets the box fill
     containing-block minus margins in a single browser-computed step. Unlike
     calc(100% - 24px) — where the width and the two margins are each snapped to
     device pixels independently and can sum to a sub-pixel over when the viewport
     is fractional (browser zoom / fractional DPR) — auto is clamped to the
     containing block, so it can never spill a hair past the edge. */
  width: auto;
}
.lh-section--dark.lh-section--texture { overflow: hidden; }
.lh-section--dark.lh-section--texture::before {
  background-image:
    linear-gradient(160deg, rgba(36, 28, 32, 0.86) 0%, rgba(36, 28, 32, 0.62) 100%),
    var(--lh-section-tex, none);
}
.lh-section--dark .display-h2,
.lh-section--dark .lh-section-title { color: #fff; }

.lh-section-title { margin: 0 0 2.5rem; }
.lh-section--dark .lh-section-title { margin: 0 0 2.5rem; }

/* ---------- Pricing (dark, two-column, CSS radio tabs) ---------- */
.lh-plan-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lh-plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: start;
}
.lh-plan-left { display: flex; flex-direction: column; gap: 2rem; }
.lh-plan-tabs { display: flex; flex-direction: column; gap: 0.75rem; }
.lh-plan-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lh-plan-tab:hover { background: rgba(255, 255, 255, 0.08); }
.lh-plan-tab-title { display: block; color: #fff; font-weight: 600; font-size: 1.05rem; }
.lh-plan-tab-sub { display: block; color: rgba(255, 255, 255, 0.62); font-size: 0.9rem; margin-top: 2px; }
.lh-plan-tab-arrow { display: inline-flex; opacity: 0; color: #fff; flex-shrink: 0; transition: opacity 0.2s ease; }
.lh-plan-tab-arrow svg { width: 1.35rem; height: 1.35rem; }

#lh-plan-0:checked ~ .lh-plan-layout label[for="lh-plan-0"],
#lh-plan-1:checked ~ .lh-plan-layout label[for="lh-plan-1"],
#lh-plan-2:checked ~ .lh-plan-layout label[for="lh-plan-2"] {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.16);
}
#lh-plan-0:checked ~ .lh-plan-layout label[for="lh-plan-0"] .lh-plan-tab-arrow,
#lh-plan-1:checked ~ .lh-plan-layout label[for="lh-plan-1"] .lh-plan-tab-arrow,
#lh-plan-2:checked ~ .lh-plan-layout label[for="lh-plan-2"] .lh-plan-tab-arrow { opacity: 1; }

.lh-trust { display: flex; align-items: center; gap: 0.85rem; }
.lh-trust-stars { color: var(--lh-yellow); font-size: 1.1rem; letter-spacing: 2px; }
.lh-trust-avatars { display: flex; align-items: center; }
.lh-trust-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  margin-right: -12px;
}
.lh-trust-avatar:last-child { margin-right: 0; }
.lh-req { color: var(--lh-yellow); margin-left: 2px; font-weight: 600; }
.lh-trust-text { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); line-height: 1.4; }
.lh-trust-text strong { color: #fff; font-weight: 600; }

.lh-plan-right { display: grid; }
.lh-plan-panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#lh-plan-0:checked ~ .lh-plan-layout .lh-plan-panel--0,
#lh-plan-1:checked ~ .lh-plan-layout .lh-plan-panel--1,
#lh-plan-2:checked ~ .lh-plan-layout .lh-plan-panel--2 { visibility: visible; opacity: 1; pointer-events: auto; }
.lh-plan-panel {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.25rem;
}
.lh-plan-name { color: #fff; font-size: 1.4rem; font-weight: 600; margin: 0; }
.lh-plan-price-row { display: flex; align-items: baseline; gap: 0.4rem; margin: 0.75rem 0 0.25rem; }
.lh-plan-price { color: #fff; font-size: 3rem; line-height: 1; font-weight: 600; }
.lh-plan-period { color: rgba(255, 255, 255, 0.55); font-size: 0.95rem; }
.lh-plan-desc { color: rgba(255, 255, 255, 0.7); margin: 0 0 1.5rem; font-size: 0.95rem; }
.lh-plan-features { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.lh-plan-feature { display: flex; align-items: flex-start; gap: 0.65rem; color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
.lh-plan-feature svg { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: 0.05rem; color: var(--lh-yellow); }

/* ---------- Contact (dark) ---------- */
.lh-contact-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; }
.lh-contact-intro .display-h2 { margin: 0 0 1rem; }
.lh-contact-lead { margin: 0 0 2.5rem; color: rgba(255, 255, 255, 0.7); max-width: 26rem; }
.lh-contact-details { display: flex; flex-direction: column; gap: 0.4rem; }
.lh-contact-phone { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 0.95rem; }
.lh-contact-email { color: #fff; text-decoration: none; font-size: 1.35rem; font-weight: 500; }
.lh-contact-email:hover { text-decoration: underline; }

.lh-contact-form {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.lh-field { display: flex; flex-direction: column; gap: 0.4rem; }
.lh-field label { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; font-weight: 500; }
.lh-field input,
.lh-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  color: #fff;
  font: inherit;
  box-sizing: border-box;
}
.lh-field textarea { min-height: 7rem; resize: vertical; }
.lh-field input::placeholder,
.lh-field textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.lh-field input:focus,
.lh-field textarea:focus { outline: none; border-color: var(--lh-yellow); }

/* ---------- Shared accent CTA (honey — pops on dark) ---------- */
.lh-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background-color: var(--lh-yellow);
  color: var(--lh-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lh-btn-primary:hover { background-color: var(--lh-yellow-hover); }
.lh-btn-primary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lh-btn-primary svg { width: 1rem; height: 1rem; }
.lh-btn-block { width: 100%; }

/* Form result messages (toggled by the waitlist handler) */
.lh-form-msg { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 0.75rem; font-size: 0.95rem; }
.lh-form-msg--done { background-color: rgba(255, 255, 255, 0.1); color: #fff; }
.lh-form-msg--fail { background-color: rgba(255, 120, 120, 0.18); color: #ffd9d9; }

/* Hero is the first section, directly beneath the fixed header (html body
   already offsets for the header via --lh-header-offset), so the standard
   .section top padding stacks into an oversized gap. Pull the hero up. */
.section.hero { padding-top: 1.5rem; }

/* ---------- Integrations & extensions (#case-study) ----------
   The two integration cards were content-shrink-wrapped to ~888px inside the
   1200px container, so they read small. Stretch the section to the container
   and cap the card grid a little wider (centered) so each card is ~20% larger
   on desktop. width:100% now resolves against the definite container width, so
   the grid shrinks gracefully on narrow desktops (no overflow) and the existing
   stacked mobile layout (<768px) is left untouched. */
@media (min-width: 992px) {
  #case-study .case-study-section { width: 100%; }
  #case-study .case-study-cms-wrap { width: 100%; }
  #case-study .case-study-cms-list {
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- Footer ----------
   Centered newsletter signup stacked over a single centered meta row
   (hello@livehost.com · Privacy · Terms · copyright). Overrides the Webflow
   two-column footer layout from site.css. */
.section.footer .footer-content {
  align-items: center;
  text-align: center;
}
.section.footer .subscribe-form-wrap {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
}
.section.footer .subscribe-heading { text-align: center; }
.section.footer .inline-form { justify-content: center; }

/* Submit is a compact black pill carrying the same bold arrow icon as the
   header "Contact" CTA (icon :arrow_right_bold), replacing the thin → glyph.
   .filled-button supplies the black background + white text, so the
   currentColor arrow renders white. */
.subscribe-submit-icon { display: block; width: 16px; height: 16px; }

/* Bottom meta row — one centered line, all a single size. */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--lh-ink-soft);
}
.footer-bottom-link {
  color: var(--lh-ink);
  text-decoration: none;
}
.footer-bottom-link:hover { text-decoration: underline; }
.footer-bottom-sep { color: var(--lh-ink-soft); opacity: 0.55; }
.footer-bottom-copy { color: var(--lh-ink-soft); }
.footer-bottom-copy strong { font-weight: 400; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .lh-section { padding: 4rem 0; }
  .lh-section--dark { margin: 0 8px; border-radius: 20px; width: auto; }
  .lh-plan-layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .lh-contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .lh-section-title { margin-bottom: 1.75rem; }
}

/* ---------- Mobile fixes pack ----------
   Two phone-only corrections to the Webflow sections. Both are scoped to the
   specific sections (#feature / #process) so the tablet (768–991) and desktop
   layouts are left exactly as they were. */

/* 1. "Built for LIVE commerce" tab selector.
   Webflow forces .tab-menu to a 2-column grid below 991px. On phones each
   column is only ~150px, so the longer labels ("Performance insights", "Key
   live stream support", "Timesheet & billing") wrap to two lines and collide.
   The 2-col labels only stop wrapping once each column is wide enough for "Key
   live stream support" (~208px, i.e. a ~512px viewport), so up to 600px stack
   the tabs into a single full-width column where every label fits on one line.
   Above 600px the 2-col grid has room again. The id+class selector outranks
   Webflow's bare .tab-menu. */
@media (max-width: 600px) {
  #feature .tab-menu { grid-template-columns: 1fr; }
}

/* 2. Product-mockup "peek" screenshots (process cards + feature tab UI).
   Each screenshot is a cover background div pushed out of its rounded
   overflow:clip frame by a negative inset (e.g. inset: 32px -32px -32px 32px),
   so on desktop it reads as a UI bleeding past the frame. On phones that bleed
   just chops the screenshot off mid-content on the right. Below 768px, drop the
   bleed so each mockup fills its frame edge-to-edge (cover keeps aspect, no
   distortion). overlay-03 (the gradient scrim) keeps its own positioning. */
@media (max-width: 767px) {
  #process .process-image-wrap > *,
  #feature .feature-tab-ui > *:not(.overlay-03) {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
  }
}

/* 3. Feature tab mockups — drop the heavy dark scrim.
   Webflow lays overlay-03 (#000000a6, a 65%-black sheet) over the abstract-art
   frame behind every feature screenshot, muddying each panel into a dark wash.
   Remove it so the screenshots read cleanly on the light gradient frame. */
#feature .overlay-03 { display: none; }

/* 4. "Timesheet & billing" mockup sat floating with a big empty band above it
   (inset: 15% 32px 0), looking bare next to the other tabs. On desktop pin it
   like the "Client portal" mockup — a 32px top-left peek bleeding the frame — so
   it fills the panel. Tablet keeps Webflow's centring; phones keep the inset:0
   reset above. */
@media (min-width: 992px) {
  #feature .tab-04-image {
    inset: 32px auto auto 32px;
    width: 100%;
    height: 100%;
  }
}

/* 5. Feature tab frame texture — paint it on a ::before and calm it with a cream
   wash, matching the lh-section--texture approach. Webflow toned the warm
   "Dreamlike Abstract Art" via a `filter` on .feature-tab-ui (see brand-tokens.css),
   but `filter` applies to the whole subtree, so it also desaturated/darkened the
   SCREENSHOTS — the sepia cast. Moving the texture to a ::before (behind the
   screenshots) keeps the frame subtle while the screenshots render at true colour;
   the cream wash over the texture keeps the abstract from reading too loud. The
   filter is dropped from .feature-tab-ui in brand-tokens.css. */
#feature .feature-tab-ui { background-image: none; }
#feature .feature-tab-ui::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgb(var(--lh-cream-1-rgb) / 0.55), rgb(var(--lh-cream-1-rgb) / 0.80)),
    url("/assets/site/dreamlike_abstract_art-cc8b901e.avif");
  background-size: cover;
  background-position: center;
}
