/* Sivuston uusi ilme: vaaleanvihreä teema, yläpalkki, tuotekortti ja etusivu */

html { background-color: var(--bg); }
body { background: none; }


.home { overflow: visible; }
.hv { overflow-x: clip; }
.h-wrap { width: min(1240px, 100% - 48px); }
.logo { filter: hue-rotate(48deg) saturate(1.2); }
.h-btn, .btn { border-radius: 10px; }
.h-btn-blue, .btn-primary { font-weight: 700; }

/* Kaksivärinen otsikko */
.t2 { font: 800 clamp(30px, 3.6vw, 44px)/1.15 var(--font); letter-spacing: -.02em; text-align: center; }
.t2 { margin-bottom: 30px; }
.t2 em, .hv h1 em { font-style: normal; color: var(--accent); }
.t2-sub { margin: 10px 0 34px; color: var(--text-2); text-align: center; }
.t2.left, .t2-sub.left { text-align: left; }

/* ---------- Yläpalkki ---------- */
.nav { top: 12px; margin-top: 12px; }
.nav-inner { width: min(1320px, 100% - 32px); height: 64px; padding: 0 10px 0 14px; gap: 10px; background: rgba(20, 16, 13, .88); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 16px 40px -20px #000; backdrop-filter: blur(16px); }
.nav.scrolled .nav-inner { background: rgba(16, 13, 11, .96); }
.nav-bar { position: relative; flex: 1; min-width: 0; height: 100%; }
.nav-logo { position: absolute; z-index: 2; top: 50%; left: 50%; width: 100px; translate: -50% -50%; }
.nav-logo .logo { display: block; width: 100%; height: auto; }
.nav-links { display: flex; gap: 116px; height: 100%; }
.nav-side { display: flex; flex: 1 1 0; align-items: center; gap: 2px; min-width: 0; }
.nav-side:first-child { justify-content: flex-end; }
.nav-links a { gap: 7px; height: 40px; padding: 0 12px; border-radius: 11px; color: var(--text-2); font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; transition: color .2s, background .2s; }
.nav-links a svg { width: 16px; height: 16px; opacity: 1; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-links a.active { color: var(--accent-soft); background: rgba(190, 238, 17, .13); }
.nav-links a.active svg { color: var(--accent); }
.nav-links .mega-item { height: auto; border: 0; border-radius: 10px; text-transform: none; font-weight: 500; letter-spacing: 0; }
.nav-actions { gap: 10px; }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.nav-tools .icon-btn { border-radius: 50%; }
#cartBtn { width: 40px; height: 40px; border-radius: 50%; }
.count { top: -4px; right: -4px; color: var(--cta-text); }
.mega-inner { background: var(--card); }
@media (max-width: 1380px) {
  .nav-links a > svg:first-child:not(.more-dots) { display: none; }
  .nav-links a { padding: 0 10px; font-size: 12.5px; }
  .nav-links { gap: 104px; }
  .nav-logo { width: 84px; }
}
@media (max-width: 1260px) {
  .nav-side { padding: 0 6px; }
  .nav-links a { padding: 0 7px; font-size: 12px; letter-spacing: 0; }
  .nav-links { gap: 96px; }
  .nav-inner { gap: 6px; }
  .nav-actions { gap: 6px; }
}
@media (max-width: 1120px) {
  .nav-inner { height: 58px; padding: 0 8px 0 14px; border-radius: 16px; }
  .nav-bar { position: static; flex: none; height: auto; }
  .nav-logo { position: static; display: block; width: 84px; translate: none; }
  .nav-links { gap: 2px; height: auto; }
  .nav-side { display: contents; }
  .nav-links a { height: 44px; font-size: 15px; text-transform: none; }
  .nav-links a > svg:first-child:not(.more-dots) { display: block; }
  #cartBtn { width: 36px; height: 36px; }
}

/* ---------- Tuotekortti ---------- */
.h-products { gap: 20px; }
.h-product { border-radius: 12px; background: var(--card); border-color: var(--line-2); }
.h-product:hover { border-color: rgba(190, 238, 17, .45); }
.h-product-img { display: block; border-bottom: 3px solid var(--accent); }
.h-product-body { gap: 12px; padding: 16px; }
.h-product-body h3 { font-size: 20px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.h-short { flex: 1; color: var(--text-2); font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.fw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 8px; background: var(--card-2); color: var(--text); font-size: 12.5px; font-weight: 600; }
.fw-chip svg { width: 15px; height: 15px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 2; }
.h-price { text-align: left; }
.h-price strong { display: flex; align-items: baseline; gap: 8px; font-size: 25px; font-weight: 800; }
.h-price .old-price { color: var(--muted); font-size: 15px; font-weight: 500; }
.h-add { width: 100%; height: 48px; justify-content: center; font-size: 15px; }

/* ---------- Etusivu ---------- */
.hv, .hs { position: relative; isolation: isolate; }
.hs { overflow: hidden; }
.hv-city { position: absolute; z-index: -2; inset: -90px 0 0; width: 100%; height: calc(100% + 90px); object-fit: cover; object-position: center 25%; filter: brightness(.72) saturate(1.1); mask-image: linear-gradient(#000 68%, transparent 96%); }
.hv h1, .hv p { text-shadow: 0 2px 14px rgba(0, 0, 0, .85); }
.hv::before { content: ""; position: absolute; z-index: -1; inset: -90px 40% 0 0; background: linear-gradient(90deg, rgba(10, 8, 7, .78), rgba(10, 8, 7, .5) 60%, transparent); }
.hv-chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); font-size: 14px; font-weight: 600; }
.hv-chip b { padding: 4px 10px; border-radius: 6px; background: var(--accent); color: var(--cta-text); font-size: 13px; }
.hv h1 { max-width: none; margin-top: 20px; font: 800 clamp(38px, 4.6vw, 62px)/1.12 var(--font); letter-spacing: -.02em; }
.hv p { max-width: 520px; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.hv-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hl-tag, .hs-tag { display: inline-block; padding: 5px 11px; border-radius: 6px; background: var(--accent); color: var(--cta-text); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; }
.hl h2 { margin: 14px 0; font: 800 clamp(30px, 3.6vw, 44px)/1.15 var(--font); letter-spacing: -.02em; overflow-wrap: anywhere; }
.hl h2 em { font-style: normal; color: var(--accent); }
.hl p { color: var(--text-2); line-height: 1.65; overflow-wrap: anywhere; }
.hl .fw-chips { margin: 16px 0; }
.hl-price { display: flex; align-items: baseline; gap: 10px; font-size: 24px; font-weight: 800; }
.hl-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hl-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(190, 238, 17, .4); border-radius: 12px; background: var(--card); }
.hl-img > * { width: 100%; height: 100%; object-fit: cover; }

.hs { padding: 76px 0; border-block: 1px solid var(--line); background: rgba(190, 238, 17, .025); }
.hs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hs-tags { display: flex; gap: 8px; }
.hs-save { background: none; box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.hs h2 { margin: 14px 0 12px; font: 800 clamp(30px, 3.6vw, 44px)/1.15 var(--font); letter-spacing: -.02em; }
.hs h2 em { font-style: normal; color: var(--accent); }
.hs p { color: var(--text-2); line-height: 1.65; }
.hs ul { display: grid; gap: 9px; margin: 18px 0; list-style: none; }
.hs li { display: flex; align-items: center; gap: 10px; }
.hs li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hs-price { font-size: 36px; font-weight: 800; }
.hs-price small { color: var(--muted); font-size: 15px; font-weight: 500; }
.hs-list { padding: 22px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); }
.hs-list > small { display: block; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.hs-list > strong { display: block; margin: 4px 0 14px; font-size: 20px; }
.hs-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.hs-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-row b { flex: none; color: var(--accent); font-size: 13px; }

.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.why-card { padding: 24px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); }
.why-card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 18px; }
.why-card p { margin-bottom: 14px; color: var(--text-2); line-height: 1.6; }
.why-card a { color: var(--accent); font-size: 14px; font-weight: 700; }


/* ---------- Liike ---------- */
.has-mega:hover > a svg:first-child { transform: none; }
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(site-nav) { display: none; }
::view-transition-new(site-nav) { animation: none; }
::view-transition-old(root) { animation: page-out .26s ease both; }
::view-transition-new(root) { animation: page-in .5s var(--ease) both; }
@keyframes page-out { to { opacity: 0; transform: translateX(-60px) scale(.98); } }
@keyframes page-in { from { opacity: 0; transform: translateX(70px); clip-path: inset(0 0 0 30%); } }
.nav-links a svg { transition: transform .3s var(--spring), color .2s; }
.nav-links a:hover > svg:first-child { transform: translateY(-2px) scale(1.15); }


.hv-chip { color: var(--text); transition: border-color .2s; }
.hv-chip:hover { border-color: var(--accent); }

/* Listat tulevat esiin yksi kerrallaan */
.sb-plan.in li, .hs-list.in .hs-row, .pd-perks li, .pd-spec, .pd-info > *, .pd-media { animation: rise .55s var(--ease) backwards; }
.sb-plan li:nth-child(2), .hs-row:nth-of-type(2), .pd-perks li:nth-child(2), .pd-spec:nth-child(2), .pd-info > :nth-child(2) { animation-delay: .06s; }
.sb-plan li:nth-child(3), .hs-row:nth-of-type(3), .pd-perks li:nth-child(3), .pd-spec:nth-child(3), .pd-info > :nth-child(3) { animation-delay: .12s; }
.sb-plan li:nth-child(4), .hs-row:nth-of-type(4), .pd-spec:nth-child(4), .pd-info > :nth-child(4) { animation-delay: .18s; }
.sb-plan li:nth-child(5), .hs-row:nth-of-type(5), .pd-spec:nth-child(5), .pd-info > :nth-child(5) { animation-delay: .24s; }
.pd-spec:nth-child(6), .pd-info > :nth-child(n+6) { animation-delay: .3s; }

/* Sama otsikkotyyli kaikilla sivuilla */
.page-head h1, .faq-intro h1, .prose h1, .ct-head h1, .pd-related-head h2, .ab-values .h-title { font-family: var(--font); font-weight: 800; letter-spacing: -.02em; }

/* Hero-kuva liikkuu hieman vieritettäessä */
@supports (animation-timeline: scroll()) {
  .hv-city { animation: hero-move linear both; animation-timeline: scroll(root); animation-range: 0 760px; }
  @keyframes hero-move { to { transform: translateY(70px) scale(1.06); } }
}

/* Oranssi viiva täyttyy, kun kortin päälle viedään hiiri */
.h-product-img { position: relative; border-bottom: 0; }
.h-product-img::after, .why-card::before { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--accent); transform: scaleX(.16); transform-origin: left; transition: transform .45s var(--ease); }
.h-product:hover .h-product-img::after, .why-card:hover::before { transform: none; }
.why-card { position: relative; overflow: hidden; }
.why-card::before { top: 0; bottom: auto; }
.h-product h3 a { transition: color .2s; }
.h-product:hover h3 a { color: var(--accent-soft); }

.footer-col a { transition: color .2s, translate .25s var(--ease); }
.footer-col a:hover { translate: 4px 0; }
.ct-row { transition: border-color .2s, translate .25s var(--ease); }
.ct-row:hover { translate: 3px 0; }

/* Hover */
.why-card, .pd-spec, .pd-side, .hs-list, .fw-chip, .cm-odd { transition: transform .3s var(--spring), border-color .25s, background .25s; }
.why-card:hover { transform: translateY(-6px); border-color: rgba(190, 238, 17, .45); }
.pd-spec:hover { background: rgba(190, 238, 17, .05); }
.fw-chip:hover { transform: translateY(-2px); }
.hs-row { transition: padding-left .25s var(--ease); }
.hs-row:hover { padding-left: 8px; }
.hl-img { transition: transform .5s var(--ease), border-color .25s; }
.hl-img:hover { transform: translateY(-5px); border-color: var(--accent); }
.hl-img > * { transition: transform .8s var(--ease); }
.hl-img:hover > * { transform: scale(1.04); }

/* Vieritys tuo osiot liikkeeseen niissÃ¤ selaimissa, jotka tukevat sitÃ¤ */
@supports (animation-timeline: view()) {
  .hs-list, .hl-img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  @keyframes drift { from { translate: 0 44px; } to { translate: 0 0; } }
}

@media (prefers-reduced-motion: reduce) {
  .hv-city, .hs-list, .hl-img, .sb-plan.in li, .hs-list.in .hs-row, .pd-perks li, .pd-spec, .pd-info > *, .pd-media { animation: none; }
}

@media (max-width: 980px) {
  .hl, .hs-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hl-img { order: -1; }
  .why { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .h-wrap { width: min(1240px, 100% - 32px); }
  .hv-cta .h-btn { width: 100%; }
}
