/* personalaiuse.com — Warm, approachable design system */

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

:root {
  --bg:           #0a0e14;
  --bg-card:      #11161e;
  --white:        #ffffff;
  --ice:          #e2e8f0;
  --muted:        #94a3b8;
  --accent:       #14b8a6;
  --accent-hov:   #0d9488;
  --accent-glow:  rgba(20, 184, 166, 0.12);
  --text:         #e2e8f0;
  --border:       #1e293b;
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html, html.scroll-smooth { scroll-behavior: smooth; }

html, body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font) !important;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body { max-width: none !important; padding: 0 !important; display: block !important; }

#the-top, .print\\:hidden a[href="#main-content"] { display: none !important; }

a { color: var(--accent); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 20, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 1100px; margin: 0 auto;
}
.nav-logo { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.02em; color: var(--white); text-decoration: none; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { color: var(--accent) !important; font-weight: 600; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: space-between;
  width: 44px; height: 44px; padding: 12px 10px;
  background: transparent; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--muted); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10, 14, 20, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 8px 0; z-index: 200; list-style: none;
  }
  .nav-links.open a { display: block; padding: 14px 24px; font-size: 1rem; color: var(--muted); min-height: 44px; }
  .nav-links.open a:hover { color: var(--white); }
}

/* ── Hero ── */
.hero {
  padding: 100px 0 70px; text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
}
.hero-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent); background: var(--accent-glow);
  border: 1px solid rgba(20, 184, 166, 0.2); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; color: var(--white);
  max-width: 900px; margin: 0 auto 16px; line-height: 1.15; letter-spacing: -0.01em;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero > .container > p {
  max-width: 640px; margin: 0 auto 24px; color: var(--muted); font-size: 1.05rem; line-height: 1.6;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #000 !important; text-decoration: none;
  font-weight: 700; font-size: 0.95rem; padding: 14px 28px; border-radius: 8px;
  transition: background 0.2s, transform 0.15s; min-height: 50px;
}
.btn:hover { background: var(--accent-hov); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--white) !important;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent) !important; background: transparent; }

/* ── Sections ── */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-card); }
.section-title { font-size: 1.9rem; font-weight: 800; color: var(--white); margin: 0 0 8px; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 40px; }

/* ── Category cards ── */
.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
}
.card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(20, 184, 166, 0.3); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin: 0 0 10px; line-height: 1.4; }
.card p { font-size: 0.92rem; color: var(--muted); margin: 0 0 16px; line-height: 1.6; flex: 1; }
.card-arrow { color: var(--accent); font-size: 0.9rem; font-weight: 600; margin-top: auto; }

.card-icon { font-size: 1.4rem; margin-bottom: 12px; display: block; }

/* ── Article header ── */
.article-header {
  padding: 70px 0 36px; text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
}
.breadcrumbs { font-size: 0.8rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 6px; color: var(--muted); }
.section-label {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--white);
  max-width: 800px; margin: 0 auto 16px; line-height: 1.3;
}
.list-header .list-sub { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
.article-meta { font-size: 0.875rem; color: var(--muted); }

/* ── Hero image ── */
.hero-image-wrap { max-width: 900px; margin: -20px auto 0; padding: 0 24px; }
.hero-image { width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); display: block; }
.section-hero-img { max-height: 300px; object-fit: cover; width: 100%; border-radius: 10px; }

/* ── Article body ── */
.article-body { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 { color: var(--white); }
.article-body h2 { font-size: 1.5rem; font-weight: 700; margin: 40px 0 16px; }
.article-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--ice); margin: 32px 0 12px; }
.article-body p { font-size: 1rem; color: var(--text); margin-bottom: 16px; line-height: 1.75; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; color: var(--text); }
.article-body li { margin-bottom: 8px; line-height: 1.65; }
.article-body strong { color: var(--white); font-weight: 700; }
.article-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.article-body a:hover { color: var(--accent-hov); border-bottom-color: var(--accent); }
.article-body blockquote {
  margin: 24px 0; padding: 20px; background: var(--accent-glow);
  border-left: 4px solid var(--accent); color: var(--muted); font-style: italic; line-height: 1.6;
}
.article-body blockquote p { margin-bottom: 0; }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem;
}
.article-body th {
  background: var(--accent-glow); color: var(--white); font-weight: 700;
  text-align: left; padding: 12px 16px; border: 1px solid var(--border);
}
.article-body td { padding: 12px 16px; border: 1px solid var(--border); color: var(--text); }
.article-body tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 16px 0; }

/* ── Quick answer ── */
.quick-answer {
  background: var(--accent-glow); border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem; margin: 1.75rem auto; border-radius: 0 8px 8px 0;
  font-size: 0.95rem; line-height: 1.65; color: #b0b8c4; text-align: left; max-width: 100%;
}
.quick-answer strong { color: var(--accent); font-weight: 700; }

/* ── Stat cards ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 24px; text-align: center;
}
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--accent); display: block; }
.stat-label { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.stat-source { font-size: 0.75rem; color: var(--muted); opacity: 0.7; margin-top: 6px; }

/* ── FAQ ── */
.faq-section { margin-top: 1rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question { font-size: 1.1rem; font-weight: 600; color: var(--ice); margin-bottom: 0.5rem; }
.faq-answer { color: #b0b8c4 !important; line-height: 1.7; margin: 0; }
.faq-answer a { color: var(--accent) !important; }
.faq-answer strong { color: var(--white) !important; }

/* ── Newsletter ── */
.newsletter-section {
  text-align: center; max-width: 600px; margin: 0 auto;
  padding: 48px 32px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 12px;
}
.newsletter-section h3 { font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.newsletter-section p { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; line-height: 1.5; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 220px; padding: 14px 16px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; color: var(--white);
  font-size: 0.95rem; font-family: var(--font); outline: none; transition: border-color 0.2s;
}
.newsletter-form input[type="email"]::placeholder { color: var(--muted); }
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }

/* ── Hub cards ── */
.hub-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hub-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hub-card:hover { transform: translateY(-3px); border-color: rgba(20, 184, 166, 0.3); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.hub-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 24px; }
.hub-card-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin: 0 0 10px; line-height: 1.35; }
.hub-card-body p { font-size: 0.9rem; color: var(--muted); margin: 0 0 16px; line-height: 1.55; flex: 1; }
.hub-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
}
.hub-card-date { font-size: 0.8rem; color: var(--muted); }
.hub-card-arrow { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

@media (max-width: 900px) { .hub-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hub-cards { grid-template-columns: 1fr; } }

/* ── Footer ── */
#site-footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 48px 0 32px; color: var(--muted); font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand .logo { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.footer-col h5 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  font-size: 0.85rem; text-align: center;
}
.footer-bottom a { color: var(--muted); text-decoration: underline; }
.footer-bottom a:hover { color: var(--accent); }

/* Scroll to top */
.scroll-top-btn {
  position: fixed; bottom: 40px; right: 24px; width: 48px; height: 48px;
  border-radius: 50%; background: rgba(20, 184, 166, 0.9); color: #000;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  font-weight: 700; font-size: 1.2rem; box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  z-index: 50; transition: background 0.2s, transform 0.2s;
}
.scroll-top-btn:hover { background: var(--accent); transform: translateY(-2px); }

/* Kill Blowfish scroll-to-top */
#scroll-to-top, [id="scroll-to-top"] { display: none !important; }
.appearance-switcher, #appearance-switch, [data-appearance-toggle] { display: none !important; }

/* ── Mobile ── */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-inner { padding: 16px 20px; position: relative; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .article-header { padding: 56px 0 28px; }
  .article-body { padding: 32px 20px 60px; }
  .article-body h2 { font-size: 1.3rem; margin: 32px 0 12px; }
  .article-body h3 { font-size: 1.1rem; margin: 24px 0 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { min-width: 100%; }
  body { font-size: 17px; line-height: 1.7; }
  .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

.text-center { text-align: center; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
