/* Jere 40 – juhlakutsu: norsunluunvalkoinen paperi, syvä yönsininen ja kulta */
:root {
  --paper: #f8f4ec;
  --paper2: #f1eadc;
  --card: #fffdf8;
  --ink: #1b2140;
  --navy: #141a33;
  --navy2: #1d2547;
  --muted: #646779;
  --line: rgba(27, 33, 64, .14);
  --gold: #b08d4a;
  --gold-dark: #8a6a2f;
  --gold-light: #e6cf94;
  --foil: linear-gradient(115deg, #8a6a2f 0%, #c9a65e 22%, #f2e2ae 40%, #d2b06a 55%, #9c7a3a 75%, #d9bd7c 100%);
  --radius: 6px;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --body: 'Jost', system-ui, sans-serif;
  --script: 'Pinyon Script', 'Cormorant Garamond', cursive;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-weight: 400; font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--paper); font-variant-numeric: lining-nums;
}
#snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
header, section, footer { position: relative; z-index: 1; }
.wrap { width: min(1040px, 100% - 36px); margin: 0 auto; }
a { color: var(--gold-dark); }
h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 6vw, 3.5rem); line-height: 1.05; margin: 0 0 8px;
  text-align: center; letter-spacing: .01em;
}
h2 em { font-style: italic; color: var(--gold-dark); }
h2::after {
  content: ""; display: block; width: 150px; height: 14px; margin: 14px auto 0;
  background:
    linear-gradient(var(--gold), var(--gold)) left center / 60px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / 60px 1px no-repeat,
    linear-gradient(45deg, transparent 42%, var(--gold) 42%, var(--gold) 58%, transparent 58%) center / 10px 10px no-repeat,
    linear-gradient(-45deg, transparent 42%, var(--gold) 42%, var(--gold) 58%, transparent 58%) center / 10px 10px no-repeat;
}
.sub { color: var(--muted); margin: 0 auto 36px; text-align: center; max-width: 52ch; }
section { padding: 84px 0; }

/* ---------- HERO: kutsukortti yönsinisellä pohjalla ---------- */
.hero {
  min-height: 100svh; display: grid; align-items: center; padding: 40px 0; text-align: center; color: #f3ecdc;
  background:
    radial-gradient(900px 520px at 50% 0%, rgba(230, 207, 148, .16), transparent 70%),
    radial-gradient(700px 500px at 50% 110%, rgba(230, 207, 148, .08), transparent 70%),
    var(--navy);
}
.invite {
  position: relative; z-index: 2; width: min(640px, 100%); margin: 0 auto; padding: 56px 34px 48px;
  border: 1px solid rgba(230, 207, 148, .55); outline: 1px solid rgba(230, 207, 148, .25); outline-offset: -10px;
}
.invite::before, .invite::after {
  content: "✦"; position: absolute; left: 50%; transform: translateX(-50%); color: var(--gold-light); font-size: 14px;
  background: var(--navy); padding: 0 12px; line-height: 1;
}
.invite::before { top: -8px; }
.invite::after { bottom: -8px; }
.kicker { font-weight: 500; letter-spacing: .38em; text-transform: uppercase; font-size: .74rem; color: var(--gold-light); margin: 0 0 18px; }
.invited { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 3.4vw, 1.4rem); margin: 0; color: #d9d2c0; }
.title { margin: 6px 0 0; display: flex; flex-direction: column; align-items: center; line-height: 1; font-weight: 400; }
.title .name { font-family: var(--script); font-size: clamp(3.6rem, 15vw, 6.4rem); line-height: 1; margin-bottom: -.12em; color: #f6efdf; padding: 0 .15em; }
.title .forty {
  font-family: var(--serif); font-weight: 600; font-size: clamp(8.5rem, 38vw, 15rem); line-height: .86; letter-spacing: -.02em;
  background: var(--foil); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 9s ease-in-out infinite; margin: -.04em 0 0; padding: 0 .04em;
  filter: drop-shadow(0 6px 22px rgba(230, 207, 148, .18));
}
.title .yrs { font-family: var(--serif); font-size: .9rem; letter-spacing: .5em; text-transform: uppercase; color: var(--gold-light); margin-top: 10px; padding-left: .5em; }
@keyframes shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.lead { font-family: var(--serif); font-size: clamp(1.2rem, 3.4vw, 1.45rem); max-width: 32ch; margin: 22px auto 26px; color: #e7e0cf; }
.when { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0 18px; max-width: 470px; margin: 0 auto; }
.when > div { display: grid; }
.when > div:first-child { text-align: right; }
.when > div:last-child { text-align: left; }
.when .sep { width: 1px; height: 52px; background: rgba(230, 207, 148, .55); }
.when b { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: .02em; color: #f6efdf; }
.when span { color: #bfb8a6; font-size: .92rem; letter-spacing: .04em; }
.countdown { display: flex; justify-content: center; gap: 0; margin: 34px 0 32px; }
.countdown .unit { min-width: 92px; padding: 0 14px; }
.countdown .unit + .unit { border-left: 1px solid rgba(230, 207, 148, .3); }
.countdown .num { display: block; font-family: var(--serif); font-weight: 500; font-size: 2.6rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; color: #f6efdf; }
.countdown .lbl { display: block; margin-top: 6px; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); }
.countdown .party { font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--gold-light); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .btn { background: var(--foil); background-size: 160% 100%; color: var(--navy); box-shadow: 0 14px 34px -16px rgba(230, 207, 148, .6); }
.hero .btn:hover { background-position: 100% 0; }
.hero .btn.ghost { background: transparent; color: #f3ecdc; box-shadow: inset 0 0 0 1px rgba(230, 207, 148, .6); }

/* ---------- NAPIT ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  padding: 16px 30px; border-radius: 2px; font: inherit; font-weight: 500; font-size: .9rem; letter-spacing: .18em; text-transform: uppercase;
  color: #f8f4ec; background: var(--navy); box-shadow: inset 0 0 0 1px var(--navy), inset 0 0 0 3px rgba(230, 207, 148, .55);
  transition: transform .15s, background-position .6s, background-color .15s;
}
.btn:hover { transform: translateY(-1px); background-color: var(--navy2); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.block { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.textbtn { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 10px; display: block; margin: 6px auto 0; }
.chip { display: inline-block; margin-top: 10px; padding: 0 0 2px; color: var(--gold-dark); text-decoration: none; font-weight: 500; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- OHJELMA ---------- */
#ohjelma { background: var(--paper); }
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 141px; top: 16px; bottom: 16px; width: 1px; background: var(--gold); opacity: .6; }
.timeline li { display: grid; grid-template-columns: 120px 44px 1fr; gap: 0 10px; align-items: start; padding: 18px 0; }
.timeline .t { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.55rem; text-align: right; padding-top: 2px; color: var(--gold-dark); line-height: 1.2; }
.timeline .dot { justify-self: center; margin-top: 12px; width: 13px; height: 13px; transform: rotate(45deg); background: var(--paper); border: 1px solid var(--gold); position: relative; z-index: 1; font-size: 0; }
.timeline .dot::after { content: ""; position: absolute; inset: 3px; background: var(--gold); }
.timeline h3 { font-family: var(--serif); font-weight: 600; margin: 0 0 4px; font-size: 1.5rem; line-height: 1.2; }
.timeline p { margin: 0; color: var(--muted); }

.stats { display: flex; flex-wrap: wrap; gap: 0; margin: 48px auto 0; justify-content: center; max-width: 760px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { flex: 1 1 160px; text-align: center; padding: 22px 14px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: 3rem; line-height: 1; font-weight: 500; color: var(--gold-dark); }
.stat span { color: var(--muted); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- PIZZALISTA ---------- */
#pizzalista { background: var(--paper2); }
.pizza-list { columns: 3 270px; column-gap: 40px; background: var(--card); border: 1px solid var(--line); outline: 1px solid rgba(176, 141, 74, .35); outline-offset: -8px; padding: 34px 34px; }
.pizza-list .pi { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pizza-list .pi b { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.pizza-list .pi b i { font-style: italic; font-weight: 500; color: var(--gold-dark); margin-right: 8px; }
.pizza-list .pi span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.pizza-list .pi span.tag { display: inline-block; font-size: .6rem; line-height: 1.5; color: var(--gold-dark); }
.tag { display: inline-block; font-family: var(--body); font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 1px 7px; border: 1px solid rgba(176, 141, 74, .6); color: var(--gold-dark); margin-left: 8px; vertical-align: 3px; }

/* ---------- LOMAKE ---------- */
#ilmoittaudu { background: var(--paper); }
.form-grid { display: grid; gap: 28px; }
.form-intro h2 { text-align: left; }
.form-intro h2::after { margin-left: 0; }
.form-intro p { color: var(--muted); margin: 10px 0; }
.deadline { color: var(--ink) !important; font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.deadline b { color: var(--gold-dark); font-weight: 600; }
.formcard { background: var(--card); border: 1px solid var(--line); outline: 1px solid rgba(176, 141, 74, .35); outline-offset: -8px; padding: 34px 26px; box-shadow: 0 30px 60px -40px rgba(27, 33, 64, .4); }
.q { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; margin: 0 0 12px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.choice button, .seg button {
  font: inherit; font-weight: 400; color: var(--ink); background: transparent; border: 1px solid var(--line);
  border-radius: 2px; padding: 14px 10px; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.choice button:hover, .seg button:hover { border-color: var(--gold); }
.choice button[aria-pressed="true"], .seg button[aria-checked="true"] { border-color: var(--navy); background: var(--navy); color: #f8f4ec; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg button { padding: 12px 6px; font-size: .92rem; line-height: 1.25; }
.lbl { display: block; font-weight: 500; margin: 16px 0 6px; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); font-size: .88rem; }
.input {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid rgba(27, 33, 64, .22); border-radius: 2px; padding: 12px 14px;
}
.input::placeholder { color: #9a9cab; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 141, 74, .18); outline: none; }
.input.num { width: 110px; }
textarea.input { min-height: 100px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 10px; cursor: pointer; color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.hint { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }
.privacy { color: var(--muted); font-size: .86rem; margin: 20px 0 4px; }
.error { color: #a3261e; font-weight: 500; min-height: 1.2em; margin: 6px 0; }
.block { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0 4px; margin: 24px 0 0; }
.block legend { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; padding: 0 12px 0 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row .lbl { margin: 12px 0 0; }
form.not-coming .only-coming { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Henkilökortti */
.person { background: var(--paper); border: 1px solid var(--line); padding: 16px; margin-bottom: 12px; position: relative; }
.person .ph { display: flex; justify-content: space-between; align-items: center; }
.person .ph b { font-family: var(--body); font-weight: 500; color: var(--gold-dark); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; }
.person .rm { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; }
.person .lbl:first-of-type { margin-top: 8px; }
.pick {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: #fff; border: 1px dashed rgba(176, 141, 74, .8); border-radius: 2px; padding: 12px 14px;
}
.pick:hover { border-style: solid; }
.pick .pe { font-size: 1.5rem; }
.pick b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.2; }
.pick small { display: block; color: var(--muted); line-height: 1.3; }
.pick.chosen { border-style: solid; border-color: var(--gold); background: #fbf5e7; }
.add { width: 100%; font: inherit; font-weight: 500; color: var(--ink); background: none; border: 1px dashed rgba(27, 33, 64, .35); border-radius: 2px; padding: 12px; cursor: pointer; }
.add:hover { border-color: var(--gold); }
.add small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.not-coming .person .only-coming { display: none; }

/* Oma ilmoittautuminen */
.done { text-align: center; }
.done .big { font-family: var(--script); font-size: 3.4rem; line-height: 1; color: var(--gold-dark); }
.done h3 { font-family: var(--serif); font-weight: 600; font-size: 2rem; margin: 4px 0 8px; }
.done ul { text-align: left; background: var(--paper); border: 1px solid var(--line); padding: 14px 18px 14px 34px; margin: 16px 0; color: var(--muted); }
.done ul b { color: var(--ink); font-weight: 500; }
.done .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- PIZZADIALOGI ---------- */
dialog#pizzaDialog {
  width: min(720px, 100% - 20px); max-height: min(86vh, 900px); padding: 0; border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px rgba(20, 26, 51, .35);
}
dialog#pizzaDialog::backdrop { background: rgba(20, 26, 51, .6); backdrop-filter: blur(3px); }
dialog[open] { display: flex; flex-direction: column; animation: pop .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { transform: translateY(18px) scale(.98); opacity: 0; } }
.pd-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 6px; }
.pd-head h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.7rem; }
.pd-close { background: transparent; border: 1px solid var(--line); color: var(--ink); width: 40px; height: 40px; border-radius: 50%; font-size: 1rem; cursor: pointer; }
.pd-search { margin: 6px 20px 12px; width: auto; }
.pd-grid { overflow: auto; padding: 4px 20px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pd-card {
  text-align: left; font: inherit; color: var(--ink); cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px;
  transition: border-color .12s, transform .12s; display: flex; flex-direction: column; justify-content: flex-start;
}
.pd-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.pd-card[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #fbf5e7; }
.pd-card b { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; display: block; line-height: 1.25; }
.pd-card b i { font-style: italic; font-weight: 500; color: var(--gold-dark); margin-right: 6px; }
.pd-card span { color: var(--muted); font-size: .86rem; line-height: 1.3; display: block; margin-top: 3px; }
.pd-card.none { border-style: dashed; }
.pd-card span.tag { display: inline-block; margin: 0 0 0 6px; color: var(--gold-dark); font-size: .58rem; }

/* ---------- KYYTIPÖRSSI ---------- */
#kyydit { background: var(--paper2); }
.rides { display: grid; gap: 16px; }
.ridecol { background: var(--card); border: 1px solid var(--line); padding: 24px 26px; }
.ridecol h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin: 0 0 10px; }
.ridecol ul { list-style: none; margin: 0; padding: 0; }
.ridecol li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.ridecol li:first-child { border-top: 0; }
.ridecol li span { color: var(--muted); }
.ridecol li span b { color: var(--ink) !important; font-weight: 500; }
.ridecol li em { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold-dark); white-space: nowrap; }
.ridecol li.empty { color: var(--muted); display: block; font-style: italic; }

/* ---------- VIERASKIRJA ---------- */
#vieraskirja { background: var(--navy); color: #f3ecdc; padding: 90px 0; }
.guestbook { text-align: center; }
.guestbook h2 { color: #f6efdf; }
.guestbook h2 em { color: var(--gold-light); }
.gcount { color: var(--gold-light); font-weight: 500; letter-spacing: .26em; text-transform: uppercase; font-size: .76rem; margin: 14px 0 34px; }
.notes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; text-align: center; }
.note {
  position: relative; background: var(--card); color: var(--ink); padding: 26px 20px 20px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .7);
  outline: 1px solid rgba(176, 141, 74, .45); outline-offset: -7px; animation: rise .5s both;
}
.note .who { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.15; color: var(--navy); }
.note p { margin: 10px 0 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; font-style: italic; white-space: pre-line; overflow-wrap: anywhere; color: #3a3f58; }
.note .st { display: inline-block; margin-top: 12px; font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); }
.note.absent { background: #ece7dc; }
.notes .empty { grid-column: 1 / -1; text-align: center; color: #bfb8a6; list-style: none; font-family: var(--serif); font-style: italic; font-size: 1.25rem; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

footer { text-align: center; padding: 50px 0 120px; color: #bfb8a6; background: var(--navy); border-top: 1px solid rgba(230, 207, 148, .2); letter-spacing: .2em; text-transform: uppercase; font-size: .76rem; }
footer span { display: inline-block; margin-top: 8px; font-family: var(--script); font-size: 2rem; letter-spacing: 0; text-transform: none; color: var(--gold-light); }

/* ---------- MOBIILIN KIINTEÄ PALKKI ---------- */
.sticky { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; transform: translateY(160%); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.sticky.show { transform: none; }
.sticky .btn { width: 100%; box-shadow: inset 0 0 0 1px var(--navy), inset 0 0 0 3px rgba(230, 207, 148, .55), 0 14px 30px -12px rgba(20, 26, 51, .6); }

/* ---------- PALJASTUS ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- KIRJEANIMAATIO: nappi taittuu kirjekuoreksi ja lentää pois ---------- */
.letter {
  position: fixed; z-index: 120; margin: 0; background: #f3ecdc; color: var(--navy); border-radius: 2px; display: grid; place-items: center;
  font-weight: 500; font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; perspective: 700px; pointer-events: none;
  box-shadow: 0 14px 30px -12px rgba(20, 26, 51, .6), inset 0 0 0 1px rgba(176, 141, 74, .6);
}
.letter .txt { white-space: nowrap; }
.letter .folds {
  position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), rgba(176, 141, 74, .6) 50%, transparent calc(50% + 1px)) left bottom / 50% 60% no-repeat,
    linear-gradient(to top left, transparent calc(50% - 1px), rgba(176, 141, 74, .6) 50%, transparent calc(50% + 1px)) right bottom / 50% 60% no-repeat;
}
.letter .flap {
  position: absolute; left: 0; right: 0; top: 0; height: 58%; transform-origin: top center; transform: rotateX(180deg);
  background: linear-gradient(180deg, #e8dec7, #d9ccad); clip-path: polygon(2px 0, calc(100% - 2px) 0, 50% 100%); backface-visibility: visible;
}
.letter .seal {
  position: absolute; left: 50%; top: 58%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; transform: scale(0);
  background: radial-gradient(circle at 35% 35%, #3a4677, var(--navy) 70%); color: var(--gold-light); display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: 0; box-shadow: 0 2px 5px rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(230, 207, 148, .5);
}
.sparkle { position: fixed; z-index: 119; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); pointer-events: none; }

/* ---------- LEVEÄMPI NÄYTTÖ ---------- */
@media (min-width: 860px) {
  .form-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
  .form-intro { position: sticky; top: 40px; }
  .formcard { padding: 44px 40px; }
  .rides { grid-template-columns: 1fr 1fr; }
  .sticky { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .invite { padding: 44px 18px 38px; }
  .when { grid-template-columns: 1fr; gap: 10px; }
  .when > div:first-child, .when > div:last-child { text-align: center; }
  .when .sep { width: 60px; height: 1px; margin: 0 auto; }
  .countdown .unit { min-width: 0; padding: 0 12px; }
  .countdown .num { font-size: 2.2rem; }
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 13px 1fr; gap: 0 18px; padding: 14px 0; }
  .timeline .t { grid-column: 2; text-align: left; padding: 0; order: -1; font-size: 1.3rem; }
  .timeline .dot { grid-row: 1 / span 2; grid-column: 1; margin-top: 9px; }
  .timeline .c { grid-column: 2; }
  .pizza-list { padding: 24px 22px; }
  .formcard { padding: 28px 18px; }
  .seg { grid-template-columns: 1fr; }
  .choice { grid-template-columns: 1fr; }
  .form-intro h2 { text-align: center; }
  .form-intro h2::after { margin-left: auto; }
  .form-intro { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
