/* ===== Tundra Co. — Design System ===== */
/* Fonts are loaded via <link> tags in each page's <head> for faster parallel loading,
   not @import here — @import blocks until the CSS itself is parsed first. */

:root {
  --black: #0B0A0D;
  --black-soft: #121116;
  --navy: #14213D;
  --purple: #5D0681;
  --purple-bright: #8A2BE2;
  --ice: #6FA8DC;
  --white: #F5F6FA;
  --gray: #9AA0AE;
  --gray-dim: #6B7180;
  --card-bg: #17151C;
  --card-border: rgba(255,255,255,0.08);

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--white);
  letter-spacing: -0.01em;
}

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Snow canvas ===== */
#snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40; /* above section backgrounds so it's visible over the whole scroll, below the header */
}

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

@media (prefers-reduced-motion: reduce) {
  #snow-canvas { display: none; }
}

/* ===== Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,10,13,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img { height: 64px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.15s ease;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--ice), var(--purple-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-socials a {
  display: flex;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-socials svg { width: 26px; height: 26px; }

.nav-socials a:hover { transform: translateY(-2px); opacity: 0.85; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--white);
  color: var(--black);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245,246,250,0.15);
}

.btn-dark {
  background: var(--card-bg);
  color: var(--white);
  border: 1px solid var(--card-border);
}
.btn-dark:hover { background: #201d29; }

.btn-purple {
  background: linear-gradient(135deg, var(--purple) 0%, #7a1aa8 100%);
  color: var(--white);
}
.btn-purple:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(93,6,129,0.4);
}

.btn-nav {
  padding: 9px 18px;
  font-size: 14px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 0 4px 14px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 110px 24px 90px;
  text-align: center;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  bottom: -25%;
  left: 38%;
  width: 620px;
  height: 420px;
  background: rgba(93,6,129,0.4);
}

.hero::after {
  bottom: -30%;
  left: 58%;
  width: 520px;
  height: 380px;
  background: rgba(111,168,220,0.22);
}

.hero-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 7px 16px 7px 8px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 28px;
}

.eyebrow-badge .tag {
  background: linear-gradient(135deg, var(--purple), var(--ice));
  color: var(--white);
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
}

.hero h1 .dim { color: var(--gray-dim); }

.hero-sub {
  font-size: 18px;
  color: var(--gray);
  max-width: 620px;
  margin: 26px auto 0;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-ctas .btn { padding: 15px 28px; font-size: 16px; }

.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--gray-dim);
}

/* ===== Sections ===== */
.section {
  position: relative;
  z-index: 2;
  padding: 90px 24px;
}

.section-black { background: var(--black); }
.section-soft { background: var(--black-soft); }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
}

.section-head p {
  color: var(--gray);
  font-size: 17px;
  margin-top: 16px;
}

.section-head.align-left { text-align: left; margin-left: 0; }

/* ===== Cards ===== */
.card-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 30px;
  flex: 1 1 280px;
  min-width: 260px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(111,168,220,0.35);
  box-shadow: 0 24px 44px rgba(0,0,0,0.35);
}

.card:active {
  transform: translateY(-3px) scale(0.99);
  border-color: rgba(111,168,220,0.35);
  box-shadow: 0 16px 30px rgba(0,0,0,0.3);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(111,168,220,0.12);
}

.card-icon svg { width: 22px; height: 22px; color: var(--ice); }

.card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ice);
}

/* ===== Stat block ===== */
.stat-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 50px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.stat-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item { flex: 1 1 240px; }

.stat-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
  margin: 14px 0 12px;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.bar-green { background: #22C55E; }
.bar-yellow { background: #EAB308; }
.bar-orange { background: #F97316; }
.bar-red { background: #EF4444; }

.stat-number {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.stat-label {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.5;
}

.stat-source {
  font-size: 12px;
  color: var(--gray-dim);
  margin-top: 6px;
  display: block;
}

/* ===== Phone mockups ===== */
.phone-mock {
  background: linear-gradient(160deg, #1a1820, #0f0e13);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 18px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.phone-screen {
  background: #f2f2f5;
  border-radius: 18px;
  padding: 16px 12px;
  min-height: 320px;
}

.text-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.text-bubble.in {
  background: #e5e5ea;
  color: #111;
  border-bottom-left-radius: 4px;
}

.text-bubble.out {
  background: linear-gradient(135deg, var(--purple), #7a1aa8);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.text-timestamp {
  text-align: center;
  font-size: 11px;
  color: #9a9a9e;
  margin-bottom: 10px;
}

/* ===== Signature ice cube section ===== */
.ice-feature {
  position: relative;
  padding: 90px 24px;
  overflow: hidden;
}

.ice-feature::before,
.ice-feature::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.ice-feature::before {
  top: 10%;
  left: 20%;
  width: 460px;
  height: 460px;
  background: rgba(111,168,220,0.14);
}
.ice-feature::after {
  top: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: rgba(93,6,129,0.2);
}

.ice-feature-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.ice-feature-text {
  flex: 1 1 380px;
  max-width: 440px;
}

.ice-feature-text h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.ice-feature-text p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.7;
}

.ice-visual-wrap {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.ice-visual-wrap img,
.ice-visual-wrap svg {
  max-width: 300px;
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(111,168,220,0.3));
}

@media (max-width: 760px) {
  .ice-feature-inner { text-align: center; justify-content: center; }
  .ice-feature-text { text-align: center; }
}

/* ===== Pricing cards ===== */
.pricing-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
}

.price-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 34px 28px;
  flex: 1 1 300px;
  min-width: 270px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.price-card:hover {
  transform: translateY(-8px);
  border-color: rgba(111,168,220,0.4);
  box-shadow: 0 26px 50px rgba(0,0,0,0.4);
}

.price-card:active {
  transform: translateY(-4px) scale(0.99);
  border-color: rgba(111,168,220,0.4);
  box-shadow: 0 18px 32px rgba(0,0,0,0.35);
}

.price-card.featured {
  background: linear-gradient(165deg, #1c1024, var(--black-soft));
  border: 1px solid rgba(93,6,129,0.5);
  transform: translateY(-8px);
}

.price-card.featured:hover {
  transform: translateY(-14px);
  box-shadow: 0 30px 55px rgba(93,6,129,0.35);
}

.price-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple), var(--ice));
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.price-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.price-value {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.price-value .unit {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--gray);
}

.price-varies {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ice);
  margin-bottom: 4px;
}

.price-desc {
  color: var(--gray);
  font-size: 14.5px;
  margin: 14px 0 22px;
  line-height: 1.6;
  flex-grow: 1;
}

.price-card .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ===== Footer ===== */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--black-soft);
  border-top: 1px solid var(--card-border);
  padding: 60px 24px 30px;
}

.footer-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand img { height: 42px; margin-bottom: 14px; }
.footer-brand p { color: var(--gray); font-size: 14px; max-width: 260px; }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-col a {
  display: block;
  color: var(--gray);
  font-size: 14.5px;
  margin-bottom: 10px;
}

.footer-col a:hover { color: var(--ice); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-dim);
}

/* ===== Google reviews badge ===== */
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 10px 20px;
  margin-top: 18px;
}

.google-badge svg { width: 22px; height: 22px; flex-shrink: 0; }

.google-badge-text {
  font-size: 14.5px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.google-badge-score {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  font-size: 15px;
}

.stars { color: #FBBC05; letter-spacing: 2px; font-size: 14px; }

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
/* ===== FAQ Accordion ===== */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 6px 28px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-size: 18.5px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
  color: var(--ice);
  font-size: 20px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-item p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: 24px;
  margin: 0;
}

.faq-item[open] summary { border-bottom: 1px solid var(--card-border); margin-bottom: 0; }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .price-card.featured { transform: none; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black-soft);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 10px 24px 18px;
    gap: 2px;
    z-index: 60;
  }
  .nav-links.mobile-open li { width: 100%; }
  .nav-links.mobile-open a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--card-border);
  }
  .nav-links.mobile-open a::after { display: none; }
  .nav-links.mobile-open li:last-child a { border-bottom: none; }
}

@media (max-width: 560px) {
  .nav-socials { display: none; }
  .stat-panel { padding: 32px 22px; }
  .hero { padding: 90px 20px 70px; }
  .ice-feature { padding: 70px 20px; }
}

/* Mobile perf: heavy blur filters and backdrop-filter are notably more
   GPU-expensive on phones — ease them off instead of dropping the look entirely */
@media (max-width: 700px) {
  .site-header {
    backdrop-filter: none;
    background: rgba(11,10,13,0.97);
  }
  .hero::before, .hero::after {
    filter: blur(50px);
  }
  .ice-feature::before, .ice-feature::after {
    filter: blur(55px);
  }
}
