/* Kotisivu (GitHub Pages). Värit samat kuin sovelluksessa (web/styles.css). */
:root {
  --bg: #f4f6fa; --surface: #ffffff; --border: #e2e8f0;
  --text: #0f172a; --muted: #64748b;
  --accent: #2563eb; --accent-hover: #1d4ed8; --chip: #e8edf4; --chip-hover: #dbe3ee;
  --shadow: 0 10px 30px rgba(15, 23, 42, .10);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141b; --surface: #171e27; --border: #2a3441;
    --text: #e5e9f0; --muted: #94a3b8;
    --accent: #3b82f6; --accent-hover: #60a5fa; --chip: #232c38; --chip-hover: #2d3846;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); overflow-x: hidden; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.55 "Noto Sans", "Segoe UI", system-ui, -apple-system, "DejaVu Sans", sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface); padding: 12px max(16px, calc((100% - 1120px) / 2));
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.25; }
.brand strong { font-size: 20px; }
.brand small { color: var(--muted); font-size: 13px; }
.langs { display: flex; gap: 4px; }
.langs button {
  border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer;
  background: transparent; color: var(--muted); font: inherit; font-size: 14px;
}
.langs button:hover { background: var(--chip); }
.langs button[aria-pressed="true"] { background: var(--chip); color: var(--text); font-weight: 600; }
.stripe { display: flex; height: 4px; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: #e11d48; } .stripe span:nth-child(2) { background: #facc15; }
.stripe span:nth-child(3) { background: #2563eb; } .stripe span:nth-child(4) { background: #16a34a; }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
section { padding: 48px 0; }
section + section { border-top: 1px solid var(--border); }
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.01em; }
h2 { font-size: 26px; margin: 0 0 20px; }
h3 { font-size: 17px; margin: 0 0 6px; }

.hero { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.button {
  display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none;
  background: var(--chip); color: var(--text);
}
.button:hover { background: var(--chip-hover); }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-hover); }
.hero-shot img { border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.features p { margin: 0; color: var(--muted); }

.phone-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.phone-row figure { margin: 0; }
.phone-row img { border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.phone-row figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.card {
  display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 12px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.card:hover { border-color: var(--accent); }
.card strong { font-size: 18px; color: var(--accent); }
.card .size { font-size: 13px; color: var(--muted); }

.new-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: start; }
.new-text h3 { margin-top: 18px; }
.new-text h3:first-child { margin-top: 0; }
/* Versio-otsikko uutuuksien välissä (0.7.4, 0.7.3) */
.new-text .ver {
  margin: 26px 0 -8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
}
.new-text .ver:first-child { margin-top: 0; }
.new-text p { margin: 0; color: var(--muted); }
.phone-row.steps { grid-template-columns: repeat(3, 1fr); }
.story p { max-width: 760px; font-size: 17px; margin: 0; }
.credits ul { padding-left: 20px; }
.credits li { margin: 4px 0; }
/* Tue kehitystä: Buy Me a Coffee -painike (pyöreä logo + teksti) */
.support { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 18px; text-align: center; }
.support p { margin: 0; color: var(--muted); }
.coffee-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px;
  background: #fbf1e1; color: #3b2a20; font-weight: 700; text-decoration: none; border: 1px solid #ead9bf;
  transition: transform .1s, filter .1s;
}
.coffee-btn img { width: 32px; height: 32px; border-radius: 50%; }
.coffee-btn:hover { filter: brightness(.97); }
.coffee-btn:active { transform: scale(.97); }
footer { text-align: center; padding: 28px 16px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }

@media (max-width: 860px) {
  .hero, .new-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .phone-row, .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  section { padding: 36px 0; }
  .features { grid-template-columns: 1fr; }
  .phone-row.steps { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .phone-row.steps figcaption { font-size: 12px; }
  .brand small { display: none; }
}
.share-steps { margin-top: 28px; }
/* Aiemmat versiot: kokoon taitettu, avautuu nuolesta */
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  list-style: none; background: var(--chip); color: var(--text); font-weight: 600; user-select: none;
}
.older-link { margin-top: 20px; font-weight: 600; }
.new-note { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--border, #e2e8f0); font-size: 14px; opacity: .8; }
