/* vilnius-riga.app — main pages */
@font-face { font-family: "Baloo"; src: url("/assets/fonts/Baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --bg: #FBFAF6;
  --ink: #1A1F1C;
  --muted: #4A524D;
  --soft: #5C645F;
  --line: #E4E0D4;
  --field: #CFCABB;
  --red: #9E2B36;
  --sun: #F5D042;
  --teal: #02343F;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* Header */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 32px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: "Baloo", sans-serif; font-weight: 800; font-size: 24px; line-height: 1; }
.top nav { display: flex; gap: 24px; font-size: 17px; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--red); }

/* Hero */
.hero { margin: 16px 0 36px; }
.hero h1 { font-family: "Baloo", sans-serif; font-weight: 800; font-size: clamp(34px, 6vw, 52px); line-height: 1.05; }
.hero p { font-size: 18px; color: var(--muted); margin-top: 10px; }

/* App tiles */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 170px)); gap: 22px; }
.tile {
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 12px 10px; text-align: center;
  background: #fff; border: 4px solid #000; border-radius: 22px; box-shadow: 5px 5px 0 #000;
  position: relative; transition: transform .12s ease, box-shadow .12s ease;
}
.tile:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #000; }
/* The app name link covers the whole card; store buttons sit above it */
.card-link { text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.card-link:focus-visible::after { outline: 3px solid var(--red); outline-offset: 4px; }
.tile > img { width: 56px; height: 56px; border: 3px solid #000; border-radius: 15px; }
.tile h2 { font-family: "Baloo", sans-serif; font-weight: 800; font-size: 17px; line-height: 1.1; margin-top: 2px; }
.tile small { font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.stores { display: flex; gap: 5px; align-self: stretch; margin-top: 3px; position: relative; z-index: 1; }
.store {
  flex: 1; display: flex; align-items: center; justify-content: center; height: 32px;
  background: #fff; border: 2.5px solid #000; border-radius: 10px; cursor: pointer;
  transition: transform .1s ease;
}
.store:hover { transform: translateY(-2px); }
.store img { width: 16px; height: 18px; }

/* Text pages */
.page { padding: 8px 0 24px; max-width: 760px; }
.page h1 { font-family: "Baloo", sans-serif; font-weight: 800; font-size: clamp(32px, 5vw, 44px); line-height: 1.1; }
.page h2 { font-family: "Baloo", sans-serif; font-weight: 800; font-size: 22px; margin: 28px 0 8px; }
.page p, .page li { color: var(--muted); }
.page p { margin-top: 10px; }
.page ul { margin: 8px 0 0 22px; }
.page li { margin-top: 4px; }
.page a { color: var(--red); }
.updated { font-size: 13px; letter-spacing: 1.5px; font-weight: 800; color: var(--soft) !important; }
.links { list-style: none; margin-left: 0 !important; }
.links li { margin-top: 10px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 15px; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 600; color: var(--ink);
  padding: 11px 14px; background: #fff; border: 1px solid var(--field); border-radius: 10px;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.count { align-self: flex-end; font-size: 13px; color: var(--soft); font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.btn {
  font: inherit; font-weight: 800; font-size: 16px; cursor: pointer;
  padding: 12px 26px; background: var(--sun); color: #000;
  border: 3px solid #000; border-radius: 14px; box-shadow: 4px 4px 0 #000;
}
.btn:disabled { opacity: .6; cursor: default; }
.form-status { min-height: 24px; font-weight: 800; }
.form-status.ok { color: #1F6B3A; }
.form-status.err { color: var(--red); }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding: 20px 0 32px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--soft);
}
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* iOS notice */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: #000; color: #fff; font-weight: 800; font-size: 15px;
  padding: 12px 20px; border-radius: 12px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 400px) {
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* App pages */
.app-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 8px 0 40px; }
.app-hero > img { width: 120px; height: 120px; border: 4px solid #000; border-radius: 30px; box-shadow: 5px 5px 0 #000; }
.app-hero h1 { font-family: "Baloo", sans-serif; font-weight: 800; font-size: clamp(34px, 6vw, 52px); line-height: 1.05; }
.app-hero p { font-size: 18px; color: var(--muted); margin-top: 6px; }
.app-hero .stores { width: 150px; margin-top: 14px; }
.app-hero .store { height: 40px; }
.app-hero .store img { width: 19px; height: 21px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.feature { background: #fff; border: 3px solid #000; border-radius: 18px; box-shadow: 4px 4px 0 #000; padding: 18px 20px; }
.feature h2 { font-family: "Baloo", sans-serif; font-weight: 800; font-size: 20px; line-height: 1.15; }
.feature p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.app-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 32px; font-size: 15px; }
.app-links a { color: var(--red); }
