/* Spokn — shared header and footer (every page, including the AI Job Search System page).
   Namespaced (sh- / sf-) so it works next to either page stylesheet. */

.sh { position: sticky; top: 0; z-index: 200; background: rgba(12, 10, 26, 0.88); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgba(167, 139, 250, 0.14); }
.sh-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 20px; }
.sh-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; line-height: 1; padding: 4px 0; flex: none; }
.sh-logo img { width: 32px; height: 32px; border-radius: 22%; display: block; }
.sh-logo span { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.6rem; letter-spacing: -0.03em; background: linear-gradient(135deg, #7c3aed 0%, #5b5ce8 55%, #2563eb 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding: 2px 0; }
.sh-nav { flex: 1; display: flex; justify-content: center; }
.sh-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.sh-list > li { position: relative; }
.sh-list > li > a, .sh-menu-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #b3aed0; font: 500 0.95rem/1.2 'Inter', system-ui, sans-serif; padding: 9px 13px; border-radius: 8px; background: none; border: 0; cursor: pointer; transition: color .15s ease, background-color .15s ease; }
.sh-list > li > a:hover, .sh-menu-btn:hover, .sh-menu-btn[aria-expanded="true"] { color: #f5f3ff; background: rgba(255, 255, 255, 0.05); }
.sh-list > li > [aria-current="page"], .sh-menu-btn.is-current { color: #f5f3ff; }
.sh-list > li > [aria-current="page"]::after, .sh-menu-btn.is-current::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #8b5cf6, #2563eb); }
.sh-chev { width: 14px; height: 14px; transition: transform .2s ease; }
.sh-menu-btn[aria-expanded="true"] .sh-chev { transform: rotate(180deg); }

.sh-sub { position: absolute; top: calc(100% + 10px); left: 50%; width: 300px; transform: translate(-50%, -6px); list-style: none; margin: 0; padding: 8px; background: #17132e; border: 1px solid rgba(167, 139, 250, 0.3); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8); opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.sh-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sh-has-menu.open .sh-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sh-sub a { display: grid; gap: 2px; padding: 11px 12px; border-radius: 10px; text-decoration: none; color: #f5f3ff; }
.sh-sub a:hover, .sh-sub a:focus-visible { background: rgba(167, 139, 250, 0.1); }
.sh-sub strong { font: 600 0.95rem/1.3 'Inter', system-ui, sans-serif; display: flex; align-items: center; gap: 8px; }
.sh-sub span { font-size: 0.82rem; line-height: 1.4; color: #8a85a8; }
.sh-sub a[aria-current="page"] strong { color: #c4b5fd; }
.sh-soon { font-size: 0.66rem !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fcd34d !important; border: 1px solid rgba(252, 211, 77, 0.35); border-radius: 999px; padding: 1px 7px; }
.sh-sub .sh-divider { height: 1px; background: rgba(167, 139, 250, 0.14); margin: 6px 4px; }

.sh-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.sh-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 18px; border-radius: 999px; font: 600 0.92rem/1.2 'Inter', system-ui, sans-serif; color: #fff; text-decoration: none; white-space: nowrap; background: linear-gradient(135deg, #7c3aed 0%, #5b5ce8 55%, #2563eb 100%); box-shadow: 0 10px 26px -12px rgba(124, 58, 237, 0.9); transition: transform .18s ease, box-shadow .18s ease; }
.sh-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -12px rgba(124, 58, 237, 1); }
.sh-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.sh-toggle span { display: block; width: 20px; height: 2px; background: #f5f3ff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.sh-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sh-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sh-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sh a:focus-visible, .sh button:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }

@media (max-width: 920px) {
  .sh-inner { padding: 0 16px 0 20px; gap: 10px; }
  .sh-toggle { display: inline-flex; }
  .sh-actions { margin-left: auto; }
  .sh-nav { position: absolute; top: 100%; left: 0; right: 0; display: block; background: #0c0a1a; border-bottom: 1px solid rgba(167, 139, 250, 0.3); box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7); padding: 8px 20px 24px; max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .sh-nav.open { opacity: 1; visibility: visible; transform: none; }
  .sh-list { flex-direction: column; align-items: stretch; gap: 0; }
  .sh-list > li > a, .sh-menu-btn { width: 100%; justify-content: space-between; padding: 15px 4px; font-size: 1.06rem; border-radius: 0; border-bottom: 1px solid rgba(167, 139, 250, 0.14); }
  .sh-list > li > a:hover, .sh-menu-btn:hover, .sh-menu-btn[aria-expanded="true"] { background: none; }
  .sh-list > li > [aria-current="page"]::after, .sh-menu-btn.is-current::after { display: none; }
  .sh-list > li > [aria-current="page"] { color: #c4b5fd; }
  .sh-sub { position: static; width: auto; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; border-radius: 0; background: transparent; padding: 4px 0 8px 12px; display: none; transition: none; }
  .sh-sub::before { display: none; }
  .sh-has-menu.open .sh-sub { display: block; transform: none; }
  .sh-sub a { padding: 12px 8px; }
}
@media (max-width: 380px) {
  .sh-logo span { font-size: 1.35rem; }
  .sh-cta { padding: 8px 14px; font-size: 0.86rem; }
}

/* ---------- Footer ---------- */
.sf { background: #09071a; border-top: 1px solid rgba(167, 139, 250, 0.14); padding: 64px 0 28px; color: #b3aed0; }
.sf-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sf-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.sf-brand p { color: #8a85a8; font-size: 0.92rem; margin-top: 14px; max-width: 340px; }
.sf-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; padding: 0; }
.sf-social a { display: inline-flex; min-height: 36px; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(167, 139, 250, 0.3); color: #b3aed0; text-decoration: none; font-size: 0.85rem; }
.sf-social a:hover { color: #f5f3ff; border-color: #c4b5fd; }
.sf-col h2 { font: 600 0.78rem/1.3 'Inter', system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: #8a85a8; margin-bottom: 14px; }
.sf-col ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.sf-col a { color: #b3aed0; text-decoration: none; font-size: 0.94rem; }
.sf-col a:hover { color: #f5f3ff; }
.sf-col .sh-soon { margin-left: 6px; vertical-align: 1px; }
.sf-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(167, 139, 250, 0.14); color: #8a85a8; font-size: 0.86rem; }
.sf-bottom p { margin: 0; }
@media (max-width: 1024px) { .sf-grid { grid-template-columns: 1fr 1fr 1fr; } .sf-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .sf-inner { padding: 0 20px; } .sf-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ---------- Shared component: ProductComparison (tier comparison table) ---------- */
.cmp-wrap { border: 1px solid rgba(167, 139, 250, 0.2); border-radius: 20px; background: #17132e; overflow: hidden; }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.94rem; }
.cmp th, .cmp td { padding: 13px 14px; border-top: 1px solid rgba(167, 139, 250, 0.12); text-align: center; vertical-align: middle; }
.cmp thead th { border-top: 0; padding: 22px 12px 16px; vertical-align: bottom; }
.cmp tbody th[scope="row"] { text-align: left; font-weight: 500; color: #d9d5ee; }
.cmp .cmp-feat { width: 40%; }
.cmp-tier { position: relative; }
.cmp-name { display: block; font: 700 1.05rem/1.2 'Space Grotesk', 'Inter', sans-serif; color: #f5f3ff; }
.cmp-price { display: block; font: 700 1.6rem/1.2 'Space Grotesk', 'Inter', sans-serif; color: #f5f3ff; margin-top: 4px; letter-spacing: -0.02em; }
.cmp-badge { display: inline-block; margin-bottom: 8px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #7c3aed, #2563eb); padding: 3px 9px; border-radius: 999px; }
.cmp .cmp-hl { background: rgba(124, 58, 237, 0.1); }
.cmp-group th { text-align: left; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #c4b5fd; background: rgba(255, 255, 255, 0.02); padding-top: 16px; }
.cmp-yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(52, 211, 153, 0.14); color: #34d399; }
.cmp-yes svg { width: 15px; height: 15px; }
.cmp-no { color: #6b6690; font-weight: 600; }
.cmp-text { font-weight: 600; color: #f5f3ff; font-size: 0.9rem; }
.cmp-foot td { padding: 18px 10px 22px; }
.cmp-buy { display: inline-flex; align-items: center; justify-content: center; width: 100%; max-width: 180px; min-height: 44px; padding: 8px 12px; border-radius: 999px; font: 600 0.9rem/1.2 'Inter', system-ui, sans-serif; text-decoration: none; color: #f5f3ff; border: 1px solid rgba(167, 139, 250, 0.45); transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.cmp-buy:hover { border-color: #c4b5fd; background: rgba(167, 139, 250, 0.1); }
.cmp-buy-primary { border: 0; color: #fff; background: linear-gradient(135deg, #7c3aed 0%, #5b5ce8 55%, #2563eb 100%); box-shadow: 0 10px 26px -12px rgba(124, 58, 237, 0.9); }
.cmp-buy-primary:hover { background: linear-gradient(135deg, #7c3aed 0%, #5b5ce8 55%, #2563eb 100%); transform: translateY(-1px); }
.cmp-unavailable { font-size: 0.8rem; color: #8a85a8; }
@media (max-width: 640px) {
  .cmp { font-size: 0.82rem; }
  .cmp th, .cmp td { padding: 11px 6px; }
  .cmp tbody th[scope="row"] { padding-left: 12px; }
  .cmp .cmp-feat { width: 37%; }
  .cmp thead th { padding: 16px 4px 12px; }
  .cmp-name { font-size: 0.88rem; }
  .cmp-price { font-size: 1.2rem; }
  .cmp-badge { font-size: 0.56rem; padding: 2px 6px; letter-spacing: 0.03em; }
  .cmp-text { font-size: 0.78rem; }
  .cmp-buy { min-height: 44px; padding: 6px 4px; font-size: 0.8rem; }
  .cmp-get { display: none; }
  .cmp-group th { padding-left: 12px; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- v3.1 area menus (Work / Learning / Life) ---------- */
.sh-sub { width: 320px; }
.sh-sub .sh-all { border-bottom: 1px solid rgba(167, 139, 250, 0.14); border-radius: 10px 10px 0 0; margin-bottom: 4px; }
.sh-sub .sh-all strong::after { content: '→'; color: #c4b5fd; font-weight: 600; }
.sh-group { margin: 8px 12px 2px; font: 700 0.68rem/1.4 'Inter', system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: #8a85a8; }
.sh-items:empty { display: none; }
@media (max-width: 920px) {
  .sh-sub { width: auto; }
  .sh-sub .sh-all { border-bottom: 0; }
}
