/* =============================================================================
   theme-landing.css — "Tradie Dark + Teal" skin
   Source of truth for COLOUR. Warm gunmetal darks + teal accent.
   Never introduce pure #000, cold/bluish greys, or lilac/purple.
   ============================================================================= */

:root {
  /* ---- Dark surfaces (darkest → lighter) ---------------------------------- */
  --bg-deep: #0B1116;
  --bg-page: #0E141A;
  --bg-section: #131B22;
  --bg-card: #1A2229;
  --bg-card-hi: #222B33;

  /* ---- Borders / hairlines ------------------------------------------------ */
  --line-1: #232C35;
  --line-2: #2E3942;
  --line-3: #3D4854;

  /* ---- Text --------------------------------------------------------------- */
  --tx-1: #F1F5F8;   /* primary   */
  --tx-2: #B6C2CD;   /* secondary */
  --tx-3: #7E8B97;   /* muted     */
  --tx-4: #4F5B66;   /* faint     */

  /* ---- Teal accent -------------------------------------------------------- */
  --teal-700: #0E8B7F;   /* deep edge          */
  --teal-500: #14B8A6;   /* primary            */
  --teal-400: #2DC4AE;   /* lighter            */
  --teal-300: #4FD4C1;   /* italic highlight   */
  --teal-glow: rgba(20, 184, 166, 0.18);
  --teal-glow-soft: rgba(20, 184, 166, 0.10);
  --teal-tint-08: rgba(20, 184, 166, 0.08);
  --teal-tint-14: rgba(20, 184, 166, 0.14);
  --teal-tint-22: rgba(20, 184, 166, 0.22);

  /* ---- Copper accent (warm secondary — echoes the hero wire) -------------- */
  --copper-500: #C4763A;   /* burnt orange — the wire/stitch colour */
  --copper-400: #D98A4A;   /* brighter, for small marks */
  --copper-soft: rgba(196, 118, 58, 0.55);   /* stitch line */
  --copper-tint-22: rgba(196, 118, 58, 0.22);
  --copper-tint-12: rgba(196, 118, 58, 0.12);
  --copper-glow: rgba(196, 118, 58, 0.30);

  /* ---- High-vis amber (rare — star ratings only) -------------------------- */
  --amber-400: #FBBF24;

  /* ---- Semantic on dark --------------------------------------------------- */
  --ok: #34D399;
  --warn: #F59E0B;
  --bad: #F87171;

  /* ---- Effects ------------------------------------------------------------ */
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset,
                 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
                 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  --shadow-teal: 0 20px 60px -24px var(--teal-glow);
  --dot-size: 28px;
}

/* ---- Page canvas + 28px dotted grid texture ------------------------------- */
html { background: var(--bg-page); }

body {
  color: var(--tx-2);
  background-color: var(--bg-page);
  background-image: radial-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: var(--dot-size) var(--dot-size);
  background-position: -1px -1px;
  background-attachment: fixed;
}

::selection {
  background: var(--teal-tint-22);
  color: var(--tx-1);
}

/* ---- Headings default to primary ink -------------------------------------- */
h1, h2, h3, h4 { color: var(--tx-1); }

/* Italic-teal emphasis word inside a headline (e.g. *great electrical business*) */
.accent {
  font-style: italic;
  font-weight: 500;
  color: var(--teal-300);
}

/* ---- Eyebrow pill --------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--teal-300);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--teal-tint-08);
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 8px var(--teal-400);
}

/* ---- Links ---------------------------------------------------------------- */
.link {
  color: var(--teal-300);
  border-bottom: 1px solid var(--teal-tint-22);
  transition: color var(--dur-fast) var(--ease-out-quart),
              border-color var(--dur-fast) var(--ease-out-quart);
}
.link:hover { color: var(--teal-400); border-bottom-color: var(--teal-400); }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--tx-1);
  --btn-bd: var(--line-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.4rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  transition: transform var(--dur-fast) var(--ease-out-quart),
              background var(--dur-fast) var(--ease-out-quart),
              border-color var(--dur-fast) var(--ease-out-quart),
              box-shadow var(--dur-fast) var(--ease-out-quart),
              color var(--dur-fast) var(--ease-out-quart);
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 3px;
}

/* Primary CTA — a glossy teal "bubble": spherical top-lit gradient, a soft
   specular sheen capping the top, a bright rim + darker base, so the idle
   button reads like a light-catching bubble instead of a flat pill. */
.btn-primary {
  --btn-fg: #06231F;
  border-color: transparent;
  background: radial-gradient(125% 150% at 50% -12%, var(--teal-300) 0%, var(--teal-400) 44%, var(--teal-500) 100%);
  box-shadow:
    0 10px 30px -12px var(--teal-glow),
    0 0 0 1px var(--teal-700) inset,
    0 1.5px 0 rgba(255, 255, 255, 0.5) inset,
    0 -12px 20px -14px rgba(6, 35, 31, 0.6) inset;
}
/* Glossy specular cap — a soft light ellipse across the top of the bubble. */
.btn-primary::before {
  content: "";
  position: absolute; z-index: -1;
  left: 7%; right: 7%; top: 5%; height: 48%;
  border-radius: 50%;
  background: radial-gradient(85% 100% at 50% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 72%);
  opacity: 0.8; pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out-quart);
}
.btn-primary:hover {
  background: radial-gradient(125% 150% at 50% -12%, #83e8d8 0%, var(--teal-300) 44%, var(--teal-400) 100%);
  box-shadow:
    0 18px 46px -14px var(--teal-glow),
    0 0 0 1px var(--teal-400) inset,
    0 1.5px 0 rgba(255, 255, 255, 0.65) inset;
}
.btn-primary:hover::before { opacity: 1; }

/* Large CTAs gently "breathe" — a slow glow pulse so the idle bubble feels
   alive/floaty rather than static. Small (header) primary buttons stay calm. */
.btn-primary.btn-lg { animation: btnBubble 3.8s ease-in-out infinite; }
.btn-primary.btn-lg:hover { animation: none; }
.reduced-motion .btn-primary.btn-lg { animation: none; }
@keyframes btnBubble {
  0%, 100% {
    box-shadow:
      0 10px 30px -12px var(--teal-glow),
      0 0 0 1px var(--teal-700) inset,
      0 1.5px 0 rgba(255, 255, 255, 0.5) inset,
      0 -12px 20px -14px rgba(6, 35, 31, 0.6) inset;
  }
  50% {
    box-shadow:
      0 14px 40px -12px var(--teal-glow),
      0 0 24px -2px var(--teal-glow),
      0 0 0 1px var(--teal-700) inset,
      0 1.5px 0 rgba(255, 255, 255, 0.62) inset,
      0 -12px 20px -14px rgba(6, 35, 31, 0.6) inset;
  }
}

.btn-secondary {
  --btn-bg: var(--bg-card);
  --btn-fg: var(--tx-1);
  --btn-bd: var(--line-2);
}
.btn-secondary:hover {
  --btn-bg: var(--bg-card-hi);
  border-color: var(--line-3);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-bd: transparent;
  --btn-fg: var(--tx-2);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.btn-ghost:hover { --btn-fg: var(--tx-1); }

.btn-lg { padding: 1.1rem 1.7rem; font-size: var(--fs-body); }

/* ---- Cards ---------------------------------------------------------------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
}

/* Glassy surface for dashboard panels */
.glass {
  position: relative;
  background: linear-gradient(
    155deg,
    rgba(34, 43, 51, 0.72),
    rgba(19, 27, 34, 0.82)
  );
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  overflow: hidden;
}

/* Teal icon chip used on feature cards */
.icon-chip {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  color: var(--teal-300);
  background: var(--teal-tint-14);
  border: 1px solid var(--teal-tint-22);
}
.icon-chip svg { width: 22px; height: 22px; }

/* Hairline teal divider (drawn in on scroll) */
.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--teal-tint-22) 20%,
    var(--teal-500) 50%,
    var(--teal-tint-22) 80%,
    transparent
  );
  transform-origin: center;
}

/* Star rating (amber) */
.stars { color: var(--amber-400); letter-spacing: 0.12em; }

/* Soft radial teal glow blob (section entrances / CTA band) */
.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 68%);
  filter: blur(6px);
  z-index: var(--z-bg);
}

/* ---- Focus + a11y --------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: var(--z-modal);
  background: var(--teal-500);
  color: #06231F;
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-pill);
  transition: top var(--dur-fast) var(--ease-out-quart);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
