/* ═══════════════════════════════════════════════════════════
   PRICING — one row of plans, the way ElevenLabs lays theirs out,
   in the site's own materials: linen tiles on cream, the Pro offer
   on the night green with the neon chip (neon only ever on green).

     .pr-row      equal columns
     .pr-col      tile (name · chip · tagline · price · sub) + button
     .pr-tile     the same slots in every plan, so none looks empty
   ═══════════════════════════════════════════════════════════ */
.pr-head { padding: clamp(48px, 6vw, 88px) 0 clamp(28px, 3vw, 40px); }
.pr-h1 { margin: 0; max-width: 18ch; font-size: clamp(40px, 5vw, 64px); font-weight: 400; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.pr-head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 22px; }
.pr-lede { margin: 0; max-width: 52ch; font-size: 18px; line-height: 1.55; color: var(--graphite); }
.pr-offer {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 6px 14px 6px 6px;
  border-radius: 999px; background: var(--night); color: #eef3ea; font-size: 14.5px;
}
.pr-offer span { padding: 4px 10px; border-radius: 999px; background: var(--neon); color: var(--night); font-size: 12.5px; font-weight: 500; }

.pr-plans { padding: 0 0 clamp(24px, 3vw, 40px); }

/* The row: equal columns */
.pr-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pr-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.pr-tile {
  position: relative; display: flex; flex-direction: column; flex: 1; min-height: 248px; padding: 18px 16px 20px;
  border-radius: 16px; background: var(--linen); color: var(--ink); overflow: hidden; isolation: isolate;
}
.pr-tile-top { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pr-tile h3 { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -.015em; }
.pr-chip {
  padding: 4px 9px; border-radius: 10px; background: #fff; color: var(--forest);
  font-size: 12px; font-weight: 500; line-height: 1.35; box-shadow: 0 0 0 1px var(--hair);
}
.pr-tag { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--graphite); }
.pr-tile-foot { margin-top: auto; padding-top: 20px; }
.pr-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0; }
.pr-price b { font-size: clamp(36px, 3vw, 44px); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.pr-price small { font-size: 14px; color: var(--smoke); }
.pr-price s { flex-basis: 100%; font-size: 17px; color: var(--smoke); text-decoration-thickness: 1.5px; }
.pr-sub { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--smoke); }
.pr-sub span { display: block; }
.pr-cta { width: 100%; justify-content: center; }

/* Plan limits under each button: the same five rows in every column, so they read across */
.pr-specs { margin: 0; padding: 4px 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(20, 23, 15, .06); font-size: 13.5px; line-height: 1.35; }
.pr-specs div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--hair); }
.pr-specs div:first-child { border-top: 0; }
.pr-specs dt { color: var(--smoke); }
.pr-specs dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }

/* What does not change between plans */
.pr-every { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 13.5px; color: var(--graphite); }
.pr-every b { margin-right: 6px; font-weight: 500; color: var(--ink); }
.pr-every span { padding: 5px 11px; border-radius: 999px; background: var(--linen); }

/* Pro: the offer, on the night green */
.pr-col.is-pro .pr-tile {
  color: #eef3ea;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(168, 255, 0, .16), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(79, 209, 176, .14), transparent 60%),
    var(--night);
}
.pr-col.is-pro .pr-tag { color: rgba(238, 243, 234, .75); }
.pr-col.is-pro .pr-price small, .pr-col.is-pro .pr-sub, .pr-col.is-pro .pr-price s { color: rgba(238, 243, 234, .6); }
.pr-chip.is-offer { background: var(--neon); color: var(--night); box-shadow: none; }

/* Enterprise: one dark row under the plans */
.pr-enterprise {
  display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center;
  margin-top: 16px; padding: 26px 28px; border-radius: 20px; background: var(--forest); color: #eef3ea;
}
.pr-enterprise h3 { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -.015em; }
.pr-enterprise p { margin: 6px 0 0; max-width: 56ch; font-size: 15px; line-height: 1.5; color: rgba(238, 243, 234, .72); }
.pr-enterprise .pr-price { margin: 0; }
.pr-enterprise .pr-price b { font-size: 30px; }
.pr-enterprise .btn { background: var(--neon); color: var(--night); border-color: var(--neon); }
.pr-fine { margin: 16px 0 0; font-size: 13px; color: var(--smoke); }

/* ── Calculator: controls on a white card, the answer on the night green ── */
.pr-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.pr-calc-in, .pr-calc-out { border-radius: 20px; padding: clamp(24px, 3vw, 36px); }
/* The input: the number, then the minutes as a call waveform that fills to the playhead, then the
   five plans as zones of that waveform. Two bar states only, filled up to the playhead or not;
   a tinted band behind the waveform marks the stretch where the plan you're on is the cheapest. */
.pr-calc-in {
  --thumb: 22px; --meter: 84px;
  display: flex; flex-direction: column; min-width: 0;
  background: #fff; box-shadow: 0 0 0 1px rgba(20, 23, 15, .06), 0 18px 36px -30px rgba(20, 23, 15, .35);
}
.pr-calc-label { display: block; font-size: 15px; color: var(--smoke); }
.pr-calc-value { position: relative; display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
.pr-calc-value input, .pr-calc-mirror {
  font: inherit; font-size: clamp(52px, 5.2vw, 72px); font-weight: 400; letter-spacing: -.04em; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.pr-calc-value input {
  width: 4.4ch; min-width: 1ch; padding: 0 0 2px; border: 0; border-bottom: 2px dotted var(--stone); border-radius: 0;
  background: transparent; color: var(--ink); caret-color: var(--forest); transition: border-color .2s;
}
.pr-calc-value input:hover { border-bottom-color: var(--ash); }
.pr-calc-value input:focus { outline: none; border-bottom: 2px solid var(--forest); }
.pr-calc-value span { font-size: 18px; color: var(--smoke); }
.pr-calc-mirror { position: absolute; left: 0; top: 0; visibility: hidden; white-space: pre; pointer-events: none; }
.pr-calc-hint { margin: 12px 0 30px; font-size: 15px; line-height: 1.5; color: var(--graphite); }

/* The meter takes up whatever height the answer card leaves over, so there is no hole above it. */
.pr-meter { position: relative; flex: 1 0 auto; min-height: var(--meter); max-height: 168px; margin-top: auto; }
.pr-band {
  position: absolute; top: -8px; bottom: -8px; width: calc((100% - var(--thumb)) / 5);
  left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--z, 0) / 5);
  border-radius: 10px; background: rgba(10, 61, 38, .07);
  transition: left .4s cubic-bezier(.22, 1, .36, 1);
}
.pr-meter:has(.pr-range:focus-visible) { outline: 2px solid var(--forest); outline-offset: 6px; border-radius: 10px; }
.pr-wave { position: absolute; inset: 0 calc(var(--thumb) / 2); }
.pr-wave > div { position: absolute; inset: 0; display: flex; align-items: center; gap: 3px; }
.pr-wave i { flex: 1; min-width: 0; height: calc(var(--h) * 1%); border-radius: 99px; background: var(--stone); }
.pr-wave .is-fill { clip-path: inset(-2px calc((1 - var(--p, 0)) * 100%) -2px 0); }
.pr-wave .is-fill i { background: var(--forest); }

/* The playhead is drawn, not the range's thumb: the same look in every browser. Its centre travels
   the same path as the thumb's, from thumb/2 to the far edge less thumb/2. */
.pr-playhead {
  position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none;
  left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--p, 0));
}
.pr-playhead::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3.5px var(--ink), 0 2px 5px rgba(20, 23, 15, .25);
  transition: transform .15s;
}
.pr-meter:hover .pr-playhead::after { transform: scale(1.12); }
/* The native range is the control, invisible on top: pointer, keyboard and screen reader all go to it. */
.pr-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: ew-resize;
}
.pr-range::-webkit-slider-runnable-track { height: 100%; }
.pr-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: var(--thumb); height: var(--thumb); }
.pr-range::-moz-range-thumb { width: var(--thumb); height: var(--thumb); border: 0; }

/* Plan zones line up with the waveform: the same inset as the thumb's travel, five equal columns. */
.pr-zones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 14px; padding: 0 calc(var(--thumb) / 2); }
.pr-zones button {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; margin: 0 2px; padding: 10px 2px 2px;
  border: 0; border-top: 2px solid var(--stone); border-radius: 0; background: none;
  font: inherit; color: var(--smoke); cursor: pointer; transition: color .2s, border-color .2s;
}
.pr-zones b { font-size: 14px; font-weight: 500; color: var(--graphite); transition: color .2s; }
.pr-zones span { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-zones span i { font-style: normal; }
.pr-zones button:hover b { color: var(--ink); }
.pr-zones button[aria-current="true"] { border-top-color: var(--forest); color: var(--graphite); }
.pr-zones button[aria-current="true"] b { color: var(--ink); }
.pr-zones button:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; border-radius: 6px; }
/* " min" goes when a zone is too narrow for "8,333 min": on phones, and where the two cards sit side
   by side on a narrow desktop window. */
@media (max-width: 520px), (min-width: 861px) and (max-width: 1080px) { .pr-zones span i { display: none; } }
@media (max-width: 520px) {
  .pr-calc-in { --meter: 72px; }
  .pr-zones b { font-size: 13px; }
  .pr-zones span { font-size: 11.5px; }
}
/* Without the script the controls do nothing, so they keep their space but stay out of sight. */
.pr-calc:not(.is-live) .pr-meter, .pr-calc:not(.is-live) .pr-zones { visibility: hidden; }

.pr-calc-out {
  display: flex; flex-direction: column; color: #eef3ea;
  background: radial-gradient(110% 80% at 100% 0%, rgba(168, 255, 0, .12), transparent 55%), var(--night);
}
.pr-calc-k { margin: 0; font-size: 14px; color: rgba(238, 243, 234, .62); }
.pr-calc-out h3 { margin: 6px 0 0; font-size: 26px; font-weight: 400; letter-spacing: -.015em; }
.pr-calc-out .pr-price { margin-top: 14px; }
.pr-calc-out .pr-price b { font-size: clamp(44px, 4.4vw, 60px); color: #fff; }
.pr-calc-out .pr-price small { color: rgba(238, 243, 234, .6); }
.pr-calc-detail { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: rgba(238, 243, 234, .7); }
.pr-compare { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid rgba(238, 243, 234, .14); display: grid; gap: 10px; }
.pr-bar { display: grid; grid-template-columns: 92px 1fr 76px; gap: 12px; align-items: center; font-size: 14px; color: rgba(238, 243, 234, .75); }
.pr-bar i { display: block; height: 10px; width: var(--w, 2%); border-radius: 999px; background: rgba(238, 243, 234, .28); transition: width .45s cubic-bezier(.22, 1, .36, 1); }
.pr-bar.is-us i { background: var(--neon); }
.pr-bar b { font-weight: 500; text-align: right; color: #fff; font-variant-numeric: tabular-nums; }
.pr-save { margin: 6px 0 0; font-size: 15px; color: var(--neon); }
.pr-save.is-even { color: rgba(238, 243, 234, .75); }
.pr-calc-cta { margin-top: auto; align-self: flex-start; background: var(--neon); color: var(--night); border-color: var(--neon); }
.pr-calc-out .pr-compare + .pr-calc-cta { margin-top: 24px; }
.pr-calc-note { margin: 16px auto 0; max-width: 90ch; font-size: 12.5px; line-height: 1.55; color: var(--smoke); text-align: center; }
.pr-calc-note a { color: var(--graphite); }
@media (prefers-reduced-motion: reduce) { .pr-bar i, .pr-band, .pr-playhead::after { transition: none; } }
@media (max-width: 860px) { .pr-calc { grid-template-columns: minmax(0, 1fr); } }
/* Side by side, the detail keeps two lines' room, so a longer one doesn't resize the waveform card. */
@media (min-width: 861px) { .pr-calc-detail { min-height: 3em; } }

#included .ind-points a, #faq a { color: var(--ink); }
.pr-plans + #included { padding-top: clamp(48px, 6vw, 80px); }

/* Narrow: Free runs full width, the four paid plans two by two; gaps instead of hairlines. */
@media (max-width: 900px) {
  .pr-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pr-col:first-child { grid-column: 1 / -1; }
  .pr-col:first-child .pr-tile { min-height: 0; }
  .pr-tile { min-height: 230px; }
  .pr-enterprise { grid-template-columns: 1fr; gap: 16px; }
  /* Free runs full width: its limits become one strip of five */
  .pr-col:first-child .pr-specs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 12px 16px; }
  .pr-col:first-child .pr-specs div { flex-direction: column; align-items: flex-start; gap: 2px; padding: 4px 0 4px 12px; border-top: 0; border-left: 1px solid var(--hair); }
  .pr-col:first-child .pr-specs div:first-child { padding-left: 0; border-left: 0; }
  .pr-col:first-child .pr-specs dd { text-align: left; }
}
@media (max-width: 520px) {
  .pr-row { grid-template-columns: minmax(0, 1fr); }
  .pr-tile { min-height: 0; }
  .pr-tile-foot { padding-top: 24px; }
  .pr-col:first-child .pr-specs { display: block; padding: 4px 14px; }
  .pr-col:first-child .pr-specs div { flex-direction: row; align-items: baseline; gap: 10px; padding: 9px 0; border-left: 0; border-top: 1px solid var(--hair); }
  .pr-col:first-child .pr-specs div:first-child { border-top: 0; }
  .pr-col:first-child .pr-specs dd { text-align: right; }
}
