/* telness-vaxel.css — Växel page specific components */

/* ═══════════════════════════════════════════════════════════
   MOBIL VÄXEL — additional components
   ═══════════════════════════════════════════════════════════ */

/* ── Pricing calculator ────────────────────────────────── */
#tl-root .tl-calc {
  background-color: #fff;
  padding: clamp(64px, 7vw, 96px) 0;
}
#tl-root .tl-calc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  -webkit-transform: translateZ(0);
}
#tl-root .tl-calc__grid > * {
  min-width: 0;
}
#tl-root .tl-calc__left h2 {
  font-family: var(--ff-h); font-size: clamp(18px,2vw,26px); font-weight: 700;
  color: var(--c-navy); margin-bottom: 6px;
}
#tl-root .tl-calc__left p {
  font-size: 14px; color: var(--c-gray); margin-bottom: 28px;
}
#tl-root .tl-calc__step {
  margin-bottom: 22px;
}
#tl-root .tl-calc__step label {
  display: block; font-family: var(--ff-b); font-size: 14px;
  font-weight: 500; color: var(--c-navy); margin-bottom: 10px;
}
#tl-root .tl-calc__tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
}
#tl-root .tl-calc__tab {
  font-family: var(--ff-b); font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 100px;
  border: 1.5px solid var(--c-gray-l);
  background: #fff; color: var(--c-navy); cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}
#tl-root .tl-calc__tab:hover,
#tl-root .tl-calc__tab.is-active {
  border-color: var(--c-green); background: var(--c-green); color: #fff;
}
#tl-root .tl-calc__slider-wrap {
  display: flex; align-items: center; gap: 12px;
}
#tl-root .tl-calc__slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 4px; background: var(--c-gray-l); outline: none;
}
#tl-root .tl-calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-green); cursor: pointer;
  box-shadow: 0 2px 8px rgba(4,175,143,.3);
}
#tl-root .tl-calc__val {
  font-family: var(--ff-h); font-size: 18px; font-weight: 700;
  color: var(--c-navy); min-width: 32px; text-align: right;
}

/* Result box */
#tl-root .tl-calc__result {
  background: #fff; border: 2px solid var(--c-green);
  border-radius: var(--r-card); padding: 32px;
  position: sticky; top: 84px;
  min-width: 0;
  -webkit-transform: translateZ(0);
}
#tl-root .tl-calc__result h3 {
  font-family: var(--ff-b); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-gray-m);
  margin-bottom: 12px;
}
#tl-root .tl-calc__price-big {
  font-family: var(--ff-h); font-size: clamp(36px,4vw,52px); font-weight: 800;
  color: var(--c-green); line-height: 1; margin-bottom: 4px;
}
#tl-root .tl-calc__price-sub {
  font-size: 13px; color: var(--c-gray-m); margin-bottom: 24px; display: block;
}
#tl-root .tl-calc__breakdown {
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--c-gray-l); padding-top: 20px; margin-bottom: 24px;
}
#tl-root .tl-calc__row {
  display: flex; justify-content: space-between; align-items: center;
}
#tl-root .tl-calc__row span:first-child {
  font-size: 14px; color: var(--c-gray);
}
#tl-root .tl-calc__row span:last-child {
  font-size: 14px; font-weight: 600; color: var(--c-navy);
}

/* Calculator header — spans full width above the grid */
#tl-root .tl-calc__hd {
  margin-bottom: 36px;
}
#tl-root .tl-calc__hd h2 {
  font-family: var(--ff-h); font-size: clamp(22px, 2.5vw, 32px); font-weight: 700;
  color: var(--c-navy); letter-spacing: -0.02em; line-height: 1.2;
  max-width: 500px;
}

/* Left form card */
#tl-root .tl-calc__left {
  background: #fff; border: 1.5px solid var(--c-gray-l);
  border-radius: var(--r-card); padding: 32px;
  min-width: 0; /* Safari grid fix */
  -webkit-transform: translateZ(0); /* Force Safari GPU compositing */
}

/* Calculator form elements */
#tl-root .tl-calc__label {
  display: block; font-family: var(--ff-b); font-size: 14px;
  font-weight: 600; color: var(--c-navy); margin-bottom: 12px;
}
/* Hide native radio buttons */
#tl-root .tl-calc__tab input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
#tl-root .tl-calc__tab span {
  display: block;
}
#tl-root .tl-calc__slider-box {
  background: var(--c-off); padding: 16px 20px; border: 1.5px solid var(--c-gray-l);
  border-radius: 10px; margin-bottom: 12px;
}
#tl-root .tl-calc__slider-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
  font-family: var(--ff-b); font-size: 14px; font-weight: 500; color: var(--c-navy);
}
#tl-root .tl-calc__slider {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 4px; background: var(--c-gray-l); outline: none;
}
#tl-root .tl-calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-green); cursor: pointer;
  box-shadow: 0 2px 8px rgba(4,175,143,.3);
}
#tl-root .tl-calc__slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; border: none;
  background: var(--c-green); cursor: pointer;
  box-shadow: 0 2px 8px rgba(4,175,143,.3);
}
#tl-root .tl-calc__note {
  margin-top: 12px; padding: 12px 16px; border-radius: 10px;
  background: rgba(4,175,143,.08); border-left: 3px solid var(--c-green);
  font-family: var(--ff-b); font-size: 13px; color: var(--c-navy); line-height: 1.5;
}
#tl-root .tl-calc__price-unit {
  font-size: 0.45em; vertical-align: super;
}
/* Spacing between sub-slider boxes */
#tl-root #subs-container {
  display: flex; flex-direction: column; gap: 0; margin-top: 12px;
}

/* Summary table */
#tl-root .tl-calc__summary {
  background: var(--c-off); padding: 16px; border-radius: var(--r-card); margin-bottom: 24px;
}
#tl-root .tl-calc__summary p {
  font-family: var(--ff-b); font-size: 13px; color: var(--c-navy);
  font-weight: 500; margin-bottom: 10px; line-height: 1.4;
}
#tl-root .tl-calc__summary table {
  width: 100%; border-collapse: collapse; font-family: var(--ff-b); font-size: 13px;
}
#tl-root .tl-calc__summary td {
  padding: 6px 8px; color: var(--c-gray); border-bottom: 1px solid var(--c-gray-l);
}
#tl-root .tl-calc__summary td:last-child { text-align: right; }
#tl-root .tl-calc__summary td strong { color: var(--c-navy); }
#tl-root .tl-calc__disclaimer {
  margin-top: 16px; font-family: var(--ff-b); font-size: 12px; color: var(--c-gray-m);
}

/* Lead modal */
#tl-root .tl-modal {
  position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center;
}
#tl-root .tl-modal__box {
  background: #fff; padding: 32px; border-radius: var(--r-card);
  max-width: 450px; width: 90%; text-align: center;
  box-shadow: 0 16px 48px rgba(39,38,87,.15);
  max-height: 90vh; overflow-y: auto;
}
#tl-root .tl-modal__box h3 {
  font-family: var(--ff-h); font-size: 24px; font-weight: 700;
  color: var(--c-navy); margin-bottom: 8px; text-transform: none; letter-spacing: 0;
}
#tl-root .tl-modal__box p {
  font-family: var(--ff-b); font-size: 14px; color: var(--c-gray); margin-bottom: 20px; line-height: 1.5;
}
#tl-root .tl-modal__skip {
  background: none; border: none; color: var(--c-navy); font-family: var(--ff-b);
  font-size: 14px; text-decoration: underline; cursor: pointer; margin-top: 16px;
}
/* Hide HubSpot message field in modal */
#hubspot-form-container textarea[name="message"],
#hubspot-form-container .hs-fieldtype-textarea { display: none !important; }

/* ── Feature USP strip ─────────────────────────────────── */
#tl-root .tl-usp-strip {
  padding: clamp(64px, 7vw, 96px) 0;
  background-color: #fff !important;
}
#tl-root .tl-usp-strip__hd {
  margin-bottom: 40px;
}
#tl-root .tl-usp-strip__hd h2 {
  font-family: var(--ff-h); font-size: var(--fs-h2); font-weight: 700;
  color: var(--c-navy); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 8px;
}
#tl-root .tl-usp-strip__hd p {
  font-size: var(--fs-body); color: var(--c-gray);
}
#tl-root .tl-usp-strip__cols {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin-bottom: 48px !important;
}
#tl-root .tl-usp-strip__cols > .tl-usp-pill {
  flex: 1 1 30% !important;
  min-width: 0 !important; width: 100%;
  max-width: 100% !important;
}
#tl-root .tl-usp-pill {
  display: flex !important; align-items: flex-start !important;
  gap: 10px !important; font-family: var(--ff-b) !important;
  font-size: 14px !important; color: var(--c-navy) !important; line-height: 1.45 !important;
}
#tl-root .tl-usp-pill::before {
  content: '' !important; flex-shrink: 0 !important; display: block !important;
  width: 18px !important; height: 18px !important;
  border-radius: 50% !important; margin-top: 2px !important;
  background-color: var(--c-green) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpath d='M1.5 5.5L5.5 9.5L12.5 1.5' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: center !important; background-size: 9px !important;
}

/* ── Pricing tiers ─────────────────────────────────────── */
#tl-root .tl-tiers {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  align-items: stretch !important;
}
#tl-root .tl-tiers > .tl-card {
  flex: 1 1 30% !important;
  min-width: 0 !important; width: 100%;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* reuses .tl-card styles — no extra CSS needed */

/* ── Features grid ─────────────────────────────────────── */
#tl-root .tl-features {
  background: var(--c-off);
  padding: clamp(64px, 7vw, 96px) 0;
}
#tl-root .tl-features__hd { margin-bottom: 40px; }
#tl-root .tl-features__hd h2 {
  font-family: var(--ff-h); font-size: var(--fs-h2); font-weight: 700;
  color: var(--c-navy); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 6px;
}
#tl-root .tl-features__hd p {
  font-size: var(--fs-body); color: var(--c-gray);
}
#tl-root .tl-features__grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
}
#tl-root .tl-features__grid > .tl-feat-card {
  flex: 1 1 30% !important;
  min-width: 0 !important; width: 100%;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
#tl-root .tl-feat-card {
  background: #fff; border-radius: var(--r-card);
  border: 1.5px solid var(--c-gray-l);
  padding: 28px 24px;
}
#tl-root .tl-feat-card__icon {
  width: 44px; height: 44px; min-width: 44px; border-radius: 12px;
  background-color: rgba(4,175,143,.1) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 22px !important;
  margin-bottom: 16px;
  display: block;
}
/* Hide any child SVG — icon is rendered via CSS bg-image on parent */
#tl-root .tl-feat-card__icon svg { display: none !important; }

/* Per-icon bg images */
#tl-root .tl-feat-card__icon--grid    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304af8f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3C/svg%3E") !important; }
#tl-root .tl-feat-card__icon--clock   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304af8f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") !important; }
#tl-root .tl-feat-card__icon--users   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304af8f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75'/%3E%3C/svg%3E") !important; }
#tl-root .tl-feat-card__icon--phone   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304af8f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07A19.5 19.5 0 013.07 9.81 19.79 19.79 0 012 1h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L6.09 8.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E") !important; }
#tl-root .tl-feat-card__icon--list    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304af8f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E") !important; }
#tl-root .tl-feat-card__icon--message { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304af8f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z'/%3E%3C/svg%3E") !important; }
#tl-root .tl-feat-card h3 {
  font-family: var(--ff-h); font-size: 16px; font-weight: 700;
  color: var(--c-navy); margin-bottom: 8px; letter-spacing: -0.01em;
}
#tl-root .tl-feat-card p {
  font-size: 14px; color: var(--c-gray); line-height: 1.6;
}

/* ── Comparison table ──────────────────────────────────── */
#tl-root .tl-compare {
  padding: clamp(64px, 7vw, 96px) 0;
  background: #fff;
}
#tl-root .tl-compare__hd { margin-bottom: 40px; }
#tl-root .tl-compare__hd h2 {
  font-family: var(--ff-h); font-size: var(--fs-h2); font-weight: 700;
  color: var(--c-navy); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 8px;
}
#tl-root .tl-compare__hd p {
  font-size: var(--fs-body); color: var(--c-gray); max-width: 680px;
}
#tl-root .tl-table-wrap {
  overflow-x: auto; border-radius: var(--r-card);
  border: 1.5px solid var(--c-gray-l);
}
#tl-root .tl-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--ff-b); font-size: 14px;
}
#tl-root .tl-table thead th {
  padding: 18px 20px; text-align: left;
  font-weight: 700; font-size: 13px;
  color: var(--c-navy); background: var(--c-off);
  border-bottom: 1.5px solid var(--c-gray-l);
  white-space: nowrap;
}
#tl-root .tl-table thead th:not(:first-child) {
  text-align: center;
}
#tl-root .tl-table thead th.tl-table__featured {
  background: rgba(4,175,143,.08); color: var(--c-green);
}
#tl-root .tl-table tbody tr:nth-child(even) td {
  background: var(--c-off);
}
#tl-root .tl-table tbody td {
  padding: 14px 20px; color: var(--c-gray);
  border-bottom: 1px solid var(--c-gray-l);
  vertical-align: middle;
}
#tl-root .tl-table tbody td:not(:first-child) {
  text-align: center;
}
#tl-root .tl-table tbody tr:last-child td { border-bottom: none; }

/* Check and dash for table cells — uses bg-image not inline SVG to avoid theme SVG overrides */
#tl-root .tl-check-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; min-width: 22px; border-radius: 50%;
  background-color: rgba(4,175,143,.12) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpath d='M1.5 5.5L5.5 9.5L12.5 1.5' stroke='%2304af8f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 11px !important;
}
/* Hide any child SVG since we use bg-image */
#tl-root .tl-check-icon svg { display: none !important; }
#tl-root .tl-dash {
  display: inline-block; width: 14px; height: 2px;
  background: var(--c-gray-l); border-radius: 2px; vertical-align: middle;
}

/* ── Testimonials ──────────────────────────────────────── */
#tl-root .tl-testimonials {
  background-color: var(--c-off) !important;
  padding: clamp(64px, 7vw, 96px) 0;
}
#tl-root .tl-testimonials__grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
}
#tl-root .tl-testimonials__grid > .tl-testimonial {
  flex: 1 1 30% !important;
  min-width: 0 !important; width: 100%;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
#tl-root .tl-testimonial {
  background-color: #fff !important;
  border-radius: var(--r-card) !important;
  border: 1.5px solid var(--c-gray-l) !important;
  padding: 28px 24px !important;
  display: flex !important; flex-direction: column !important; gap: 14px !important;
}
#tl-root .tl-testimonial__stars {
  display: flex !important; gap: 3px !important;
}
#tl-root .tl-testimonial__stars span {
  display: block !important; width: 16px !important; height: 16px !important;
  background: #00b67a !important; min-width: 16px !important;
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%) !important;
}
#tl-root .tl-testimonial__text {
  font-family: var(--ff-b) !important; font-size: 15px !important;
  font-style: italic !important; color: var(--c-navy) !important;
  line-height: 1.6 !important; flex: 1 !important;
  margin: 0 !important; padding: 0 !important;
}
#tl-root .tl-testimonial__author {
  font-family: var(--ff-b) !important; font-size: 13px !important;
  font-weight: 600 !important; color: var(--c-gray-m) !important;
  display: block !important;
}

/* ── Responsive additions ──────────────────────────────── */
@media (max-width: 900px) {
  #tl-root .tl-calc__grid { grid-template-columns: 1fr; }
  #tl-root .tl-calc__result { position: static; }
  #tl-root .tl-usp-strip__cols > .tl-usp-pill { flex: 1 1 100% !important; }
  #tl-root .tl-tiers { max-width: 400px; }
  #tl-root .tl-tiers > .tl-card { flex: 1 1 100% !important; }
  #tl-root .tl-features__grid > .tl-feat-card { flex: 1 1 45% !important; }
  #tl-root .tl-testimonials__grid > .tl-testimonial { flex: 1 1 100% !important; }
}
@media (max-width: 640px) {
  #tl-root .tl-features__grid > .tl-feat-card { flex: 1 1 100% !important; }
}

/* ── Safari-specific stability fixes ────────────────────── */
/* Force GPU compositing on flex containers to prevent Safari layout flicker */
#tl-root .tl-pricing__grid,
#tl-root .tl-tiers,
#tl-root .tl-features__grid,
#tl-root .tl-testimonials__grid,
#tl-root .tl-usp-strip__cols {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Explicit width on flex children — belt-and-suspenders for Safari */
#tl-root .tl-pricing__grid > .tl-card,
#tl-root .tl-tiers > .tl-card {
  -webkit-flex: 1 1 30%;
  flex: 1 1 30%;
  max-width: calc(33.333% - 13px);
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  #tl-root .tl-pricing__grid > .tl-card,
  #tl-root .tl-tiers > .tl-card {
    -webkit-flex: 1 1 100%;
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Reduced motion — kill all animations */
@media (prefers-reduced-motion: reduce) {
  #tl-root *, #tl-root *::before, #tl-root *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
