:root {
  --navy: #0a2342; --navy-2: #12345f; --accent: #0f9d74; --accent-2: #0b7f5e; --blue: #2563eb;
  --bg: #ffffff; --soft: #f5f8fb; --soft-2: #eef3f8; --border: #e3e8ef; --text: #172033; --muted: #5d6779;
  --red: #b91c1c; --amber: #b45309; --green: #15803d; --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 35, 66, .08); --shadow-lg: 0 24px 60px rgba(10, 35, 66, .14);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.6; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 1.15rem; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--navy), var(--accent)); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 800; }
.logo-light { color: #fff; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a { color: #354158; font-weight: 550; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.main-nav a:hover { background: var(--soft); text-decoration: none; }
.main-nav a.active { color: var(--navy); background: var(--soft-2); }
.main-nav a.btn { padding: 8px 16px; }
.main-nav .btn-primary, .main-nav .btn-primary:hover { color: #fff; background: var(--accent); }
.nav-sep { width: 1px; height: 24px; background: var(--border); margin: 0 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; font-size: 1.2rem; padding: 4px 11px; cursor: pointer; }
.link-btn { background: none; border: 0; color: #354158; font: inherit; font-weight: 550; font-size: .95rem; cursor: pointer; padding: 8px 12px; }
.inline-form { display: inline; margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 650; cursor: pointer; white-space: nowrap; transition: transform .08s, box-shadow .15s, background .15s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(15, 157, 116, .25); }
.btn-primary:hover { background: var(--accent-2); }
.btn-navy { background: var(--navy); color: #fff; } .btn-navy:hover { background: var(--navy-2); }
.btn-outline { background: #fff; color: var(--navy); border-color: #cdd6e2; } .btn-outline:hover { border-color: var(--navy); }
.btn-ghost { background: none; color: var(--navy); }
.btn-danger { background: #fff; color: var(--red); border-color: #f0c4c4; } .btn-danger:hover { background: #fdf0f0; }
.btn-sm { padding: 7px 14px; font-size: .9rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Hero */
.hero { background: radial-gradient(1100px 500px at 85% -10%, rgba(15, 157, 116, .16), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(37, 99, 235, .10), transparent 60%), linear-gradient(180deg, #f7fafc, #fff); padding: 80px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 5px 12px; border-radius: 999px; background: #e6f6f0; color: var(--accent-2); font-weight: 650; font-size: .85rem; margin-bottom: 18px; }
.hero p.lead { font-size: 1.18rem; color: #44506a; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-points { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .93rem; padding: 0; margin: 0; list-style: none; }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 6px; }
.mock { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: #f2f5f9; border-bottom: 1px solid var(--border); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d4dbe5; }
.mock-body { display: grid; grid-template-columns: 120px 1fr; min-height: 300px; }
.mock-side { background: #fafbfd; border-right: 1px solid var(--border); padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.mock-side i { display: block; height: 10px; border-radius: 5px; background: #e4e9f0; }
.mock-side i.on { background: #cfe9df; }
.mock-main { padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: start; }
.mock-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.mock-card b { display: block; font-size: 1.1rem; color: var(--navy); }
.mock-card small { color: var(--muted); font-size: .72rem; }
.mock-chart { grid-column: span 3; height: 120px; border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: flex-end; gap: 6px; padding: 12px; }
.mock-chart i { flex: 1; background: linear-gradient(180deg, var(--accent), #7fd6bb); border-radius: 4px 4px 0 0; }
.mock-row { grid-column: span 3; height: 12px; border-radius: 6px; background: #eef2f7; }

/* Sections */
.section { padding: 76px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: box-shadow .15s, transform .15s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #e8f6f1; color: var(--accent-2); font-size: 1.3rem; margin-bottom: 14px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
.feature ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: .95rem; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 24px 20px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.trust { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-weight: 600; }
.trust b { display: block; font-size: 1.8rem; color: var(--navy); }
.cta-band { background: linear-gradient(120deg, var(--navy), #11466e 60%, var(--accent-2)); color: #fff; border-radius: 20px; padding: 46px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #d5e3f0; margin: 0; }
.cta-band .btn-outline { border-color: transparent; }
.page-hero { background: linear-gradient(180deg, var(--soft), #fff); padding: 58px 0 30px; text-align: center; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin: 0 auto; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose li { margin-bottom: .4em; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 16px; align-items: stretch; }
.price-card { padding: 26px 20px; }
.price-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.price-card .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.price-card h3 { margin-bottom: 4px; }
.price { font-size: 2.3rem; font-weight: 800; color: var(--navy); margin: 12px 0 0; }
.price small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.price-note { color: var(--muted); font-size: .88rem; min-height: 1.5em; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.price-card li { padding: 6px 0; font-size: .95rem; }
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.price-card li.no { color: #9aa3b2; }
.price-card li.no::before { content: "–"; color: #c0c7d2; }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 650; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #44506a; }

/* Forms and cards */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.card h2 { font-size: 1.2rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.auth-wrap { min-height: calc(100vh - 68px - 260px); display: grid; place-items: center; padding: 50px 20px; background: var(--soft); }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 760px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label, .field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; color: #2d374b; }
.form label small, .field small { font-weight: 400; color: var(--muted); }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.form label.check input { margin-top: 4px; }
.form fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.form legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
input, select, textarea { font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid #cfd7e2; border-radius: 9px; background: #fff; color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid #cfeee3; border-color: var(--accent); }
input[type=checkbox], input[type=radio] { width: auto; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 13px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; font-size: .95rem; }
.alert-success { background: #ecfdf3; border-color: #bbf0cf; color: #14532d; }
.alert-danger { background: #fef2f2; border-color: #fbcaca; color: #7f1d1d; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.flash-wrap { padding-top: 18px; }

/* Account */
.account-shell { display: grid; grid-template-columns: 240px 1fr; gap: 30px; padding-top: 30px; padding-bottom: 60px; min-height: 70vh; }
.account-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 90px; align-self: start; }
.account-nav a { padding: 9px 12px; border-radius: 8px; color: #354158; font-weight: 550; }
.account-nav a:hover { background: var(--soft); text-decoration: none; }
.account-nav a.active { background: var(--soft-2); color: var(--navy); }
.account-who { padding: 4px 12px 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.account-who strong { display: block; color: var(--navy); } .account-who small { color: var(--muted); word-break: break-all; }
.account-main { min-width: 0; }
.account-main h1 { font-size: 1.7rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: .78rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .03em; }
.num { text-align: right !important; }
.dl { display: grid; grid-template-columns: 190px 1fr; gap: 8px 16px; margin: 0; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-green { background: #dcfce7; color: var(--green); } .badge-amber { background: #fef3c7; color: var(--amber); }
.badge-red { background: #fee2e2; color: var(--red); } .badge-grey { background: #eef0f4; color: #4b5563; } .badge-blue { background: #dbeafe; color: #1d4ed8; }
.key-box { font-family: ui-monospace, Consolas, monospace; font-size: 1.35rem; font-weight: 700; letter-spacing: .06em; background: var(--soft); border: 1px dashed #b9c6d6; padding: 14px 18px; border-radius: 12px; user-select: all; word-break: break-all; }
.lic-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.lic-card h3 { margin: 0 0 2px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: #fff; }
.stat b { display: block; font-size: 1.5rem; color: var(--navy); } .stat span { color: var(--muted); font-size: .88rem; }
.chips span { display: inline-block; background: var(--soft-2); border-radius: 6px; padding: 2px 9px; margin: 2px 4px 2px 0; font-size: .85rem; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 26px; align-items: start; }
.summary { position: sticky; top: 90px; }
.summary .line { display: flex; justify-content: space-between; padding: 7px 0; color: #3b4660; }
.summary .line.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.summary .line.minus span:last-child { color: var(--green); }
.form label.pay-option { flex-direction: row; }
.pay-option input { margin-top: 5px; flex: 0 0 auto; }
.pay-option > span { display: flex; flex-direction: column; gap: 2px; }
.coupon-row input::placeholder { text-transform: none; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; cursor: pointer; font-weight: 400 !important; }
.pay-option:has(input:checked) { border-color: var(--accent); background: #f3fbf8; }
.pay-option strong { display: block; color: var(--navy); }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { text-transform: uppercase; }
.test-note { background: #fff7e6; border: 1px solid #fde2a7; border-radius: 10px; padding: 12px 14px; font-size: .9rem; color: #7a4d00; }

/* Footer */
.site-footer { background: #0b1a30; color: #c3cedd; padding: 54px 0 24px; margin-top: 0; }
.site-footer a { color: #c3cedd; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer .muted { color: #8ea0b8; margin-top: 12px; max-width: 320px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-bottom { border-top: 1px solid #1d3150; margin-top: 36px; padding-top: 18px; font-size: .88rem; color: #8ea0b8; }
.footer-bottom a { display: inline; }

@media (max-width: 960px) {
  .hero-grid, .checkout-grid, .account-shell { grid-template-columns: 1fr; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .summary, .account-nav { position: static; }
  .account-nav { flex-direction: row; flex-wrap: wrap; }
  .account-who { width: 100%; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 10px 22px 18px; }
  .main-nav.open { display: flex; }
  .nav-sep { display: none; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2, .steps, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .hero { padding: 50px 0; }
  .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 8px; }
  .auth-card { padding: 24px; }
  .cta-band { padding: 30px; }
}
@media print {
  .site-header, .site-footer, .account-nav, .no-print { display: none !important; }
  .account-shell { display: block; padding: 0; }
}

/* Utilities (inline style attributes are blocked by the CSP) */
.section-tight { padding-top: 30px; }
.mt-lg { margin-top: 46px; } .mt { margin-top: 18px; } .mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.right { text-align: right; } .nowrap { white-space: nowrap; } .break { word-break: break-all; }
.hidden { display: none; }

/* Notifications, tickets, announcements, release notes */
.notice-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.notice-row:last-child { border-bottom: 0; }
.notice-row.unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.msg { border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; background: #fff; max-width: 92%; }
.msg-staff { background: #f2faf7; border-color: #cdeee1; align-self: flex-end; }
.msg-system { background: var(--soft); align-self: center; font-size: .9rem; color: var(--muted); }
.msg-head { margin-bottom: 6px; }
.msg-body { white-space: normal; word-wrap: break-word; }
.announce { border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; border: 1px solid; }
.announce h3 { margin: 0 0 4px; font-size: 1rem; }
.announce p { margin: 0; }
.announce-info { background: #eff6ff; border-color: #bfdbfe; } .announce-success { background: #ecfdf3; border-color: #bbf0cf; }
.announce-warning { background: #fffbeb; border-color: #fde68a; } .announce-danger { background: #fef2f2; border-color: #fbcaca; }
.release-notes { font-size: .95rem; }
