/* ============================================
   SkanWallets — Pure CSS
   Design: Swiss Compliance (dark theme)
   Fonts: Noto Serif JP + Noto Sans JP
   Palette: Deep navy bg, teal accents, light text
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1724;
  --bg-card: #162032;
  --bg-card-hover: #1a2740;
  --bg-section: #131d2e;
  --text: #e2e8f0;
  --text-muted: #8b9ab5;
  --text-dim: #5a6b85;
  --heading: #f1f5f9;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --teal-glow: rgba(20, 184, 166, 0.15);
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --max-w: 1200px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', Georgia, serif;
  color: var(--heading);
  line-height: 1.3;
}

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ============================================
   Skip to content (accessibility)
   ============================================ */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--teal); color: var(--bg); padding: 0.5rem 1rem;
  border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; z-index: 200;
}
.skip-link:focus { top: 1rem; }

/* ============================================
   Header / Navigation
   ============================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 23, 36, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Noto Serif JP', serif; font-size: 1.4rem; color: var(--heading);
}
.logo svg { width: 24px; height: 24px; color: var(--teal); }
.logo:hover { color: var(--heading); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  letter-spacing: 0.03em; transition: color var(--transition);
}
.nav a:hover, .nav a.active { color: var(--teal); }

/* Mobile menu */
.menu-toggle {
  display: none; background: none; border: none; color: var(--text);
  cursor: pointer; padding: 0.5rem;
}
.menu-toggle svg { width: 24px; height: 24px; }

.mobile-nav {
  display: none; flex-direction: column; gap: 0;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
}
.mobile-nav a {
  display: block; padding: 0.875rem 1.5rem;
  font-size: 0.9rem; color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--teal); background: var(--bg-section); }
.mobile-nav.open { display: flex; }

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}

/* ============================================
   Hero Sections
   ============================================ */
.hero {
  position: relative; padding: 5rem 0 4rem; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.2;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-label {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  color: var(--teal); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero h1 { font-size: 2.75rem; margin-bottom: 1.25rem; }
.hero p { font-size: 1.125rem; color: var(--text-muted); line-height: 1.8; max-width: 560px; }

.hero-buttons { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.75rem; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600; font-family: 'Noto Sans JP', sans-serif;
  border: none; cursor: pointer; transition: all var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--teal); color: var(--bg); }
.btn-primary:hover { background: var(--teal-dark); color: var(--bg); }
.btn-outline {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border-light);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }

/* ============================================
   Stats Row
   ============================================ */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat {
  padding: 2rem 1.5rem; text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-number { font-family: 'Noto Serif JP', serif; font-size: 2.5rem; color: var(--teal); }
.stat-label { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; }

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}

/* ============================================
   Section Headings
   ============================================ */
.section { padding: 4rem 0; }
.section-header { margin-bottom: 3rem; }
.section-label {
  font-size: 0.75rem; font-weight: 600; color: var(--teal);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.section-title { font-size: 2.25rem; color: var(--heading); margin-bottom: 0.75rem; }
.section-desc { font-size: 1rem; color: var(--text-muted); max-width: 560px; line-height: 1.8; }

/* ============================================
   Service Cards Grid (Homepage)
   ============================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.service-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--teal); background: var(--bg-card-hover);
  transform: translateY(-4px); box-shadow: var(--shadow);
}
.service-card-img {
  width: 100%; height: 200px; object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.service-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.service-card-number {
  font-family: 'Noto Serif JP', serif; font-size: 0.875rem;
  color: var(--teal); opacity: 0.6; margin-bottom: 0.5rem;
}
.service-card-name {
  font-family: 'Noto Serif JP', serif; font-size: 1.5rem;
  color: var(--heading); margin-bottom: 0.25rem;
}
.service-card-tagline {
  font-size: 0.8125rem; color: var(--teal); margin-bottom: 0.75rem; font-weight: 500;
}
.service-card-desc {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.7;
  flex: 1; margin-bottom: 1rem;
}
.service-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.service-card-rating { display: flex; align-items: center; gap: 0.35rem; font-size: 0.875rem; color: var(--heading); }
.service-card-rating svg { width: 16px; height: 16px; color: #facc15; }
.service-card-link {
  font-size: 0.8125rem; font-weight: 600; color: var(--teal);
  display: flex; align-items: center; gap: 0.3rem;
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Service Detail Page
   ============================================ */
.detail-hero { padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--border); }
.detail-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 2rem;
}
.detail-back:hover { color: var(--teal); }
.detail-number {
  font-family: 'Noto Serif JP', serif; font-size: 3rem;
  color: var(--teal); opacity: 0.3; line-height: 1;
}
.detail-name { font-size: 2.5rem; margin-top: 0.25rem; }
.detail-tagline { font-size: 1rem; color: var(--teal); margin-top: 0.5rem; font-weight: 500; }
.detail-intro { font-size: 1rem; color: var(--text-muted); margin-top: 1rem; max-width: 640px; line-height: 1.8; }
.detail-meta-row {
  display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem;
  font-size: 0.8125rem; color: var(--text-muted);
}
.detail-meta-row span { display: flex; align-items: center; gap: 0.35rem; }

.detail-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 3rem;
  padding: 3rem 0;
}
.detail-main h2 {
  font-size: 1.75rem; margin-bottom: 1rem; margin-top: 2.5rem;
}
.detail-main h2:first-child { margin-top: 0; }
.detail-main p { margin-bottom: 1rem; color: var(--text-muted); line-height: 1.8; }
.detail-main img {
  border-radius: var(--radius); border: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* Features list */
.features-list { list-style: none; margin: 1rem 0; }
.features-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.5rem 0; font-size: 0.9375rem; color: var(--text);
}
.features-list li svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: 0.15rem; }

/* Pros & Cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pros-box, .cons-box {
  background: var(--bg-section); border-radius: var(--radius-sm);
  padding: 1.25rem; border: 1px solid var(--border);
}
.pros-box h3, .cons-box h3 {
  font-family: 'Noto Sans JP', sans-serif; font-size: 0.875rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.pros-box h3 { color: var(--teal); }
.cons-box h3 { color: #f59e0b; }
.pros-box ul, .cons-box ul { list-style: none; }
.pros-box li, .cons-box li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.35rem 0; font-size: 0.875rem; color: var(--text-muted);
}
.pros-box li::before { content: "✓"; color: var(--teal); font-weight: 700; }
.cons-box li::before { content: "✗"; color: #f59e0b; font-weight: 700; }

@media (max-width: 768px) {
  .pros-cons { grid-template-columns: 1fr; }
}

/* Sidebar */
.detail-sidebar { position: sticky; top: 100px; }
.sidebar-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.sidebar-card h3 {
  font-family: 'Noto Sans JP', sans-serif; font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 1.25rem;
}
.sidebar-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.sidebar-row:last-child { border-bottom: none; }
.sidebar-row .label { color: var(--text-muted); }
.sidebar-row .value { color: var(--heading); font-weight: 500; }
.sidebar-chains { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.chain-tag {
  background: var(--bg-section); border: 1px solid var(--border);
  border-radius: 4px; padding: 0.2rem 0.5rem; font-size: 0.75rem; color: var(--text-muted);
}
.sidebar-cta { margin-top: 1.25rem; }
.sidebar-cta .btn { width: 100%; justify-content: center; }

/* Navigation between services */
.detail-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2rem 0; border-top: 1px solid var(--border); margin-top: 2rem;
}
.detail-nav a {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.875rem; color: var(--text-muted);
}
.detail-nav a:hover { color: var(--teal); }

@media (max-width: 768px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .detail-name { font-size: 2rem; }
}

/* ============================================
   Comparison Table
   ============================================ */
.comparison-table-wrap { overflow-x: auto; margin: 2rem 0; }
.comparison-table {
  width: 100%; border-collapse: collapse; min-width: 800px;
  font-size: 0.875rem;
}
.comparison-table caption {
  text-align: left; font-size: 0.8125rem; color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.comparison-table th, .comparison-table td {
  padding: 0.875rem 1rem; text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 600;
  color: var(--heading); background: var(--bg-section);
  font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em;
  position: sticky; top: 72px; z-index: 10;
}
.comparison-table td { color: var(--text-muted); }
.comparison-table tr:hover td { background: var(--bg-card); }
.comparison-table .service-name-cell {
  font-weight: 600; color: var(--heading);
}
.comparison-table .service-name-cell a { color: var(--heading); }
.comparison-table .service-name-cell a:hover { color: var(--teal); }
.check-yes { color: var(--teal); }
.check-no { color: var(--text-dim); }

/* Feature matrix */
.feature-matrix { margin: 3rem 0; }
.feature-matrix h2 { margin-bottom: 1.5rem; }

/* ============================================
   About Page
   ============================================ */
.about-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  margin: 2rem 0;
}
.about-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
}
.about-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--teal-glow); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.about-card-icon svg { width: 24px; height: 24px; color: var(--teal); }
.about-card h3 {
  font-family: 'Noto Sans JP', sans-serif; font-size: 1.125rem;
  font-weight: 600; color: var(--heading); margin-bottom: 0.5rem;
}
.about-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-list { max-width: 720px; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: 1.5rem 0;
}
.faq-item summary {
  font-family: 'Noto Sans JP', sans-serif; font-size: 1rem;
  font-weight: 600; color: var(--heading); cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.25rem; color: var(--teal); transition: transform var(--transition);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer {
  margin-top: 0.75rem; font-size: 0.9375rem; color: var(--text-muted); line-height: 1.8;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  text-align: center; padding: 4rem 0;
  border-top: 1px solid var(--border);
}
.cta-section h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--border); margin-top: 3rem;
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 2rem;
}
.footer-brand p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.7; margin-top: 0.75rem; max-width: 280px; }
.footer h4 {
  font-family: 'Noto Sans JP', sans-serif; font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--heading); margin-bottom: 0.75rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { font-size: 0.8125rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--teal); }
.footer-disclaimer p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.7; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-dim);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Utility
   ============================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-teal { color: var(--teal); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
