/* Minimoi /en — "Perämeren yö" -teema koko sivulle.
   Pohjana premium.css:n asettelu; tämä tiedosto ohittaa sen vaalean teeman
   tummalla meriteemalla (myöhempi sääntö, sama spesifisyys). Animaatiot vain
   kun prefers-reduced-motion sallii. */

/* ---------- Sivun perusta ---------- */
body {
  background:
    radial-gradient(1100px 500px at 85% -80px, rgba(94, 242, 166, .07), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(0, 60, 120, .25), transparent 55%),
    linear-gradient(180deg, #0a1628 0%, #0d1f30 40%, #0a1826 100%);
  background-attachment: fixed;
  color: #e8eef0;
}
a { color: #e8c987; }
:is(button, a, input, select, textarea):focus-visible { outline: 2px solid #d9b36a; outline-offset: 3px; }
::selection { background: rgba(217, 179, 106, .35); }
main { position: relative; z-index: 1; }
header { border-bottom-color: rgba(255, 255, 255, .12); }
.brand { color: #f4f7f5; }
.header-nav a { color: #cfdbdd; }
.header-nav a:hover { color: #e8c987; }
footer { border-top-color: rgba(255, 255, 255, .12); }
.footer-note { color: #8fa3a8; }
footer a { color: #e8c987; }

button, .button {
  border-color: #d9b36a; background: #d9b36a; color: #10231c; font-weight: 700;
}
button:hover, .button:hover { background: #e8c987; border-color: #e8c987; }

.eyebrow { color: #d9b36a; }
h1, h2, .section h2, .inquiry h2 { color: #f4f7f5; }
.lead { color: #b9c8c9; }
.hint { color: #9fb3b8; }
.error { color: #e08a7d; }
.fineprint { font-size: 12px; color: #8fa3a8; line-height: 1.6; max-width: 640px; margin: 14px 0 0; }

/* Revontulen hehku jokaisen osaston takana */
.section, .inquiry, .faq { position: relative; }
.section::before, .inquiry::before, .faq::before {
  content: ''; position: absolute; inset: -40px -60px auto; height: 220px;
  background: radial-gradient(closest-side, rgba(94, 242, 166, .06), transparent);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.isle-hero {
  position: relative; overflow: hidden; border-radius: 0; margin-top: 0;
  width: 100vw; margin-left: calc((100% - 100vw) / 2);
  min-height: clamp(560px, 76svh, 800px); display: flex; align-items: center;
  background: #0a1628; color: #eef3f1;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .55);
}
body { overflow-x: hidden; }
#sea { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; z-index: 1; padding: clamp(32px, 6vw, 76px); max-width: 730px; }
.isle-hero .eyebrow { color: #d9b36a; }
.isle-hero h1 { color: #f4f7f5; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.isle-hero h1 .accent { color: #e8c987; }
.isle-hero .lead { color: #c4d2cd; }
.isle-hero .trust li { color: #eef3f1; }
.isle-hero .trust li::before { background: #d9b36a; }
.hero-inner .button { margin-top: 26px; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; width: 100%; z-index: 1; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 46px; z-index: 2; color: #d9b36a;
  font-size: 24px; line-height: 1; text-decoration: none; opacity: .8;
}

/* ---------- Lasipinnat ---------- */
.tier, .step, .notice, .quote-form fieldset, .receipt, .inquiry, .faq details, .fees {
  background: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border: 1px solid rgba(217, 179, 106, .22);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}
.tier.featured { border: 2px solid rgba(217, 179, 106, .75); }
.tier-flag { background: #d9b36a; color: #10231c; }
.tier-name { color: #e8c987; }
.tier-price { color: #f4f7f5; }
.tier-price small { color: #9fb3b8; }
.tier-sub { color: #8fa3a8; }
.tier li { color: #d5dee2; }
.tier li::before { border-color: #d9b36a; }
.step { border-top: 3px solid rgba(217, 179, 106, .7); border-radius: 0 0 10px 10px; background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); display: flex; gap: 16px; align-items: flex-start; padding: 20px 18px; }
.step-no { font-size: 34px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(217, 179, 106, .85); flex: 0 0 auto; padding-top: 2px; }
.step strong { color: #f4f7f5; display: inline-block; }
.step-when { display: inline-block; margin-left: 10px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #10231c; background: rgba(217, 179, 106, .9); border-radius: 999px; padding: 3px 10px; vertical-align: middle; }
.step p { color: #9fb3b8; margin-top: 8px; }
.receipt-assurance { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(217, 179, 106, .18); }
.receipt-assurance li { position: relative; padding-left: 22px; font-size: 12.5px; color: #b9c8c9; margin: 6px 0; }
.receipt-assurance li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e8c987, #b3893f); }
@media (max-width: 700px) {
 .step { gap: 12px; padding: 16px 14px; }
 .step-no { font-size: 26px; }
 .step-when { margin-left: 0; margin-top: 6px; display: inline-block; }
}
.notice { border-left: 4px solid #d9b36a; overflow: hidden; }
.notice strong { color: #f4f7f5; }
.notice p { color: #b9c8c9; }

/* ---------- Hinnastotaulukot ---------- */
.feegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.fees { border-collapse: collapse; width: 100%; overflow: hidden; font-size: 13px; }
.fees caption {
  caption-side: top; text-align: left; font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: #e8c987;
  padding: 12px 16px; background: rgba(217, 179, 106, .10);
}
.fees th, .fees td { text-align: left; vertical-align: top; padding: 10px 16px; border-top: 1px solid rgba(255, 255, 255, .09); line-height: 1.5; }
.fees th { font-weight: 400; color: #c9d4d8; width: 58%; }
.fees td { font-weight: 700; color: #f4f7f5; white-space: normal; }
.fees td small { display: block; font-weight: 400; color: #8fa3a8; font-size: 11px; }

/* ---------- Tarjouslaskuri ---------- */
.quote-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; margin-top: 8px; }
.quote-form fieldset { margin: 0 0 16px; padding: 18px 20px; }
.quote-form legend { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #e8c987; padding: 0 8px; }
.quote-form label { display: block; font-size: 14px; margin: 12px 0 6px; color: #e8eef0; }
.quote-form .pick { display: flex; gap: 10px; align-items: baseline; font-size: 14px; cursor: pointer; margin: 10px 0; }
.quote-form .pick input { min-height: 0; width: auto; margin-top: 2px; accent-color: #d9b36a; }
.quote-form .pick small { display: block; color: #8fa3a8; font-size: 12px; }
.quote-form input[type="range"] { width: 100%; padding: 0; min-height: 34px; accent-color: #d9b36a; }
.quote-form output { font-weight: 700; color: #e8c987; }

/* ---------- Kuitti ---------- */
.receipt { position: sticky; top: 16px; border: 2px solid rgba(217, 179, 106, .8); padding: 22px 24px; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .6); }
.receipt-title { margin: 0 0 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; color: #e8c987; }
#receipt-lines { margin: 0; font-size: 13px; }
#receipt-lines .row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-top: 1px dashed rgba(255, 255, 255, .14); }
#receipt-lines .row span { color: #d5dee2; }
#receipt-lines .row span small { display: block; color: #8fa3a8; font-size: 11px; }
#receipt-lines .row dd { margin: 0; font-weight: 700; color: #f4f7f5; white-space: nowrap; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; border-top: 2px solid rgba(217, 179, 106, .8); margin: 14px 0 0; padding-top: 14px; font-size: 14px; color: #c9d4d8; }
.receipt-total strong { font-size: 26px; letter-spacing: -.02em; color: #e8c987; }
.receipt .button { width: 100%; margin-top: 16px; }
.receipt .fineprint { margin-top: 12px; }

/* ---------- Lomake ---------- */
.inquiry { padding: 36px; }
.inquiry label { color: #e8eef0; }
.inquiry input, .inquiry textarea {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #f4f7f5;
}
.inquiry input::placeholder, .inquiry textarea::placeholder { color: #7d9197; }
.inquiry input:focus, .inquiry textarea:focus { border-color: #d9b36a; outline: none; }
.inquiry button[type="submit"] { margin-top: 24px; }
.inquiry-success { border: 1px solid #2f7d4f; background: rgba(47, 125, 79, .18); color: #d5dee2; border-radius: 6px; padding: 22px 26px; margin-top: 24px; }
.inquiry-success strong { color: #f4f7f5; }

/* ---------- UKK ---------- */
.faq details { border-top: 1px solid rgba(255, 255, 255, .12); }
.faq details:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.faq summary { color: #e8eef0; }
.faq summary::before { color: #d9b36a; }
.faq details p { color: #9fb3b8; }

/* ---------- Animaatiot ---------- */
@media (prefers-reduced-motion: no-preference) {
  .l1, .l2 { display: inline-block; opacity: 0; animation: heroRise 1s cubic-bezier(.2, .7, .2, 1) forwards !important; }
  .l2 { animation-delay: .3s !important; }
  .hero-fade { opacity: 0; animation: heroRise 1s cubic-bezier(.2, .7, .2, 1) .55s forwards !important; }
  .scroll-cue { animation: cue 2.4s ease-in-out infinite !important; }

  .rv { opacity: 0; transform: translateY(26px); }
  .rv.on { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1) !important; }
  .rv.on .tier, .rv.on .step, .rv.on .fees { animation: rise .65s cubic-bezier(.2, .7, .2, 1) both !important; }
  .rv.on .tier:nth-child(2), .rv.on .step:nth-child(2), .rv.on .fees:nth-child(2) { animation-delay: .12s !important; }
  .rv.on .tier:nth-child(3), .rv.on .step:nth-child(3), .rv.on .fees:nth-child(3) { animation-delay: .24s !important; }
  .rv.on .fees:nth-child(4) { animation-delay: .36s !important; }

  #receipt-lines .row { animation: rowIn .35s ease both !important; }
  #receipt-lines .row:nth-child(2) { animation-delay: .04s !important; }
  #receipt-lines .row:nth-child(3) { animation-delay: .08s !important; }
  #receipt-lines .row:nth-child(4) { animation-delay: .12s !important; }
  #receipt-lines .row:nth-child(5) { animation-delay: .16s !important; }
  #receipt-lines .row:nth-child(6) { animation-delay: .20s !important; }
  #receipt-lines .row:nth-child(7) { animation-delay: .24s !important; }
  #receipt-lines .row:nth-child(n+8) { animation-delay: .28s !important; }

  .tier { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease !important; }
  .tier:hover { transform: translateY(-5px) !important; box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .7) !important; border-color: rgba(217, 179, 106, .55) !important; }
  .fees tbody tr { transition: background .25s ease !important; }
  .fees tbody tr:hover { background: rgba(217, 179, 106, .07) !important; }
  .faq summary { transition: color .25s ease !important; }
  .faq summary:hover { color: #e8c987 !important; }
  .receipt { animation: floaty 7s ease-in-out infinite !important; }
}

@keyframes heroRise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); opacity: .5; } 50% { transform: translate(-50%, 9px); opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (max-width: 860px) {
  .feegrid, .quote-wrap { grid-template-columns: 1fr; }
  .receipt { position: static; animation: none !important; }
  .isle-hero { min-height: 840px; }
  .inquiry { padding: 24px 18px; }
  .scroll-cue { bottom: 30px; }
}

.hero-proof {
  margin: 16px 0 0; font-size: 12px; letter-spacing: .06em; color: #9fb3b8;
  border-top: 1px solid rgba(217, 179, 106, .25); padding-top: 14px; max-width: 560px;
}

/* ---------- Jurisdiction-bento ---------- */
.juris-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.juris-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  border: 1px solid rgba(217, 179, 106, .22); border-radius: 10px;
  padding: 20px 22px; backdrop-filter: blur(6px);
  border-top: 3px solid rgba(217, 179, 106, .75);
}
.juris-card strong { display: block; color: #e8c987; font-size: 14px; letter-spacing: .02em; margin-bottom: 6px; }
.juris-card p { margin: 0; color: #b9c8c9; font-size: 13.5px; line-height: 1.65; }

@media (max-width: 700px) {
  .juris-grid { grid-template-columns: 1fr; }
}

/* ---------- Ulkoklaama & prosessikartta ---------- */
.klaama { padding-top: 0; }
.klaama-figure, .process-map { margin: 0; }
.klaama-figure img {
 display: block; width: 100%; height: auto; border-radius: 14px;
 border: 1px solid rgba(217, 179, 106, .35);
 box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.klaama-cap { text-align: center; color: #8fa3a8; font-size: 13px; letter-spacing: .04em; margin-top: 14px; }
.process-map img {
 display: block; width: 100%; max-width: 860px; margin: 0 auto 26px; height: auto;
 border-radius: 12px; border: 1px solid rgba(217, 179, 106, .25);
 box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.juris-card a { color: #e8c987; text-decoration: underline; text-underline-offset: 3px; }
.juris-card a:hover { color: #f4f7f5; }
@media (prefers-reduced-motion: no-preference) {
 .klaama-figure img { transition: transform .8s cubic-bezier(.2,.7,.2,1), box-shadow .8s ease; }
 .klaama-figure:hover img { transform: scale(1.012); box-shadow: 0 36px 90px rgba(0,0,0,.55), 0 0 60px rgba(217,179,106,.10); }
}

/* ---------- Suomen kartta ---------- */
.finmap { float: right; width: 128px; margin: 2px 0 14px 22px; }
.finmap path { fill: rgba(217, 179, 106, .10); stroke: rgba(217, 179, 106, .8); stroke-width: 1.6; }
.finmap text { fill: #e8c987; font-size: 15px; font-family: inherit; }
.finmap-dot { fill: #e8c987; }

/* ---------- Saaren ääriviiva (Good to know) ---------- */
.notice-split { display: flex; align-items: center; gap: 34px; }
.notice-text { flex: 1; min-width: 0; }
.island-outline { flex-shrink: 0; width: 210px; margin: 4px 6px 4px 0; }
.island-ring {
  fill: none; stroke: #d9b36a; stroke-width: 2.2; stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(217, 179, 106, .45));
}
.island-inner { fill: rgba(217, 179, 106, .05); stroke: none; }
.island-outline text { fill: #e8c987; font-size: 15px; font-family: inherit; }
.island-outline .finmap-dot { fill: #e8c987; }

@media (max-width: 600px) {
  .notice-split { flex-direction: column; align-items: flex-start; gap: 20px; }
  .island-outline { width: 150px; margin: 6px auto 2px; }
}

/* ---------- Pohjoisen kohtaus (revontulet + saari + lippu) ---------- */
.nordics {
  position: relative; margin-top: 72px; border-radius: 14px; overflow: hidden;
  background: #050e1a; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .6);
}
#north { display: block; width: 100%; height: 340px; }
.nordics-cap {
  position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center;
  color: #9fb3b8; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}

@media (prefers-reduced-motion: no-preference) {
  .finmap-dot { animation: dotPulse 2.6s ease-in-out infinite !important; }
}
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (max-width: 600px) {
  .finmap { width: 92px; margin-left: 14px; }
  #north { height: 240px; }
}
