/* Ääniartistien liitto — styles */
/* Light only, like the WordPress site. Layout: matches the WordPress site — white page, pale grey rounded cards, #0170B9 pill buttons, #083D60 navy, DM Sans + Forum */
:root {
  --paper: #FFFFFF;
  --card: #FAFAFA;
  --tint: #F4F6F8;
  --ink: #000000;
  --text: #3A3A3A;
  --muted: #6A6A6A;
  --line: #E3E3E3;
  --accent: #0170B9;
  --accent-text: #0170B9;
  --accent-ink: #FFFFFF;
  --navy: #083D60;
  --on-navy: #FFFFFF;
  --focus: #0170B9;
  --ok: #1F7A4A;
  --display: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Forum", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Sans", system-ui, sans-serif;
  --radius: 12px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
h2 { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 1rem/1 var(--body); padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; fill: var(--navy); }
.brand-text { font: 500 1.08rem/1.1 var(--display); color: var(--ink); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav-login { padding-left: 18px; border-left: 1px solid var(--line); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s; margin: 0 auto; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
  .nav-login { border-left: 0; padding-left: 0; }
  .nav .btn { margin-top: 16px; }
}

/* Hero */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 400 .9rem/1.3 var(--body); color: var(--muted); margin-bottom: 26px; }
.eyebrow .nv { background: var(--navy); color: var(--on-navy); padding: 3px 8px; }
.on-air { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #E5432D; box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229,67,45,.55); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
.hero h1 { font-size: clamp(3rem, 9vw, 6.6rem); font-weight: 300; letter-spacing: -0.04em; line-height: .98; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.wave { display: flex; align-items: center; justify-content: center; gap: clamp(4px, .7vw, 7px); height: clamp(180px, 30vw, 340px); }
.wave i { display: block; width: clamp(5px, .8vw, 9px); border-radius: 99px; background: var(--navy); height: var(--h); transform-origin: center; animation: speak 1.6s ease-in-out infinite; animation-delay: var(--d); }
.wave i.hot { background: var(--accent); }
@keyframes speak { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .wave i, .on-air { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .wave { order: -1; height: 120px; justify-content: flex-start; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: var(--tint); }
.section-ink { background: var(--navy); color: var(--on-navy); }
.section-ink h2 { color: var(--on-navy); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 44em; }
.section-head h2, .contact h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.kicker { font: 600 .74rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.kicker b { font-weight: 500; color: var(--muted); margin-right: .7em; }
.section-ink .kicker, .section-ink .kicker b { color: rgba(255,255,255,.72); }
.section-lede { color: var(--muted); font-size: 1.1rem; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--card); padding: clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pillar-img { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; margin-bottom: 18px; }
.pillar-meter { display: flex; gap: 3px; margin-bottom: 22px; }
.pillar-meter i { width: 6px; height: 18px; border-radius: 2px; background: var(--line); }
.pillar-meter i.on { background: var(--navy); }
.pillar-meter i.pk { background: var(--accent); }
.pillar p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* Tabs */
.tabs { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); }
.tablist { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.tablist::-webkit-scrollbar { display: none; }
@media (max-width: 640px) { .tablist { flex-wrap: wrap; } .tablist [role="tab"] { padding: 10px 14px; } }
.tablist [role="tab"] { flex: none; scroll-snap-align: start; font: 600 .95rem var(--body); color: var(--muted); background: none; border: 0; padding: 12px 18px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.tablist [role="tab"]:hover { color: var(--ink); background: var(--tint); }
.tablist [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.tablist [data-tab="hae"][aria-selected="false"] { color: var(--accent-text); }
.panel { padding: clamp(24px, 4vw, 48px); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.panel-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.panel-grid p { color: var(--muted); }
@media (max-width: 760px) { .panel-grid { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); font-weight: 500; }
.checks li:first-child { border-top: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 7px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg); }
.tag { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; color: var(--muted); margin-left: 6px; vertical-align: 2px; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.type { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.type:first-child { border-color: var(--accent); }
.type .tag { margin: 0 0 12px; display: inline-block; }
.type p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .types { grid-template-columns: 1fr; } }
.fees { margin: 0; }
.fees div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fees div:first-child { border-top: 1px solid var(--line); }
.fees dt { font-weight: 500; }
.fees dd { margin: 0; font: 500 .95rem var(--mono); text-align: right; font-variant-numeric: tabular-nums; }

/* Form */
.apply { display: grid; gap: 18px; max-width: 780px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.apply label { display: block; font-weight: 500; font-size: .94rem; }
.apply label > input:not([type="checkbox"]), .apply label > textarea { display: block; margin-top: 6px; }
.apply input:not([type="checkbox"]), .apply textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
.apply input:focus, .apply textarea:focus { outline: none; border-color: var(--accent); }
.apply [aria-invalid="true"] { border-color: #D5432D !important; }
.req { color: var(--accent-text); }
.chips { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-weight: 500; font-size: .94rem; margin-bottom: 10px; padding: 0; }
.chips label { display: inline-flex; position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { padding: 9px 15px; border: 1.5px solid var(--line); border-radius: 99px; font-size: .9rem; transition: all .15s; }
.chips input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.consent { display: grid !important; grid-template-columns: auto 1fr !important; align-items: start; gap: 12px !important; font-weight: 400 !important; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form-status { margin: 0; font-weight: 500; }
.form-status.ok { color: var(--ok); } .form-status.err { color: #D5432D; }

/* Rules */
.note { color: var(--muted); font-size: .92rem; }
.rules { border-top: 1px solid var(--line); }
.rules details { border-bottom: 1px solid var(--line); }
.rules summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; font-weight: 400; transition: transform .2s; }
.rules details[open] summary::after { transform: rotate(45deg); }
.rules summary span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; font: 500 .78rem var(--mono); }
.rules details p { color: var(--muted); padding-left: 46px; max-width: 60em; }

/* Board */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.avatar { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--tint); margin-bottom: 16px; }
.avatar::before { content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center; font: 700 2.6rem var(--display); letter-spacing: -0.03em; color: var(--muted); }
.avatar img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.role { font: 500 .72rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); margin-bottom: 6px; }
.person h3 { margin-bottom: 8px; }
.person p { color: var(--muted); font-size: .95rem; }
.links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem !important; }
.links a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line); }

/* Contact & footer */
.contact { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.big-mail { font: 500 clamp(1.3rem, 4vw, 2.4rem) var(--display); letter-spacing: -0.02em; color: var(--on-navy); text-underline-offset: 6px; text-decoration-color: rgba(255,255,255,.45); word-break: break-all; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.social a { display: inline-block; padding: 10px 18px; color: var(--on-navy); border: 1.5px solid rgba(255,255,255,.35); border-radius: 99px; text-decoration: none; font-weight: 500; }
.social a:hover { border-color: var(--on-navy); }
.site-footer { padding: 28px 0; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

/* Members area */
.member-shell { min-height: calc(100vh - 72px - 80px); padding: clamp(40px, 7vw, 90px) 0; }
.auth-card { max-width: 440px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 5vw, 40px); }
.auth-card h1 { font-size: 2.2rem; }
.auth-card .apply { gap: 14px; }
.muted { color: var(--muted); }
.notice { background: var(--tint); border-radius: 10px; padding: 14px 16px; font-size: .93rem; color: var(--muted); }
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.dash-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0; }
/* Kirjautuneen käyttäjän palkki ylätunnisteessa (jäsenalue ja hallinta) */
.user-bar { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); min-width: 0; }
.user-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .user-bar span { display: none; } }
.user-bar .btn { white-space: nowrap; }
/* Kapealla näytöllä kirjautuneena näytetään vain logo, jotta painikkeet mahtuvat riville */
@media (max-width: 520px) { .header-inner:has(.user-bar:not([hidden])) .brand-text { display: none; } .user-bar { gap: 8px; } }
.dash { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.dash-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.dash-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.linkish { background: none; border: 0; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }

.rules ol { color: var(--text); padding-left: 66px; margin: 0 0 1em; max-width: 60em; }
.rules ol li { margin-bottom: .2em; }

/* ===== Inner pages (palkkiosuositukset, hallinta) ===== */
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.page-head { padding: clamp(40px, 7vw, 80px) 0 8px; }
.page-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 300; letter-spacing: -0.03em; }
.page-meta { color: var(--muted); font-size: .92rem; margin-top: -.4em; }
.section-tight { padding-top: clamp(24px, 4vw, 40px); }
.muted { color: var(--muted); }

.seg { display: inline-flex; gap: 4px; padding: 5px; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; margin-top: 12px; flex-wrap: wrap; }
.seg button { font: 600 .95rem var(--body); border: 0; background: none; color: var(--text); padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.seg-sm { margin: 0 0 22px; }
.seg-sm button { font-size: .88rem; padding: 8px 14px; }

.chips-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chips-nav a { text-decoration: none; font-size: .9rem; font-weight: 500; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--text); background: var(--card); }
.chips-nav a:hover { border-color: var(--accent); color: var(--accent-text); }

.pricelist { display: grid; gap: clamp(28px, 4vw, 44px); }
.pl-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); scroll-margin-top: 90px; }
.pl-section h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: .3em; }
.pl-note { color: var(--muted); font-size: .95rem; background: var(--tint); border-radius: 8px; padding: 10px 14px; }
.pl-head, .pl-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px 170px; gap: 16px; align-items: start; }
.pl-head { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); padding: 8px 0; border-bottom: 1px solid var(--line); }
.pl-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pl-row:last-child { border-bottom: 0; }
.pl-name { min-width: 0; }
.pl-name h3 { font-size: 1.05rem; margin: 0 0 4px; }
.pl-desc { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.55; }
.pl-price { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-row-text { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 720px) {
  .pl-head { display: none; }
  .pl-row { grid-template-columns: 1fr 1fr; gap: 6px 14px; }
  .pl-name { grid-column: 1 / -1; }
  .pl-price::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}

.pl-details { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); margin-top: clamp(40px, 6vw, 64px); }
.pl-details h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.pl-contact { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); align-self: start; }
.pl-contact h3 { color: var(--on-navy); }
.pl-contact a { color: var(--on-navy); }
.prose p { color: var(--text); max-width: 62ch; }
.pl-contact .prose p { color: rgba(255,255,255,.85); }
@media (max-width: 860px) { .pl-details { grid-template-columns: 1fr; } }

/* Calculator */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); min-width: 0; }
.card h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(18px, 3vw, 28px); align-items: start; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-fields { display: grid; gap: 18px; }
.cf { display: grid; gap: 6px; min-width: 0; }
.cf-label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .94rem; color: var(--ink); }
.cf input[type="number"], .cf select, .fld input, .fld select, .fld textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0;
}
.cf select, .fld select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.cf input:focus, .cf select:focus, .fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); }
.cf-hint { margin: 0; font-size: .82rem; color: var(--muted); }
.tip-btn { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--accent); background: none; color: var(--accent-text); font: 600 .78rem/1 var(--body); cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.tip-btn[aria-expanded="true"] { background: var(--accent); color: var(--accent-ink); }
.tip { font-size: .86rem; color: var(--text); background: var(--tint); border-left: 3px solid var(--accent); border-radius: 6px; padding: 10px 12px; line-height: 1.5; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { font: 500 .9rem var(--body); padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper); color: var(--text); cursor: pointer; }
.toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.calc-info { margin: 0; font-size: .9rem; color: var(--text); background: var(--tint); border-radius: 8px; padding: 10px 14px; }
.calc-result { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.calc-result-label { margin: 0; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.calc-result-sum { margin: 0; font: 300 clamp(2rem, 6vw, 2.8rem)/1.1 var(--display); color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-sheet { position: sticky; top: 92px; }
@media (max-width: 860px) { .calc-sheet { position: static; } }
.sheet-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sheet-title { margin: 0; font-weight: 500; color: var(--ink); }
.sheet-meta { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.sheet-price { text-align: right; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet-price span { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }
.sheet-del { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.sheet-del:hover { color: #C0392B; border-color: #C0392B; }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 6px; font-size: 1.05rem; }
.sheet-total strong { font: 500 1.5rem var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0 16px; }

/* Hakemus lähetetty */
.apply-done { max-width: 640px; margin: 8px auto; padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px); text-align: center; background: var(--paper); border: 1px solid color-mix(in srgb, var(--ok) 30%, var(--line)); border-radius: 18px; box-shadow: 0 10px 30px -18px rgba(8, 61, 96, .35); outline: none; animation: done-in .45s ease-out both; }
.apply-done h3 { font: 400 clamp(1.6rem, 3.4vw, 2.2rem)/1.2 var(--serif); color: var(--navy); margin: 18px 0 12px; }
.apply-done .lead { font-size: 1.12rem; color: var(--text); margin: 0 0 10px; }
.apply-done p { margin: 0 0 10px; }
.apply-done .muted { margin-top: 18px; }
.apply-done-icon { width: 76px; height: 76px; fill: color-mix(in srgb, var(--ok) 10%, var(--paper)); stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.apply-done-icon path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: done-check .5s .25s ease-out forwards; }
@keyframes done-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes done-check { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .apply-done { animation: none; } .apply-done-icon path { animation: none; stroke-dashoffset: 0; } }

/* Hinnaston työkalurivi: osiot + Tallenna PDF */
.pl-toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.pl-toolbar .chips-nav { margin-bottom: 0; }
.pl-pdf { flex: none; display: inline-flex; align-items: center; gap: 8px; }
.pl-pdf[disabled] { opacity: .7; cursor: progress; }

/* Osiosuodatin */
.pl-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.chip-toggle { font: inherit; font-size: .9rem; font-weight: 500; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--text); background: var(--card); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip-toggle:hover { border-color: var(--accent); color: var(--accent-text); }
.chip-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-toggle[aria-pressed="true"]::before { content: "✓ "; }
.chip-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pl-filter-reset { font-size: .9rem; }

/* Analytiikkasuostumus (näkyy vain, kun GA-tunnus on asetettu) */
.consent { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 16px 18px; display: grid; gap: 12px; font-size: .92rem; }
.consent p { margin: 0; }
.consent a { color: var(--accent-text); }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* Projektin alapalkki (ääninäytteet, profiili, palkkiosuositukset) */
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--navy); color: #fff; padding: 12px 0; box-shadow: 0 -4px 18px rgba(0,0,0,.12); }
.cart-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.cart-bar p { margin: 0; font-size: .95rem; }
.cart-bar .btn { white-space: nowrap; }
body.has-cart-bar { padding-bottom: 76px; }
