/* Jonatan Spaces – perustyylit */
:root {
  --bg: #faf8f5;
  --bg-alt: #f1ede6;
  --surface: #ffffff;
  --text: #1f2523;
  --muted: #5d6662;
  --line: #e4ded4;
  --accent: #2f6b5e;
  --accent-dark: #24554a;
  --accent-soft: #e3eeea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31,37,35,.04), 0 8px 24px rgba(31,37,35,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 3.8vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }

/* Napit */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: .85em 1.4em; border-radius: 999px; border: 2px solid var(--accent); font-size: 1rem; cursor: pointer; transition: background .2s, border-color .2s, color .2s; font-family: inherit; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent); }
.btn-small { padding: .5em 1.1em; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,248,245,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55em; text-decoration: none; color: var(--accent); }
.logo-mark { width: 34px; height: 34px; }
.logo-text { color: var(--text); font-size: 1.22rem; letter-spacing: -.01em; font-weight: 400; }
.logo-text strong { font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.site-nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.4em; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5em 1.4em; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: .4em; }
.caption { font-size: .85rem; color: var(--muted); margin: .7em 0 0; text-align: center; }

/* Ennen/jälkeen */
.ba { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #ddd; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; box-shadow: 0 0 6px rgba(0,0,0,.25); }
.ba-handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 1.1rem; letter-spacing: 2px; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible { opacity: .01; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.ba-label { position: absolute; top: 12px; background: rgba(31,37,35,.7); color: #fff; font-size: .78rem; font-weight: 600; padding: .3em .75em; border-radius: 999px; pointer-events: none; letter-spacing: .03em; }
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; }

/* Osiot */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-sub { color: var(--muted); }

/* Kortit */
.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; }
.card p { color: var(--muted); }
.card-accent { border-color: var(--accent); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-left: 1.6em; margin-bottom: .45em; font-size: .96rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: .95em; height: .55em; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); transform-origin: center; }
.card .checklist { margin-top: auto; margin-bottom: 0; }
.card p + .checklist { margin-top: .4em; }

/* Esimerkit */
.examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.example { margin: 0; }
.example figcaption { margin-top: .8em; font-size: .92rem; color: var(--muted); }
.example figcaption strong { color: var(--text); }
.example-plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; gap: 28px; padding: 24px; align-items: center; }
.plan-wrap { background: #fff; border-radius: 10px; }
.plan-wrap img { height: 380px; width: auto; }
.plan-text p { color: var(--muted); }
.plan-text .checklist { margin-bottom: 1.4em; }

/* Hinnasto */
.pricing { align-items: stretch; }
.price-card { text-align: left; }
.price { font-size: 2.6rem; font-weight: 750; letter-spacing: -.02em; margin: .1em 0 .1em; color: var(--text); line-height: 1.1; }
.card .price { color: var(--text); }
.price-from { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-unit { font-size: 1.05rem; font-weight: 500; color: var(--muted); }
.price-note { font-size: .95rem; margin-bottom: 1.2em; min-height: 1.5em; }
.price-card .checklist { margin-top: 0; margin-bottom: 1.6em; }
.price-card .btn { margin-top: auto; }
.price-featured { border: 2px solid var(--accent); transform: translateY(-8px); box-shadow: 0 12px 36px rgba(47,107,94,.16); }
.badge { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: .3em .9em; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.pricing-footnote { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 36px; }

/* Vaiheet */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.step { background: var(--surface); border-radius: var(--radius); padding: 30px 28px; border: 1px solid var(--line); }
.step p { color: var(--muted); margin: 0; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 16px; }

/* UKK */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* Tilaa */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-info p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 1.6em 0 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .3em .8em; align-items: baseline; }
.contact-list li span { min-width: 7em; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.order-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75em .9em; border: 1px solid #d3ccc0; border-radius: 10px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { resize: vertical; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
input[type="file"] { padding: .6em; background: var(--bg); border-style: dashed; cursor: pointer; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; border: 0; background: var(--accent); color: #fff; padding: .45em 1em; border-radius: 999px; margin-right: .8em; cursor: pointer; }
.file-note { background: var(--accent-soft); border-radius: 10px; padding: 14px 16px; font-size: .9rem; color: var(--text); }
.form-small { font-size: .8rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* Footer */
.site-footer { background: #1f2523; color: #c9cfcc; padding: 48px 0 40px; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; }
.site-footer .logo-footer { color: #3f8f7c; }
.logo-footer .logo-text { color: #fff; }
.footer-small { margin: .6em 0 0; color: #9aa39f; }
.footer-meta { text-align: right; }
.footer-meta p { margin: 0 0 .3em; }
.site-footer a { color: #cfe3dc; }
.disclaimer { grid-column: 1 / -1; border-top: 1px solid #39413e; padding-top: 20px; margin: 8px 0 0; color: #9aa39f; font-size: .85rem; }

/* Responsiivisuus */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .cards-3, .steps { grid-template-columns: 1fr; }
  .price-featured { transform: none; }
  .pricing .price-featured { order: -1; }
  .examples { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.05); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 48px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .example-plan { grid-template-columns: 1fr; justify-items: center; }
  .plan-wrap img { height: 420px; }
  .form-2 { grid-template-columns: 1fr; }
  .order-form { padding: 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
  .card, .step { padding: 24px 22px; }
}

/* Kiitos-sivu */
.thanks { min-height: calc(100vh - 68px - 160px); display: grid; place-items: center; padding: 80px 0; text-align: center; }
.thanks-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px 36px; max-width: 620px; margin: 0 auto; }
.thanks-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 20px; font-size: 2rem; font-weight: 700; }
.thanks-card p { color: var(--muted); }

/* Language switcher */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-nav { margin-left: auto; margin-right: 18px; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-size: .82rem; font-weight: 650; letter-spacing: .04em; }
.lang-switch a { color: var(--muted); text-decoration: none; padding: .35em .45em; border-radius: 6px; }
.lang-switch a:hover { color: var(--accent); background: var(--accent-soft); }
.lang-switch a.is-active { color: var(--accent-dark); background: var(--accent-soft); }
@media (max-width: 820px) {
  .site-nav { margin-left: 0; margin-right: 0; }
  .header-actions { margin-left: auto; gap: 10px; }
  .lang-switch { font-size: .78rem; }
}


/* SEO landing + footer nav */
.card-more { margin: 14px 0 0; font-size: .95rem; font-weight: 600; }
.card-more a { text-decoration: none; }
.card-more a:hover { text-decoration: underline; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .55em 1.1em; margin-top: 14px; }
.footer-nav a { text-decoration: none; font-weight: 600; font-size: .9rem; }
.footer-nav a:hover { text-decoration: underline; }
.page-hero { padding-top: 48px; }
.page-price { max-width: 360px; margin-inline: auto; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose .checklist { margin: 0 0 1.2em; }
.example-plan-solo { max-width: 920px; margin: 0 auto; }
.related-links a { font-weight: 600; text-decoration: none; }
.related-links a:hover { text-decoration: underline; }
