/* Tailend /pricing/. Builds on /use-cases/uc.css (tokens, hero, buttons, FAQ). */
.pr-hero { padding-bottom: 8px; }
.pr-hero h1 { max-width: 14em; }
.pr-plans { padding: 32px 0 24px; }
.pr-sec { padding: 72px 0; }
.pr-sec h2 { font: 600 clamp(26px, 3.2vw, 34px)/1.15 var(--display); letter-spacing: -0.02em; margin: 0 0 8px; }
.pr-sub { margin: 0 0 28px; color: var(--muted); }
.pr-note { margin: 18px 0 0; color: var(--muted); font-size: 14.5px; max-width: 52em; }

/* Plan cards (same as the homepage) */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pc { background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; }
.pc.main { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--lead) 45%, transparent), 0 18px 40px -26px rgba(var(--shadow-rgb), .35); }
.pk { margin: 0; font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.pc h3 { margin: 0; font-size: 30px; letter-spacing: -0.02em; }
.pc h3 small { font: 400 14px/1 var(--text); color: var(--muted); letter-spacing: 0; }
.pc p:not(.pk) { margin: 0; color: var(--ink-2); }
.pl { list-style: none; margin: 4px 0 14px; padding: 12px 0 0; border-top: 1px dashed var(--line-2); display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.pl li { position: relative; padding-left: 18px; }
.pl li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 7px; height: 7px; border-radius: 2px; background: color-mix(in srgb, var(--lead) 55%, transparent); }
.pc .btn { margin-top: auto; justify-content: center; }
@media (max-width: 1100px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .price-grid { grid-template-columns: 1fr; } }

/* Pricing tables: a plain grid with a tinted header row, like a spec sheet */
.pt-scroll { overflow-x: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); background: var(--surface); -webkit-overflow-scrolling: touch; }
.pt-scroll:focus-visible { outline: 2px solid var(--lead); outline-offset: 3px; }
.pt { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 15px; }
.pt-limits { min-width: 680px; }
.pt th, .pt td { padding: 18px 18px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); text-align: right; vertical-align: middle; }
.pt tr > :first-child { border-left: 0; text-align: left; width: 24%; }
.pt tbody tr:last-child > * { border-bottom: 0; }
.pt thead > tr > * { background: var(--soft); vertical-align: bottom; }
.pt thead th b { display: block; font: 600 15px/1.25 var(--display); color: var(--ink); }
.pt thead th small { display: block; margin-top: 4px; font: 400 11.5px/1.35 var(--mono); color: var(--muted); }
.pt tbody th b { display: block; font-weight: 500; color: var(--ink-2); }
.pt tbody th small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); font-weight: 400; }
.pt tbody th code { font-size: 12px; color: var(--lead-ink); }
.pt td { font: 500 17px/1.2 var(--text); color: var(--ink); font-variant-numeric: tabular-nums; }
.pt td small { display: block; margin-top: 4px; font: 400 12px/1.3 var(--text); color: var(--muted); }
.pt td .na { color: var(--line-2); }
.pt-limits td { font-size: 15px; font-weight: 400; color: var(--ink-2); }

/* Worked examples */
.pex { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pex li { background: var(--surface); border-radius: 16px; padding: 22px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 8px; }
.pex b { font: 600 16px/1.3 var(--display); color: var(--ink); }
.pex p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.pex-c { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-2); display: flex; justify-content: space-between; align-items: baseline; }
.pex-c em { font: 400 13px/1 var(--mono); font-style: normal; color: var(--muted); }
.pex-c strong { font: 500 20px/1 var(--mono); color: var(--accent-ink); letter-spacing: -0.02em; }
@media (max-width: 1000px) { .pex { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pex { grid-template-columns: 1fr; } .pr-sec { padding: 56px 0; } }

/* ---- Exa-style plans: header panel, one full-width button, then what's included ---- */
.wrap.wide { max-width: var(--wrap); }
.btn.ink { background: var(--ink); color: var(--bg); justify-content: center; width: 100%; padding: 14px 18px; border-radius: 10px; }
.btn.ink:hover { background: #000; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.plan { padding: 18px 18px 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan-top { background: var(--soft); border-radius: 14px; padding: 24px 22px 26px; min-height: 236px; display: flex; flex-direction: column; gap: 6px; }
.plan-top h3 { font: 600 clamp(26px, 2.3vw, 34px)/1.05 var(--display); letter-spacing: -0.025em; margin: 6px 0 0; }
.plan-top .pp { margin: 6px 0 0; font: 500 20px/1.2 var(--text); color: var(--ink); }
.plan-top .pp small, .prod .pp small { font: 400 13.5px/1 var(--text); color: var(--muted); }
.plan-top .pl-lead { margin: auto 0 0; padding-top: 14px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.plan-top.feat, .prod-top.feat { position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(120% 90% at 85% 10%, #8b82f0 0%, transparent 55%), radial-gradient(90% 80% at 10% 110%, #ec9a55 0%, transparent 60%), linear-gradient(150deg, #3f38b0 0%, #5a52d0 55%, #6b5bc4 100%); }
.plan-top.feat::after, .prod-top.feat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--svg-grain); opacity: .9; mix-blend-mode: overlay; }
.feat .pk, .feat h3, .feat .pp, .feat .pp small, .feat .pl-lead { color: #fff !important; }
.feat .pk, .feat .pp small { opacity: .8; }
.plan-sec { border-top: 1px solid var(--line); padding-top: 18px; }
.plan-sec + .plan-sec { margin-top: auto; }
.ps-h { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.ck { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink); line-height: 1.4; }
.ck li { position: relative; padding-left: 26px; }
.ck li::before { content: ""; position: absolute; left: 0; top: .12em; width: 16px; height: 15px; background: var(--ink);
  -webkit-mask: var(--svg-check) center / contain no-repeat; mask: var(--svg-check) center / contain no-repeat; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } .plan:nth-child(3) { border-left: 0; } .plan:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } .plan + .plan { border-left: 0; border-top: 1px solid var(--line); } .plan-top { min-height: 0; } }

/* ---- Products row ---- */
.prods { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow-x: auto; margin-top: 28px; }
.prod { padding: 16px 16px 22px; display: flex; flex-direction: column; min-width: 0; }
.prod + .prod { border-left: 1px solid var(--line); }
.prod-top { background: var(--soft); border-radius: 14px; padding: 18px 18px 20px; min-height: 250px; display: flex; flex-direction: column; }
.prod-top h3 { margin: auto 0 0; padding-top: 16px; font: 600 24px/1.1 var(--display); letter-spacing: -0.02em; }
.prod .pp { margin: 6px 0 0; font: 500 19px/1.2 var(--text); }
.prod-l { list-style: none; margin: 8px 0 18px; padding: 0; font-size: 14.5px; color: var(--ink-2); }
.prod-l li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.prod .btn { margin-top: auto; }
@media (max-width: 1100px) { .prods { grid-template-columns: repeat(5, 240px); } }

/* Product thumbnails: tiny UI sketches, no images */
.th { background: var(--surface); border-radius: 10px; box-shadow: 0 0 0 1px var(--line), var(--paper); padding: 12px; height: 112px; }
.feat .th { background: rgba(255,255,255,.94); box-shadow: 0 10px 30px -14px rgba(0,0,0,.45); }
.th-list { display: grid; gap: 8px; align-content: center; }
.th-list .tr { display: grid; grid-template-columns: 12px 1fr 34px; gap: 8px; align-items: center; }
.th-list .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--lead); }
.th-list .d1 { background: var(--accent); } .th-list .d2 { background: #6bbf9a; }
.th-list b { height: 7px; border-radius: 4px; background: var(--line-2); }
.th-list em { height: 7px; border-radius: 4px; background: var(--lead-soft); }
.th-cal .cal-h { display: block; width: 46%; height: 7px; border-radius: 4px; background: var(--line-2); margin-bottom: 9px; }
.th-cal .cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.th-cal .cal-g i { height: 30px; border-radius: 5px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.th-cal .c1 { background: color-mix(in srgb, var(--lead) 18%, var(--surface)) !important; }
.th-cal .c2 { background: color-mix(in srgb, var(--lead) 38%, var(--surface)) !important; }
.th-cal .c3 { background: color-mix(in srgb, var(--lead) 58%, var(--surface)) !important; }
.th-cal .c4 { background: color-mix(in srgb, var(--accent) 60%, var(--surface)) !important; }
.th-feed { display: grid; gap: 7px; align-content: center; }
.th-feed .fr { display: grid; grid-template-columns: 58px 1fr; gap: 8px; align-items: center; }
.th-feed .tag { font: 500 10px/1 var(--mono); font-style: normal; padding: 4px 6px; border-radius: 5px; text-align: center; color: var(--ink-2); background: var(--soft); }
.th-feed .t1 { background: #dff3e9; color: #1f6b47; } .th-feed .t2 { background: var(--lead-soft); color: var(--lead-ink); } .th-feed .t3 { background: #fbe6dc; color: #9c3f19; }
.th-feed b { height: 7px; border-radius: 4px; background: var(--line-2); }
.th-hist { position: relative; }
.th-hist svg { width: 100%; height: 100%; }
.th-hist path { stroke: var(--lead); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.th-hist path.dash { stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 3 4; }
.th-hist .hl { position: absolute; right: 12px; top: 8px; font: 500 10px/1 var(--mono); padding: 4px 6px; border-radius: 5px; background: #fbe6dc; color: #9c3f19; }
.th-trend { display: flex; align-items: flex-end; gap: 8px; padding-bottom: 14px; }
.th-trend i { flex: 1; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--lead) 30%, var(--surface)); }
.th-trend i:nth-child(6) { background: var(--accent); }
.pt thead th b { white-space: nowrap; }
.pt tr > :first-child { width: 22%; }
.pt td small { white-space: nowrap; }
.plan-top h3 { white-space: nowrap; }
