/* Synthetic Skill — shared styles. Generated: do not hand-edit page copies. */

:root {
    --bg:            #08080a;
    --bg-elev:       #0e0e11;
    --surface:       #131317;
    --surface-hi:    #1a1a20;
    --border:        #23232b;
    --border-hi:     #33333d;
    --text:          #f5f5f7;
    --text-muted:    #8a8a94;
    --text-dim:      #5a5a64;
    --accent:        #ffffff;
    --status-good:   #22c55e;
    --status-warn:   #f59e0b;
    --status-bad:    #ef4444;
    --radius:        14px;
    --radius-sm:     8px;
    --shadow-lg:     0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
  }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at 50% 0%, black 40%, transparent 80%);
  }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
  }

/* ============ NAV (shared) ============ */
  .nav-wrap {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(8,8,10,0.75);
    border-bottom: 1px solid var(--border);
  }

.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand {
    display: flex; align-items: center; gap: 12px;
    font-weight: 700; font-size: 15px;
    letter-spacing: 0.14em; text-transform: uppercase;
  }

.brand-mark {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px;
  }

.brand-mark svg { width: 20px; height: 20px; }

/* Brand logo (real SS wordmark, replaces placeholder .brand-mark) */
  .brand-logo {
    height: 32px;
    width: auto;
    display: block;
  }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }

.nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 14px;
    font-size: 14px; font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
  }

.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface); }

.nav-link .chev { width: 12px; height: 12px; transition: transform 0.2s; }

.nav-item { position: relative; }

.nav-item.has-menu:hover .nav-link .chev { transform: rotate(180deg); }

.nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    font-size: 13px; font-weight: 600;
    background: var(--text); color: var(--bg);
    border-radius: var(--radius-sm);
    transition: transform 0.15s, box-shadow 0.15s;
  }

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,255,255,0.12); }

/* Megamenu (shared) */
  .megamenu {
    position: absolute; top: calc(100% + 8px); left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 640px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
    box-shadow: var(--shadow-lg);
    z-index: 200;
  }

.nav-item.has-menu:hover .megamenu {
    opacity: 1; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

.nav-item.has-menu::after {
    content: ''; position: absolute;
    top: 100%; left: 0; right: 0; height: 12px;
  }

.mm-featured {
    display: block; padding: 14px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid var(--border);
    margin-bottom: 4px;
    transition: background 0.15s, border-color 0.15s;
    position: relative; overflow: hidden;
  }

.mm-featured:hover { background: var(--surface-hi); border-color: var(--border-hi); }

.mm-featured::after {
    content: '→'; position: absolute;
    right: 18px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 18px;
    transition: transform 0.15s, color 0.15s;
  }

.mm-featured:hover::after { color: var(--text); transform: translateY(-50%) translateX(4px); }

.mm-featured-row { display: flex; align-items: center; gap: 12px; }

.mm-logo {
    width: 40px; height: 40px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px;
    display: grid; place-items: center;
    flex-shrink: 0;
  }

.mm-logo img { width: 26px; height: 26px; object-fit: contain; }

.mm-featured-body { flex: 1; }

.mm-title-row { display: flex; align-items: center; gap: 8px; }

.mm-title { font-weight: 700; font-size: 15px; }

.mm-badge {
    padding: 2px 7px; font-size: 9px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    color: var(--text); border: 1px solid var(--border-hi);
  }

.mm-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.mm-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
    margin-top: 6px; padding-top: 6px;
    border-top: 1px solid var(--border);
  }

.mm-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.12s;
  }

.mm-item:hover { background: var(--surface); }

.mm-item-logo {
    width: 32px; height: 32px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 6px;
    display: grid; place-items: center;
    flex-shrink: 0;
  }

.mm-item-logo img { width: 22px; height: 22px; object-fit: contain; }

.mm-item-body { flex: 1; min-width: 0; }

.mm-item-name { font-weight: 600; font-size: 13px; }

.mm-item-price { font-size: 11px; color: var(--text-muted); }

.mm-status {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 500;
  }

.mm-status .dot { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }

.mm-status.good { color: var(--status-good); }

.mm-status.warn { color: var(--status-warn); }

.mm-status.bad  { color: var(--status-bad); }

.mm-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; margin-top: 6px;
    border-top: 1px solid var(--border);
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted);
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
  }

.mm-footer:hover { color: var(--text); background: var(--surface); }

/* Shared status pill */
  .status-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px;
    font-size: 11px; font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.02em;
  }

.status-pill .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
  }

.status-pill.good { color: var(--status-good); background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); }

/* ============ PRODUCT HERO ============ */
  .product-hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
  }

.product-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 45%),
      radial-gradient(circle at 80% 70%, rgba(255,255,255,0.03) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
  }

.product-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
  }

.product-hero-info { }

.product-hero-eyebrow {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 24px;
  }

.product-hero-eyebrow-crumb {
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--text-muted);
  }

.product-hero h1 {
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 16px;
  }

.product-hero .tagline {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.5;
    margin-bottom: 32px;
  }

.product-hero-ctas {
    display: flex; gap: 12px; flex-wrap: wrap;
  }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px;
    font-size: 14px; font-weight: 600;
    border-radius: 10px;
    transition: transform 0.15s, background 0.15s, border-color 0.15s;
  }

.btn-primary { background: var(--text); color: var(--bg); }

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(255,255,255,0.15); }

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
  }

.btn-secondary:hover { background: var(--surface-hi); border-color: var(--border-hi); }

/* Pricing summary card (right side of hero) */
  .price-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
  }

.price-summary-logo {
    display: flex; align-items: center; gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
  }

.price-summary-logo-box {
    width: 56px; height: 56px;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: 12px;
    display: grid; place-items: center;
    flex-shrink: 0;
  }

.price-summary-logo-box img { width: 36px; height: 36px; object-fit: contain; }

.price-summary-logo-text .name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

.price-summary-logo-text .variant {
    font-size: 11px; font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-top: 2px;
  }

.price-summary-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 8px 0;
  }

.price-summary-label {
    font-size: 11px; font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.1em; text-transform: uppercase;
  }

.price-summary-value { font-size: 14px; font-weight: 600; color: var(--text); }

.price-summary-starting {
    display: flex; align-items: baseline; gap: 8px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }

.price-summary-starting-label {
    font-size: 12px; color: var(--text-muted);
  }

.price-summary-starting-price {
    font-size: 32px; font-weight: 800;
    letter-spacing: -0.02em;
    font-family: 'JetBrains Mono', monospace;
    margin-left: auto;
  }

.price-summary-starting-per {
    font-size: 12px; color: var(--text-muted);
  }

/* ============ SECTIONS ============ */
  section { padding: 80px 0; position: relative; }

.section-head { text-align: center; margin-bottom: 56px; }

.section-eyebrow {
    display: inline-block;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
  }

.section-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
  }

.section-sub {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
  }

/* ============ SHOWCASE VIDEO ============ */
  .showcase-video {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 1024px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-elev);
  }

.showcase-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

/* ============ FEATURES ============ */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

.feature-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
  }

.feature-card:hover { border-color: var(--border-hi); }

.feature-card-head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }

.feature-card-icon {
    width: 40px; height: 40px;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: 10px;
    display: grid; place-items: center;
    flex-shrink: 0;
  }

.feature-card-icon svg { width: 18px; height: 18px; color: var(--text); }

.feature-card h3 {
    font-size: 18px; font-weight: 700;
    letter-spacing: -0.01em;
  }

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    list-style: none;
  }

.feature-list li {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
  }

.feature-list li::before {
    content: '';
    width: 4px; height: 4px;
    background: var(--text-dim);
    border-radius: 50%;
    flex-shrink: 0;
  }

.feature-card-full { grid-column: 1 / -1; }

/* ============ HIGHLIGHT PILLARS ============ */
  .pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

.pillar {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.2s;
  }

.pillar:hover { border-color: var(--border-hi); transform: translateY(-2px); }

.pillar-icon {
    width: 36px; height: 36px;
    background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: 8px;
    display: grid; place-items: center;
    margin-bottom: 16px;
  }

.pillar-icon svg { width: 16px; height: 16px; color: var(--text); }

.pillar h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }

.pillar p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ============ INFO STRIP ============ */
  .info-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }

.info-strip-item {
    padding: 24px;
    border-right: 1px solid var(--border);
  }

.info-strip-item:last-child { border-right: none; }

.info-strip-label {
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
  }

.info-strip-value {
    font-size: 15px; font-weight: 600;
    color: var(--text);
  }

/* ============ PRICING TIERS ============ */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
  }

.pricing-grid-single {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
  }

.pricing-tier {
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    display: flex;
    flex-direction: column;
  }

.pricing-tier.popular {
    border-color: rgba(96,165,250,0.35);
    background: linear-gradient(180deg, rgba(96,165,250,0.04), var(--surface));
  }

.pricing-badge {
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: #60a5fa;
    background: rgba(8,8,10,1);
    border: 1px solid rgba(96,165,250,0.35);
    border-radius: 999px;
  }

.pricing-duration {
    font-size: 13px; font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 12px;
  }

.pricing-price {
    display: flex; align-items: baseline; gap: 4px;
    margin-bottom: 20px;
  }

.pricing-price-amount {
    font-size: 44px; font-weight: 800;
    letter-spacing: -0.03em;
    font-family: 'JetBrains Mono', monospace;
  }

.pricing-price-currency {
    font-size: 18px; font-weight: 600;
    color: var(--text-muted);
  }

.pricing-price-per {
    font-size: 12px; color: var(--text-muted);
    margin-left: 4px;
  }

.pricing-features {
    list-style: none;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    display: flex; flex-direction: column; gap: 10px;
  }

.pricing-features li {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
  }

.pricing-features li svg { width: 14px; height: 14px; color: var(--status-good); flex-shrink: 0; }

.pricing-cta {
    margin-top: auto;
    display: block;
    text-align: center;
    padding: 12px 20px;
    font-size: 13px; font-weight: 600;
    border-radius: 10px;
    background: var(--surface-hi);
    color: var(--text);
    border: 1px solid var(--border);
    transition: all 0.15s;
  }

.pricing-cta:hover { background: var(--text); color: var(--bg); }

.pricing-tier.popular .pricing-cta {
    background: var(--text); color: var(--bg);
  }

.pricing-tier.popular .pricing-cta:hover {
    box-shadow: 0 8px 24px rgba(255,255,255,0.15);
  }

.pricing-note {
    text-align: center;
    max-width: 640px;
    margin: 32px auto 0;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
  }

/* ============ ONBOARDING STEPS ============ */
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
  }

.step-card {
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
  }

.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
  }

.step-card h4 {
    font-size: 18px; font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
  }

.step-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
  }

/* ============ FAQ ============ */
  .faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex; flex-direction: column;
    gap: 8px;
  }

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s;
  }

.faq-item[open] { border-color: var(--border-hi); }

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 15px; font-weight: 600;
    list-style: none;
    transition: background 0.15s;
  }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { background: var(--surface-hi); }

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.2s;
  }

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item-body {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
  }

/* ============ CTA ============ */
  .cta-section {
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(180deg, var(--surface), var(--bg-elev));
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
  }

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06), transparent 60%);
    pointer-events: none;
  }

.cta-section h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    position: relative;
  }

.cta-section p {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 28px;
    position: relative;
  }

.cta-section .btn { position: relative; }

/* ============ FOOTER (shared) ============ */
  footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
    color: var(--text-muted);
    font-size: 13px;
  }

.footer-brand p { max-width: 340px; line-height: 1.6; margin-top: 16px; }

.footer-col h4 {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text);
    margin-bottom: 16px;
  }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a { transition: color 0.15s; }

.footer-col a:hover { color: var(--text); }

.footer-bot {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: var(--text-dim);
  }

/* Responsive */
  @media (max-width: 960px) {
    .product-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .features-grid { grid-template-columns: 1fr; }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .info-strip { grid-template-columns: repeat(2, 1fr); }
    .info-strip-item { border-right: none; border-bottom: 1px solid var(--border); }
    .info-strip-item:nth-child(2n) { border-right: none; }
    .info-strip-item:nth-last-child(-n+2) { border-bottom: none; }
    .pricing-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .megamenu { width: calc(100vw - 32px); left: 16px; transform: translateY(-6px); }
    .nav-item.has-menu:hover .megamenu { transform: translateY(0); }
    .mm-grid { grid-template-columns: 1fr; }
  }

/* ---- megamenu interaction fix (must stay last) ---- */
  .nav-item.has-menu { position: relative; }

.nav-item.has-menu::after {
    content: ''; position: absolute; left: 0; right: 0;
    top: 100%; height: 14px;
  }

.nav-item.has-menu:hover .megamenu,
  .nav-item.has-menu:focus-within .megamenu {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
  }

.megamenu { pointer-events: none; }

.nav-item.has-menu:hover > .megamenu,
  .nav-item.has-menu:focus-within > .megamenu { pointer-events: auto; }

.nav-item.has-menu:hover > .megamenu a,
  .nav-item.has-menu:focus-within > .megamenu a { position: relative; z-index: 1; }

/* footer layout + external link (shared) */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-external { display: inline-flex; align-items: center; gap: 6px; }
.footer-external em { font-style: normal; color: var(--text); font-weight: 700; }
.footer-external svg { width: 10px; height: 10px; opacity: 0.55; transition: opacity 0.15s, transform 0.15s; flex-shrink: 0; }
.footer-external:hover svg { opacity: 1; transform: translate(1px, -1px); }

/* narrower megamenu for Support (2 items) */
.support-menu { width: 340px; padding: 6px; }
.support-menu .mm-featured { margin-bottom: 4px; padding: 12px 14px; }
.support-menu .mm-featured:last-child { margin-bottom: 0; }


/* account dropdown (signed-in nav) */
/* Account CTA + right-aligned dropdown */
  .account-menu-item {
    position: relative;
  }
.nav-cta-account {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    font-weight: 600;
    padding: 8px 14px;
  }
.nav-cta-account:hover { border-color: var(--border-hi); background: var(--surface); }
.nav-avatar {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    display: grid; place-items: center;
    font-size: 11px; font-weight: 700; color: var(--bg);
    margin-right: 2px;
  }
.account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s;
    box-shadow: var(--shadow-lg);
    z-index: 200;
  }
.account-menu-item:hover .account-dropdown,
  .account-menu-item:focus-within .account-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
.account-menu-item::after {
    content: '';
    position: absolute;
    top: 100%; left: 0; right: 0; height: 12px;
  }
.dropdown-user {
    padding: 12px 14px 10px;
  }
.dropdown-user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
  }
.dropdown-user-email {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
    word-break: break-all;
  }
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
  }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }
.dropdown-item:hover { background: var(--surface-hi); }
.dropdown-item svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.15s;
  }
.dropdown-item.admin svg { color: #60a5fa; }
.dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.08);
    color: var(--status-bad);
  }
.dropdown-item.danger:hover svg { color: var(--status-bad); }


/* ghost / tertiary button */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color .15s, color .15s, background .15s;
}
.btn-ghost:hover { border-color: var(--border-hi); color: var(--text); background: var(--surface-hi); }
/* ---- shared nav: loaders, cart, discord, account dropdown ---- */
.loaders-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 280px;
    background: var(--surface-hi);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 100;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
  }
.nav-item.has-menu:focus-within .loaders-menu {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
.loaders-menu-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    padding: 8px 12px 6px;
  }
.loaders-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s;
  }
.loaders-menu-item:hover { background: var(--surface); }
.loaders-menu-logo {
    width: 32px; height: 32px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: grid; place-items: center;
    flex-shrink: 0;
  }
.loaders-menu-logo img { max-width: 22px; max-height: 22px; object-fit: contain; }
.loaders-menu-name { font-size: 14px; font-weight: 600; margin-bottom: 1px; }
.loaders-menu-sub { font-size: 12px; color: var(--text-muted); }
.nav-link-discord { display: inline-flex; align-items: center; gap: 7px; }
.nav-link-discord svg { width: 15px; height: 15px; opacity: .85; }
.nav-link-discord:hover svg { opacity: 1; }
.nav-link-cart { display: inline-flex; align-items: center; gap: 7px; }
.nav-link-cart svg { width: 16px; height: 16px; opacity: .85; }
.nav-link-cart:hover svg { opacity: 1; }
.cart-count {
    display: inline-grid; place-items: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px;
    background: var(--text); color: var(--bg);
    font-size: 11px; font-weight: 800; line-height: 1;
    font-family: var(--font-sans);
  }

/* ---- auth form error ---- */
.auth-error {
  background: rgba(220, 60, 60, 0.10);
  border: 1px solid rgba(220, 60, 60, 0.35);
  color: #ff9c9c;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 18px;
}

/* ---- account: expired purchase cards ---- */
.purchase-card.is-expired { opacity: 0.55; }
.purchase-card.is-expired:hover { opacity: 0.75; }
.status-pill.bad {
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.24);
  color: #f89a9a;
}
.status-pill.bad .dot { background: #ef4444; }
.btn-danger-outline[disabled] { opacity: 0.45; cursor: not-allowed; }
.license-key .key-download { margin-left: 6px; }

/* ---- account: pending invoice pill + payment summary ---- */
.order-row-status.pending {
  background: rgba(245,158,11,0.10);
  border: 1px solid rgba(245,158,11,0.24);
  color: #f4c26b;
}
.payment-card-info p { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ---- pricing: Nexus add-to-cart forms + 3-up grid ---- */
.pricing-cta-form { margin: 0; }
button.pricing-cta {
  width: 100%;
  border: none;
  font: inherit;
  cursor: pointer;
}
button.pricing-cta:disabled,
button.pricing-cta.disabled { cursor: not-allowed; }
.pricing-grid-two {
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: 20px;
}
.pricing-grid-three {
  grid-template-columns: repeat(3, minmax(0, 320px));
  justify-content: center;
  gap: 20px;
}
@media (max-width: 1000px) {
  .pricing-grid-three { grid-template-columns: repeat(2, minmax(0, 340px)); }
}
@media (max-width: 700px) {
  .pricing-grid-two,
  .pricing-grid-three { grid-template-columns: minmax(0, 420px); }
}

/* ---- auth: captcha widget ---- */
.auth-captcha {
  margin: 18px 0 4px;
  display: flex;
  justify-content: center;
}
.auth-captcha iframe { max-width: 100%; }

/* ---- email confirmed: success note ---- */
.confirm-email-ok {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.22);
  color: #86e0a6;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0 18px;
}
.confirm-email-ok svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; }
.confirm-email-actions form { margin: 0; }

/* ---- email confirmed: single-action centring ---- */
.confirm-email-actions form { display: contents; }
.confirm-email-actions form .btn-primary { width: 100%; }
.confirm-email-actions:has(> form:only-child) { grid-template-columns: 1fr; }
.confirm-email-actions:has(> a:only-child) { grid-template-columns: 1fr; }

/* ---- email confirmed: success icon ---- */
.confirm-email-icon.is-done {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.3);
  color: #4ade80;
}

/* ---- confirm email: resend form sits in the actions grid ---- */
.confirm-email-actions form { display: contents; }
.confirm-email-actions button[disabled],
.confirm-email-subactions a[title="Coming soon"] { opacity: 0.45; cursor: not-allowed; }

/* ---- confirm email: resend button icon ---- */
.confirm-email-actions .btn-primary svg,
.confirm-email-actions .btn-outline svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
.confirm-email-actions .btn-primary { gap: 8px; }

/* ---- cart: quantity controls ---- */
.cart-qty { display: inline-flex; align-items: center; gap: 6px; }
.cart-qty span { font-size: 12px; color: var(--text-dim); }
.cart-qty input {
  width: 58px;
  padding: 4px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.cart-linkbtn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px dashed var(--text-dim);
}
.cart-linkbtn:hover { color: var(--status-bad); border-bottom-color: var(--status-bad); }
.cart-actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }

/* ---- cart: terms gate on the checkout button ---- */
.btn.is-gated { opacity: 0.45; cursor: not-allowed; }
.cart-card + .checkout-tos { margin: 18px 0 0; }

/* ---- megamenu status pills (shared nav) ---- */
.mm-pills {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.mm-update {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}
.mm-update.updated {
  color: #60a5fa;
  background: rgba(96,165,250,0.08);
  border: 1px solid rgba(96,165,250,0.24);
}
.mm-update.updating {
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}

/* ---- cart: why the checkout button is disabled ---- */
.btn.is-gated { position: relative; }
.btn.is-gated::after {
  content: attr(data-gate-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--surface-hi, #1a1a1d);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s;
  pointer-events: none;
  z-index: 20;
}
.btn.is-gated::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--surface-hi, #1a1a1d);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s;
  pointer-events: none;
  z-index: 21;
}
.btn.is-gated:hover::after,
.btn.is-gated:hover::before,
.btn.is-gated:focus-visible::after,
.btn.is-gated:focus-visible::before {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 700px) {
  .btn.is-gated::after { white-space: normal; width: 180px; }
}

/* ---- order confirmation: pending and failed states ---- */
.confirm-icon.is-pending {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.3);
  color: #f4c26b;
}
.confirm-icon.is-failed {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.3);
  color: #f89a9a;
}
.license-key .key-download { margin-left: 6px; }

/* ---- account: profile tab ---- */
.profile-subhead {
  font-size: 15px;
  font-weight: 600;
  margin: 28px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.form-input[readonly] {
  opacity: 0.7;
  cursor: default;
}

/* ---- support: department picker ---- */
.dept-options { display: flex; flex-direction: column; gap: 8px; }
.dept-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.15s, background 0.15s;
}
.dept-option:hover { border-color: var(--border-hi); background: var(--surface); }
.dept-option:has(input:checked) {
  border-color: rgba(96,165,250,0.45);
  background: rgba(96,165,250,0.06);
}
.ticket-detail-actions form { margin: 0; }

/* ---- support: key picker ---- */
select.form-input { appearance: none; cursor: pointer; }
#licence-manual { margin: 0; }

/* ---- nav: open tickets in the Support dropdown ---- */
.mm-tickets {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 10px;
}
.mm-tickets-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 12px 6px;
}
.mm-tickets .mm-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}

/* ---- account: earlier keys from renewals ---- */
.old-keys { margin-top: 10px; }
.old-keys summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-dim);
  padding: 4px 0;
  user-select: none;
}
.old-keys summary:hover { color: var(--text-muted); }
.old-keys .license-key { margin-top: 8px; }
.license-key.is-old { opacity: 0.6; }
.license-key.is-old:hover { opacity: 0.85; }

/* ---- support: older tickets behind a toggle ---- */
.ticket-older { margin-top: 4px; }
.ticket-older summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-dim);
  padding: 10px 2px;
  user-select: none;
}
.ticket-older summary:hover { color: var(--text-muted); }

/* ---- pricing: out of stock ---- */
.pricing-cta.is-sold-out {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--surface-hi);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.pricing-stock-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}
.pricing-stock-note a { color: var(--text-muted); }

/* ---- account: cancel renewal confirmation ---- */
.cancel-confirm {
  flex-basis: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.22);
  border-radius: 10px;
}
.cancel-confirm p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
.cancel-confirm form {
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- site admin: status editor ---- */
.admin-save-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.admin-save-note { font-size: 12px; color: var(--text-dim); }

/* ---- nav: admin view of the loaders dropdown ---- */
.loaders-menu-title { display: flex; align-items: center; gap: 6px; }

/* ---- troubleshooting: DMA-only signpost ---- */
.ts-own-guides {
  margin: 28px 0 8px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.ts-own-guides h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}
.ts-own-guides p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.ts-own-guides p:last-child { margin-bottom: 0; }
.ts-own-guides a { color: var(--text); text-decoration: underline; }
