/* BallotBox produktside – samme visuelle språk som appen (ChurchOS-tokens, lys modus). */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 600; font-display: swap; src: url(fonts/atkinson-hyperlegible-next-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-display: swap; src: url(fonts/atkinson-hyperlegible-next-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }

:root {
  --bg: #f7f5f1; --card: #ffffff; --sunk: #eeebe5; --line: #d9d4cb;
  --ink: #1c1b19; --muted: #5c574f;
  --brand: #14274a; --brand-hover: #0b1a33; --brand-soft: #dbe3ef;
  --gold: #e0a33a; --gold-ink: #8a5a0f; --gold-soft: #f8ecd6;
  --r-md: 8px; --r-lg: 12px;
  --font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); }
a { color: var(--brand); }
.small { font-size: 14px; line-height: 20px; }
.muted { color: var(--muted); }

.topbar { max-width: 1120px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; }
.maker { text-decoration: none; color: var(--ink); }
.maker-word { font-size: 18px; letter-spacing: .2px; color: var(--ink); text-decoration: none; }
.maker-word strong { color: var(--brand); }
.maker-logo { height: 32px; width: auto; display: block; }
.footer-logo { display: inline-flex; }
.footer-logo img { height: 22px; width: auto; display: block; }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 48px 0 64px; }
.product-logo { display: flex; align-items: center; gap: 12px; font-size: 30px; margin-bottom: 28px; }
.bb-mark { flex: none; fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.bb-box { stroke: var(--brand); }
.bb-check { stroke: var(--gold); }
.bb-1 { font-weight: 400; } .bb-2 { font-weight: 700; color: var(--brand); }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; margin: 0; letter-spacing: -.5px; }
.motto { font-size: clamp(20px, 2.4vw, 26px); color: var(--muted); margin: 16px 0 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.finder { box-shadow: 0 12px 32px rgba(20, 39, 74, .08); }
.finder h2 { font-size: 20px; line-height: 28px; margin: 0 0 16px; }
.field { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
input[type=search] { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid #8a847a; border-radius: var(--r-md); }
input[type=search]:focus-visible, button:focus-visible, a:focus-visible, input[type=checkbox]:focus-visible { outline: 3px solid #3b6bd6; outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chip { min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.results { list-style: none; margin: 12px 0 0; padding: 0; }
.results li + li { border-top: 1px solid var(--line); }
.org { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 10px 12px; text-align: left;
  background: none; border: 0; border-radius: var(--r-md); font: inherit; color: var(--ink); cursor: pointer; }
.org:hover { background: var(--sunk); }
.org-name { font-weight: 600; }
.empty { padding: 12px; }
.chosen, .remembered { margin-top: 16px; padding: 16px; border-radius: var(--r-md); background: var(--brand-soft); border: 1px solid #b9c6dc; }
.remembered { margin: 0 0 20px; display: flex; flex-direction: column; gap: 12px; }
.remembered > div:first-child { display: flex; flex-direction: column; }
.chosen strong { font-size: 18px; }
.chosen p { margin: 4px 0 12px; }
.host { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; color: var(--brand); word-break: break-all; }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: var(--r-md);
  border: 1px solid var(--brand); color: var(--brand); background: var(--card); font-weight: 700; text-decoration: none; }
.button.primary { background: var(--brand); color: #fff; }
.button.primary:hover { background: var(--brand-hover); }
.ghost { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 10px 12px; min-height: 44px; border-radius: var(--r-md); }
.ghost:hover { background: rgba(20, 39, 74, .06); }
.hint { margin: 16px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 64px; }
.feature h3 { font-size: 18px; line-height: 26px; margin: 12px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 28px; height: 28px; stroke: var(--brand); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.org-pitch { max-width: 680px; margin: 0 auto; text-align: center; padding: 32px 0 72px; border-top: 1px solid var(--line); }
.org-pitch h2 { font-size: 24px; margin: 24px 0 8px; }
.org-pitch p { color: var(--muted); }

.footer { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; padding: 24px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 24px 0 48px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}
