/* Author rules like .form { display: grid } beat the browser's [hidden] style, so restate it. */
[hidden] { display: none !important; }


:root {
  --accent: #303f9f;
  --accent-ink: #fafafa;
  --bg: #f7f7fb;
  --surface: #ffffff;
  --ink: #1b1d2a;
  --muted: #5f6378;
  --line: #e3e4ee;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #8c9eff;
    --accent-ink: #11132a;
    --bg: #12131c;
    --surface: #1c1e2b;
    --ink: #ecedf5;
    --muted: #a2a5ba;
    --line: #2c2f42;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 880px; margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--muted); font-weight: 400; }

.topbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.topbar nav { display: flex; gap: 20px; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--ink); }

.hero { padding-block: 48px 24px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.15; margin: 0 0 8px; }
.hero p { color: var(--muted); margin: 0; font-size: 1.1rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; padding-bottom: 48px; }
.card {
  display: flex; gap: 14px; align-items: center; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: inherit; text-decoration: none; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.card-text { display: flex; flex-direction: column; min-width: 0; }
.card-text span { color: var(--muted); font-size: .95rem; }
.card-text small { color: var(--muted); font-size: .8rem; margin-top: 2px; }

.icon { flex: none; border-radius: 22%; object-fit: cover; }
.icon-md { width: 64px; height: 64px; }
.icon-lg { width: 112px; height: 112px; }
.icon-fallback { display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.icon-md.icon-fallback { font-size: 1.6rem; }
.icon-lg.icon-fallback { font-size: 3rem; }

.app-hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding-block: 48px 16px; }
.app-hero h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.15; }
.lead { color: var(--muted); font-size: 1.15rem; margin: 6px 0 16px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block; padding: 10px 18px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; text-decoration: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.desc { font-size: 1.05rem; max-width: 65ch; }
.features { padding-left: 1.2em; }
.features li { margin-bottom: 4px; }
.shots { display: flex; gap: 12px; overflow-x: auto; padding-block: 12px; }
.shots img { height: 420px; width: auto; max-width: none; border-radius: var(--radius); border: 1px solid var(--line); }
.links { display: flex; flex-wrap: wrap; gap: 20px; padding-block: 16px 48px; }

.form { display: grid; gap: 18px; max-width: 560px; padding-bottom: 48px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form select, .form textarea, .form input:not([type=checkbox]):not([type=radio]) {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.form :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.rating { border: 0; padding: 0; margin: 0; min-width: 0; }
.rating legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rating input { position: absolute; opacity: 0; }
.rating label { font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: #f5b301; }
.rating input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; color: var(--muted); min-height: 1.6em; }
.thanks { padding-bottom: 48px; }

.foot { color: var(--muted); font-size: .9rem; padding-block: 24px 40px; border-top: 1px solid var(--line); }
