/* HPC Share: one stylesheet for every page. Colored header band, tinted page, white cards. */
:root {
  --bg: #eef2fb;
  --bg-deep: #e3e9f7;
  --ink: #0f172a;
  --muted: #475569;
  --faint: #64748b;
  --line: #d9e1ef;
  --card: #ffffff;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --navy: #1e3a8a;
  --accent: #06b6d4;
  --soft: #eef3fc;
  --good: #059669;
  --good-bg: #ecfdf5;
  --warn: #92400e;
  --warn-bg: #fffbeb;
  --bad: #991b1b;
  --bad-bg: #fef2f2;
  --band: linear-gradient(120deg, #1e3a8a, #2563eb 55%, #06b6d4);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(30, 58, 138, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--brand); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* ---------- Header band ---------- */
.masthead { background: var(--band); color: #fff; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-weight: 800; font-size: 1.3rem; color: #fff; text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.logo span { color: #a5f3fc; }
.mainnav { display: flex; align-items: center; gap: 22px; }
.mainnav a { color: #dbeafe; text-decoration: none; font-weight: 500; white-space: nowrap; }
.mainnav a:hover, .mainnav a.on { color: #fff; }
.mainnav a.on { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
#account { display: flex; align-items: center; gap: 14px; }
.chip { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 5px 12px; font-size: .9rem; font-weight: 600; color: #fff !important; white-space: nowrap; text-decoration: none; }
.navtoggle { display: none; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 10px; padding: 7px 12px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 860px) {
  .navtoggle { display: inline-flex; }
  .mainnav { display: none; position: absolute; top: 68px; left: 0; right: 0; z-index: 20; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 8px 20px 16px; box-shadow: 0 12px 24px rgba(15,23,42,.25); }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .mainnav #account { padding-top: 12px; flex-wrap: wrap; }
  .masthead { position: relative; }
}

.hero { padding: 26px 20px 44px; }
.hero .eyebrow { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: -0.03em; margin: 14px 0 14px; max-width: 820px; }
.hero p { color: #dbeafe; font-size: 1.12rem; margin: 0; max-width: 680px; }
.hero .actions { margin-top: 26px; }
.hero.small { padding: 10px 20px 34px; }
.hero.small h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 10px 0 8px; }
.hero .crumbs { font-size: .9rem; color: #bfdbfe; }
.hero .crumbs a { color: #e0f2fe; text-decoration: none; }
.hero .meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hero .pill { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 4px 12px; font-size: .88rem; font-weight: 600; }
body.overlap .masthead { padding-bottom: 56px; }
body.overlap main.page { margin-top: -56px; }

/* ---------- Page ---------- */
main.page { padding-bottom: 64px; position: relative; }
section.block { padding: 56px 0 8px; }
.eyebrow-dark { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
h2.title { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.15; margin: 6px 0 10px; }
p.lead { color: var(--muted); font-size: 1.08rem; max-width: 700px; margin: 0 0 28px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; border: 0; background: var(--brand); color: #fff !important; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.light { background: #fff; color: var(--navy) !important; }
.btn.light:hover { background: #e0f2fe; }
.btn.ghost { background: #fff; color: var(--ink) !important; border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--soft); }
.btn.outline-light { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.55); }
.btn.outline-light:hover { background: rgba(255,255,255,.12); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn.danger { background: #dc2626; }
.btn.danger:hover { background: #b91c1c; }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Cards and grids ---------- */
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.panel h2, .card h2 { font-size: 1.15rem; margin: 0 0 6px; }
.panel .hint, .card .hint { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.two { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-size: 1.3rem; flex: none; }
.feature h3 { margin: 12px 0 6px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); }
.feature .tag { margin-top: 12px; }

/* App tiles (catalog, home) */
.apptile { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
a.apptile:hover { border-color: var(--brand); transform: translateY(-2px); }
.apptile .top { display: flex; align-items: center; gap: 12px; }
.apptile h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.apptile p { color: var(--muted); margin: 12px 0 14px; flex: 1; font-size: .95rem; }
.apptile .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .88rem; }
.apptile .price { color: var(--muted); font-weight: 500; }
.apptile .go { color: var(--brand); font-weight: 700; }
.apptile.soon { background: #f8faff; }
.apptile.soon .icon { background: linear-gradient(135deg, #94a3b8, #cbd5e1); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #dbeafe; color: var(--brand-dark); white-space: nowrap; }
.tag.soon { background: #e2e8f0; color: #475569; }
.tag.live { background: #d1fae5; color: #065f46; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.filters button { font: inherit; font-size: .9rem; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.filters button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters button:hover:not(.on) { border-color: var(--brand); color: var(--brand); }
.catgroup { margin-bottom: 34px; }
.catgroup h2 { font-size: 1.3rem; margin: 0 0 2px; }
.catgroup > p { color: var(--muted); margin: 0 0 14px; }

/* ---------- Forms ---------- */
.fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fields .full { grid-column: 1 / -1; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; font-weight: 600; color: var(--muted); }
label.f small { font-weight: 400; }
input, textarea, select { font: inherit; font-size: 1rem; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; width: 100%; min-width: 0; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); border-color: transparent; }
input[type=checkbox], input[type=range] { width: auto; }
.price-note { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.status { color: var(--muted); font-size: .9rem; }

.ts-box:empty { display: none; }
.lookup { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.lookup-row { display: flex; gap: 10px; margin-top: 2px; }
.lookup-row input { flex: 1; }
.lookup-row .btn { white-space: nowrap; }
@media (max-width: 520px) { .lookup-row { flex-direction: column; } }
.ts-box { margin-top: 14px; }

/* ---------- Notices, results, tables ---------- */
.notice { border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-weight: 500; }
.notice.warn { background: var(--warn-bg); border: 1px solid #fcd34d; color: var(--warn); }
.notice.bad { background: var(--bad-bg); border: 1px solid #fca5a5; color: var(--bad); }
.notice.good { background: var(--good-bg); border: 1px solid #6ee7b7; color: #065f46; }
.notice a { color: inherit; font-weight: 700; }
.notice ul { margin: 8px 0 0; padding-left: 20px; }

.result { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.result.warn { background: var(--warn-bg); border-color: #fcd34d; color: var(--warn); }
.result h2 { font-size: 1.35rem; margin: 0 0 12px; }
.result h3 { font-size: 1rem; margin: 18px 0 8px; }
.result h3:first-child { margin-top: 0; }
.result p { margin: 0 0 10px; white-space: pre-wrap; }
.result ul { margin: 0; padding-left: 20px; }
.result li { margin: 4px 0; }
.copy { float: right; margin-left: 12px; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #dbeafe; color: var(--brand-dark); }
.meta { color: var(--muted); font-size: .86rem; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .82rem; }
td.num, th.num { text-align: right; white-space: nowrap; }
tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
.table-scroll { overflow-x: auto; }

.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat .label { color: var(--muted); font-size: .88rem; }
.stat .value { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; }
.stat .note { color: var(--muted); font-size: .82rem; }
.stat.hero-stat { background: linear-gradient(135deg, var(--navy), var(--brand)); color: #fff; border: 0; }
.stat.hero-stat .label, .stat.hero-stat .note { color: #bfdbfe; }
.stat .value.neg { color: var(--bad); }
.stat.hero-stat .value.neg { color: #fca5a5; }

/* ---------- Pricing and custom ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.facts strong { display: block; font-size: 1.35rem; letter-spacing: -0.02em; }
.facts span { color: var(--muted); }
.packs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.pack { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; background: var(--card); box-shadow: var(--shadow); font: inherit; color: inherit; }
button.pack, a.pack { cursor: pointer; transition: border-color .15s, transform .15s; text-decoration: none; display: block; }
button.pack:hover, a.pack:hover { border-color: var(--brand); transform: translateY(-2px); }
.pack .btn { margin-top: 12px; }
.pack.best { border: 2px solid var(--brand); }
.pack .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pack .price { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; }
.pack .price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.pack .credits { color: var(--muted); }
.pack .bonus { color: var(--brand); font-weight: 600; font-size: .9rem; margin-top: 6px; min-height: 1.3em; }
.tiers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.tier h3 { margin: 0 0 4px; }
.tier .term { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 4px; }
.tier p { color: var(--muted); margin: 0 0 10px; }
.tier ul { margin: 0; padding-left: 20px; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 9px 0 9px 32px; position: relative; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--brand); font-weight: 800; }
.darkcard { background: linear-gradient(135deg, var(--navy), var(--brand)); color: #dbeafe; border-radius: 16px; padding: 30px; }
.darkcard h3 { color: #fff; margin-top: 0; font-size: 1.35rem; }
.darkcard p { margin-bottom: 0; }

/* ---------- Bottom call to action ---------- */
.cta { text-align: center; background: var(--band); color: #e0f2fe; border-radius: 18px; padding: 36px 24px; margin-top: 40px; }
.cta h2 { color: #fff; margin: 0 0 8px; font-size: 1.5rem; }
.cta p { margin: 0 auto 20px; max-width: 560px; }

/* ---------- Footer ---------- */
.sitefoot { background: var(--bg-deep); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.sitefoot .wrap { display: grid; gap: 24px; grid-template-columns: 1.4fr repeat(3, 1fr); padding-top: 36px; padding-bottom: 36px; }
.sitefoot h4 { color: var(--ink); margin: 0 0 10px; font-size: .9rem; }
.sitefoot a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; }
.sitefoot a:hover { color: var(--brand); }
.sitefoot .brand .logo { color: var(--navy); }
.sitefoot .brand .logo span { color: var(--brand); }
.sitefoot .fine { border-top: 1px solid var(--line); grid-column: 1 / -1; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .sitefoot .wrap { grid-template-columns: 1fr 1fr; } .sitefoot .brand { grid-column: 1 / -1; } }

/* ---------- Toast and spinner ---------- */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Legal ---------- */
.legal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.legal h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.legal p, .legal li { color: #334155; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .summary { background: var(--soft); border-radius: 12px; padding: 16px 20px; margin-bottom: 8px; }
@media (max-width: 560px) { .legal { padding: 20px; } }

#print-root { display: none; }
@media print {
  /* "Print" buttons: only the chosen part of the page is printed. */
  body.printing-one > *:not(#print-root) { display: none !important; }
  body.printing-one #print-root { display: block; }
  #print-root .copy, #print-root .no-print, #print-root button { display: none !important; }
  #print-root .result { border: 0; box-shadow: none; padding: 0; margin: 0 0 16px; }
  /* Ctrl+P anywhere: skip the site chrome. */
  .masthead, .sitefoot, form, .price-note, .cta, .no-print, .copy, section.block, .ts-box { display: none !important; }
  body { background: #fff; }
  main.page { margin: 0 !important; }
  .result { border: 0; box-shadow: none; padding: 0; }
}
