/* Springle pricing and thanks pages. Loaded after styles.css: reuses its tokens, buttons, glow, reveal and
   section rhythm, and only adds what these pages need. Colour stays quiet: ivory on near-black, with the
   brand's violet and orchid kept for the one featured plan. */

.nav-links a[aria-current="page"] { color: var(--ink); }
/* The grain ends where the glow does; fade it out so the edge never shows on these shorter pages. */
.glow-top::after { -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }

/* ---------- Hero ---------- */
.pr-hero { padding-bottom: 0; }
.pr-hero h1 { font-size: clamp(54px, 8.2vw, 118px); }
.pr-kicker { margin: 0; cursor: default; }
.pr-kicker:hover { background: rgba(255, 255, 255, .035); color: var(--ink-2); }
.pr-dot { width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: var(--listen); box-shadow: 0 0 8px var(--listen); }
.pr-hero .lede { max-width: 560px; }

/* ---------- Billing toggle ---------- */
.bill-row { display: flex; justify-content: center; margin-top: 38px; }
.bill { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--hair); }
.bill button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 20px;
  border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: color .25s;
}
.bill button:hover, .bill button[aria-checked="true"] { color: var(--ink); }
.bill button:focus-visible { outline-offset: -2px; border-radius: 999px; }
.bill-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); transition: transform .45s var(--spring); }
[data-period="yearly"] .bill-thumb { transform: translateX(100%); }
.bill-save { padding: 4px 8px; border-radius: 999px; background: rgba(169, 139, 255, .14); box-shadow: inset 0 0 0 1px rgba(196, 177, 255, .28); color: var(--doing-ink); font: 650 11.5px/1 var(--font); letter-spacing: .01em; }

/* Prices that switch with the toggle: both live in one grid cell, the other one fades and slides away. */
.vv { display: grid; }
.vv > [data-when] { grid-area: 1 / 1; transition: opacity .35s var(--ease), transform .5s var(--spring), filter .35s var(--ease), visibility 0s; }
[data-period="yearly"] .vv > [data-when="monthly"],
[data-period="monthly"] .vv > [data-when="yearly"] { opacity: 0; visibility: hidden; filter: blur(4px); transition: opacity .2s var(--ease), transform .3s var(--ease), filter .2s var(--ease), visibility 0s .3s; }
[data-period="yearly"] .vv > [data-when="monthly"] { transform: translateY(-.35em); }
[data-period="monthly"] .vv > [data-when="yearly"] { transform: translateY(.35em); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1120px; margin: clamp(48px, 6vw, 64px) auto 0; text-align: left; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px 32px; border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.plan h2 { max-width: none; margin: 0; font: 400 34px/1.05 var(--serif); letter-spacing: -.012em; text-wrap: initial; }
.plan-for { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.plan-price { padding-top: 28px; }
.price { display: flex; align-items: flex-start; margin: 0; color: var(--ink); }
.price.vv { display: grid; }
.price [data-when] { display: flex; align-items: flex-start; }
.cur { margin: 8px 3px 0 0; font: 400 30px/1 var(--serif); color: var(--ink-2); }
.num { font: 400 clamp(64px, 6vw, 78px)/.92 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; }
.per { align-self: flex-end; margin: 0 0 8px 6px; font: 500 15px/1 var(--font); color: var(--ink-3); }
.price-note { margin: 12px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.plan-cta { padding-top: 26px; }
.plan-cta .btn { width: 100%; }
.plan-small { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--ink-3); }
.plan-body { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.plan-lead { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 12px/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.plan-lead-dim { margin-top: 26px; color: var(--ink-3); }

/* Feature lists */
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 0 0 0 32px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.ticks li + li { margin-top: 12px; }
.ticks li b { font-weight: 650; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ticks li::after {
  content: ''; position: absolute; left: 4px; top: 5px; width: 12px; height: 12px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3 4.9 8.7 9.6 3.6' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3 4.9 8.7 9.6 3.6' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tick-note { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.tick-apps { display: flex; gap: 6px; margin-top: 10px; }
.tick-apps img { width: 28px; height: 28px; padding: 6px; border-radius: 9px; background: #141417; box-shadow: inset 0 0 0 1px var(--line); }
.ticks-off li, .ticks-soon li { color: var(--ink-3); }
.ticks-off li::before { background: none; box-shadow: none; }
.ticks-off li::after { left: 5px; top: 10px; width: 10px; height: 1.5px; border-radius: 1px; background: rgba(243, 240, 234, .3); -webkit-mask: none; mask: none; }
.ticks-soon li::before { background: none; box-shadow: none; border: 1.5px dashed rgba(196, 177, 255, .35); }
.ticks-soon li::after { display: none; }
.soon-tag { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 10.5px/1 var(--font); letter-spacing: .04em; text-transform: none; color: var(--ink-2); white-space: nowrap; }

/* The featured plan: lifted, with a soft violet and orchid glow and a fine gradient edge. */
.plan-feat {
  background: radial-gradient(90% 55% at 50% 0%, rgba(138, 108, 255, .13), transparent 70%), linear-gradient(180deg, #131218 0%, #0f0f12 100%);
  box-shadow: inset 0 0 0 1px rgba(201, 188, 255, .14), 0 50px 120px -50px rgba(138, 108, 255, .55), 0 30px 80px -40px rgba(240, 140, 255, .35);
}
.plan-feat::before {
  content: ''; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(165deg, rgba(240, 140, 255, .6), rgba(138, 108, 255, .4) 35%, rgba(143, 180, 255, .12) 65%, rgba(255, 255, 255, .04));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.plan-badge { position: absolute; top: 0; left: 50%; margin: 0; padding: 7px 14px; transform: translate(-50%, -50%); border-radius: 999px; background: linear-gradient(90deg, #CDBEFF, #F3C1FF); color: #160f26; font: 650 12.5px/1 var(--font); letter-spacing: .01em; white-space: nowrap; box-shadow: 0 8px 26px -8px rgba(240, 140, 255, .6); }
.plan-feat .ticks li::before { background: rgba(169, 139, 255, .16); box-shadow: inset 0 0 0 1px rgba(196, 177, 255, .3); }
.plan-feat .ticks li::after { background: var(--lavender); }
.plan-feat .ticks-soon li::before { background: none; box-shadow: none; }

@media (min-width: 961px) {
  /* Line up the prices, buttons and lists across the three cards. */
  .plans { grid-template-rows: auto auto auto 1fr; row-gap: 0; }
  .plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .plan-feat { transform: translateY(-14px); }
}

/* Reassurance line under the plans */
.assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; max-width: 900px; margin: 40px auto 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.assure li { display: inline-flex; align-items: center; gap: 9px; }
.assure li[hidden], .sec[hidden] { display: none; }
.assure li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .28); }

/* ---------- Section rhythm ---------- */
.pr-sec { padding-top: clamp(96px, 12vw, 160px); }
.pr-tight { padding-top: clamp(56px, 7vw, 88px); }
.pr-sec .sec-head h2 { font-size: clamp(42px, 5.6vw, 80px); }

/* ---------- What counts ---------- */
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(44px, 5vw, 64px); }
.count { display: flex; flex-direction: column; padding: 28px 28px 26px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.count-art { display: flex; align-items: center; gap: 8px; height: 56px; margin-bottom: 22px; }
.count-art .kc.mini { color: var(--ink); }
.count-art .wave { margin-left: 2px; }
.count-shield { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.count h3 { margin: 0 0 10px; font: 400 clamp(28px, 2.4vw, 34px)/1.05 var(--serif); letter-spacing: -.01em; }
.count p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.count .count-foot { margin-top: auto; padding-top: 22px; font-size: 13.5px; color: var(--ink-3); }
.counts-note { max-width: 620px; margin: 36px auto 0; text-align: center; font-size: 15.5px; line-height: 1.6; color: var(--ink-3); }

/* ---------- Comparison table ---------- */
.cmp-wrap { margin-top: clamp(44px, 5vw, 64px); overflow-x: auto; border: 1px solid var(--line); border-radius: 28px; background: var(--card); -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.cmp-wrap:focus-visible { outline-offset: 4px; border-radius: 28px; }
.cmp { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.cmp .c-feat { width: 40%; }
.cmp th, .cmp td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.cmp tbody th[scope="row"] { text-align: left; font-weight: 500; color: var(--ink); }
.cmp td { color: var(--ink); }
.cmp small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.cmp thead th, .cmp thead td { padding: 26px 20px 22px; border-bottom-color: var(--line-2); vertical-align: bottom; }
.cmp-name { display: block; font: 400 26px/1.1 var(--serif); color: var(--ink); }
.cmp-price { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.cmp .grp th { padding: 30px 20px 10px; text-align: left; font: 600 11.5px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: transparent; }
.cmp tbody:first-of-type .grp th { padding-top: 24px; }
.cmp tbody:last-of-type tr:last-child > * { border-bottom: 0; }
/* Family column: a faint violet lane. */
.cmp .is-fam { background: rgba(138, 108, 255, .055); }
.cmp thead .is-fam { border-radius: 0; box-shadow: inset 0 2px 0 rgba(196, 177, 255, .5); }
.cmp thead .is-fam .cmp-name { color: #fff; }
/* Feature names stay in view while the plans scroll sideways on a phone. */
.cmp tbody th[scope="row"], .cmp .cmp-corner { position: sticky; left: 0; z-index: 1; background: var(--card); }
.yes, .no { display: inline-block; width: 22px; height: 22px; vertical-align: middle; border-radius: 50%; }
.yes { position: relative; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.yes::after {
  content: ''; position: absolute; inset: 5px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3 4.9 8.7 9.6 3.6' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.3 4.9 8.7 9.6 3.6' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-fam .yes { background: rgba(169, 139, 255, .18); box-shadow: inset 0 0 0 1px rgba(196, 177, 255, .32); }
.is-fam .yes::after { background: var(--lavender); }
.no { position: relative; }
.no::after { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 1.5px; margin-top: -.75px; border-radius: 1px; background: rgba(243, 240, 234, .26); }

/* ---------- Talk top-up ---------- */
.topup { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px 56px; padding: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 56px); border-radius: 28px; background: radial-gradient(60% 120% at 100% 50%, rgba(60, 227, 164, .07), transparent 70%), var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.topup .eyebrow { margin-bottom: 14px; }
.topup h2 { max-width: none; margin: 0; font-size: clamp(38px, 4.2vw, 56px); }
.topup-copy p:last-child { max-width: 520px; margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.topup-price { display: flex; align-items: flex-start; margin: 0; }
.topup-price .num { font-size: clamp(64px, 7vw, 88px); }
.topup-per { align-self: flex-end; margin: 0 0 10px 12px; font-size: 14px; line-height: 1.35; color: var(--ink-3); }

/* ---------- Compared with tech support ---------- */
.vs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(36px, 6vw, 80px); padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px); }
.vs h2 { max-width: 14ch; margin: 0; font-size: clamp(38px, 4.4vw, 62px); }
.vs-copy p:last-child { max-width: 460px; margin: 20px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.vs-bars { display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.vs-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: baseline; }
.vs-k { font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.vs-v { text-align: right; font: 400 24px/1 var(--serif); color: var(--ink); white-space: nowrap; }
.vs-v small { display: block; margin-top: 4px; font: 400 12.5px/1.2 var(--font); color: var(--ink-3); }
.vs-bar { grid-column: 1 / -1; grid-row: 2; position: relative; display: block; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .04); overflow: hidden; }
.vs-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, rgba(243, 240, 234, .55), var(--ink)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.2s var(--ease) .25s; }
.vs-them i { background: rgba(243, 240, 234, .3); }
.vs-them i::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--from); right: 0; background: repeating-linear-gradient(135deg, rgba(11, 11, 13, .7) 0 3px, transparent 3px 6px); }
.vs-fam i { background: linear-gradient(90deg, rgba(138, 108, 255, .7), var(--lavender)); }
.vs.in .vs-bar i { transform: none; }
.vs-bars li:nth-child(2) .vs-bar i { transition-delay: .4s; }
.vs-bars li:nth-child(3) .vs-bar i { transition-delay: .55s; }

/* ---------- Close ---------- */
.pr-close .cta-row { margin-top: 36px; }

/* ---------- Thanks ---------- */
.ty { min-height: calc(100vh - 140px); min-height: calc(100svh - 140px); padding-bottom: 40px; }
.ty .close-orb { width: 168px; height: 168px; margin: 0 auto; animation: breathe 6s ease-in-out infinite; }
.ty h1 { margin-top: 18px; font-size: clamp(54px, 8.2vw, 112px); }
.ty .lede { max-width: 540px; }
.ty-next { display: flex; gap: 18px; max-width: 560px; margin: 40px auto 0; padding: 22px 24px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.ty-next-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(169, 139, 255, .14); box-shadow: inset 0 0 0 1px rgba(196, 177, 255, .28); color: var(--lavender); }
.ty-next-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ty-next b { display: block; font: 400 22px/1.15 var(--serif); color: var(--ink); }
.ty-next p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.ty-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; vertical-align: baseline; }
.ty-path i { font-style: normal; color: var(--ink-3); }
.ty .cta-row { margin-top: 36px; }
.ty .fine { margin-top: 28px; }
.ty .fine a { color: var(--ink-2); }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 28px; }
  .counts { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; }
  .vs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  /* On phones all three plans fit side by side; the container still scrolls if a screen is narrower still. */
  .cmp { min-width: 320px; table-layout: fixed; font-size: 13.5px; }
  .cmp .c-feat { width: 37%; }
  .cmp th, .cmp td { padding: 13px 5px; }
  .cmp tbody th[scope="row"], .cmp .grp th { padding-left: 14px; padding-right: 8px; }
  .cmp thead th, .cmp thead td { padding: 20px 4px 16px; }
  .cmp-name { font-size: 19px; }
  .cmp-price { font-size: 11.5px; line-height: 1.3; }
  .cmp small { font-size: 11.5px; line-height: 1.35; }
  .cmp .soon-tag { padding: 4px 6px; white-space: normal; line-height: 1.2; font-size: 10px; }
  .cmp-wrap { border-radius: 22px; }
  .topup { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pr-hero h1 { font-size: clamp(48px, 13.5vw, 64px); }
  .bill button { padding: 0 14px; font-size: 14.5px; }
  .plan { padding: 30px 22px 26px; border-radius: 24px; }
  .num { font-size: 62px; }
  .assure { flex-direction: column; align-items: center; gap: 8px; }
  .vs-k { font-size: 14px; }
  .vs-v { font-size: 21px; }
  .ty-next { padding: 20px; gap: 14px; }
  .pr-close .cta-row, .ty .cta-row { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
}

/* ---------- Reduce Motion: prices switch instantly, bars sit still ---------- */
@media (prefers-reduced-motion: reduce) {
  .bill-thumb, .vv > [data-when], .vs-bar i { transition: none !important; }
  .vv > [data-when] { transform: none !important; filter: none !important; }
  .vs-bar i { transform: none; }
  .ty .close-orb { animation: none; }
}
