:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #293e36;
  background: #f6f4ee;
  font-synthesis: none;
  line-height: 1.5;
  --ink: #293e36;
  --muted: #626e65;
  --line: #d5dcd2;
  --paper: #f6f4ee;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: radial-gradient(ellipse at 72% 28%, #e7eddf65, transparent 62%), var(--paper); }
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cloud { position: absolute; fill: #fffefa; stroke: #c4ceba; stroke-width: 1; stroke-linecap: round; opacity: .65; }
.cloud-high { top: 12%; right: 7%; width: clamp(220px, 28vw, 390px); }
.cloud-low { bottom: 10%; left: -2%; width: clamp(180px, 23vw, 310px); opacity: .4; }
.cloud-thread { fill: none; opacity: .6; }
@media (prefers-reduced-motion: no-preference) {
  .cloud-high { animation: cloud-drift 38s ease-in-out infinite alternate; }
  .cloud-low { animation: cloud-drift 52s -12s ease-in-out infinite alternate-reverse; }
}
@keyframes cloud-drift { from { transform: translate3d(-14px, 4px, 0); } to { transform: translate3d(18px, -7px, 0); } }
button, input, select { font: inherit; }
a { color: inherit; text-underline-offset: 4px; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 48px; padding: 12px 20px; border: 1px solid var(--ink); border-radius: 10px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  cursor: pointer; font-size: 14px; transition: background .2s, box-shadow .2s, transform .2s var(--ease);
}
button:hover, .button:hover { background: #3d594b; }
button:active, .button:active { transform: translateY(1px); }
button:disabled { opacity: .65; cursor: wait; }
:is(button,a,input,select):focus-visible { outline: 2px solid #51765b; outline-offset: 5px; }
input, select {
  min-width: 0; min-height: 48px; padding: 12px 14px;
  border: 1px solid #aab7a9; border-radius: 10px;
  background: transparent; color: var(--ink);
}
input::placeholder { color: var(--muted); opacity: 1; }
.shell { position: relative; z-index: 1; max-width: 1400px; min-height: 100svh; margin: auto; padding: 0 5%; display: flex; flex-direction: column; }
header { height: 100px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.brand { font-size: 25px; font-weight: 600; letter-spacing: -.06em; line-height: 1.2; text-decoration: none; }
.brand span { font-weight: 400; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.school-nav { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; text-decoration: none; }
.school-nav:hover { text-decoration: underline; }
.domainit-nav {
  min-height: 44px; display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600; text-decoration: none;
  padding: 0 16px; border: 1px solid var(--ink); border-radius: 100px; background: var(--ink); color: var(--paper);
}
main { flex: 1; padding: 30px 0 65px; }
.domains { width: 100%; max-width: 760px; margin: auto; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-style: italic; letter-spacing: -.065em; line-height: 1.04; font-size: clamp(52px, 8vw, 96px); margin: 0 0 22px -4px; }
.heading-dot { color: #72805a; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.intro-text { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 30px; max-width: 540px; text-wrap: pretty; }
.input-row { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid #c8d1c3; border-radius: 16px; background: #fffdf8; box-shadow: 0 4px 22px #293e3606; transition: border-color .25s, box-shadow .25s; }
.input-row input { width: 100%; flex: 1; padding: 12px 10px; border: 0; font-size: 17px; outline-offset: 2px; }
.input-row input:focus-visible { outline: none; }
.input-row:focus-within { border-color: #688565; box-shadow: 0 0 0 3px #68856518; }
.input-row:has(input[aria-invalid="true"]) { border-color: #9c3023; }
.input-row button { min-width: 110px; }
.input-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 3px 0; }
.hint { font-size: 12px; color: var(--muted); margin: 0; }
.text-button { min-height: 44px; padding: 4px 0; border: 0; background: transparent !important; color: var(--muted); font-size: 12px; font-weight: 400; }
.text-button:hover { color: var(--ink); text-decoration: underline; }
.error { padding-inline: 3px; color: #9c3023; font-size: 13px; margin: 8px 0; }
.error:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 10px; left: 10px; padding: 12px; background: var(--ink); color: var(--paper); z-index: 60; opacity: 0; pointer-events: none; transform: translateY(-200%); }
.skip:focus { opacity: 1; pointer-events: auto; transform: none; }
[hidden] { display: none !important; }

/* Tulokset */
.tulokset { margin-top: 34px; animation: reveal .7s var(--ease) both; }
.tuloslista { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tulosrivi {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf8;
}
.tulosrivi.on-vapaa { border-color: #9db892; background: #f4f8ee; }
.tulosrivi.on-varattu { opacity: .75; }
.tulos-nimi { font-size: clamp(18px, 2.6vw, 24px); letter-spacing: -.03em; overflow-wrap: anywhere; min-width: 0; }
.tulos-nimi .tld { color: var(--muted); }
.tulos-nimi.on-varattu { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: #9c302355; }
.tulos-tila {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px; border: 1px solid var(--line); color: var(--muted);
  flex-shrink: 0;
}
.on-vapaa .tulos-tila { color: #2f5b3a; border-color: #8fae83; background: #e6efdd; }
.on-varattu .tulos-tila { color: #9c3023; border-color: #d8b3ac; background: #f6e9e6; }
.tulos-hinta { font-size: 13px; color: var(--muted); margin-left: auto; flex-shrink: 0; }
.tulosrivi .secondary-button { flex-shrink: 0; }
.tulos-huomautus { margin-top: 14px; max-width: 520px; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Kotityökalut / ansaintakortti */
.home-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 26px; }
.school-entry { display: flex; align-items: center; gap: 14px; text-decoration: none; font-size: 12px; }
.school-entry strong { display: block; font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.school-entry span span { color: var(--muted); }
.school-symbol { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: #e7ecdc; }
.school-symbol svg { width: 23px; height: 23px; fill: none; stroke: #56694a; stroke-width: 1.4; }
.school-arrow { margin-left: auto; font-size: 22px; transition: transform .25s var(--ease); }
.school-entry:hover .school-arrow { transform: translate(2px, -2px); }
.school-entry:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.earn-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: #fffdf8; }
.earn-card .eyebrow { margin-bottom: 10px; }
.earn-text { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0; }

/* Hinnasto */
.pricing { margin-top: 54px; }
.pricing-title, .faq-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-style: italic; letter-spacing: -.05em; font-size: clamp(34px, 5vw, 52px); margin: 0 0 26px -3px; }
.pricing-table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fffdf8; }
.pricing-row { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr auto; align-items: center; gap: 12px; padding: 14px 18px; font-size: 14px; border-top: 1px solid var(--line); }
.pricing-row:first-child { border-top: 0; }
.pricing-head { background: #eef2e7; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pricing-row [role="cell"]:first-child { font-weight: 600; letter-spacing: -.02em; }
.pricing-cta { min-height: 40px; font-size: 12px; }

/* FAQ */
.faq { margin-top: 54px; max-width: 640px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; font-size: 15px; font-weight: 500; letter-spacing: -.01em; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; font-size: 20px; font-weight: 400; color: #72805a; margin-right: 14px; transition: transform .25s var(--ease); }
.faq details[open] summary::before { transform: rotate(45deg); }
.faq details p { font-size: 13px; color: var(--muted); line-height: 1.75; margin: 0 0 18px 34px; max-width: 560px; }

/* Footer + dialogi */
footer { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; flex-shrink: 0; gap: 14px; flex-wrap: wrap; }
.footer-note { color: var(--muted); font-size: 11px; }
footer nav { display: flex; align-items: center; gap: 25px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--muted); text-decoration: none; }
footer a:hover { text-decoration: underline; }
dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px; width: min(520px, calc(100% - 32px)); max-height: calc(100svh - 40px); box-shadow: 0 15px 60px #0002; }
dialog[open] { animation: dialog-arrive .5s var(--ease); }
dialog::backdrop { background: #293e3648; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { font-size: 24px; font-weight: 400; letter-spacing: -.6px; margin: 0; }
.close-button { background: transparent; color: var(--ink); border: 0; min-height: 44px; width: 44px; padding: 0; font-size: 28px; }
.close-button:hover { background: #e9eee3; }
.detail-body { font-size: 13px; line-height: 1.7; color: var(--muted); }
.detail-body p { margin: 14px 0 0; }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .cloud-high { top: 13%; right: -12%; width: 210px; opacity: .5; }
  .cloud-low { bottom: 12%; left: -20%; width: 210px; opacity: .3; }
  .shell { padding: 0 24px; }
  header { height: 80px; }
  .header-nav { gap: 12px; }
  .school-nav { font-size: 12px; gap: 5px; }
  .domainit-nav { padding-inline: 12px; font-size: 12px; }
  main { padding: 24px 0 55px; }
  h1 { font-size: clamp(46px, 13vw, 72px); }
  .input-row { gap: 4px; padding: 6px; border-radius: 14px; }
  .input-row input { font-size: 16px; padding-inline: 8px; }
  .input-row button { min-width: 92px; padding-inline: 13px; gap: 10px; font-size: 13px; }
  .home-tools { grid-template-columns: 1fr; gap: 16px; }
  .pricing-row { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .pricing-head { display: none; }
  .pricing-cta { grid-column: 1 / -1; }
  .tulos-hinta { margin-left: 0; width: 100%; }
  footer { justify-content: center; }
  .footer-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; }
}

/* Liike poistettu käytöstä: staattinen, vakaa sivu */
*, *::before, *::after { animation: none !important; transition: none !important; }
:hover { transform: none !important; }
.cloud { animation: none !important; }

/* Yhtenäinen suomi.fi-tyylinen teema */
:root { --ink: #1f1f1f; --muted: #5a5a5a; --line: #d9d9d6; --paper: #ffffff; }
body { background: #f7f7f5; }
h1, .pricing-title, .faq-title { font-family: Arial, Helvetica, sans-serif; font-style: normal; font-weight: 700; letter-spacing: -.03em; }
.heading-dot { color: #00247d; }
button, .button { background: #00247d; border-color: #00247d; color: #ffffff; }
button:hover, .button:hover { background: #0031a8; }
.secondary-button { background: transparent; color: #00247d; border-color: #949494; }
.secondary-button:hover { background: #eef1f9; }
.domainit-nav { background: #00247d; border-color: #00247d; color: #ffffff; }
header { border-bottom: 1px solid var(--line); }
.input-row, .earn-card, .pricing-table, .tulosrivi { background: #ffffff; }
.input-row:focus-within { border-color: #00247d; box-shadow: 0 0 0 3px #00247d18; }
.on-vapaa .tulos-tila { color: #1d5c31; border-color: #7fbf96; background: #e9f5ec; }
.earn-card .eyebrow, .pricing .eyebrow, .faq .eyebrow { color: var(--muted); }
.pricing-head { background: #eceff6; }

/* Header: joustava korkeus pienillä näytöillä */
header { height: auto; min-height: 60px; padding-block: 10px; gap: 8px 24px; }
.brand { flex-shrink: 0; }

/* Täyden palvelun tilauslomake */
.order { margin-top: 34px; }
.order-pricing { margin-bottom: 22px; }
.order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 8px; }
.order-grid label { font-size: 13px; color: var(--muted); margin-bottom: 0; }
.order-grid input { display: block; width: 100%; margin-top: 6px; min-height: 44px; padding: 10px 14px; font-size: 14px; font-family: inherit; color: var(--ink); background: #ffffff; border: 1px solid var(--line); border-radius: 12px; }
.order-grid input:focus { outline: none; border-color: #00247d; box-shadow: 0 0 0 3px #00247d18; }
#tilaa .error { margin: 6px 0 0; }
#tilaa .school-status:not(:empty) { background: #eef1f9; color: #00247d; }
#tilaa-submit { margin-top: 14px; }
.tulosrivi .order-cta { margin-left: 8px; }
@media (max-width: 560px) {
  .tulosrivi .order-cta { margin-left: 0; margin-top: 8px; }
}
