/* Citgentic inner pages (v2): shared pieces + page scenes.
   Loaded after styles.css, motion.css, fit.css and phone.css. Motion-only rules sit
   under .cg-motion so reduced-motion visitors get the plain readable page. */

/* =========================================================
   Page transition: ink rises over the page, the next page opens out of it
   ========================================================= */
.cg-ink {
  position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  background: var(--c-ink);
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.84, 0);
}
.cg-ink.is-up { transform: translateY(0); }
.cg-ink-edge { position: absolute; left: 0; bottom: 100%; width: 100%; height: 96px; display: block; margin-bottom: -1px; }
.cg-ink-edge path { fill: var(--c-ink); }
.cg-ink-dot {
  position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: var(--c-yellow); box-shadow: 0 0 24px rgba(255, 208, 44, 0.8);
  opacity: 0; transform: scale(0.4); transition: opacity 0.3s ease-out 0.15s, transform 0.3s ease-out 0.15s;
}
.cg-ink.is-up .cg-ink-dot { opacity: 1; transform: scale(1); }
/* arrival: the page starts under the ink, which then lifts away with a soft wave */
html.cg-ink-in::after {
  content: ''; position: fixed; inset: -96px 0 0; z-index: 2000; pointer-events: none;
  background:
    radial-gradient(circle at 50% calc(50% + 48px), var(--c-yellow) 0 8px, rgba(255, 208, 44, 0.35) 9px, transparent 24px),
    var(--c-ink);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 95px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,44 C1260,80 1140,20 960,52 C780,84 660,24 480,56 C300,88 180,22 0,60 Z'/%3E%3C/svg%3E") bottom / 100% 96px no-repeat;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 95px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,44 C1260,80 1140,20 960,52 C780,84 660,24 480,56 C300,88 180,22 0,60 Z'/%3E%3C/svg%3E") bottom / 100% 96px no-repeat;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
html.cg-ink-in.cg-ink-lift::after { transform: translateY(calc(-100% - 96px)); }

/* =========================================================
   Hero: copy left, Clara right, liquid behind
   ========================================================= */
.cg-motion .page-hero.has-liquid .hero-bg { opacity: 0.35; }
.cg-motion .page-hero h1.h1 .text-yellow { animation: none; -webkit-text-fill-color: var(--c-yellow); color: var(--c-yellow); background: none; }
.pg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: center; }
.pg-hero .page-hero-content { max-width: 680px; }
.pg-facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 32px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.pg-facts b { color: var(--c-white); font-size: 18px; font-weight: 700; margin-right: 4px; }

.pg-clara { position: relative; display: flex; justify-content: center; align-items: center; min-height: 360px; }
.pg-clara::before {
  content: ''; position: absolute; left: 50%; top: 42%; width: 360px; height: 360px; margin: -180px 0 0 -180px;
  border-radius: 50%; border: 1px solid rgba(255, 208, 44, 0.16); pointer-events: none;
}
.pg-clara::after {
  content: ''; position: absolute; left: 50%; top: 42%; width: 480px; height: 480px; margin: -240px 0 0 -240px;
  border-radius: 50%; border: 1px dashed rgba(255, 208, 44, 0.08); pointer-events: none;
}
.pg-clara .clara-ui { position: relative; inset: auto; padding: 0; gap: 24px; z-index: 1; }
.pg-clara.clara-active .clara-hint { visibility: hidden; }
.clara-hint-text { display: inline-block; transition: opacity 0.2s ease-out, transform 0.2s ease-out; }
.clara-hint.is-swap .clara-hint-text { opacity: 0; transform: translateY(4px); }
.pg-clara .clara-hint { font-size: 14px; }

/* =========================================================
   PRICING: plan finder
   ========================================================= */
.pg-plans-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.pg-plans-head { text-align: left; }
.pg-plans-head .body-large { margin: 16px 0 0; }
.pg-finder {
  padding: 24px; border-radius: 24px;
  background: var(--c-ink); color: var(--c-white);
  box-shadow: 0 24px 56px rgba(26, 26, 26, 0.18);
}
.pg-f-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pg-f-label { font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.pg-f-read { display: flex; align-items: baseline; gap: 4px; color: var(--c-yellow); font-variant-numeric: tabular-nums; }
.pg-f-read output { font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.pg-f-read span { font-size: 14px; font-weight: 700; }

.pg-f-range {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 32px; margin: 16px 0 0;
  background: transparent; cursor: pointer; --fill: 28%;
}
.pg-f-range:focus { outline: none; }
.pg-f-range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--c-yellow) 0 var(--fill), rgba(255, 255, 255, 0.14) var(--fill) 100%);
}
.pg-f-range::-moz-range-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.pg-f-range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--c-yellow); }
.pg-f-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%;
  background: var(--c-yellow); border: 4px solid var(--c-ink);
  box-shadow: 0 0 0 2px var(--c-yellow), 0 0 24px rgba(255, 208, 44, 0.6);
  transition: transform 0.2s ease-out;
}
.pg-f-range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--c-yellow); border: 4px solid var(--c-ink);
  box-shadow: 0 0 0 2px var(--c-yellow), 0 0 24px rgba(255, 208, 44, 0.6);
}
.pg-f-range:hover::-webkit-slider-thumb, .pg-f-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.pg-f-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--c-yellow), 0 0 0 6px rgba(255, 208, 44, 0.4); }
.pg-f-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--c-yellow), 0 0 0 6px rgba(255, 208, 44, 0.4); }

.pg-f-scale { position: relative; height: 16px; margin: 4px 14px 0; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.45); font-variant-numeric: tabular-nums; }
.pg-f-scale span { position: absolute; top: 0; transform: translateX(-50%); }
.pg-f-scale span:first-child { left: 0; }
.pg-f-scale .s150 { left: 27.9%; }
.pg-f-scale .s300 { left: 60%; }
.pg-f-scale .s600 { left: 77.1%; }
.pg-f-scale .s1k { left: 100%; }

.pg-f-result {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "pick total" "math math";
  align-items: center; gap: 4px 16px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* wide screens: slider on the left, the answer on the right */
@media (min-width: 1200px) {
  .pg-finder { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: "row res" "range res" "scale res"; column-gap: 24px; align-items: center; }
  .pg-f-row { grid-area: row; }
  .pg-f-range { grid-area: range; }
  .pg-f-scale { grid-area: scale; }
  .pg-f-result {
    grid-area: res; align-self: stretch; margin: 0; padding: 0 0 0 24px; border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    grid-template-columns: 1fr; grid-template-areas: "pick" "total" "math"; align-content: center; gap: 4px;
  }
  .pg-finder .pg-f-total { justify-self: start; }
  .pg-f-math { font-size: 13px; }
  .pg-f-row { flex-direction: column; align-items: flex-start; gap: 4px; min-height: 0; }
  .pg-finder .pg-f-read output { min-width: 0; text-align: left; }
  .pg-plans-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
  .pg-plans-head > h2 { text-wrap: balance; }
  .pg-plans-head .cg-ask { margin: 16px 0 0; }
}
.pg-f-pick { grid-area: pick; display: flex; flex-direction: column; }
.pg-f-cap { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.pg-f-plan { font-size: 24px; font-weight: 800; color: var(--c-yellow); line-height: 1.2; }
.pg-f-pick.is-pop .pg-f-plan { animation: pgPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pgPop { 0% { transform: scale(0.85); opacity: 0.4; } 100% { transform: none; opacity: 1; } }
.pg-f-total { grid-area: total; justify-self: end; font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.pg-f-per { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.55); letter-spacing: 0; margin-left: 4px; }
.pg-f-math { grid-area: math; margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.65); }
/* the answer area keeps one fixed size while the slider moves, so nothing around it jumps:
   two reserved lines for the explanation, fixed widths for the changing numbers */
.pg-f-math { height: 3em; overflow: hidden; }
.pg-f-read output { display: inline-block; min-width: 5.2ch; text-align: right; }
.pg-f-row { min-height: 3em; }
.pg-f-plan { display: block; min-width: 6.2em; }
.pg-f-total { white-space: nowrap; }

/* ---- plan cards: the slider's pick lifts and glows ---- */
.pg-cards { margin-top: 40px; perspective: 1200px; }
.pg-cards .price-card { --rx: 0deg; --ry: 0deg; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease-out; }
.cg-pin .pg-cards .price-card { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.cg-pin .pg-cards .price-card:hover { transform: translateY(-8px) rotateX(var(--rx)) rotateY(var(--ry)); }
.pg-best-tag {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 8px; border-radius: 999px;
  background: var(--c-yellow); color: var(--c-ink);
  font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
  opacity: 0; transform: translateY(-4px) scale(0.9); pointer-events: none;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}
.price-card.is-best .pg-best-tag { opacity: 1; transform: none; }
/* the pick: a gold ring and a lift; no big animated blur (it repaints four cards on every change) */
.price-card.is-best { border-color: var(--c-yellow); box-shadow: 0 0 0 2px var(--c-yellow), 0 16px 32px rgba(26, 26, 26, 0.1); }
.cg-pin .pg-cards .price-card.is-best { transform: translateY(-8px) rotateX(var(--rx)) rotateY(var(--ry)); }
/* the page's one gradient: a slow liquid-gold rim on the Most Popular card */
.cg-motion .price-card.featured::before {
  content: ''; position: absolute; inset: -2px; border-radius: 26px; padding: 2px; pointer-events: none;
  background: linear-gradient(135deg, #FFE9A6, #FFD02C 30%, #8A6D00 55%, #FFD02C 80%, #C99B00);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.cg-motion .price-card.featured { border-color: transparent; }

.pg-plans-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; }
.pg-plans-foot .pricing-note { margin: 0; text-align: left; max-width: 640px; }
.pg-plans-foot .cg-ask { margin: 0; }

/* =========================================================
   PRICING: every plan includes (ticks in one by one)
   ========================================================= */
.pg-includes .includes-grid { margin-top: 24px; }
.pg-includes .include-item { background: var(--c-cloud); }
.pg-includes .include-item strong { font-size: 18px; }

/* four tiers, one service: lines from each plan meet in a single bar */
.pg-same { position: relative; max-width: 880px; margin: 0 auto; }
.pg-same-tiers { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.pg-same-tiers span {
  justify-self: center; padding: 8px 16px; border-radius: 999px;
  background: var(--c-white); border: 1px solid var(--c-border-dark);
  font-size: 14px; font-weight: 700; color: var(--c-ink);
}
.pg-same-tiers span:nth-child(2) { background: var(--c-ink); color: var(--c-yellow); border-color: var(--c-ink); }
.pg-same-lines { display: block; width: 100%; height: 48px; overflow: visible; }
.pg-same-lines path { fill: none; stroke: var(--c-yellow); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cg-motion .pg-same-lines path { stroke-dashoffset: 1; transition: stroke-dashoffset 0.8s ease-out; }
.cg-motion .pg-same-lines path:nth-child(2) { transition-delay: 0.08s; }
.cg-motion .pg-same-lines path:nth-child(3) { transition-delay: 0.16s; }
.cg-motion .pg-same-lines path:nth-child(4) { transition-delay: 0.24s; }
.cg-motion .pg-same.is-in .pg-same-lines path { stroke-dashoffset: 0; }
.pg-same-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; margin: 0 auto;
  padding: 12px 24px; border-radius: 999px; background: var(--c-yellow); color: var(--c-ink);
  font-size: 16px; font-weight: 700; box-shadow: 0 12px 32px rgba(255, 184, 0, 0.3);
}
.cg-motion .pg-same-bar { opacity: 0; transform: translateY(8px) scale(0.96); transition: opacity 0.4s ease-out 0.55s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s; }
.cg-motion .pg-same.is-in .pg-same-bar { opacity: 1; transform: none; }
.pg-same-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-ink); }
.cg-motion .pg-tick .include-check svg path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.4s ease-out 0.1s; }
.cg-motion .pg-tick .include-item { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.4s ease-out; }
.cg-motion .pg-tick .include-item.is-ticked .include-check svg path { stroke-dashoffset: 0; }
.cg-motion .pg-tick .include-item.is-ticked .include-check { animation: pgPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* =========================================================
   PRICING: never cut off (the usage meter)
   ========================================================= */
.pg-usage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.pg-usage-copy .cg-ask { margin: 16px 0 0; }
.pg-usage-points { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pg-usage-points li { display: flex; gap: 16px; align-items: flex-start; }
.pg-up-icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--c-white); color: var(--c-ink); border: 1px solid var(--c-border-dark);
}
.pg-up-icon svg { width: 20px; height: 20px; }
.pg-usage-points h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; }
.pg-usage-points p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--c-muted); }

.pg-meter {
  padding: 32px; border-radius: 24px; background: var(--c-ink); color: var(--c-white);
  box-shadow: 0 24px 56px rgba(26, 26, 26, 0.18);
}
.pg-meter-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.pg-meter-line { display: inline-flex; align-items: center; gap: 8px; color: #7EE2A8; }
.pg-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: pgLive 1.6s ease-out infinite; }
@keyframes pgLive { to { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } }
.pg-meter-val { margin: 24px 0 16px; font-size: 48px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.pg-meter-bar { position: relative; height: 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.pg-meter-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px 0 0 999px; background: var(--c-yellow); }
.pg-meter-over {
  position: absolute; top: 0; bottom: 0; width: 0; border-radius: 0 999px 999px 0;
  background: repeating-linear-gradient(135deg, #C99B00 0 8px, #8A6D00 8px 16px);
}
.pg-meter-mark { position: absolute; left: 75%; top: -8px; bottom: -8px; width: 2px; background: var(--c-white); border-radius: 2px; }
.pg-meter-mark span {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; white-space: nowrap; color: rgba(255, 255, 255, 0.7);
}
.pg-meter-status { margin: 24px 0 0; min-height: 1.5em; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.75); }
.pg-meter-status b { color: var(--c-white); }
.pg-meter.is-over .pg-meter-status b { color: var(--c-yellow); }
.pg-meter-log { list-style: none; margin: 16px 0 0; padding: 0; min-height: 120px; display: flex; flex-direction: column; gap: 8px; }
.pg-meter-log li {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); font-size: 14px; color: rgba(255, 255, 255, 0.8);
  animation: pgLogIn 0.4s ease-out;
}
.pg-meter-log li:nth-child(2) { opacity: 0.7; }
.pg-meter-log li:nth-child(3) { opacity: 0.4; }
@keyframes pgLogIn { from { opacity: 0; transform: translateY(-8px); } }
.pg-log-dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; flex: 0 0 auto; }
.pg-log-what { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-log-ok { font-size: 12px; font-weight: 700; color: #7EE2A8; }
.pg-log-tag { font-size: 12px; font-weight: 700; color: var(--c-ink); background: var(--c-yellow); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pg-meter-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; }
.pg-meter-never b { color: #7EE2A8; }

/* =========================================================
   CTA
   ========================================================= */
.pg-cta-inner { max-width: 680px; }
.pg-cta .pg-cta-text { opacity: 1; color: rgba(255, 255, 255, 0.78); margin-left: auto; margin-right: auto; }
/* headings break into even lines instead of leaving one word alone */
.page-hero h1, body > section h2 { text-wrap: balance; }
.pg-cta-buttons { justify-content: center; }
.pg-cta .cg-ask { justify-content: center; margin: 16px 0 24px; }

/* =========================================================
   Desktop: one section per screen (fit.css shell + page tweaks)
   ========================================================= */
@media (min-width: 1024px) and (min-height: 640px) {
  .cg-fit .pg-hero { min-height: 100svh; padding: clamp(96px, 13vh, 128px) 0 clamp(32px, 6vh, 64px); display: flex; align-items: center; box-sizing: border-box; }
  .cg-fit .pg-hero > .container { width: 100%; }
  .cg-fit .pg-hero h1.h1 { font-size: clamp(44px, 8.4vh, 76px); line-height: 1.04; }
  .cg-fit .pg-hero .body-large { font-size: clamp(16px, 2.5vh, 20px); }

  .cg-fit .pg-plans .cg-head { display: block !important; margin: 0 !important; }
  .cg-fit .pg-plans .cg-head > h2 { font-size: clamp(28px, 4.6vh, 44px); margin: 8px 0 0 !important; }
  .cg-fit .pg-plans .cg-head .cg-ask { margin-top: clamp(8px, 1.6vh, 16px); }
  .cg-fit .pg-plans-foot { justify-content: center; }
  .cg-fit .pg-plans-foot .pricing-note { text-align: center; max-width: 900px; }
  .cg-fit .pg-plans .cg-head .body-large { font-size: clamp(15px, 2.2vh, 18px); margin-top: 8px; }
  .cg-fit .pg-f-label { font-size: 15px; }
  .cg-fit .pg-f-plan { font-size: clamp(20px, 3.4vh, 24px); }
  .cg-fit .pg-finder { padding: clamp(16px, 2.6vh, 24px) 24px; }
  .cg-fit .pg-f-read output, .cg-fit .pg-f-total { font-size: clamp(28px, 4.6vh, 36px); }
  .cg-fit .pg-f-range { margin-top: clamp(4px, 1.2vh, 16px); }
  .cg-fit .pg-f-result { margin-top: clamp(8px, 1.6vh, 16px); padding-top: clamp(8px, 1.6vh, 16px); }
  .cg-fit body > section[data-chapter].pg-plans:not(.hero) { padding-top: clamp(72px, 10vh, 104px); padding-bottom: clamp(12px, 2vh, 48px); }
  .cg-fit .pg-f-scale { margin-top: 0; }
  .cg-fit .pg-cards { margin-top: clamp(16px, 2.6vh, 40px); }
  .cg-fit .pg-cards .price-card { padding: clamp(16px, 3vh, 32px) 24px; }
  .cg-fit .pg-cards .price-tier { margin-bottom: clamp(8px, 1.6vh, 16px); }
  .cg-fit .pg-cards .price-amount .amt { font-size: clamp(30px, 4.8vh, 46px); }
  .cg-fit .pg-cards .btn { padding-top: clamp(10px, 1.6vh, 16px); padding-bottom: clamp(10px, 1.6vh, 16px); }
  .cg-fit .pg-cards .price-minutes { margin-top: clamp(4px, 1.2vh, 16px); }
  .cg-fit .pg-cards .price-est { margin-bottom: clamp(8px, 2vh, 24px); }
  .cg-fit .pg-cards .price-features { gap: clamp(4px, 0.9vh, 12px); margin-bottom: clamp(12px, 2.2vh, 28px); }
  .cg-fit .pg-cards .price-features li { font-size: clamp(13px, 1.9vh, 14px); }
  .cg-fit .pg-plans-foot { margin-top: clamp(8px, 1.6vh, 32px); }
  .cg-fit .pg-plans-foot .pricing-note { font-size: 14px; }

  .cg-fit .pg-plans-foot .pricing-note { max-width: none; }
  /* small laptops: keep all four plans on one row so the section still fits one screen */
  .cg-fit .pg-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
  .cg-fit .pg-plans .cg-head > h2 { text-wrap: balance; }
  .cg-fit .pg-includes .include-item { padding: clamp(16px, 2.8vh, 24px); }
  .cg-fit .pg-usage-points { margin-top: clamp(16px, 3vh, 32px); gap: clamp(8px, 1.8vh, 16px); }
  .cg-fit .pg-usage .h2 { font-size: clamp(30px, 5.4vh, 48px); }
  .cg-fit .pg-meter { padding: clamp(24px, 3.6vh, 32px); }
}

/* =========================================================
   Phones and tablets
   ========================================================= */
@media (max-width: 1023px) {
  .pg-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pg-clara { min-height: 0; padding: 24px 0 0; }
  .pg-clara::before, .pg-clara::after { display: none; }
  .pg-plans-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pg-usage-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pg-plans-foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  .pg-hero.page-hero { padding: 128px 0 48px; }
  .pg-hero h1.h1 { font-size: 40px; line-height: 1.08; }
  .pg-facts { gap: 8px 24px; margin-top: 24px; }
  .cg-motion .pg-clara .clara-orb { width: 150px; height: 150px; }
  .cg-motion .pg-clara .cg-clara-gl { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
  .pg-clara .clara-ui { gap: 16px; }
  .pg-finder { padding: 20px; border-radius: 20px; }
  .pg-f-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pg-f-result { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pick" "total" "math"; }
  .pg-f-pick { flex-direction: row; align-items: baseline; gap: 8px; }
  .pg-f-plan { min-width: 0; font-size: 20px; }
  .pg-finder .pg-f-total { justify-self: start; font-size: 32px; }
  .pg-f-scale { font-size: 11px; }
  .pg-f-scale .s600 { display: none; }
  .pg-cards { margin-top: 24px; }
  .cg-motion .pg-plans-top > .pg-finder { margin-top: 0 !important; }
  .cg-motion .pg-cards.cg-carousel { padding-top: 16px !important; }
  .cg-motion .pg-cards .cg-slide { flex-basis: 80% !important; }
  .pg-meter { padding: 24px 20px; }
  .pg-meter-val { font-size: 40px; margin-bottom: 32px; }
  .pg-meter-top { font-size: 13px; }
  .pg-usage-points { margin-top: 24px; }
  .pg-same-bar { width: auto; max-width: 100%; padding: 12px 16px; font-size: 14px; text-align: center; }
  .pg-same-tiers span { padding: 8px 8px; font-size: 12px; }
  .pg-log-n { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cg-ink, html.cg-ink-in::after { display: none; }
  .pg-live-dot { animation: none; }
}

/* small laptops (1024 to 1199 wide) in one-screen mode: tighter plan cards */
@media (min-width: 1024px) and (max-width: 1199px) and (min-height: 640px) {
  .cg-fit .pg-cards .price-card { padding: clamp(16px, 2.4vh, 24px) 16px; }
  .cg-fit .pg-cards .price-features li { font-size: 13px; }
  .cg-fit .pg-plans-top { gap: 32px; }
  .cg-fit .pg-plans .cg-head .body-large { font-size: 15px; }
  .cg-fit .pg-finder { padding: 16px 20px; }
  .cg-fit .pg-f-result { margin-top: 8px; padding-top: 8px; }
  .cg-fit .pg-usage-grid { gap: 40px; }
  .cg-fit .pg-usage-points p { font-size: 14px; }
  .cg-fit .pg-meter-log { min-height: 0; }
}

/* a lifted card keeps its hover area under it, so a cursor near the bottom edge can't make it flicker */
.cg-pin .pg-cards .price-card::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }

/* ---- phones: finer layout ---- */
@media (max-width: 767px) {
  .pg-finder .pg-f-read output { min-width: 0; text-align: left; }
  .pg-same-dot { display: none; }
  /* plan includes: a compact checklist instead of six tall cards */
  .pg-includes .includes-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 24px; }
  .pg-includes .include-item { padding: 16px 0; gap: 12px; background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--c-border-dark); }
  .pg-includes .include-item:last-child { border-bottom: 0; }
  .pg-includes .include-item:hover { transform: none; box-shadow: none; }
  .pg-includes .include-item strong { font-size: 16px; }
  .pg-includes .include-item p { margin-top: 4px; font-size: 14px; }
}

/* keep the last words of a headline together */
.cg-nowrap { white-space: nowrap; }

/* ---- Clara's caption docked inside a hero (laptops): no floating card over the visual ---- */
.say-dock { position: absolute; left: 0; right: 0; z-index: 4; pointer-events: none; }
.say-dock .cg-say.is-docked { position: relative; right: auto; bottom: auto; width: 100%; margin: 0 auto; pointer-events: none; }
.say-dock .cg-say.is-docked.is-on { pointer-events: auto; }
/* docked = a compact two-line strip that follows her words */
.cg-say.is-docked { align-items: center; gap: 12px; padding: 8px 8px 8px 16px; transform: none; }
.cg-say.is-docked .cg-say-orb { width: 20px; height: 20px; margin-top: 0; }
.cg-say.is-docked .cg-say-name { display: none; }
.cg-motion .cg-say.is-docked .cg-say-text { font-size: 15px; line-height: 1.45; max-height: 2.9em; overflow: hidden; scroll-behavior: smooth; }
.cg-say.is-docked .cg-say-ctrl { flex-direction: row; gap: 4px; }
.cg-say.is-docked .cg-say-btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 10px; }
.cg-say.is-docked .cg-say-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- review pass: nothing below 12px, phone tap targets at least 40px ---- */
.price-badge, .calllog-tag, .uc-role { font-size: 12px; }
@media (max-width: 1023px) {
  .mobile-menu-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .clara-hint { min-height: 40px; }
  .cg-motion .cg-car-dot { width: 28px; height: 40px; }
}

.calllog-divider { font-size: 12px; }
