@import url('./tokens.css');
@import url('./components.css');

/* ==========================================================================
   ClassKit Global - Main Application Stylesheet
   ========================================================================== */

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle Transparent Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-pill);
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.48);
}

/* --------------------------------------------------------------------------
   Top Global Navigation Bar
   -------------------------------------------------------------------------- */
.top-navbar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-xs);
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-badge {
  background-color: var(--primary);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.05em;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--primary);
}

.brand-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  margin-left: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: 64px 24px 48px;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-soft);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  background-color: var(--primary);
  border-radius: 50%;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 18px;
}

.hero h1 .highlight {
  color: var(--primary);
  position: relative;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.standard-tags {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.standard-tags span {
  font-weight: 600;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Category Filter & Showcase Section
   -------------------------------------------------------------------------- */
.showcase-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 72px;
  width: 100%;
}

.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-main);
}

.tab-btn.active {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
}

.tool-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 10px;
}

.tool-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 6px;
}

.tool-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.tool-footer .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Fixed-Term Passes Pricing Section
   -------------------------------------------------------------------------- */
.pricing-section {
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 80px 24px;
}

.pricing-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.pricing-header h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.pricing-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--pro-gold);
  box-shadow: var(--shadow-md), 0 0 24px rgba(245, 158, 11, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pro-gradient);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.pricing-plan-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.pricing-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-main);
  margin: 16px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-price .currency {
  font-size: 24px;
}

.pricing-price .period {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-rate {
  font-size: 13px;
  font-weight: 600;
  color: var(--pro-gold-text);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-top: 1px solid var(--bg-dark-surface);
  padding: 56px 24px 44px;
  font-size: 13px;
  line-height: 1.7;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--bg-dark-surface);
}

.footer-brand {
  max-width: 340px;
}

.footer-brand .brand-name {
  color: #FFFFFF;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 28px;
  flex: 1;
}

.footer-nav-col h4 {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.footer-nav-col a {
  display: block;
  color: #94A3B8;
  text-decoration: none;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 9px;
  transition: color var(--transition-fast);
}

.footer-nav-col a:hover {
  color: #FFFFFF;
}

.footer-trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--bg-dark-surface);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: #94A3B8;
}

.trust-badge svg { flex-shrink: 0; }
.trust-badge strong { color: #F8FAFC; font-weight: 600; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 8px;
}

.footer-bottom-links { display: flex; align-items: center; gap: 18px; }
.footer-bottom-links a { color: var(--text-muted); text-decoration: none; transition: color var(--transition-fast); }
.footer-bottom-links a:hover { color: #FFFFFF; }

/* --------------------------------------------------------------------------
   Legal & Static Policy Pages
   -------------------------------------------------------------------------- */
.legal-container { width: 100%; max-width: 860px; margin: 36px auto 72px; padding: 0 20px; flex: 1; }
.legal-card { background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 16px; box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06); padding: 44px 44px; }
.legal-header { border-bottom: 1px solid #E2E8F0; padding-bottom: 20px; margin-bottom: 30px; }
.legal-header h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-main); margin-bottom: 8px; }
.legal-meta { font-size: 13px; color: var(--text-muted); }
.legal-section { margin-bottom: 28px; }
.legal-section h2 { font-size: 17px; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.legal-section p, .legal-section ul { font-size: 14.5px; color: #334155; line-height: 1.75; margin-bottom: 12px; }
.legal-section ul { padding-left: 20px; }
.legal-section li { margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   Mobile Viewport & Responsive Layout Enhancements (Google Mobile-First)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .footer-nav-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-navbar, .site-header { padding: 0 16px; height: 56px; }
  .brand-tag, .brand-badge { display: none; }
  .nav-right .btn-outline-primary { display: none; }
  .hero { padding: 32px 16px 24px; }
  .hero h1 { font-size: 26px; line-height: 1.25; margin-bottom: 12px; }
  .hero p { font-size: 14px; margin-bottom: 20px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .category-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .category-tabs::-webkit-scrollbar { display: none; }
  .tab-btn { white-space: nowrap; padding: 7px 14px; font-size: 13px; }
  .showcase-section { padding: 0 16px 44px; }
  .tools-grid { grid-template-columns: 1fr; gap: 16px; }
  .pricing-section { padding: 44px 16px; }
  .pricing-header h2 { font-size: 24px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-top { gap: 32px; }
  .footer-trust-bar { grid-template-columns: 1fr; gap: 8px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom-links { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 600px) {
  .footer-nav-grid { grid-template-columns: 1fr; }
  .legal-card { padding: 24px 18px; }
}

/* --------------------------------------------------------------------------
   Mobile PC Recommendation Modal
   -------------------------------------------------------------------------- */
.mobile-notice-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-notice-overlay.show { opacity: 1; visibility: visible; }
.mobile-notice-card {
  background: #FFFFFF;
  border-radius: 20px;
  width: calc(100% - 24px);
  max-width: 340px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 24px 18px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  text-align: center;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-notice-overlay.show .mobile-notice-card { transform: scale(1) translateY(0); }
.mobile-notice-icon-box {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: #EEF2FF;
  color: #4F46E5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-notice-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #4F46E5;
  background: #EEF2FF;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.mobile-notice-title { font-size: 17px; font-weight: 800; color: #0F172A; margin-bottom: 8px; letter-spacing: -0.02em; word-break: break-word; }
.mobile-notice-desc { font-size: 13px; color: #64748B; line-height: 1.5; margin-bottom: 18px; text-align: left; background: #F8FAFC; padding: 12px 14px; border-radius: 10px; border: 1px solid #E2E8F0; box-sizing: border-box; width: 100%; word-break: break-word; }
.mobile-notice-actions { display: flex; flex-direction: column; gap: 8px; }
.mobile-notice-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.mobile-notice-btn-primary { background: #4F46E5; color: #FFFFFF; }
.mobile-notice-btn-primary:hover { background: #4338CA; }
.mobile-notice-btn-secondary { background: #F1F5F9; color: #475569; }
.mobile-notice-btn-secondary:hover { background: #E2E8F0; color: #0F172A; }


