/* ============================================================
   HUDDLE — Prețuri.
   Prețul stă pe loc oricât crește firma; două drumuri de pornire
   care se termină în aceeași aplicație.
   ============================================================ */

.page-pricing { --bg-page: #fafbf7; background: var(--bg-page); }
.price-page { padding: calc(var(--header-h) + clamp(20px, 5vh, 56px)) var(--gutter) 0; }
.price-page > section { max-width: 1180px; margin-left: auto; margin-right: auto; }
.price-page > section + section { margin-top: clamp(96px, 14vh, 160px); }
.price-page .eyebrow { color: var(--accent-ink); }
.price-page h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; }
.price-page h2 em, .price-page h1 em { color: #3f7424; letter-spacing: -.01em; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--text-secondary); }

.btn-ghost { padding: 18px 22px; font-size: 15px; min-width: 215px; gap: 40px; border-color: var(--green-700); color: var(--green-700); }
.btn-ghost:hover { transform: translateY(-2px); }

/* ---------- 1. prețul care nu se mișcă ---------- */
.price-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.price-hero h1 { margin-top: 12px; font-size: clamp(34px, 3.7vw, 54px); line-height: 1.04; letter-spacing: -.035em; font-weight: 500; }
.price-lock { display: flex; align-items: flex-start; gap: 16px; margin-top: 26px; }
.price-big { display: flex; align-items: baseline; line-height: .85; color: var(--green-700); }
.price-num { font-size: clamp(104px, 11.5vw, 176px); font-weight: 600; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.price-cur { font-size: clamp(44px, 4.6vw, 72px); font-weight: 500; margin-left: .06em; }
.price-per { font-size: 20px; color: var(--text-secondary); margin-left: 8px; }
.lock {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; margin-top: 10px; border-radius: 50%;
  background: var(--lime-300); color: var(--green-700);
  box-shadow: 0 0 0 0 rgba(166, 238, 121, .6);
}
.lock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lock.bump { animation: lock-bump .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes lock-bump {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(166, 238, 121, .7); }
  35% { transform: scale(1.14) rotate(-6deg); }
  100% { transform: none; box-shadow: 0 0 0 16px rgba(166, 238, 121, 0); }
}
.price-note { margin-top: 18px; font-size: 16px; color: var(--text-secondary); }

.scale {
  background: #fff; border: 1px solid var(--rule); border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(20, 44, 36, .35);
}
.scale-field {
  position: relative; height: 250px; padding: 22px 24px;
  display: grid; grid-template-rows: auto 1fr auto 1fr; gap: 8px;
  background-color: #f3f7ec;
  background-image: radial-gradient(circle, rgba(38, 61, 40, .12) 1px, transparent 1.6px);
  background-size: 22px 22px;
  border-bottom: 1px solid var(--rule);
}
.sc-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); }
.sc-row { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px; }
.sc-item { position: relative; animation: sc-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
.sc-item.is-leaving { animation: sc-out .25s ease-in both; }
@keyframes sc-pop { from { opacity: 0; transform: scale(.2); } }
@keyframes sc-out { to { opacity: 0; transform: scale(.2); } }
.sc-user { width: 14px; height: 14px; border-radius: 50%; background: var(--green-500); box-shadow: inset 0 -5px 0 rgba(255, 255, 255, .28); }
.sc-company { width: 18px; height: 13px; border-radius: 2px 2px 3px 3px; background: linear-gradient(176deg, #6dbb51, #4c9737); }
.sc-company::before { content: ""; position: absolute; left: 1px; top: -3px; width: 8px; height: 4px; border-radius: 2px 2px 0 0; background: #3b7a2e; }
.scale-controls { display: grid; gap: 14px; padding: 22px 24px 24px; }
.scale-row { display: grid; grid-template-columns: 96px 1fr 52px; align-items: center; gap: 14px; }
.scale-label { font-size: 16px; font-weight: 500; }
/* Glisorul: șină subțire, mâner pătrat cu striații */
.scale-row input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 34px; background: transparent; cursor: pointer;
  --fill: 50%;
}
.scale-row input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--green-500) var(--fill), #dfe8d4 var(--fill));
}
.scale-row input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: #dfe8d4; }
.scale-row input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--green-500); }
.scale-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; margin-top: -11px;
  border-radius: 7px; border: 1px solid var(--green-700);
  background:
    linear-gradient(90deg, transparent 8px, rgba(255, 255, 255, .75) 8px 9.5px, transparent 9.5px 12.5px, rgba(255, 255, 255, .75) 12.5px 14px, transparent 14px 17px, rgba(255, 255, 255, .75) 17px 18.5px, transparent 18.5px) center / 100% 12px no-repeat,
    var(--green-700);
  box-shadow: 0 4px 10px -3px rgba(20, 44, 36, .5);
  transition: transform .2s;
}
.scale-row input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 7px; border: 1px solid var(--green-700);
  background:
    linear-gradient(90deg, transparent 8px, rgba(255, 255, 255, .75) 8px 9.5px, transparent 9.5px 12.5px, rgba(255, 255, 255, .75) 12.5px 14px, transparent 14px 17px, rgba(255, 255, 255, .75) 17px 18.5px, transparent 18.5px) center / 100% 12px no-repeat,
    var(--green-700);
  box-shadow: 0 4px 10px -3px rgba(20, 44, 36, .5);
}
.scale-row input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.08); }
.scale-row input[type="range"]:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; border-radius: 8px; }
.scale-out { font-family: var(--font-mono); font-size: 16px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.scale-total { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 15px; }
.scale-same { font-family: var(--font-mono); font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #e6f0da; color: var(--green-700); }
.scale-same.flash { animation: same-flash .6s ease-out; }
@keyframes same-flash { 0% { background: var(--lime-300); } 100% { background: #e6f0da; } }

/* ---------- 2. două drumuri ---------- */
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); align-items: stretch; }
.path {
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 24px; border: 1px solid var(--rule); background: #fff;
}
.path-direct {
  background: var(--green-800); color: #f0f7ea; border-color: transparent;
  box-shadow: 0 40px 70px -40px rgba(20, 44, 36, .6);
}
.path-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.path-direct .path-tag { color: var(--lime-300); }
.path-head h3 { margin-top: 10px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.025em; }

.route { position: relative; list-style: none; margin: 26px 0 28px; padding: 0 0 0 30px; display: grid; gap: 14px; --seg: .42s; }
.route::before, .route::after {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px;
}
.route::before { background: color-mix(in srgb, currentColor 16%, transparent); }
.route::after {
  background: var(--green-400);
  transform: scaleY(0); transform-origin: top;
  transition: transform calc(var(--seg) * var(--segments, 3)) linear .2s;
}
.path-direct .route::after { background: var(--lime-300); }
.route li { position: relative; font-size: 16px; line-height: 1.3; opacity: .55; transition: opacity .3s; }
.stop {
  position: absolute; left: -30px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-page); border: 2px solid color-mix(in srgb, currentColor 35%, transparent);
  transition: background-color .3s, border-color .3s, transform .3s;
}
.path-direct .stop { background: var(--green-800); }
.route-end { font-weight: 600; }
.paths.is-visible .route::after { transform: scaleY(1); }
.paths.is-visible .route li { opacity: 1; transition-delay: calc(var(--k) * var(--seg) + .2s); }
.paths.is-visible .stop { border-color: var(--green-400); background: var(--green-400); transform: scale(1.05); transition-delay: calc(var(--k) * var(--seg) + .2s); }
.paths.is-visible .path-direct .stop { border-color: var(--lime-300); background: var(--lime-300); }
.paths.is-visible .route-end .stop { box-shadow: 0 0 0 6px rgba(118, 199, 83, .2); }

.path-price { margin: auto 0 0; padding-top: 22px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.save {
  display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; background: var(--lime-300); color: var(--green-700);
}
.impl { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.impl-num { font-size: clamp(52px, 5.4vw, 72px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.impl-was { font-size: 18px; opacity: .7; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.impl-label { margin-top: 6px; font-size: 15px; opacity: .85; }
.sub { margin-top: 14px; font-size: 17px; }
.sub b { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.path-meta { margin: 16px 0 24px; font-size: 15px; line-height: 1.55; opacity: .85; }
.path .btn { align-self: flex-start; }
.paths-same { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; font-size: 15px; color: var(--text-secondary); text-align: center; }
.same-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 5px rgba(118, 199, 83, .2); flex: none; }

/* ---------- 3. sprijinul pentru implementare: bandă închisă ---------- */
.price-page > .support {
  max-width: none;
  position: relative; isolation: isolate; overflow: hidden;
  margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
  padding: clamp(80px, 12vh, 130px) var(--gutter);
  background: var(--green-800); color: #f0f7ea;
}
.support::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, #a6ee79 1px, transparent 1.6px);
  background-size: 32px 32px; opacity: .1;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 40%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 70% at 30% 40%, #000, transparent);
}
.support-inner { max-width: 1180px; margin: 0 auto; }
.support-hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.infinity { display: grid; justify-items: center; gap: 10px; }
.infinity svg { width: min(100%, 400px); height: auto; overflow: visible; }
.inf-track, .inf-draw { fill: none; stroke-width: 9; stroke-linecap: round; }
.inf-track { stroke: rgba(166, 238, 121, .14); }
.inf-draw { stroke: var(--lime-300); stroke-dasharray: 260; stroke-dashoffset: 260; filter: drop-shadow(0 0 10px rgba(166, 238, 121, .45)); }
.support.is-visible .inf-draw { animation: inf-draw 2.4s cubic-bezier(.6, 0, .3, 1) .2s forwards, inf-glow 3.4s ease-in-out 2.6s infinite; }
@keyframes inf-draw { to { stroke-dashoffset: 0; } }
/* După desen, o lumină aleargă la nesfârșit pe semnul infinit, cu o dâră în urmă. */
.inf-run { fill: none; stroke-linecap: round; stroke: #f4ffe9; stroke-width: 5; stroke-dasharray: 14 246; stroke-dashoffset: 260; opacity: 0; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 14px #a6ee79); }
.inf-run-tail { stroke: #d6ffb8; stroke-width: 7; stroke-dasharray: 46 214; opacity: 0; filter: blur(2px); }
.support.is-visible .inf-run { animation: inf-run 1.6s linear 2.6s infinite, inf-fade-in .6s ease-out 2.6s forwards; }
.support.is-visible .inf-run-tail { animation: inf-run-tail 1.6s linear 2.6s infinite, inf-fade-tail .6s ease-out 2.6s forwards; }
@keyframes inf-run { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@keyframes inf-run-tail { from { stroke-dashoffset: 228; } to { stroke-dashoffset: -32; } }
@keyframes inf-fade-in { to { opacity: 1; } }
@keyframes inf-fade-tail { to { opacity: .45; } }
@keyframes inf-glow { 50% { filter: drop-shadow(0 0 18px rgba(166, 238, 121, .75)); } }
.inf-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime-300); }
.support-copy .eyebrow { color: var(--lime-300); }
.price-page .support-copy h2 { margin-top: 10px; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.04; }
.price-page .support-copy h2 em { color: var(--lime-300); }
.support-copy p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--text-on-dark-muted); max-width: 560px; }

.support-grid { list-style: none; margin: clamp(48px, 7vh, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.support-card {
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(166, 238, 121, .18);
  transition: transform .45s var(--ease-out), background-color .45s, border-color .45s;
}
.support-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .07); border-color: rgba(166, 238, 121, .4); }
.support-local { background: var(--lime-300); color: var(--green-700); border-color: transparent; }
.support-local:hover { background: #b6f38f; }
.support-icon {
  position: relative; display: grid; place-items: center;
  width: 64px; height: 52px; border-radius: 14px;
  background: rgba(166, 238, 121, .14); color: var(--lime-300);
}
.support-local .support-icon { background: rgba(38, 61, 40, .1); color: var(--green-700); }
.support-icon svg { width: 34px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support-icon svg[viewBox="0 0 48 24"] { width: 44px; height: 22px; }
.ping { position: absolute; left: 50%; top: 42%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 1.5px solid var(--green-700); opacity: 0; }
.support.is-visible .ping { animation: ping 2.4s ease-out 1s infinite; }
@keyframes ping { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(3.6); } }
.support-card h3 { margin: 22px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.support-card p { font-size: 15px; line-height: 1.6; color: var(--text-on-dark-muted); }
.support-local p { color: #2f5320; }

/* mențiunea din carduri și din hero */
.incl {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 10px 14px; border-radius: 12px;
  font-size: 14px; font-weight: 500; line-height: 1.35;
  background: #eaf2df; color: var(--green-700);
}
.path-direct .incl { background: rgba(166, 238, 121, .14); color: var(--lime-300); }
.incl-mark { font-size: 22px; line-height: 1; font-weight: 600; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 9px 16px; border-radius: 999px;
  background: var(--green-800); color: var(--lime-300);
  font-size: 15px; font-weight: 500;
  transition: transform .3s var(--ease-out);
}
.hero-chip span { font-size: 20px; line-height: 1; }
.hero-chip:hover { transform: translateY(-2px); }

/* ---------- 4. clienții ---------- */
.polaroids { list-style: none; margin: 0 auto; max-width: 980px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
.polaroid {
  position: relative;
  padding: 14px 14px 20px; background: #fff;
  box-shadow: 0 1px 2px rgba(20, 44, 36, .1), 0 24px 40px -28px rgba(20, 44, 36, .45);
  transform: rotate(var(--rot, -2deg));
  transition: transform .5s var(--ease-out);
}
.polaroid:nth-child(2) { --rot: 1.6deg; margin-top: 18px; }
.polaroid:nth-child(3) { --rot: -1deg; }
.polaroid:hover { transform: rotate(0deg) translateY(-6px); }
.pol-img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; background: #1a1d1b; }
.polaroid::before { z-index: 1; content: ""; position: absolute; left: 50%; top: -10px; width: 74px; height: 22px; transform: translateX(-50%) rotate(-3deg); background: rgba(166, 238, 121, .55); }
.pol-photo {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  border: 1.5px dashed rgba(38, 61, 40, .25); background: #f3f7ec;
}
.pol-photo::before {
  content: ""; width: 48px; height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238eaa81' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8.5' r='4'/%3E%3Cpath d='M4 21c1-4.4 4.2-6.5 8-6.5s7 2.1 8 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pol-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.polaroid .pol-name { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: var(--text-primary); }
.pol-name span { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .04em; color: var(--text-secondary); }
.pol-logo-img { flex: none; width: auto; height: 22px; max-width: 45%; object-fit: contain; }
.pol-logo-img.is-tall { height: 44px; }
.polaroid .pol-quote { margin-top: 10px; font-size: 17px; line-height: 1.35; color: var(--text-secondary); }
.voices-more { margin-top: 36px; text-align: center; }
.voices-more a { display: inline-flex; gap: 10px; font-size: 16px; font-weight: 500; padding-bottom: 3px; border-bottom: 2px solid var(--lime-300); transition: gap var(--dur-ui) var(--ease-out); }
.voices-more a:hover { gap: 16px; }

/* ---------- 5. întrebări ---------- */
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 4px; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--accent-ink); transition: transform .3s var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 4px 22px; font-size: 16px; line-height: 1.6; color: var(--text-secondary); max-width: 680px; }

/* ---------- final ---------- */
.price-page > .price-final {
  max-width: none;
  position: relative; isolation: isolate; overflow: hidden;
  margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
  padding: clamp(80px, 13vh, 140px) var(--gutter);
  text-align: center;
  background: var(--green-800); color: #f4f8ef;
}
.price-final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, #a6ee79 1px, transparent 1.6px);
  background-size: 32px 32px; opacity: .12;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent);
}
.price-page .price-final h2 { font-size: clamp(34px, 4.6vw, 64px); margin-bottom: 36px; }
.price-page .price-final h2 em { color: var(--lime-300); }
.final-alt { margin-top: 18px; font-size: 15px; color: var(--text-on-dark-muted); }
.final-alt a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .price-hero { grid-template-columns: 1fr; }
  .path-grid, .support-grid, .support-hero { grid-template-columns: 1fr; }
  .infinity svg { width: min(70%, 260px); }
  .polaroids { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
  .polaroid:nth-child(2) { margin-top: 0; }
}
@media (max-width: 760px) {
  .price-page { padding-top: calc(var(--header-h) + 64px); }
  .scale-row { grid-template-columns: 80px 1fr 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .inf-draw { stroke-dashoffset: 0; }
  .inf-run { display: none; }
  .route::after { transform: none; }
  .route li { opacity: 1; }
}
