/* Kampuskauppa.fi – sivuston tyylit ("uusi ilme", lokakuu 2026)
   Rauhallinen luonnonvalkoinen pohja, musta teksti, yksi korostusväri (tummansininen).
   Fontit omalta palvelimelta (SIL Open Font License). */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #F5F4F0;
  --surface: #FFFFFF;
  --ink: #121212;
  --text: #2B2A27;
  --body: #4A4945;
  --muted: #5E5E5A;
  --muted-2: #6B6860;
  --line: #DDDAD2;
  --line-2: #E6E3DC;
  --ph: #E7E4DC;
  --navy: #1F2D4A;
  --navy-d: #121A2C;
  --navy-tint: #EEF1F6;
  --ok: #1E7A50;
  --err: #B3261E;
  --radius: 6px;
  --radius-sm: 4px;
  --head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; color: var(--ink); overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 99; }
.skip:focus { left: 10px; }

.eyebrow { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 14px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--body); max-width: 36em; margin: 0; }
.link { font-weight: 600; font-size: 15px; text-decoration: none; display: inline-block; padding: 10px 0; }
.link:hover { text-decoration: underline; }

/* Painikkeet */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: var(--radius-sm); border: 1px solid transparent; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-d); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ECEAE4; color: var(--ink); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Ylätunniste */
.utility { background: var(--ink); color: #E8E6E1; font-size: 13px; }
.utility .wrap { display: flex; justify-content: center; align-items: center; gap: 14px 32px; min-height: 38px; flex-wrap: wrap; text-align: center; }
.utility a { color: #fff; }
.utility .dot { color: #8C8A84; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.wordmark { font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.wordmark span { color: var(--navy); }
.wordmark:hover { color: var(--ink); }
.wordmark img { display: block; height: 46px; width: auto; }
.footer-logo img { display: block; height: 58px; width: auto; }
.footer-trust { display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; border-top: 1px solid #2A2A2A; padding: 28px 0; }
.footer-trust p { margin: 0; flex: 1; min-width: 220px; }
.ft-fiola img { display: block; height: 20px; width: auto; opacity: .92; }
.ft-badges { display: flex; align-items: center; gap: 24px; }
.ft-badges img { display: block; width: auto; height: 40px; }
.ft-badges img + img { height: 46px; }
.demo-note { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: rgba(255,255,255,.08); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; }
.demo-note a { color: #fff; font-weight: 600; }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.demo ol { margin: 0; padding: 0; list-style: none; counter-reset: d; display: flex; flex-direction: column; gap: 14px; }
.demo li { counter-increment: d; display: flex; gap: 14px; align-items: baseline; color: var(--body); }
.demo li::before { content: counter(d); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; transform: translateY(5px); }
.demo li b { color: var(--ink); font-weight: 600; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { text-decoration: none; font-size: 15px; font-weight: 500; }
.main-nav a[aria-current] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.main-nav .nav-extra { display: none; }
.main-nav .nav-cta { margin-top: 24px; color: #fff; border-bottom: 0; text-align: center; font-size: 16px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-link { min-height: 44px; min-width: 44px; justify-content: center; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; font-weight: 500; }
.cart-link b { font-weight: 600; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 11px; cursor: pointer; }
.menu-toggle span:not(.sr) { display: block; height: 1.5px; background: var(--ink); margin: 5px 0; transition: .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.flash { background: #E8F3EC; color: #12503A; border-bottom: 1px solid #CBE4D5; padding: 12px 0; font-size: 15px; }
.flash-error { background: #FBEAE8; color: #7D1D16; border-color: #F1CBC6; }
.flash a { font-weight: 600; color: inherit; }

/* Osiot */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section.tight { padding-top: 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-white + .section-white { border-top: 0; }
.section-dark { background: var(--ink); color: #D9D7D2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #9A9891; }
.section-navy { background: var(--navy); color: #E6E9F0; }
.photo-band { position: relative; min-height: clamp(380px, 52vw, 640px); display: flex; align-items: flex-end; overflow: hidden; background: #2b6f78; }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.photo-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72) 100%), linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 55%); }
.photo-band-text { position: relative; z-index: 1; padding-bottom: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.photo-band-text h2 { color: #fff; max-width: 14em; }
.photo-band-text .eyebrow { color: rgba(255,255,255,.85); margin: 0; }
.hero-photo { min-height: clamp(520px, 78vh, 760px); }
.hero-photo::after { background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.78) 100%), linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 70%); }
.hero-photo + .section { padding-top: clamp(56px, 7vw, 96px); }
.hero-photo h1 { color: #fff; max-width: 13em; }
.hero-photo .lead { color: rgba(255,255,255,.9); max-width: 34em; }
.hero-photo .btn-row { margin-top: 8px; }
.blur-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(72px, 10vw, 128px) 0; }
.blur-band > img { position: absolute; top: -20px; left: -20px; width: calc(100% + 40px); height: calc(100% + 40px); max-width: none; object-fit: cover; }
.blur-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,52,.55), rgba(20,30,52,.78)); }
.blur-band-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.blur-band-text h1, .blur-band-text h2 { color: #fff; }
.blur-band-text .lead { color: rgba(255,255,255,.9); max-width: 36em; }
.blur-band-text .eyebrow { color: rgba(255,255,255,.8); margin: 0; }
.blur-band-text .btn-row { justify-content: center; margin-top: 6px; }
.blur-hero { padding: clamp(88px, 12vw, 150px) 0; }
.blur-hero h1 { font-size: clamp(3rem, 7vw, 5rem); line-height: 1; }
.addon { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.addon small { color: var(--muted-2); }
.calc .calc-addon { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.calc .calc-addon input { width: 18px; height: 18px; }
.addon-list { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--body); }
.addon-list strong { width: 100%; font-size: 13px; color: var(--ink); }
.incl-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 600; font-size: 15px; backdrop-filter: blur(4px); }
.price-incl { display: flex; flex-direction: column; align-items: flex-end; font-weight: 600; white-space: nowrap; line-height: 1.25; }
.price-incl small { font-weight: 500; font-size: 12px; color: var(--navy); background: var(--navy-tint); padding: 2px 8px; border-radius: 999px; margin-top: 4px; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.section-navy .eyebrow { color: #A9B3C6; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head p { margin: 12px 0 0; color: var(--body); max-width: 40em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.split.top { align-items: start; }
.split-wide-l { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.split-wide-r { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.media { background: var(--ph); border-radius: var(--radius); overflow: hidden; position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.contain img { object-fit: contain; padding: 8%; }
.r-45 { aspect-ratio: 4 / 5; } .r-11 { aspect-ratio: 1; } .r-hero { aspect-ratio: 4 / 4.4; } .r-56 { aspect-ratio: 5 / 6; } .r-43 { aspect-ratio: 4 / 3; } .r-169 { aspect-ratio: 16 / 10; }

/* Hero */
.hero { padding: clamp(48px, 6vw, 72px) 0 clamp(64px, 7vw, 88px); }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-copy .eyebrow { margin: 0; }
.stats { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); margin: 0; }
.stats div { margin: 0; }
.stats dt { font-family: var(--head); font-weight: 700; font-size: 26px; line-height: 1.1; }
.stats dd { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* Tuotekortti */
.card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); }
.card:hover { color: var(--ink); }
.card .media img { transition: transform .5s ease; }
.card:hover .media img { transform: scale(1.03); }
.card .media.contain { background: #ECE9E2; }
.card-title { font-weight: 600; font-size: 17px; line-height: 1.3; }
.card-meta { font-size: 14px; color: var(--muted); }
.tag { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }

/* Rivilistat ja vaiheet */
.rows { border-bottom: 1px solid var(--line); }
.rows > div, .rows > a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; }
.rows .r-name { font-weight: 600; }
.rows .r-val { color: var(--body); white-space: nowrap; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.steps .n { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--navy); }
.steps h3 { font-size: 20px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid #EAE7E0; font-size: 14px; }
.spec span:first-child { color: var(--muted-2); }
.spec span:last-child { text-align: right; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
.facts div { padding: 18px 16px; border-left: 1px solid var(--line); }
.facts div:first-child { padding-left: 0; border-left: 0; }
.facts dt { font-size: 13px; color: var(--muted-2); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 18px; }

/* Lainaus */
.quote { max-width: 960px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 26px; align-items: center; }
.quote blockquote { margin: 0; font-family: var(--head); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.35; letter-spacing: -0.015em; color: #fff; }
.quote figcaption { font-size: 15px; color: #C9D0DD; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.quotes figure { margin: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 32px; }
.quotes blockquote { margin: 0 0 18px; font-size: 1.05rem; }
.quotes figcaption { color: var(--muted); font-size: 14px; }

/* Hinnasto ja laskuri */
.table-box { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; }
.price-table th, .price-table td { padding: 14px 10px; border-bottom: 1px solid #EEECE6; white-space: nowrap; }
.price-table thead th { background: var(--ink); color: #fff; font-weight: 600; }
.price-table tbody th { font-weight: 600; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table .hl { background: var(--navy-tint); color: var(--navy); font-weight: 600; }
.calc { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; }
.calc-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.calc input { height: 48px; border: 1px solid #CFCBC2; border-radius: var(--radius-sm); padding: 0 14px; font: inherit; font-weight: 400; background: #fff; }
.calc-result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.calc-result small { display: block; color: var(--muted); font-size: 13px; }
.calc-result strong { font-family: var(--head); font-size: 30px; font-weight: 700; }
.calc-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }

/* UKK */
.faq-list { border-bottom: 1px solid var(--line); }
.faq { border-top: 1px solid var(--line); padding: 22px 0; }
.faq summary { min-height: 44px; align-items: center; list-style: none; cursor: pointer; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-a { margin: 12px 0 0; color: var(--muted); }
.faq-topic { margin: 40px 0 8px; font-size: 1.2rem; }

/* Lomakkeet */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; margin: 0; }
.field input:not([type=checkbox]):not([type=file]), .field select, .field textarea { width: 100%; height: 48px; border: 1px solid #CFCBC2; border-radius: var(--radius-sm); background: #fff; color: var(--ink); padding: 0 14px; font: 400 16px/1.4 var(--sans); }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31,45,74,.12); }
.field input[type=file] { font-size: 14px; padding: 12px; border: 1px dashed #CFCBC2; border-radius: var(--radius-sm); background: #FAF9F6; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.form-dark .field input:not([type=checkbox]):not([type=file]), .form-dark .field select, .form-dark .field textarea { background: #1C1C1C; border-color: #3A3A3A; color: #fff; }
.form-dark .field input[type=file] { background: #1C1C1C; border-color: #3A3A3A; color: #D9D7D2; }
.form-dark .check a { color: #fff; }
.alert { grid-column: 1 / -1; background: #FBEAE8; color: #7D1D16; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 15px; }
.alert p { margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.contact-list a { text-decoration: none; }

/* Sivujen yläosat */
.crumbs { font-size: 13px; color: var(--muted-2); padding-top: 28px; }
.crumbs a { color: var(--muted-2); }
.page-hero { padding: 40px 0 56px; }
.page-hero h1 { margin: 10px 0 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font: 500 14px/1 var(--sans); color: var(--ink); text-decoration: none; cursor: pointer; }
.chip span { color: var(--muted); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.active span { color: #B5B3AD; }
.band { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 28px; background: var(--bg); border-radius: var(--radius); flex-wrap: wrap; }
.band-title { font-weight: 600; font-size: 17px; }
.band-text { color: var(--muted); font-size: 15px; }
.option-card { border-radius: var(--radius); padding: 44px; display: flex; flex-direction: column; gap: 18px; }
.option-card.navy { background: var(--navy); color: #DCE1EA; }
.option-card.navy h3 { color: #fff; }
.option-card.navy .eyebrow { color: #A9B3C6; margin: 0; }
.option-card.white { background: var(--surface); border: 1px solid var(--line-2); }
.option-card.white .eyebrow { margin: 0; }
.option-card h3 { font-size: 30px; }
.option-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.option-card li::before { content: '— '; }
.option-card .btn { align-self: flex-start; margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery figcaption { font-size: 14px; color: var(--muted); }
.gallery figure[hidden] { display: none; }

/* Tuotesivu */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(36px, 5vw, 64px); align-items: start; padding: 32px 0 96px; }
.pgallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pgallery .media { background: #ECE9E2; }
.pgallery .media:first-child { grid-column: 1 / -1; aspect-ratio: 1; }
.pgallery .media:not(:first-child) { aspect-ratio: 1; }
.pgallery .media img { object-fit: contain; padding: 6%; }
.pinfo { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 100px; }
.pinfo h1 { font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.pinfo .lead { font-size: 17px; }
.price-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.price-line strong { font-family: var(--head); font-weight: 700; font-size: 32px; }
.price-line span { color: var(--muted-2); font-size: 14px; }
.opt-group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.opt-group legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 17px; border: 1px solid #D6D2C9; border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) { border: 2px solid var(--navy); padding: 14px 16px; }
.opt:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.opt-name { display: flex; flex-direction: column; font-weight: 600; font-size: 15px; }
.opt-name small { font-weight: 400; font-size: 13px; color: var(--muted-2); }
.opt-price { font-weight: 600; white-space: nowrap; }
.add-actions { display: flex; flex-direction: column; gap: 10px; }
.add-note { margin: 0; font-size: 13px; color: var(--muted-2); text-align: center; }
.details { border-bottom: 1px solid var(--line); }
.details details { border-top: 1px solid var(--line); padding: 18px 0; }
.details summary { min-height: 44px; align-items: center; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.details details[open] summary::after { content: '–'; }
.details .d-body { margin-top: 12px; font-size: 15px; color: var(--body); }
.details .d-body ul { margin: 0; padding-left: 18px; }
.details .d-body > :last-child { margin-bottom: 0; }

/* Teksti */
.prose { font-size: 1.05rem; color: var(--text); }
.prose h2 { font-size: 1.75rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; }
.prose a { font-weight: 500; }
.prose blockquote { border-left: 2px solid var(--ink); margin: 1.5em 0; padding-left: 1.2em; font-family: var(--head); font-size: 1.2rem; }
.post-hero { border-radius: var(--radius); width: 100%; }
.cta-box { margin-top: 48px; padding: 28px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

/* Tarjouskori */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: start; }
.cart-items { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 8px 24px; }
.cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) 84px 36px; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid #EEECE6; }
.cart-item img { width: 72px; height: 72px; object-fit: contain; background: #ECE9E2; border-radius: var(--radius-sm); padding: 4px; }
.cart-item h3 { font-size: 16px; font-family: var(--sans); letter-spacing: 0; }
.cart-item h3 a { text-decoration: none; }
.cart-item p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.ci-qty { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.ci-qty input { height: 40px; border: 1px solid #CFCBC2; border-radius: var(--radius-sm); padding: 0 10px; font: inherit; font-size: 15px; width: 100%; }
.ci-remove { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--muted); }
.ci-remove:hover { border-color: var(--err); color: var(--err); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.cart-form { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px; position: sticky; top: 100px; }
.cart-form h2 { font-size: 1.4rem; margin-bottom: 18px; }

.thanks { min-height: 55vh; display: grid; align-items: center; }
.thanks-mark { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; margin: 0 auto 24px; font-size: 26px; }

/* Alatunniste */
.site-footer { background: var(--ink); color: #A6A49E; font-size: 14px; padding: 72px 0 32px; }
.site-footer a { color: #A6A49E; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.footer-grid h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; color: #fff; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-brand .wordmark { color: #fff; }
.footer-brand p { max-width: 28em; margin: 14px 0; }
.newsletter { display: flex; gap: 8px; max-width: 400px; }
.newsletter input { flex: 1; min-width: 0; height: 46px; border: 1px solid #3A3A3A; background: #1C1C1C; color: #fff; border-radius: var(--radius-sm); padding: 0 14px; font: inherit; }
.newsletter button { height: 46px; padding: 0 18px; border: 0; border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
.social { display: flex; gap: 14px; margin-top: 18px; }
.footer-bottom { border-top: 1px solid #2A2A2A; padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Responsiivisuus */

/* ---------- Merkkisuunnittelija ---------- */
.designer { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.designer-stage { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
.d-canvas-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: #16a3b0; cursor: copy; outline: 2px dashed transparent; outline-offset: -10px; transition: outline-color .15s; }
.d-canvas-wrap.drag { outline-color: #fff; }
.d-canvas-wrap canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.d-drop-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: rgba(255,255,255,.94); color: var(--ink); border-radius: 999px; padding: 10px 18px; font-size: 14px; display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.15); white-space: nowrap; }
.d-drop-hint span { font-size: 12px; color: var(--muted); }
.d-drop-hint[hidden] { display: none; }
.d-surface { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--body); align-items: center; }
.d-surface label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.designer-controls { display: flex; flex-direction: column; gap: 22px; }
.designer-controls fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 18px 0 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.designer-controls legend { font-weight: 600; font-size: 15px; padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.d-file { display: flex; align-items: center; justify-content: center; min-height: 56px; border: 1px dashed #BDB8AD; border-radius: var(--radius-sm); background: #FAF9F6; cursor: pointer; font-weight: 500; font-size: 15px; padding: 0 16px; text-align: center; }
.d-file:hover { border-color: var(--ink); }
.d-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.d-range { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.d-range output { font-weight: 600; float: right; }
.d-range input { width: 100%; accent-color: var(--navy); }
.d-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.d-chips label { cursor: pointer; }
.d-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.d-chips span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; background: #fff; }
.d-chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.d-chips input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.d-color-row { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.d-color-row[hidden] { display: none; }
.d-color-row select { height: 44px; border: 1px solid #CFCBC2; border-radius: var(--radius-sm); padding: 0 12px; font: inherit; background: #fff; }
.d-swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.d-swatches button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); background: var(--c); cursor: pointer; padding: 0; }
.d-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.d-swatches input[type=color] { width: 36px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; }
.d-price { background: var(--bg); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.d-price small { color: var(--muted); font-size: 12px; }
.d-price strong { font-size: 20px; }
.d-price span { font-size: 13px; color: var(--muted); }
.d-actions { display: flex; flex-direction: column; gap: 10px; }
.ci-files { color: var(--navy); font-weight: 500; }
.d-warn { margin: 0; font-size: 14px; line-height: 1.5; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--navy-tint); color: var(--navy); }
.d-warn.warn { background: #FFF4DC; color: #6B4A00; }
.d-warn[hidden] { display: none; }
.d-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 960px) {
  .designer { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  /* Esikatselu pysyy näkyvissä, kun valintoja vierittää */
  .designer-stage { top: 76px; z-index: 5; background: #fff; padding: 8px 0 10px; margin: 0 -24px; padding-left: 24px; padding-right: 24px; box-shadow: 0 10px 16px -14px rgba(0,0,0,.35); }
  .d-canvas-wrap { width: min(100%, 38vh); margin: 0 auto; }
  .d-surface { justify-content: center; font-size: 13px; }
  .d-drop-hint { bottom: 10px; padding: 7px 12px; font-size: 12px; }
}

@media (max-width: 1080px) {
  .main-nav { gap: 20px; }
  .cart-link .cart-label { display: none; }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--bg); flex-direction: column; gap: 0; padding: 96px 28px 28px; box-shadow: -20px 0 60px rgba(0,0,0,.12); transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s; z-index: -1; overflow-y: auto; }
  .menu-open .main-nav { transform: none; visibility: visible; transition: transform .25s; }
  .main-nav a { font-size: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-extra { display: block; }
  .header-actions .btn { display: none; }
  .split, .split-wide-l, .split-wide-r, .product-layout, .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .grid-4, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .quotes { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pinfo, .cart-form { position: static; }
}
@media (max-width: 640px) {

  .header-inner { height: 64px; }
  .wordmark img { height: 38px; }
  .demo { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .utility .hide-m { display: none; }
  .grid-2, .steps, .form, .calc-inputs, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-4, .gallery { gap: 12px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts div:nth-child(4) { border-top: 1px solid var(--line); }
  .option-card { padding: 28px; }
  .wrap { padding: 0 24px; }
  .btn-row { gap: 10px; }
  .btn-row .btn { flex: 1 1 100%; }
  .photo-band-text { padding-bottom: 48px; }
  .hero-photo .photo-band-text { padding-top: 32px; }
  .cart-item { grid-template-columns: 56px minmax(0, 1fr) 64px 32px; gap: 10px; }
  .cart-item img { width: 56px; height: 56px; }
  .newsletter { flex-direction: column; max-width: none; }
  .designer-stage { top: 64px; }
  h1 { font-size: clamp(1.9rem, 8.4vw, 2.5rem); }
  h2 { font-size: clamp(1.55rem, 6.6vw, 2rem); }
  .blur-hero h1 { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .hero-photo { min-height: 0; padding-top: 140px; }
  .photo-band-text { gap: 14px; }
  .newsletter input { flex: none; height: 48px; font-size: 16px; }
  .newsletter button { height: 48px; }
  input, select, textarea, .field input:not([type=checkbox]):not([type=file]), .calc input { font-size: 16px; }
  .field input[type=file] { font-size: 15px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer-grid > .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-grid ul a, .footer-bottom a, .social a { display: inline-block; padding: 4px 0; }
  .footer-trust { gap: 16px; }
  /* Tuotekuvat: vaakasuuntainen pyyhkäisy pitkän pinon sijaan */
  .pgallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -24px; padding: 0 24px; scrollbar-width: none; }
  .pgallery::-webkit-scrollbar { display: none; }
  .pgallery .media, .pgallery .media:first-child { flex: 0 0 86%; aspect-ratio: 1; scroll-snap-align: center; }
  .pgallery .media:only-child { flex-basis: 100%; }
  /* Mallikortit ja hinnasto */
  .card .media.r-45 { aspect-ratio: 4 / 3; }
  .price-table { font-size: 13px; }
  .price-table th, .price-table td { padding: 12px 6px; }
  .incl-pill { font-size: 14px; padding: 9px 14px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px 24px; padding: 0 24px 4px; scrollbar-width: none; }
  .filters .chip { flex: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card .media img { transition: none; } }
