/* strengthsplit.app — one stylesheet for every page. Tokens mirror the app palette
   (strength-split-kmp `ui/theme/Color.kt`); the *-text / btn tokens are darker or
   swapped where the brand orange alone fails WCAG AA for small text. */

@font-face {
  font-family: "Oswald";
  src: url("/assets/fonts/oswald.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* light (AppColors.Light) */
  --ink: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #EEF0F3;
  --border: #D8DCE2;
  --border-strong: #C9CDD4;
  --text: #1A1D23;
  --muted: #5E6571;
  --accent: #E8480E;
  --accent-soft: rgba(232, 72, 14, .12);
  --accent-text: #B53A0B;   /* 5.4:1 on --ink */
  --btn: #C43D0C;           /* 5.2:1 with --on-btn */
  --on-btn: #FFFFFF;
  --ok: #1F7A5C;
  --danger: #C0352B;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* dark (AppColors.Dark) */
    --ink: #0E0F12;
    --surface: #16181D;
    --surface-2: #1E2128;
    --border: #2A2E37;
    --border-strong: #3A3F4A;
    --text: #ECEDEF;
    --muted: #8A8F99;
    --accent: #FF5A1F;
    --accent-soft: rgba(255, 90, 31, .14);
    --accent-text: #FF6A33;
    --btn: #FF5A1F;
    --on-btn: #0E0F12;        /* white on #FF5A1F is only 3.1:1 */
    --ok: #7EE0B8;
    --danger: #FF6B5E;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }

a { color: var(--accent-text); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.1;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 7vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: .03em; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--btn);
  color: var(--on-btn);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---- header / footer ---------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.site-nav ul {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 8px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0 32px;
  font-size: .9rem;
  color: var(--muted);
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }
.site-footer p a { text-decoration: underline; }

/* ---- buttons / stores ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}
.btn-primary { background: var(--btn); color: var(--on-btn); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-2); }
.btn svg { width: 20px; height: 20px; flex: none; }

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stores[hidden], .store-btn[hidden], .coming-soon[hidden] { display: none; }

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  font-weight: 500;
}
.coming-soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---- home --------------------------------------------------------------- */

.hero { padding: 40px 0 8px; }
.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.hero-title {
  border-left: 5px solid var(--accent);
  padding-left: 18px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 15vw, 5.5rem);
  line-height: .98;
  letter-spacing: .01em;
}
.hero-title span { display: block; }
.hero-title .thin { font-weight: 300; }

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 26px;
}

.hero-cta { display: grid; gap: 14px; justify-items: start; }
.web-link { font-weight: 500; }

/* Decorative app preview (aria-hidden): the week strip + one exercise card. */
.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
  max-width: 440px;
  width: 100%;
  justify-self: center;
}
.mock-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 14px;
}
.mock-day {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 7px 0 6px;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .02em;
  line-height: 1.15;
}
.mock-day small {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: .58rem;
  letter-spacing: .02em;
  color: var(--muted);
  text-transform: uppercase;
}
.mock-day.on { border-color: var(--accent); background: var(--accent-soft); }
.mock-day.on small { color: var(--accent-text); }
.mock-day.rest { opacity: .55; }

.mock-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  margin-bottom: 6px;
  overflow: hidden;
}
.mock-progress span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
}
.mock-caption {
  font-family: var(--display);
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.mock-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.mock-ex {
  font-weight: 600;
  margin-bottom: 10px;
}
.mock-ex small { color: var(--muted); font-weight: 500; }
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.mock-stat {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: .95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mock-stat small {
  display: block;
  font-family: var(--display);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--muted);
}
.mock-stat.sug { background: var(--accent-soft); }
.mock-stat.sug small, .mock-stat.sug b { color: var(--accent-text); }

.mock-sets { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.mock-sets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
  font-size: .95rem;
}
.mock-sets i {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1.5px solid var(--border-strong);
  font-style: normal;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
}
.mock-sets .done i { border-color: var(--ok); color: var(--ok); }
.mock-sets .done { color: var(--muted); }
.mock-sets .now i { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }

.mock-rest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .85rem;
}
.mock-rest b {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.section { padding: 56px 0 0; }
.section-head { max-width: 40em; margin-bottom: 24px; }
.section-head p { color: var(--muted); }

.features {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.feature p { color: var(--muted); margin: 0; }
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }

.cta-band {
  margin-top: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  padding: 24px 20px;
  display: grid;
  gap: 16px;
}
.cta-band h2 { margin: 0; }
.cta-band p { margin: 0; color: var(--muted); }

/* ---- text pages (privacidade, suporte, excluir-conta, 404) --------------- */

.page { padding: 36px 0 0; }
.page .wrap { max-width: 760px; }
.page h1 { margin-bottom: .35em; }
.page h2 { margin: 2em 0 .6em; font-size: 1.45rem; }
.page h3 { margin: 1.5em 0 .5em; font-size: 1.1rem; }
.page ul, .page ol { padding-left: 1.3em; margin: 0 0 1em; }
.page li { margin-bottom: .4em; }
.page-intro { color: var(--muted); font-size: 1.075rem; }
.meta { color: var(--muted); font-size: .92rem; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 24px 0 8px;
}
.toc h2 { margin: 0 0 .5em; font-size: 1rem; letter-spacing: .08em; }
.toc ol { margin: 0; columns: 1; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin: 0 0 16px;
}
.card h2 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
.page .path { padding-left: 0; }
.path li { display: inline-flex; align-items: center; margin: 0; }
.path li + li::before {
  content: "→";
  content: "→" / "";
  margin-right: 6px;
  color: var(--muted);
}
.path span {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: .95rem;
}

.note {
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
  margin: 0 0 1em;
}
.note > :last-child { margin-bottom: 0; }

.faq { display: grid; gap: 10px; margin: 24px 0 0; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 18px;
  font-weight: 600;
  position: relative;
  border-radius: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-text);
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 18px 16px; color: var(--muted); }
.faq .answer strong { color: var(--text); }
.faq .answer > :last-child { margin-bottom: 0; }

.contact {
  margin-top: 40px;
}

/* ---- /p/ shared plan --------------------------------------------------- */

.plan-head { margin-bottom: 20px; }
.plan-head .eyebrow { margin-bottom: 8px; }
.plan-head h1 { overflow-wrap: anywhere; }
.plan-summary { color: var(--muted); margin: 0; }

.plan-days {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.page .plan-days { padding-left: 0; }
.plan-day {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin: 0;
}
.plan-day-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.plan-day-type {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.plan-day-head h2 {
  margin: 0;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}
.plan-weekdays {
  display: block;
  margin-top: 2px;
  font-family: var(--body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.plan-ex {
  margin: 0;
  padding-left: 1.4em;
}
.page .plan-ex { padding-left: 1.4em; margin: 0; }
.plan-ex li {
  margin: 0;
  padding: 6px 0;
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.plan-ex li:first-child { border-top: 0; }
.plan-ex li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }

.plan-actions { display: grid; gap: 12px; margin-bottom: 12px; }
.plan-actions .btn { width: 100%; }
.app-hint { color: var(--muted); font-size: .95rem; margin: 0; }

.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
}
.notice h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
.notice p { color: var(--muted); }
.notice > :last-child { margin-bottom: 0; }

[hidden] { display: none !important; }

/* ---- wider screens ------------------------------------------------------ */

@media (min-width: 480px) {
  .plan-actions { grid-template-columns: 1fr 1fr; }
  .plan-actions .btn:only-child { grid-column: 1 / -1; }
}

@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; }
  .toc ol { columns: 2; column-gap: 32px; }
}

@media (min-width: 960px) {
  .hero { padding: 72px 0 16px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .features { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .site-nav a { transition: background-color .15s ease, filter .15s ease; }
}
