/* Blind Scale website. Self-hosted fonts (no Google Fonts request, so no visitor IP goes to Google). */
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/blindscale/fonts/Fredoka-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("/blindscale/fonts/Nunito-Bold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/blindscale/fonts/Nunito-ExtraBold.woff2") format("woff2"); }

:root {
  --bg1: #D5EEDD; --bg2: #EEF7E9; --card: #ffffff; --panel: rgba(255,255,255,0.62);
  --ink: #23343A; --soft: #587070; --accent: #2F8F6B; --gold: #F5B83D;
  --line: rgba(35,52,58,0.14);
  --display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg1: #16241F; --bg2: #213A30; --card: #243A31; --panel: rgba(255,255,255,0.07);
    --ink: #E8F3EC; --soft: #9DB8AA; --accent: #4FBF8F; --line: rgba(232,243,236,0.16);
  }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 520px) fixed, var(--bg2);
  color: var(--ink); font-family: var(--body); font-weight: 700; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden;
}
/* Light mode: the app's launch-screen green with soft rings and gold sparkles (splash-bg.svg,
   same as SplashBackground in the app), pinned behind the page. Text colours a little deeper so
   they read on the green. Dark mode keeps its dark green. */
@media (prefers-color-scheme: light) {
  :root { --soft: #3B5248; --accent: #1B5E44; --bg1: #B9DDA6; }
  body { background: #9CCB88; }
  body::before {
    content: ""; position: fixed; inset: 0; z-index: -1;
    background: #9CCB88 url("/blindscale/splash-bg.svg") center / cover no-repeat;
  }
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 800; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: color-mix(in srgb, var(--bg1) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 20px; color: var(--ink); }
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid #111; }
.nav-links { display: flex; gap: 22px; list-style: none; font-size: 14px; }
.nav-links a { color: var(--soft); }

/* Hero */
.hero { text-align: center; padding: 56px 24px 72px; }
.hero-art { width: min(150px, 38vw); height: auto; border-radius: 22%; border: 3px solid #111; box-shadow: 0 12px 34px rgba(20,40,30,0.22); }
/* The recorded table (1028 × 506, corner radius 100 px there): rounded here so the page's background shows around it. */
.hero-table { display: block; width: min(380px, 100%); height: auto; aspect-ratio: 1028 / 506; margin: 24px auto 0;
  border-radius: 9.7% / 19.8%; box-shadow: 0 16px 40px rgba(20,40,30,0.22); background: #eddcab; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 10vw, 76px); line-height: 1.05; margin-top: 30px; }
.hero .sub { font-size: 14px; font-weight: 800; letter-spacing: 3px; color: var(--accent); margin-top: 8px; }
.tagline { margin: 30px auto 38px; font-size: clamp(18px, 3.6vw, 22px); color: var(--soft); line-height: 1.55; }
.stores { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.store { position: relative; display: inline-block; }
.store img { height: 54px; width: 162px; object-fit: contain; display: block; }
.store.soon img { opacity: 0.4; filter: grayscale(1); }
a.store img { transition: transform 0.15s ease; }
a.store:hover img, a.store:focus-visible img { transform: scale(1.04); }
.store.soon::after {
  content: "COMING SOON"; position: absolute; top: -10px; right: -8px;
  font-size: 9px; letter-spacing: 1.5px; font-weight: 800; color: #7a4a00;
  background: var(--gold); border-radius: 6px; padding: 2px 7px;
}

/* Sections */
.section { max-width: 680px; margin: 0 auto; padding: 56px 24px; }
.section h2 { font-family: var(--display); font-weight: 600; font-size: 30px; text-align: center; margin-bottom: 22px; }
.section .lead p { text-align: center; font-size: clamp(17px, 3.4vw, 19px); color: var(--ink); }
.section .lead p + p { margin-top: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin-top: 34px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px;
  box-shadow: 0 6px 18px rgba(20,40,30,0.06);
}
.card h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.card p { font-size: 15px; color: var(--soft); line-height: 1.5; }
.rating {
  display: flex; gap: 16px; align-items: center; margin-top: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 16px 20px;
}
.rating .badge { font-family: var(--display); font-size: 22px; border: 2px solid var(--soft); border-radius: 10px; padding: 2px 10px; color: var(--soft); }
.rating p { font-size: 14px; color: var(--soft); line-height: 1.5; }

/* Document pages (privacy, support) */
.doc { max-width: 700px; margin: 0 auto; padding: 44px 24px 72px; }
.doc .tag { font-size: 12px; letter-spacing: 3px; font-weight: 800; color: var(--soft); }
.doc h1 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 6vw, 44px); line-height: 1.1; margin: 6px 0 4px; }
.doc .app { color: var(--soft); margin-bottom: 30px; }
.doc h2 { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 34px 0 10px; }
.doc h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink); font-size: 16px; }
.doc p { margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 12px; }
.doc li { margin-bottom: 6px; }
.doc hr { border: none; border-top: 1px solid var(--line); margin: 30px 0; }
.contact { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 22px; margin: 10px 0 14px; }
.contact .label { font-size: 12px; letter-spacing: 2px; font-weight: 800; color: var(--soft); }
.contact a { font-family: var(--display); font-size: 21px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 30px 24px 40px; text-align: center; }
footer ul { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; list-style: none; font-size: 13px; letter-spacing: 1px; }
footer ul a { color: var(--soft); }
footer .copy { margin-top: 12px; font-size: 13px; color: var(--soft); }
footer .tm { margin: 10px auto 0; max-width: 520px; font-size: 11px; line-height: 1.5; color: var(--soft); }
footer .sig { font-size: 11px; color: var(--soft); opacity: 0.8; margin-top: 2px; }

/* Hand-placed line breaks read well on wide screens; phones wrap naturally instead. */
@media (max-width: 640px) {
  br.lb { display: none; }
  .section .lead p { text-wrap: balance; }
}

@media (max-width: 520px) {
  nav { padding: 12px 16px; }
  .card { padding: 14px 16px; }
  .nav-links { gap: 14px; }
  .rating { flex-direction: column; text-align: center; }
}
