/* ScoreTune page (/apps/scoretune/) and its Privacy Policy. Loaded after site.css,
   so the header, footer, fonts and colors are the site's own. Everything here is
   prefixed "st-" to keep clear of the home page's classes. */

.page-scoretune {
  --st-card: #FAF7F0;
  --st-butter: #FFD23F;        /* from the app icon */
  --st-butter-soft: #F4DF9C;
  --st-green: #1A5E35; --st-green-bg: #D6EEDB; --st-green-line: #6DB585;
  --st-amber: #6E4300; --st-amber-bg: #FBE1A8; --st-amber-line: #D9A13A;
}
.page-scoretune svg { display: block; }

/* ---------- Shared type ---------- */

.st-eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 560;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.page-scoretune main h2 { margin-bottom: 20px; }
.st-h3 { margin: 0; font-size: 1.375rem; font-weight: 500; line-height: 1.25; }
.st-p { margin: 0; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.65; }
.st-sec .st-inner { padding-block: 88px; border-top: 1px solid var(--rule); }
.st-band { background: var(--panel); }
.st-band .st-inner, .st-band + .st-sec .st-inner { border-top: 0; }
.st-ico {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Hero ---------- */

.st-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 40px;
  align-items: center;
  padding-block: 64px 76px;
}
.st-icon {
  width: 92px;
  height: 92px;
  border-radius: 22.37%;
  box-shadow: 0 16px 30px -14px rgba(122, 82, 0, .55), 0 2px 6px rgba(30, 37, 56, .08);
}
.st-hero h1 {
  margin: 26px 0 14px;
  font-size: clamp(3.25rem, 8.4vw, 6.125rem);
  font-weight: 450;
  line-height: .95;
  letter-spacing: -.018em;
}
.st-tagline { margin: 0 0 18px; font-size: clamp(1.375rem, 2.5vw, 1.75rem); font-style: italic; line-height: 1.25; }
.st-lede { max-width: 31em; margin-bottom: 30px; font-size: 1.1875rem; }
.st-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.st-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-navy);
  font-size: 1.03rem;
  font-weight: 500;
  line-height: 1.3;
}
.st-soon-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--st-butter); }
.st-text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.0625rem; text-underline-offset: 4px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.st-chips li { padding: 5px 13px; border: 1px solid rgba(30, 37, 56, .5); border-radius: 999px; font-size: .9rem; line-height: 1.4; }
.st-maker { margin: 18px 0 0; color: var(--muted); font-size: .97rem; font-style: italic; }
.st-art { width: 100%; max-width: 410px; justify-self: end; }
.st-art svg { width: 100%; height: auto; }

/* The drawing */
.st-halo { fill: var(--st-butter-soft); opacity: .75; }
.st-plate { fill: #D3C9B3; }
.st-ledge, .st-post { fill: var(--ink); }
.st-leg { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.st-ipad { fill: #1C2130; }
.st-screen { fill: #FFFEFA; }
.st-sl { stroke: #9AA0AE; stroke-width: .7; }
.st-mus { fill: #1F2433; stroke: #1F2433; stroke-width: .9; }
.st-ink-fill { fill: #1F2433; }
.st-soft-fill { fill: #A3A8B5; }
.st-scan-glow { fill: var(--st-butter); opacity: .18; }
.st-scan-line { fill: #E9A800; }
.st-tag-hole { fill: var(--ground); }
.st-tag-heavy .st-tag-bg { fill: var(--st-amber-bg); stroke: var(--st-amber-line); stroke-width: 1.2; }
.st-tag-light .st-tag-bg { fill: var(--st-green-bg); stroke: var(--st-green-line); stroke-width: 1.2; }
.st-tag-heavy .st-tag-ico { fill: none; stroke: var(--st-amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.st-tag-light .st-tag-ico { fill: none; stroke: var(--st-green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.st-tag-t { font-family: var(--serif); font-size: 17px; font-weight: 600; text-anchor: middle; }
.st-tag-heavy .st-tag-t { fill: var(--st-amber); }
.st-tag-light .st-tag-t { fill: var(--st-green); }

/* Plays once: the desk sags under a heavy page, a scan line passes, the tag turns light,
   the desk springs up. Visitors who prefer reduced motion see the finished picture. */
@media (prefers-reduced-motion: no-preference) {
  .st-load { animation: st-load 3.6s ease both; }
  .st-scan { animation: st-scan 1.1s ease-in-out 1.2s both; }
  .st-tag-heavy { animation: st-out .35s ease 2.45s both; }
  .st-tag-light { transform-box: fill-box; transform-origin: center; animation: st-in .5s cubic-bezier(.34, 1.56, .64, 1) 2.5s both; }
  .st-hero-text { animation: rise 1s var(--ease-out) both; }
}
@media (prefers-reduced-motion: reduce) {
  .st-scan, .st-tag-heavy { opacity: 0; }
}
@keyframes st-load { 0% { transform: translateY(0); } 10% { transform: translateY(6px); } 72% { transform: translateY(6px); } 80% { transform: translateY(-3px); } 88% { transform: translateY(1px); } 100% { transform: translateY(0); } }
@keyframes st-scan { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateY(262px); opacity: 0; } }
@keyframes st-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes st-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }

/* ---------- Why ---------- */

.st-why { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.st-why .st-p + .st-p { margin-top: 16px; }
.st-sq { margin: 0; }
.st-sq svg { width: 100%; max-width: 300px; height: auto; }
.st-sq-out { fill: var(--st-card); }
.st-gridline { stroke: #DDD5C4; stroke-width: 1; }
.st-sq-in { fill: var(--st-butter-soft); stroke: #C99A1E; stroke-width: 1.2; }
.st-sq-border { fill: none; stroke: #8E887A; stroke-width: 1.2; }
.st-sq-t { font-family: var(--serif); font-size: 15px; fill: var(--ink); }
.st-sq-t.st-b { font-weight: 600; }
.st-legend { display: grid; gap: 10px; max-width: 330px; margin: 20px 0 0; padding: 0; list-style: none; }
.st-legend li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; color: var(--ink-soft); font-size: .9375rem; line-height: 1.5; }
.st-sw { width: 16px; height: 16px; margin-top: 3px; border-radius: 3px; }
.st-sw-out { background: var(--st-card); border: 1.2px solid #8E887A; }
.st-sw-in { background: var(--st-butter-soft); border: 1.2px solid #C99A1E; }

/* ---------- Tools ---------- */

.st-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; margin: 40px 0 0; padding: 0; list-style: none; }
.st-ico-box {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border: 1px solid var(--rule);
  border-radius: 15px;
  background: var(--st-card);
}
.st-tool .st-h3, .st-step .st-h3 { margin-bottom: 8px; }
.st-tool .st-p { font-size: 1.03rem; line-height: 1.55; }
.st-note { margin: 40px 0 0; color: var(--muted); font-size: .97rem; font-style: italic; }

/* ---------- Steps ---------- */

.st-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin: 40px 0 0; padding: 0; list-style: none; }
.st-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--st-butter);
  font-size: 1.375rem;
  font-weight: 500;
}
.st-step .st-p { font-size: 1.03rem; line-height: 1.6; }

/* ---------- Peace of mind ---------- */

.st-assure { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin: 40px 0 0; padding: 0; list-style: none; }
.st-assure li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.st-ico-round { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ground); }
.st-assure .st-h3 { margin: 6px 0; }
.st-assure .st-p { font-size: 1.03rem; line-height: 1.6; }

/* ---------- Price ---------- */

.st-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.st-plan { padding: 32px; border: 1px solid var(--rule); border-radius: 20px; background: var(--st-card); }
.st-plan .st-h3 { font-size: 1.625rem; }
.st-sub { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }
.st-plan ul { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.st-plan li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-soft); font-size: 1.03rem; line-height: 1.5; }
.st-plan li svg { width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--st-green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-plan-full { background: var(--ink); border-color: var(--ink); }
.st-plan-full .st-h3 { color: var(--on-navy); }
.st-plan-full .st-sub { color: var(--on-navy-muted); }
.st-plan-full li { color: var(--on-navy); }
.st-plan-full li svg { stroke: var(--st-butter); }
.st-after { margin: 22px 0 0; color: var(--muted); font-size: 1rem; }

/* ---------- Questions ---------- */

.st-faq { margin-top: 36px; border-top: 1px solid var(--rule); }
.st-faq details { border-bottom: 1px solid var(--rule); }
.st-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 20px 0;
  font-size: 1.3125rem;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.st-faq summary::-webkit-details-marker { display: none; }
.st-pm { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; transition: transform .2s ease; }
.st-faq details[open] .st-pm { transform: rotate(45deg); }
.st-answer { max-width: 44em; padding: 0 44px 24px 0; }
.st-answer .st-p { font-size: 1.0625rem; }
.st-answer .st-p + .st-p { margin-top: 12px; }
.st-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  margin-top: 44px;
  padding: 28px 32px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--st-card);
}
.st-contact .st-h3 { margin-bottom: 4px; font-size: 1.5rem; }
.st-contact .st-p { font-size: 1.03rem; }
.st-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 1.03rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .2s ease, color .2s ease;
}
.st-mail .st-ico { flex: none; width: 20px; height: 20px; }
.st-mail:hover { background: var(--ink); color: var(--ground); }

/* ---------- Small print ---------- */

.st-legal { margin: 0; padding-block: 34px 40px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; line-height: 1.6; }
.st-legal a { color: var(--muted); }

/* ---------- Privacy Policy ---------- */

.st-policy { max-width: 40em; padding-block: clamp(48px, 7vw, 80px) 88px; }
.st-policy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 450;
  line-height: 1.05;
  letter-spacing: -.015em;
}
.st-policy h2 {
  margin: 48px 0 12px;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}
.st-policy p { margin: 0 0 16px; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.65; }
.st-policy .st-policy-meta { color: var(--muted); font-size: 1rem; }
.st-policy .st-policy-meta strong { color: var(--ink); font-size: 1.125rem; }
.st-policy strong { color: var(--ink); font-weight: 600; }
.st-policy a { overflow-wrap: anywhere; }

/* ---------- Smaller screens ---------- */

@media (max-width: 960px) {
  .st-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .st-hero { grid-template-columns: 1fr; gap: 44px; padding-block: 40px 64px; }
  .st-art { justify-self: center; max-width: 340px; }
  .st-icon { width: 76px; height: 76px; }
  .st-hero h1 { margin-top: 20px; }
  .st-lede { font-size: 1.125rem; }
  .st-sec .st-inner { padding-block: 60px; }
  .st-why { grid-template-columns: 1fr; gap: 36px; }
  .st-tools, .st-steps, .st-assure, .st-plans { grid-template-columns: 1fr; }
  .st-tools { gap: 26px; }
  .st-tool { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
  .st-ico-box { margin-bottom: 0; }
  .st-steps { gap: 28px; }
  .st-step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
  .st-num { margin-bottom: 0; }
  .st-assure { gap: 28px; }
  .st-plan { padding: 26px; }
  .st-faq summary { font-size: 1.1875rem; }
  .st-answer { padding-right: 0; }
  .st-contact { padding: 24px 20px; }
  .st-mail { padding-inline: 16px; font-size: .97rem; }
}
