/* Kamarát — landing. The app's palette and fonts (Rubik for display, Onest for text, Caveat for hand notes), drawn
   the way Macko is drawn: ink outlines and hard shadows, flat fills, the Čičmany diamond lattice. */

@font-face { font-family: "Onest"; src: url("../fonts/Onest.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../fonts/Rubik.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/Caveat.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #f7f1e5;
  --paper-2: #efe6d4;
  --card: #fffdf8;
  --ink: #15182c;
  --muted: #5d5b6a;
  --edge: #15182c;
  --shadow: #15182c;
  --hero: #1f55e0;
  --hero-deep: #0e2f94;
  --on-hero-muted: #cfdcff;
  --sun: #ffc62e;
  --red: #ee2b34;
  --mint: #12a56c;
  --mint-soft: #d4f2e3;
  --sky: #59b8f5;
  --bw: 2.5px;
  --sh-sm: 3px 3px 0 var(--shadow);
  --sh: 5px 5px 0 var(--shadow);
  --sh-lg: 8px 8px 0 var(--shadow);
  --r: 26px;
  --gutter: 20px;
  --max: 1180px;
  --display: "Rubik", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Onest", cursive;
  --lattice: url("../img/lattice.svg");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d0f1e;
    --paper-2: #151831;
    --card: #191c36;
    --ink: #f6f2ea;
    --muted: #a3a6c4;
    --edge: #e9e3d6;
    --shadow: #000000;
    --mint-soft: #123a2b;
    --lattice: url("../img/lattice-dark.svg");
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--ink); background: var(--paper) var(--lattice) 0 0 / 56px repeat; font: 17px/1.55 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(46px, 7vw, 84px); }
h2 { font-size: clamp(34px, 5vw, 60px); }
h3 { font-size: 24px; letter-spacing: -0.015em; line-height: 1.12; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--card); padding: 8px 12px; border-radius: 10px; }

/* ---------- pieces */
.card { background: var(--card); border: var(--bw) solid var(--edge); border-radius: var(--r); box-shadow: var(--sh); }
.sticker {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; align-self: flex-start;
  font: 800 12px/1.2 var(--body); letter-spacing: .09em; text-transform: uppercase; color: #15182c;
  background: var(--sun); border: 2px solid var(--edge); border-radius: 10px; box-shadow: var(--sh-sm); transform: rotate(-2.5deg);
}
.sticker.blue { background: var(--hero); color: #fff; }
.sticker.red { background: var(--red); color: #fff; }
.sticker.mint { background: var(--mint); color: #fff; }
.sticker.sky { background: var(--sky); color: #15182c; }
.sticker.white { background: #fff; color: #15182c; }
.mark { background: linear-gradient(transparent 58%, var(--sun) 58% 92%, transparent 92%); padding: 0 .06em; }
.squiggle { position: relative; white-space: nowrap; color: var(--hero); }
.squiggle::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.16em; height: .2em; background: url("../img/squiggle.svg") 0 50% / auto 100% repeat-x; }
.flag { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1.5px var(--edge); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 18px;
  border: var(--bw) solid var(--edge); font: 800 17px/1.1 var(--display); text-decoration: none; cursor: pointer; box-shadow: var(--sh-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shadow); }
.btn-ink { background: #15182c; color: #fff; text-align: left; }
.btn-ink small { display: block; font: 600 11.5px/1.2 var(--body); opacity: .75; letter-spacing: .02em; }
.btn-ink svg { width: 26px; height: 26px; flex: none; }
.btn-sun { background: var(--sun); color: #15182c; }
.btn-white { background: var(--card); color: var(--ink); }
.btn[aria-disabled="true"] { cursor: default; }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: var(--bw) solid var(--edge); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 23px var(--display); letter-spacing: -.02em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; border: 2px solid var(--edge); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lang { display: flex; border: 2px solid var(--edge); border-radius: 999px; padding: 2px; background: var(--card); }
.lang a, .lang span { padding: 4px 10px; border-radius: 999px; font: 800 13px var(--body); text-decoration: none; }
.lang span { background: var(--ink); color: var(--paper); }
.top .btn { padding: 9px 16px; font-size: 15px; border-radius: 14px; }
@media (max-width: 900px) { .nav { display: none; } .lang { margin-left: auto; } }
@media (max-width: 420px) { .top .btn { display: none; } }

/* ---------- hero */
.hero { padding: 54px 0 74px; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: 30px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 6px 14px 6px 6px; border: 2px solid var(--edge); border-radius: 999px; background: var(--card); box-shadow: var(--sh-sm); font-weight: 700; font-size: 14.5px; }
.pill b { background: var(--red); color: #fff; border-radius: 999px; padding: 3px 9px; font: 800 11.5px var(--body); text-transform: uppercase; letter-spacing: .06em; }
.hero h1 { margin: 22px 0 0; }
.hero .lead { font-size: 19.5px; color: var(--muted); max-width: 36ch; margin: 24px 0 28px; }
.hero .lead b { color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-weight: 700; font-size: 14.5px; }
.checks li { display: flex; align-items: center; gap: 7px; }
.checks li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--mint) url("../img/check.svg") center / 12px no-repeat; border: 2px solid var(--edge); flex: none; }

.stage { position: relative; height: 610px; }
.stage .phone { position: absolute; width: 266px; }
.stage .p1 { left: 6%; top: 34px; transform: rotate(-7deg); z-index: 1; }
.stage .p2 { right: 3%; top: 0; transform: rotate(5deg); z-index: 2; }
.phone { border: 3px solid var(--edge); border-radius: 42px; background: #0b0c14; padding: 7px; box-shadow: var(--sh-lg); }
.phone img { border-radius: 34px; width: 100%; }
.stage .macko-btn { position: absolute; left: -5%; bottom: -14px; width: 236px; z-index: 3; }
.chip { position: absolute; z-index: 4; padding: 9px 15px; border: var(--bw) solid var(--edge); border-radius: 16px; font: 800 19px/1.1 var(--display); box-shadow: var(--sh-sm); white-space: nowrap; animation: bob 5s ease-in-out infinite; }
.chip small { display: block; font: 600 13px var(--body); margin-top: 2px; opacity: .85; }
.chip.c1 { top: 5%; left: -3%; background: var(--sun); color: #15182c; rotate: -6deg; }
.chip.c2 { top: 41%; right: -5%; background: var(--mint); color: #fff; rotate: 5deg; animation-delay: -1.6s; }
.chip.c3 { bottom: 7%; right: 4%; background: var(--card); color: var(--ink); rotate: -3deg; animation-delay: -3.1s; }
.chip.c3 s { color: var(--red); text-decoration-thickness: 3px; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }

.macko-btn { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; position: relative; }
.macko-btn img { width: 100%; transform-origin: 50% 92%; }
.macko-btn .bubble { position: absolute; top: 0; left: 64%; white-space: nowrap; pointer-events: none; background: var(--card); color: var(--ink); border: var(--bw) solid var(--edge); border-radius: 999px; padding: 6px 14px; font: 800 19px var(--display); box-shadow: var(--sh-sm); opacity: 0; transform-origin: 0 100%; }
.macko-btn .bubble.pop { animation: pop 1.1s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes pop { 0% { opacity: 0; transform: scale(.3); } 18% { opacity: 1; transform: scale(1); } 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.9); } }
.macko-btn.jump img { animation: jump .9s cubic-bezier(.3, .7, .4, 1); }
.macko-btn.wiggle img { animation: wiggle .9s ease; }
.macko-btn.shake img { animation: shake .8s ease; }
@keyframes jump { 0% { transform: none; } 15% { transform: scale(1.12, .84); } 45% { transform: translateY(-22%) scale(.94, 1.08); } 72% { transform: scale(1.1, .88); } 86% { transform: scale(.98, 1.03); } 100% { transform: none; } }
@keyframes wiggle { 0%, 100% { transform: none; } 20% { transform: rotate(-7deg); } 45% { transform: rotate(6deg); } 70% { transform: rotate(-3deg); } }
@keyframes shake { 0%, 100% { transform: none; } 10%, 30%, 50%, 70% { transform: translateX(-3%) rotate(-2deg); } 20%, 40%, 60%, 80% { transform: translateX(3%) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .macko-btn img, .macko-btn .bubble.pop { animation: none !important; } .macko-btn .bubble.pop { opacity: 1; } }

@media (max-width: 960px) {
  .hero { padding-top: 30px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { height: 480px; max-width: 520px; width: 100%; margin: 14px auto 0; }
  .stage .phone { width: 214px; }
  .stage .macko-btn { width: 180px; left: -2%; }
  .chip { font-size: 16px; }
}
@media (max-width: 480px) {
  .stage { height: 410px; }
  .stage .phone { width: 47vw; }
  .stage .p1 { left: 0; }
  .stage .p2 { right: 0; }
  .stage .macko-btn { width: 150px; left: -4%; }
  .chip.c1 { left: 0; }
  .chip.c2 { right: 0; }
  .hero .lead { font-size: 18px; }
}

/* ---------- ticker */
.ticker { background: var(--sun); border-block: var(--bw) solid var(--edge); overflow: hidden; padding: 12px 0; }
.ticker .track { display: flex; gap: 12px; width: max-content; animation: scroll 80s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.word { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; background: #fff; color: #15182c; border: 2px solid #15182c; border-radius: 999px; white-space: nowrap; font-size: 15px; }
.word b { font: 800 16px var(--display); }
.word .flag { box-shadow: 0 0 0 1.5px #15182c; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }

/* ---------- sections */
section.block { padding: 110px 0 0; }
.head { max-width: 780px; margin-bottom: 44px; }
.head h2 { margin-top: 16px; }
.head p { font-size: 19px; color: var(--muted); margin-top: 16px; }

/* courses */
.courses { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 120px; }
.course { position: relative; padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 16px; }
.course.sk { background: var(--hero); color: #fff; }
.course.cs { background: var(--sun); color: #15182c; }
.course .macko { position: absolute; right: 18px; top: -124px; width: 168px; }
.course .note { position: absolute; right: 186px; top: -34px; font: 700 31px var(--hand); rotate: -6deg; color: var(--ink); }
.course h3 { font-size: clamp(46px, 6vw, 70px); letter-spacing: -.03em; display: flex; align-items: center; gap: 14px; }
.course h3 .flag { width: 42px; height: 42px; box-shadow: 0 0 0 2.5px #15182c; }
.course .native { font-weight: 800; opacity: .85; margin-top: -8px; }
.course .desc { font-size: 17px; opacity: .92; max-width: 38ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: #fffdf8; color: #15182c; border: 2px solid #15182c; border-radius: 16px; padding: 12px; box-shadow: 3px 3px 0 #15182c; }
.stat b { display: block; font: 800 28px/1 var(--display); }
.stat span { font-size: 13.5px; color: #5d5b6a; font-weight: 600; }
.regions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; list-style: none; }
.regions li { font-size: 13.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 2px solid currentColor; }
.regions li b { font-family: var(--display); margin-right: 5px; }
@media (max-width: 960px) { .courses { grid-template-columns: 1fr; gap: 140px; } }
@media (max-width: 520px) { .course { padding: 28px 20px 22px; } .course .note { right: 128px; font-size: 26px; } .course .macko { width: 132px; top: -104px; } .stat b { font-size: 22px; } .stat { padding: 10px 8px; } }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { padding: 24px; display: flex; flex-direction: column; gap: 12px; grid-column: span 2; overflow: hidden; }
.tile.w3 { grid-column: span 3; }
.tile p { color: var(--muted); font-size: 15.5px; }
.tile.blue { background: var(--hero); color: #fff; }
.tile.blue p { color: var(--on-hero-muted); }
.tile.ink { background: #15182c; color: #fff; }
.tile.ink p { color: #b8bbd6; }
.tile .demo { margin-top: auto; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile, .tile.w3 { grid-column: span 1; } .tile.wide-m { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile, .tile.w3, .tile.wide-m { grid-column: span 1; } }

.gram { display: grid; gap: 10px; }
.gram div { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border: 2px solid var(--edge); border-radius: 16px; padding: 12px 14px; }
.gram .s { display: block; font: 700 18px var(--display); }
.gram .s em { font-style: normal; background: var(--sun); color: #15182c; border-radius: 6px; padding: 0 5px; }
.gram .n { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }

.rate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rate button { border: 2px solid #f6f2ea; border-radius: 14px; padding: 10px 4px; cursor: pointer; font-weight: 800; font-size: 15px; box-shadow: 3px 3px 0 #000; transition: transform .1s; }
.rate button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.rate button small { display: block; font-weight: 600; font-size: 12.5px; opacity: .8; }
.rate .again { background: #ffd9d6; color: #7a1018; }
.rate .hard { background: #e9e3ff; color: #3b2a8c; }
.rate .good { background: #d4f2e3; color: #0b5c3b; }
.rate .easy { background: #fff1bf; color: #6b4b00; }
.rate-out { min-height: 26px; margin-top: 10px; font-weight: 700; color: var(--sun); }

.wcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wcard { background: var(--paper); border: 2px solid var(--edge); border-radius: 16px; padding: 8px; box-shadow: var(--sh-sm); }
.wcard:nth-child(1) { rotate: -3deg; }
.wcard:nth-child(3) { rotate: 3deg; }
.wcard img { border-radius: 10px; background: #f3efe6; aspect-ratio: 1; object-fit: contain; width: 100%; }
.wcard b { display: block; font: 800 16px var(--display); margin-top: 6px; }
.wcard span { font-size: 13px; color: var(--muted); }

.flips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.flip { perspective: 600px; background: none; border: 0; padding: 0; cursor: pointer; height: 112px; }
.flip .in { position: relative; display: block; height: 100%; transition: transform .5s cubic-bezier(.3, 1.3, .5, 1); transform-style: preserve-3d; }
.flip.on .in { transform: rotateY(180deg); }
.flip .f, .flip .b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 2px solid #15182c; border-radius: 16px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 6px; text-align: center; }
.flip .f { background: #fff; color: #15182c; }
.flip .f b { font: 800 20px var(--display); }
.flip .f small { font-size: 12.5px; color: #6c6a78; }
.flip .b { background: var(--sun); color: #15182c; transform: rotateY(180deg); font-weight: 700; font-size: 14px; line-height: 1.25; }
.flip .b b { font: 800 18px var(--display); }
.flip .b s { color: var(--red); }
.hint { font-size: 13px; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .flip .in { transition: none; } }

.read { background: var(--paper); border: 2px solid var(--edge); border-radius: 16px; padding: 14px 16px; font-size: 18px; line-height: 1.75; }
.read button { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; border-bottom: 2.5px dotted var(--hero); }
.read button.on { background: var(--sun); color: #15182c; border-radius: 4px; border-bottom-color: transparent; }
.read-out { margin-top: 10px; min-height: 26px; font-weight: 700; }
.read-out b { font-family: var(--display); }

.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; margin: 0; list-style: none; }
.kinds li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; padding: 8px 10px; border: 2px solid var(--edge); border-radius: 14px; background: var(--paper); }
.kinds li i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 14px; border: 2px solid var(--edge); flex: none; background: var(--card); }

.notif { display: flex; gap: 10px; align-items: flex-start; background: color-mix(in srgb, var(--card) 72%, #c9cbd6); border: 2px solid var(--edge); border-radius: 20px; padding: 10px 12px; box-shadow: var(--sh-sm); }
.notif img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.notif .t { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.notif .t b { font-weight: 800; }
.notif .t span { color: var(--muted); }
.notif p { color: var(--ink) !important; font-size: 14.5px !important; line-height: 1.35; margin-top: 2px; }
.minute { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; padding: 6px 12px; border: 2px solid var(--edge); border-radius: 999px; background: var(--mint-soft); align-self: flex-start; }
.handy { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.widget { aspect-ratio: 1; border-radius: 28px; border: 2.5px solid #15182c; background: linear-gradient(150deg, #1f55e0, #0e2f94); color: #fff; padding: 14px; display: flex; flex-direction: column; box-shadow: var(--sh-sm); }
.widget small { font: 800 10.5px var(--body); letter-spacing: .08em; opacity: .75; }
.widget b { font: 800 26px var(--display); margin-top: 4px; }
.widget span { font-size: 13px; opacity: .85; }
.widget .streak { margin-top: auto; display: inline-flex; gap: 4px; align-items: center; font: 800 16px var(--display); color: var(--sun); opacity: 1; }
.handy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.handy li { display: flex; gap: 9px; align-items: center; font-weight: 700; font-size: 14.5px; }
.handy li i { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--edge); display: grid; place-items: center; font-style: normal; flex: none; background: var(--paper); }
@media (max-width: 380px) { .handy { grid-template-columns: 1fr; } .widget { max-width: 160px; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step .phone { border-radius: 34px; padding: 6px; }
.step .phone img { border-radius: 28px; aspect-ratio: 9 / 16; object-fit: cover; object-position: top center; width: 100%; }
.step h3 { display: flex; gap: 10px; align-items: center; font-size: 22px; }
.step h3::before { counter-increment: step; content: counter(step); flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--sun); color: #15182c; border: 2px solid var(--edge); display: grid; place-items: center; font-size: 18px; box-shadow: var(--sh-sm); }
.step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px var(--gutter) 16px; margin: 0 calc(-1 * var(--gutter)); } .step { flex: 0 0 76%; scroll-snap-align: center; } }

/* motivation */
.moti { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; }
.moti .tile { grid-column: auto; }
.streak-big { display: flex; align-items: baseline; gap: 10px; }
.streak-big b { font: 800 92px/0.9 var(--display); color: var(--sun); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 6px; }
.week span { aspect-ratio: 1; border-radius: 10px; border: 2px solid #f6f2ea; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.week .d { background: var(--mint); }
.week .f { background: var(--sky); color: #15182c; }
.week .t { border-style: dashed; }
.week-l { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; font-size: 12px; text-align: center; color: #b8bbd6; }
.moods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.moods button { background: none; border: 0; padding: 0; cursor: pointer; }
.moods img { width: 100%; transition: transform .2s; }
.moods button:hover img, .moods button:focus-visible img { transform: translateY(-4px) rotate(-3deg); }
.moods figure { margin: 0; }
.moods figcaption { font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
.vac img { width: 160px; margin: 0 auto; }
@media (max-width: 1000px) { .moti { grid-template-columns: 1fr 1fr; } .moti .tile:first-child { grid-column: span 2; } }
@media (max-width: 640px) { .moti { grid-template-columns: 1fr; } .moti .tile:first-child { grid-column: auto; } }

/* faq */
.faqwrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.faqwrap .side { position: sticky; top: 100px; }
.faqwrap .side img { width: 170px; margin-top: 18px; }
.faqwrap .side p { color: var(--muted); margin-top: 14px; }
.faq { display: grid; gap: 14px; }
.faq details { background: var(--card); border: var(--bw) solid var(--edge); border-radius: 20px; box-shadow: var(--sh-sm); padding: 0 20px; }
.faq details[open] { box-shadow: var(--sh); }
.faq summary { cursor: pointer; list-style: none; font: 800 19px/1.3 var(--display); padding: 18px 44px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; width: 30px; height: 30px; border-radius: 10px; border: 2px solid var(--edge); display: grid; place-items: center; font: 800 20px/1 var(--body); background: var(--paper); }
.faq details[open] summary::after { content: "−"; background: var(--sun); color: #15182c; }
.faq details p { color: var(--muted); padding: 0 0 18px; }
@media (max-width: 900px) { .faqwrap { grid-template-columns: 1fr; } .faqwrap .side { position: static; } .faqwrap .side img { display: none; } }

/* final */
.final { margin-top: 120px; background: var(--hero) url("../img/pattern.svg") 0 0 / 64px repeat; color: #fff; border-top: var(--bw) solid var(--edge); }
.final .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: center; padding-top: 70px; padding-bottom: 50px; }
.final h2 { font-size: clamp(42px, 6.4vw, 78px); }
.final p { color: var(--on-hero-muted); font-size: 19px; margin: 18px 0 26px; max-width: 40ch; }
.final .macko-btn { width: min(100%, 330px); justify-self: center; }
.final .btn-ink { background: #fff; color: #15182c; }
@media (max-width: 800px) { .final .wrap { grid-template-columns: 1fr; } .final .macko-btn { width: 220px; } }

/* footer */
footer { background: #15182c; color: #b8bbd6; padding: 30px 0 40px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
footer a { color: #fff; text-decoration: none; font-weight: 700; }
footer a:hover { text-decoration: underline; }
footer .grow { flex: 1; }
footer strong { color: #fff; font: 800 18px var(--display); }

/* legal pages */
.legal { max-width: 780px; margin: 50px auto 90px; padding: 34px 30px; }
.legal h1 { font-size: clamp(30px, 6vw, 52px); margin: 14px 0 10px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.legal h2 { font-size: 24px; margin: 32px 0 10px; }
.legal p + p { margin-top: 12px; }
.legal a { text-decoration-thickness: 2px; }
.legal.center { text-align: center; }
.legal.center img { width: 220px; margin: 0 auto 10px; }
@media (max-width: 520px) { .legal { margin: 24px 12px 60px; padding: 24px 18px; } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
