@font-face {
  font-family: "Google Sans";
  src: url("/google-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  font-family: "Google Sans", "Segoe UI", sans-serif;
  color: #182820;
  background: #f8f8f1;
  font-synthesis: none;
  --ink: #182820;
  --muted: #59645c;
  --line: #dce2d7;
  --paper: #fff;
  --green: #254e39;
  --green-bright: #176743;
  --star: #d99b00;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; line-height: 1.55; }
button, input, textarea { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #779c45; outline-offset: 3px; }
[hidden] { display: none !important; }

/* Shared sticky site topbar */
.site-frame { width: min(100% - 48px, 992px); margin: 0 auto; }
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f8f8f1ee;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
}
.brand-group { display: flex; align-items: center; min-width: 0; }
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.055em;
}
.brand-icon { display: block; width: 42px; height: 42px; margin-right: 6px; }
.brand-domain { color: #426449; }
.beta-badge {
  align-self: flex-start;
  margin: 3px 0 0 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #176743;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.15;
  text-transform: uppercase;
}
.languages { display: flex; align-items: center; gap: 6px; flex: none; }
.languages a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
}
.languages a:hover, .languages a[aria-current="page"] {
  border-color: #b1c5a8;
  background: #ebf2e6;
}
.languages img { width: 24px; height: 24px; display: block; }

.content-wrap { max-width: 720px; padding: 24px 0 36px; }
.form-wrap { max-width: 560px; padding: 24px 0 36px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 4px 14px rgba(37, 78, 57, .05);
}
.back {
  display: inline-block;
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.back:hover { text-decoration: underline; }
h1 { margin: 8px 0 8px; font-size: clamp(23px, 5vw, 30px); letter-spacing: -.03em; line-height: 1.15; }
h2 { margin: 22px 0 8px; font-size: 18px; color: var(--green); letter-spacing: -.02em; }
.prose p { margin: 0 0 12px; color: #36433b; font-size: 15px; }
.ext-links a { color: var(--green); font-weight: 600; }
.subtitle { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 13px; font-weight: 650; color: var(--ink); }
input[type="text"], textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fbfcf9;
  color: var(--ink);
  font-size: 15px;
}
input[type="text"] { min-height: 44px; }
textarea { min-height: 112px; resize: vertical; }
.stars { display: flex; gap: 6px; }
.star-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcf9;
  color: #c2cbc0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform .1s ease, color .12s ease, border-color .12s ease, background .12s ease;
}
.star-btn.active {
  color: var(--star);
  border-color: #ebc96b;
  background: #fffaf0;
}
.star-btn:hover { transform: scale(1.06); }
.platform-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.platform-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcf9;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
}
.platform-option input { position: absolute; opacity: 0; pointer-events: none; }
.platform-option:has(input:checked) {
  border-color: var(--green-bright);
  background: #e6f2ea;
  color: var(--green);
}
.submit {
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  background: var(--green-bright);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.submit:hover:not(:disabled) { filter: brightness(.94); }
.submit:disabled { opacity: .6; cursor: default; }
.status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}
.status.ok { background: #e6f2ea; color: var(--green); border: 1px solid #b7dfc5; }
.status.err { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 18px;
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.app-version { font-weight: 650; color: var(--green); }

/* Branded 404 page */
.not-found { text-align: center; padding: 32px 22px; }
.torn-sticker {
  display: inline-grid;
  place-items: center;
  margin-bottom: 10px;
  transform: rotate(-4deg);
}
.error-code {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: #e6f2ea;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .08em;
}
.not-found h1 { margin-top: 10px; }
.not-found .subtitle { max-width: 390px; margin: 0 auto 22px; }
.nf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.nf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
}
.nf-btn.primary { background: var(--green-bright); color: #fff; }
.nf-btn.secondary { background: #fff; color: var(--green); border-color: #cbd8c9; }
.nf-btn:hover { filter: brightness(.94); }

@media (max-width: 680px) {
  .site-frame { width: calc(100% - 30px); }
  .card { padding: 18px 16px; }
}
@media (max-width: 520px) {
  .site-topbar-inner { flex-wrap: wrap; row-gap: 8px; padding: 10px 0; min-height: 0; }
  .brand { font-size: 18px; }
  .brand-icon { width: 32px; height: 32px; margin-right: 5px; }
  .beta-badge { margin: 2px 0 0 5px; font-size: 8.5px; padding: 2px 5px; }
  .languages { gap: 4px; }
}
