/* Shakkikoulu.fi — Landing page */
:root {
    --ink: #1c1917; --paper: #f7f4ef; --paper-warm: #f0ebe2;
    --gold: #b8960c; --gold-muted: #d4b94e;
    --stone: #78716c; --stone-light: #d6d3d1;
    --board-light: #ebecd0; --board-dark: #779556; --board-frame: #3d3a37;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', sans-serif; background: var(--paper); color: var(--ink); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.2; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--ink); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section + .section { border-top: 1px solid var(--stone-light); }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 2.5rem; }
.section-subtitle { color: var(--stone); margin-bottom: 2rem; margin-top: -1.5rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--stone-light); }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 1.25rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.header-nav { display: flex; align-items: center; gap: 1.75rem; }
.header-nav > a { font-size: 0.9rem; color: var(--stone); text-decoration: none; font-weight: 500; }
.header-nav > a:hover { color: var(--ink); }
.lang-switch { display: flex; gap: 0.1rem; border: 1px solid var(--stone-light); border-radius: 2px; overflow: hidden; }
.lang-switch a { padding: 0.3rem 0.6rem; font-size: 0.8rem; font-weight: 600; color: var(--stone); transition: all 0.2s; }
.lang-switch a.active { background: var(--ink); color: var(--paper); }
.lang-switch a:hover:not(.active) { background: var(--paper-warm); color: var(--ink); }

/* Buttons */
.btn { display: inline-block; padding: 0.8rem 2rem; font-size: 0.95rem; font-weight: 600; font-family: 'Source Sans 3', sans-serif; text-decoration: none; border: none; cursor: pointer; transition: all 0.2s; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2c2825; color: var(--paper); }
.btn-ghost { background: none; color: var(--ink); border: 1.5px solid var(--stone-light); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-muted); color: var(--ink); }
.btn-ghost-light { background: none; color: var(--stone-light); border: 1.5px solid var(--stone); }
.btn-ghost-light:hover { border-color: var(--paper); color: var(--paper); }

/* Hero */
.hero { padding: 5rem 0 4rem; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--gold); }
.hero-sub { font-size: 1.15rem; color: var(--stone); margin-bottom: 2rem; max-width: 440px; }
.hero-numbers { display: flex; gap: 2.5rem; margin-bottom: 2.5rem; }
.hero-num { display: flex; flex-direction: column; }
.hero-num strong { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; line-height: 1; }
.hero-num span { font-size: 0.8rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-actions { display: flex; gap: 1rem; }

/* Chess board */
.board-wrap { display: flex; justify-content: center; }
.chess-board { width: 100%; max-width: 400px; aspect-ratio: 1; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); border: 6px solid var(--board-frame); border-radius: 2px; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.sq { display: flex; justify-content: center; align-items: center; }
.sq-l { background: var(--board-light); }
.sq-d { background: var(--board-dark); }
.pc { width: 82%; height: 82%; opacity: 0; filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.2)); animation: pieceIn 0.4s ease forwards; }
@keyframes pieceIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feat { padding: 1.75rem 0; }
.feat h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.feat p { color: var(--stone); font-size: 0.95rem; line-height: 1.65; }

/* Paths */
.paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.path-card { padding: 2rem; border: 1px solid var(--stone-light); background: var(--paper); transition: border-color 0.3s; }
.path-card:hover { border-color: var(--gold-muted); }
.path-card h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.path-age { font-size: 0.85rem; color: var(--gold); font-weight: 600; margin-bottom: 0.75rem; }
.path-card p { color: var(--stone); font-size: 0.95rem; }
.path-count { margin-top: 1rem; font-weight: 600; font-size: 0.9rem; color: var(--ink); }

/* Schools */
.school-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.school-list { list-style: none; margin: 1.5rem 0 2rem; }
.school-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--stone-light); }
.school-list li:last-child { border-bottom: none; }
.school-list strong { display: block; font-weight: 600; }
.school-list span { font-size: 0.9rem; color: var(--stone); }
.preview { border: 1px solid var(--stone-light); overflow: hidden; background: var(--paper); }
.preview-head { background: var(--ink); color: var(--paper); padding: 0.75rem 1.25rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.preview-badge { background: var(--gold); color: var(--ink); padding: 0.15rem 0.5rem; font-size: 0.7rem; font-weight: 700; }
.preview-stats { display: flex; border-bottom: 1px solid var(--stone-light); }
.preview-stat { flex: 1; text-align: center; padding: 0.6rem; border-right: 1px solid var(--stone-light); }
.preview-stat:last-child { border-right: none; }
.preview-stat strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; }
.preview-stat small { font-size: 0.65rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.05em; }
.preview-rows { padding: 0.75rem 1.25rem; }
.preview-row { display: grid; grid-template-columns: 1fr 3rem 1fr; gap: 0.5rem; padding: 0.5rem 0; font-size: 0.85rem; align-items: center; border-bottom: 1px solid var(--stone-light); }
.preview-row:last-child { border-bottom: none; }
.bar { height: 5px; background: var(--stone-light); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); border-radius: 3px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.pricing-card { padding: 2.5rem 2rem; border: 1px solid var(--stone-light); background: var(--paper); position: relative; transition: border-color 0.3s; }
.pricing-card:hover { border-color: var(--gold-muted); }
.pricing-popular { border-color: var(--gold); border-width: 2px; }
.pricing-badge { position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--ink); padding: 0.2rem 1rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.pricing-price { display: flex; align-items: baseline; gap: 0.35rem; margin-bottom: 1.5rem; }
.pricing-amount { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 700; line-height: 1; }
.pricing-period { font-size: 0.9rem; color: var(--stone); }
.pricing-features { list-style: none; margin-bottom: 2rem; }
.pricing-features li { padding: 0.45rem 0; font-size: 0.9rem; color: var(--ink); border-bottom: 1px solid var(--stone-light); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; margin-right: 0.5rem; color: var(--gold); font-weight: 600; }
.pricing-cta { display: block; text-align: center; width: 100%; }
.pricing-note { margin-top: 0.75rem; font-size: 0.8rem; color: var(--stone); text-align: center; }

/* Pricing: orgs (school + club) */
.pricing-orgs { border-top: 1px solid var(--stone-light); padding-top: 3rem; }
.pricing-orgs-title { font-size: 1.5rem; margin-bottom: 2rem; text-align: center; }
.pricing-org-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 750px; margin: 0 auto; }
.pricing-org-card { padding: 2rem; border: 1px solid var(--stone-light); background: var(--paper); }
.pricing-org-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 0.75rem; }
.pricing-org-extra { font-size: 0.85rem; color: var(--gold); font-weight: 600; margin-bottom: 1rem; margin-top: -0.5rem; }

/* Why chess */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.why-item { padding-left: 1.25rem; border-left: 3px solid var(--gold-muted); }
.why-item h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.why-item p { color: var(--stone); font-size: 0.95rem; }

/* FAQ */
.faq-list { max-width: 700px; }
.faq-item { border-bottom: 1px solid var(--stone-light); }
.faq-q { padding: 1rem 0; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--stone); font-weight: 400; flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a { max-height: 0; overflow: hidden; color: var(--stone); line-height: 1.7; transition: max-height 0.35s ease, padding 0.2s; }
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 1rem; }

/* CTA */
.cta-section { background: var(--ink); color: var(--paper); padding: 4rem 0; }
.section + .cta-section { border-top: none; }
.cta-inner { text-align: center; }
.cta-inner .section-title { color: var(--paper); }
.cta-inner p { color: var(--stone); margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; }

/* Footer */
.site-footer { padding: 1.5rem 2rem; text-align: center; font-size: 0.8rem; color: var(--stone); border-top: 1px solid var(--stone-light); }
.footer-links { margin-top: 0.4rem; }
.footer-links a { color: var(--stone); text-decoration: none; margin: 0 0.5rem; }
.footer-links a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .board-wrap { order: -1; margin-bottom: 1rem; }
    .chess-board { max-width: 300px; }
    .hero-sub { margin: 0 auto 2rem; }
    .hero-numbers { justify-content: center; }
    .hero-actions { justify-content: center; }
    .feat-grid, .paths-grid, .why-grid { grid-template-columns: 1fr; }
    .school-layout { grid-template-columns: 1fr; }
    .preview { max-width: 360px; margin: 0 auto; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 3rem; }
    .pricing-org-grid { grid-template-columns: 1fr; }
    .header-nav > a { display: none; }
    .cta-actions { flex-direction: column; align-items: center; }
}
@media (max-width: 600px) {
    .hero { padding: 3rem 0; }
    .section { padding: 3.5rem 0; }
    .hero-numbers { gap: 1.5rem; }
}