/* ================================================================
   SITE-WIDE STYLES — youraislopboresme-inspired light theme
   ================================================================ */

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

:root {
  --bg: #ffffff;
  --bg-elevated: #fafafa;
  --surface: #f5f5f5;
  --surface-hover: #eeeeee;
  --border: #e5e5e5;
  --border-light: #d4d4d4;
  --text: #171717;
  --text-secondary: #525252;
  --text-dim: #a3a3a3;
  --accent: #171717;
  --radius: 10px;
  --radius-sm: 6px;
  --max-w: 960px;
  --max-w-narrow: 720px;
  --max-w-wide: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
  font-size: 16px;
}

a { color: var(--text); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--text-secondary); }
strong, b { color: var(--text); font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }
code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.88em;
  background: var(--surface);
  padding: 2px 7px;
  border-radius: 4px;
}

/* === STICKY NAV === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 13px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 500; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* === INTRO (hero + what-is, side by side) === */
.intro {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 32px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.intro-left {
  position: sticky;
  top: 80px;
}

.intro-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--text);
}

.intro-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.intro-right {}

.intro-heading {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  line-height: 1.3;
  color: var(--text);
}

.intro-right p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* === HERO (standalone, for other pages) === */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 32px 48px;
  text-align: center;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 18px;
  color: var(--text);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.hero-cta:hover {
  background: #333;
  color: #fff;
  transform: translateY(-1px);
}

/* === GAME FULLSCREEN (play immediately on load) === */
.game-fullscreen {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-fullscreen::before {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--text-dim);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  position: absolute;
}

.game-fullscreen:has(iframe.loaded)::before {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.game-fullscreen iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  transform: scale(1.25);
  transform-origin: center center;
  opacity: 0;
  transition: opacity 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.game-fullscreen iframe.loaded {
  opacity: 1;
}

@media (max-width: 768px) {
  .game-fullscreen iframe {
    transform: none;
  }
}

/* === GAME EMBED (legacy / smaller embed) === */
.game-embed {
  max-width: 520px;
  margin: 0 auto 48px;
  aspect-ratio: 9/16;
  max-height: 72vh;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 48px rgba(0,0,0,0.08);
}

.game-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === SECTIONS (flowing, youraislopboresme-style) === */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 32px;
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  border-top: none;
}

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

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  line-height: 1.3;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.75;
}

.section ul, .section ol {
  color: var(--text-secondary);
  padding-left: 24px;
  margin-bottom: 18px;
}

.section li { margin-bottom: 10px; }

/* === TAGS (pill badges) === */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.01em;
  transition: all 0.15s;
}

.tag:hover {
  color: var(--text);
  border-color: var(--border-light);
  background: var(--surface-hover);
}

/* === CARD GRID (feature cards / shame cards) === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

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

.card:hover {
  background: var(--surface-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

.card-tagline {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 12px;
  font-style: italic;
}

/* === STEPS === */
.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 28px 0;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: var(--text);
}

.step-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.step-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.65;
}

/* === COMPARISON TABLE === */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  color: var(--text);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare-table td { color: var(--text-secondary); }
.compare-table tr:hover td { color: var(--text); }

/* === FAQ ACCORDION === */
.faq-list { margin: 24px 0; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
}

.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.2s;
}

.faq-item.open .faq-q::after { content: '−'; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-a { max-height: 600px; }

.faq-a p {
  padding-bottom: 18px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === BLOG CARD LIST === */
.blog-section-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 32px 0;
  border-top: 1px solid var(--border);
}

.blog-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.blog-section-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 12px;
}

.blog-list {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
}

.blog-card {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  display: block;
  transition: opacity 0.15s;
}

.blog-card:hover { opacity: 0.72; }

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.blog-card-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}

.blog-card:hover .blog-card-link { gap: 9px; }
.blog-card-link::after { content: '→'; }

.blog-view-all {
  display: inline-block;
  padding: 24px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.blog-view-all::after { content: ' →'; }

/* === ARTICLE PAGE === */
.article {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px 72px;
}

.article-header { margin-bottom: 36px; }

.article-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 18px;
  color: var(--text);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--text);
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

.article-body p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.78;
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.78;
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li { margin-bottom: 10px; }

.article-body blockquote {
  border-left: 3px solid var(--border-light);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text-dim);
  font-style: italic;
}

.article-cta {
  margin-top: 48px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.article-cta p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* === CALLOUT (CTA box, endnote) === */
.callout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.callout-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.callout-quote {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 20px;
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-dim);
}

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* === BREADCRUMB === */
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 32px 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--text-secondary); }
.breadcrumb span { margin: 0 6px; }

/* === DARK NAV VARIANT === */
.site-nav--dark {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,0.06);
}

.site-nav--dark .nav-logo { color: #fff; }
.site-nav--dark .nav-links a { color: rgba(255,255,255,0.4); }
.site-nav--dark .nav-links a:hover { color: rgba(255,255,255,0.8); }
.site-nav--dark .nav-links a.active { color: #fff; }
.site-nav--dark .nav-toggle { color: #fff; }

/* === SOUND HERO (dark immersive) === */
.sound-hero {
  position: relative;
  background: #0a0a0a;
  color: #fff;
  padding: 140px 48px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 92vh;
}

.sound-hero-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.8;
}

.sound-hero-left {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.sound-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
}

.sound-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 14px;
}

.sound-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 28px;
}

.sound-hero b, .sound-hero strong {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}

.sound-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.sound-hero-btn {
  display: inline-block;
  padding: 14px 36px;
  background: #fff;
  color: #0a0a0a;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  text-decoration: none;
}

.sound-hero-btn:hover {
  background: rgba(255,255,255,0.88);
  color: #0a0a0a;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,255,255,0.15);
}

.sound-hero-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.01em;
}

/* dark nav override when hero is first */
.sound-hero ~ .section:first-of-type {
  border-top: none;
}

/* === RESPONSIVE — TABLET (769px – 1024px) === */
@media (max-width: 1024px) {
  .intro {
    grid-template-columns: 1fr 1.2fr;
    gap: 36px;
    padding: 48px 28px;
  }
  .intro-title { font-size: 3.2rem; }

  .section { padding: 48px 28px; }
  .section-title { font-size: 1.55rem; }

  .sound-hero {
    padding: 110px 36px 72px;
    min-height: 80vh;
  }
  .sound-hero-left { max-width: 560px; }
  .sound-hero-title { font-size: 3rem; }
  .sound-hero-subtitle { font-size: 1.1rem; }
  .sound-hero-desc { font-size: 0.95rem; }

  .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

  .blog-section-header { padding: 48px 28px 0; }
  .blog-list { padding: 0 28px; }

  .article { padding: 40px 28px 60px; }
  .article-title { font-size: 1.75rem; }
}

/* === RESPONSIVE — MOBILE (≤768px) === */
@media (max-width: 768px) {
  .hero { padding: 48px 20px 36px; }
  .hero-title { font-size: 2.8rem; }
  .hero-sub { max-width: 100%; }

  .section { padding: 36px 18px; }
  .section-title { font-size: 1.3rem; }
  .section p { font-size: 0.95rem; }

  .card-grid { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 18px; }

  .steps { gap: 18px; }
  .step-body h3 { font-size: 0.95rem; }
  .step-body p { font-size: 0.88rem; }

  .blog-section-header { padding: 36px 18px 0; }
  .blog-list { padding: 0 18px; }
  .blog-card { padding: 24px 0; }
  .blog-card-title { font-size: 1.02rem; }
  .blog-card-excerpt { font-size: 0.9rem; }

  .article { padding: 32px 18px 48px; }
  .article-title { font-size: 1.4rem; }
  .article-body h2 { font-size: 1.15rem; }
  .article-body p { font-size: 0.95rem; }

  .breadcrumb { padding: 56px 18px 8px; }

  .nav-inner { padding: 10px 16px; }
  .site-nav { background: rgba(255,255,255,0.75); }

  .intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 18px;
  }
  .intro-left { position: static; }
  .intro-title { font-size: 2.6rem; }
  .intro-sub { font-size: 0.95rem; }
  .intro-heading { font-size: 1.3rem; }

  .sound-hero {
    padding: 80px 20px 52px;
    min-height: auto;
  }
  .sound-hero-left { max-width: 100%; }
  .sound-hero-title { font-size: 2.2rem; }
  .sound-hero-subtitle { font-size: 1rem; }
  .sound-hero-desc { font-size: 0.92rem; line-height: 1.6; }
  .sound-hero-btn { padding: 12px 28px; font-size: 0.95rem; width: 100%; text-align: center; }
  .sound-hero-meta { font-size: 0.75rem; }

  .tag-row { gap: 6px; }
  .tag { font-size: 0.72rem; padding: 4px 10px; }

  .faq-q { font-size: 0.92rem; padding: 14px 0; }
  .faq-a p { font-size: 0.9rem; }

  .callout { padding: 36px 18px; }
  .callout-text { font-size: 0.95rem; }
  .callout-quote { font-size: 0.85rem; }

  .footer-links { gap: 14px; }
  .footer-links a { font-size: 0.78rem; }
  .footer-copy { font-size: 0.72rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 14px;
    z-index: 99;
  }
  .site-nav--dark .nav-links.open {
    background: #0a0a0a;
    border-bottom-color: rgba(255,255,255,0.08);
  }
  .nav-toggle { display: block; }
}

/* === RESPONSIVE — SMALL MOBILE (≤420px) === */
@media (max-width: 420px) {
  .sound-hero { padding: 72px 16px 44px; }
  .sound-hero-title { font-size: 1.85rem; }
  .sound-hero-subtitle { font-size: 0.92rem; }
  .sound-hero-desc { font-size: 0.85rem; }

  .section { padding: 28px 14px; }
  .section-title { font-size: 1.15rem; }
  .section p { font-size: 0.88rem; }

  .intro { padding: 28px 14px; }
  .intro-title { font-size: 2.2rem; }

  .card { padding: 16px; }
  .card-title { font-size: 0.95rem; }
  .card p { font-size: 0.85rem; }

  .blog-section-header { padding: 28px 14px 0; }
  .blog-list { padding: 0 14px; }
}
