/* Shared styles for pricing, contact and legal pages (same tokens as ref2.html) */
:root {
  --ink: #050409;
  --acc: #8fe9ff;
  --violet: #8b5cf6;
  --lav: #b9a8ff;
  --text: #f3f1ff;
  --muted: rgba(226, 222, 255, .62);
  --line: rgba(255, 255, 255, .09);
  --card: rgba(255, 255, 255, .035);
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { min-height: 100vh; background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(60% 40% at 12% 0%, rgba(90, 60, 220, .16), transparent 70%), radial-gradient(40% 30% at 95% 20%, rgba(143, 233, 255, .05), transparent 70%); background-attachment: fixed; }
a { color: inherit; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: #fff; color: var(--ink); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(5, 4, 9, .72); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); border-bottom: 1px solid var(--line); }
.hd .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .02em; line-height: 1.1; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 14.5px; }
.nav a { text-decoration: none; color: rgba(243, 241, 255, .78); transition: color .25s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 7px; text-decoration-thickness: 2px; }
.nav-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer; place-items: center; }
.nav-btn i { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.nav-open .nav-btn i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-btn i:nth-child(2) { opacity: 0; }
.nav-open .nav-btn i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons (rectangular, matches ref2) ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 0 8px 0 18px; border-radius: 12px; font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: box-shadow .35s, background .35s, border-color .35s; white-space: nowrap; }
/* pointer spotlight (same as ref2 footer buttons); --mx/--my set in pages.js */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; pointer-events: none; background: radial-gradient(120px 60px at var(--mx, 50%) var(--my, 50%), rgba(150, 130, 255, .55), rgba(139, 92, 246, .22) 55%, rgba(120, 230, 255, .08) 80%, transparent 95%); }
@media (hover: hover) and (pointer: fine) { .btn:hover::before { opacity: 1; } .btn:hover .arr { transform: rotate(-45deg); } .btn:hover .arr.up { transform: rotate(0deg); } }
.btn .dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #5b4bc4; transition: transform .35s var(--ease); }
.btn .arr { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.btn .arr.up { transform: rotate(-45deg); }
.btn:hover .dot { transform: translateX(3px); }
/* matte CTAs: flat fill, soft glow on hover */
.btn.primary, .btn.light { background: #1d1934; border-color: rgba(255, 255, 255, .13); color: #fff; box-shadow: 0 8px 22px rgba(5, 3, 20, .28); }
.btn.primary:hover, .btn.light:hover { background: #241f40; box-shadow: 0 0 24px rgba(130, 110, 255, .28); }
.btn.ghost { border-color: rgba(255, 255, 255, .2); color: #fff; }
.btn.ghost .dot { background: rgba(255, 255, 255, .1); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, .45); box-shadow: 0 0 24px rgba(130, 110, 255, .2); }
.btn.sm { min-height: 38px; font-size: 12px; }
.btn.block { width: 100%; justify-content: space-between; }

/* ---------- page hero ---------- */
.ph { padding: 64px 0 36px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; list-style: none; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.ph h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 500; line-height: 1.04; letter-spacing: -.025em; }
.ph h1 em { color: var(--lav); }
.ph .lede { max-width: 62ch; margin-top: 18px; font-size: 18px; color: var(--muted); }
.ph .lede b { color: #fff; font-weight: 500; }
.meta { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------- "in short" answer box (answer-first for AI search) ---------- */
.short { margin: 8px 0 40px; padding: 22px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.short h2 { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--acc); margin-bottom: 10px; }
.short ul { list-style: none; display: grid; gap: 8px; }
.short li { position: relative; padding-left: 20px; color: rgba(243, 241, 255, .86); }
.short li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--violet); }

/* ---------- legal layout ---------- */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-bottom: 72px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc p { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: #fff; }
.toc a.on { color: #fff; border-left-color: var(--violet); }
.prose { max-width: 70ch; }
.prose section { padding-top: 8px; margin-bottom: 36px; }
.prose h2 { font-size: 24px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 12px; }
.prose h2 span { font-family: var(--serif); font-style: italic; color: var(--lav); margin-right: 8px; font-weight: 400; }
.prose h3 { font-size: 16.5px; font-weight: 600; margin: 18px 0 6px; }
.prose p, .prose li { color: rgba(243, 241, 255, .78); }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 10px 0 0 0; padding-left: 20px; display: grid; gap: 7px; }
.prose li::marker { color: var(--violet); }
.prose b, .prose strong { color: #fff; font-weight: 600; }
.prose a { color: var(--acc); text-decoration: underline; text-decoration-color: rgba(143, 233, 255, .35); text-underline-offset: 3px; }
.note { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(143, 233, 255, .05); border: 1px solid rgba(143, 233, 255, .14); font-size: 15px; }

/* other policies */
.more { padding: 40px 0 72px; border-top: 1px solid var(--line); }
.more h2 { font-size: 15px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 14px; text-decoration: none; transition: border-color .25s, background .25s; }
.chips a:hover { border-color: rgba(185, 168, 255, .45); background: rgba(139, 92, 246, .08); }
.chips a[aria-current="page"] { border-color: var(--violet); color: #fff; }

/* contact strip used at the end of every page */
.cta-band { margin: 0 auto 80px; padding: 34px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(139, 92, 246, .16), rgba(143, 233, 255, .05)); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
.cta-band h2 em { color: var(--lav); }
.cta-band p { color: var(--muted); margin-top: 6px; }
.cta-band .acts { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- pricing ---------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); margin-bottom: 26px; }
.seg button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 500 15px var(--sans); cursor: pointer; transition: background .25s, color .25s; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); }
.panel-head { display: flex; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.panel-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.panel-head h2 em { color: var(--lav); }
.panel-head p { max-width: 58ch; color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plans.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px 22px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.plan.pick { border-color: rgba(139, 92, 246, .6); background: linear-gradient(180deg, rgba(139, 92, 246, .14), rgba(255, 255, 255, .03) 55%); }
.plan .tag { position: absolute; top: -11px; left: 20px; padding: 3px 10px; border-radius: 8px; background: var(--violet); font-size: 12px; font-weight: 600; }
.plan h3 { font-size: 19px; font-weight: 600; }
.plan .for { font-size: 14px; color: var(--muted); }
.price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .from { width: 100%; font-size: 12px; color: var(--muted); }
.price b { font-size: 38px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.price b.word { font-size: 30px; }
.price span { font-size: 14px; color: var(--muted); }
.alt { font-size: 13.5px; color: var(--acc); }
.plan .sum { margin-top: 10px; font-size: 14px; color: rgba(243, 241, 255, .72); }
.plan ul { list-style: none; margin: 16px 0 22px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 14.5px; }
.plan li { position: relative; padding-left: 24px; color: rgba(243, 241, 255, .84); }
.plan li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 11px; height: 6px; border-left: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.fine { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.block-sec { padding: 64px 0 0; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--acc); margin-bottom: 8px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 500; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--lav); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 20px 18px; color: rgba(243, 241, 255, .76); }

/* ---------- contact ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.way { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); text-decoration: none; transition: border-color .3s, background .3s; }
.way:hover { border-color: rgba(185, 168, 255, .45); background: rgba(139, 92, 246, .07); }
.way small { font-size: 13px; color: var(--muted); }
.way b { font-size: 19px; font-weight: 600; }
.way span { font-size: 14px; color: var(--acc); }
.c-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; padding: 56px 0 72px; }
.form { display: grid; gap: 14px; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.form h2 { font-size: 24px; font-weight: 500; }
.form p.hint { font-size: 14px; color: var(--muted); margin-top: -6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(5, 4, 9, .6); color: #fff; font: 400 15.5px var(--sans); }
.field textarea { min-height: 120px; resize: vertical; }
.field select option { background: #15122a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, .25); }
.send { display: flex; gap: 10px; flex-wrap: wrap; }
.err { min-height: 1em; font-size: 13.5px; color: #ffb4c0; }
.facts { display: grid; gap: 22px; align-content: start; }
.facts h2 { font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.facts dl { display: grid; gap: 14px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { font-size: 16px; }

/* ---------- footer ---------- */
.ft { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 14px; }
.ft .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.ft p { color: var(--muted); max-width: 34ch; margin-top: 12px; }
.ft h2 { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.ft ul { list-style: none; display: grid; gap: 8px; }
.ft ul a { text-decoration: none; color: rgba(243, 241, 255, .82); } .ft ul a:hover { color: #fff; }
.ft .base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .ft .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .hd .wrap { height: 62px; }
  .nav-btn { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 62px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 18px; background: rgba(8, 7, 16, .97); border-bottom: 1px solid var(--line); }
  .nav-open .nav { display: flex; }
  .nav a { padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 14px; border-bottom: 0; justify-content: space-between; }
  .ph { padding: 40px 0 26px; }
  .ph .lede { font-size: 16.5px; }
  .plans, .plans.three, .ways, .c-grid, .row { grid-template-columns: 1fr; }
  .c-grid { gap: 28px; padding: 40px 0 56px; }
  .seg { display: flex; width: 100%; } .seg button { flex: 1; padding: 0 10px; }
  .cta-band { padding: 24px; } .cta-band .acts { margin-left: 0; width: 100%; } .cta-band .btn { flex: 1; justify-content: space-between; }
  .ft .cols { grid-template-columns: 1fr 1fr; } .ft .cols > div:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
@media (max-width: 760px) {
  .way { padding: 14px 18px; gap: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .way small { grid-column: 1 / -1; font-size: 12px; }
  .way b { font-size: 17px; } .way span { font-size: 13.5px; }
}
