/* Additions to the design (styles.css is the design, unchanged). Only what the design has no answer for:
   tab panes with real content, and the live demo logins dialog. Uses the design's tokens. */

.pane[hidden] { display: none; }
.tabs [data-tab] { cursor: pointer; }
.tabs [data-tab]:hover { color: var(--ink); }

.plist { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 640px; }
.plist li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.plist li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.plog { margin-top: 20px; max-width: 640px; font-size: 16px; color: var(--ink-2); }
.plog b { color: var(--ink); font-weight: 600; }
.plog span { color: var(--muted); font-size: 14px; margin-left: 8px; }
.plog p { margin-top: 6px; font-size: 15px; line-height: 1.55; }
.plink { color: var(--accent); font-weight: 500; }
.plink:hover { text-decoration: underline; }

/* live demo dialog */
.demo-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(11, 11, 16, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.demo-modal[hidden] { display: none; }
.demo-card { position: relative; width: min(540px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: var(--radius-l); padding: 36px; box-shadow: 0 50px 110px -30px rgba(0, 0, 0, .5); display: grid; gap: 14px; }
.demo-card h2 { font-size: 28px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.demo-sub { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.demo-x { position: absolute; right: 18px; top: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--panel-2); font-size: 22px; line-height: 1; color: var(--ink); }
.demo-logins { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dl { background: var(--panel); border-radius: var(--radius-s); padding: 16px; display: grid; gap: 4px; align-content: start; font-size: 14px; }
.dl span { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.dl .mono { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.dl .copy { margin-top: 6px; border: 1px solid rgba(0, 0, 0, .12); background: #fff; border-radius: 999px; height: 30px; padding: 0 12px; font-size: 12px; font-weight: 500; color: var(--ink-2); justify-self: start; }
.dl .copy:hover { border-color: rgba(0, 0, 0, .3); color: var(--ink); }
@media (max-width: 560px) { .demo-logins { grid-template-columns: 1fr; } .demo-card { padding: 28px 22px; } }

/* WhatsApp support button (replaces the old chat widget) */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 80; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px 0 16px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55);
  transition: transform .25s var(--ease), background .2s;
}
.wa svg { width: 26px; height: 26px; color: #25d366; }
.wa:hover { background: #000; transform: translateY(-3px); }
@media (max-width: 640px) { .wa { right: 16px; bottom: 16px; width: 56px; height: 56px; padding: 0; justify-content: center; } .wa span { display: none; } }

/* blog, category pages, FAQ and the "latest articles" strip (server-rendered, uses the design tokens) */
.bl-grid { margin-top: 36px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.bl-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.bl-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .25); }
.bl-cat { font-size: 13px; font-weight: 600; color: var(--accent); }
.bl-card h2, .bl-card h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.02em; font-weight: 650; }
.bl-card p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.bl-meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }
.bl-head { padding-top: 56px; max-width: 760px; }
.bl-head h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; margin-top: 12px; }
.bl-head .lead { margin-top: 16px; }
.post { max-width: 720px; margin: 0 auto; padding: 48px var(--gutter) 0; }
.post h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.04em; font-weight: 700; margin-top: 14px; }
.post .bl-meta { padding: 0; margin-top: 16px; font-size: 14px; }
.post .prose { margin-top: 36px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { margin: 40px 0 12px; font-size: 26px; line-height: 1.2; letter-spacing: -.025em; color: var(--ink); font-weight: 650; }
.prose h3 { margin: 28px 0 8px; font-size: 20px; color: var(--ink); font-weight: 650; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--panel); padding: 2px 6px; border-radius: 6px; }
.post-cta { margin: 56px 0 0; padding: 28px; background: var(--panel); border-radius: var(--radius-m); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.post-cta b { font-size: 19px; letter-spacing: -.02em; }
.post-cta span { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.faq { margin-top: 36px; display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.cat-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cat-links a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; background: #fff; }
.cat-links a:hover { border-color: var(--accent); color: var(--accent); }
.cat-points { margin-top: 24px; }

/* mobile fixes for script (product) pages: the design's two-column flex row forced a 640px minimum and pushed the page wider than the phone */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  .pd-cols { display: block; margin-top: 32px; }
  .pd-main { width: 100%; max-width: 100%; }
  .buy { width: 100%; max-width: 100%; margin-top: 40px; padding: 26px 22px; }
  .pd-stage, .pd-stage .win, .pd-stage > .win { max-width: 100%; }
}
@media (max-width: 640px) {
  .pd-title h1 { font-size: clamp(38px, 11vw, 52px); }
  .pd-stage { height: auto; aspect-ratio: 16 / 11; border-radius: 20px; }
  .stage-desk { top: 14px; width: calc(100% - 28px); border-radius: 10px 10px 0 0; }
  .stage-phone { transform: scale(.7); transform-origin: bottom right; }
  .thumbs { gap: 8px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 24px; margin-top: 36px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs span { white-space: nowrap; }
  .feats { grid-template-columns: 1fr; }
  .feat { padding: 22px; }
  .pane .h-m, .pd-main .h-m { font-size: 30px !important; margin-top: 28px !important; }
  .buy-price b { font-size: 40px; }
  .pay span { flex: 1 1 auto; justify-content: center; }
  .crumbs { padding-top: 24px; font-size: 13px; }
  .plist li, .pd-main p { font-size: 15px; }
}

/* ---------- FAQ accordion (plain <details> had no styling at all) ---------- */
.faq { margin-top: 28px; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent); font-size: 26px; line-height: 1; font-weight: 400; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-2); line-height: 1.55; max-width: 640px; }

/* ---------- site-wide polish: scroll progress, reveal-on-scroll, button spotlight ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-glow)); z-index: 200; }
.rv { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); will-change: opacity, transform; }
.rv.in { opacity: 1; transform: none; }
.btn { position: relative; overflow: hidden; }
.btn::before { content: ""; position: absolute; inset: 0; background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .35), transparent 60%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.btn:hover::before { opacity: 1; }
.btn-ghost::before { background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 0, 0, .06), transparent 60%); }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- build vs buy calculator ---------- */
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.calc-panel { border-radius: var(--radius-l); background: var(--panel); padding: clamp(26px, 3vw, 42px); }
.calc-panel h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 24px; }
.calc-fld { margin-bottom: 24px; }
.calc-fld:last-child { margin-bottom: 0; }
.calc-fld label { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.calc-fld label span { font-family: var(--mono); font-weight: 400; color: var(--accent); }
.calc-fld input[type="range"] { width: 100%; accent-color: var(--accent); }
.calc-fld input[type="number"] { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 0 16px; font-size: 16px; font-family: inherit; outline: none; }
.calc-fld input[type="number"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-res { border-radius: var(--radius-l); background: linear-gradient(150deg, var(--accent-soft), #fff); padding: clamp(26px, 3vw, 42px); display: flex; flex-direction: column; gap: 6px; }
.calc-res .eyebrow { margin: 0; }
.calc-big { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; margin: 6px 0; }
.calc-bars { display: grid; gap: 10px; margin: 14px 0; }
.calc-br { height: 42px; border-radius: 14px; background: rgba(255, 255, 255, .7); position: relative; overflow: hidden; display: flex; align-items: center; padding: 0 14px; font-weight: 600; font-size: 14px; }
.calc-br i { position: absolute; inset: 0 auto 0 0; background: rgba(85, 70, 255, .22); border-radius: inherit; transition: width .5s var(--ease); }
.calc-br span { position: relative; display: flex; justify-content: space-between; width: 100%; }
.calc-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(0, 0, 0, .1); font-size: 15px; }
.calc-note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
@media (max-width: 860px) { .calc-wrap { grid-template-columns: 1fr; } }
