/* Breathe by FTECH — public site. Plain CSS, no frameworks, no external requests. */

:root {
  --accent: #2f7ec4;          /* app AccentColor #3388D9, darkened for AA contrast on white */
  --accent-strong: #1f5f97;
  --bg: #fbfcfd;
  --surface: #ffffff;
  --text: #16202b;
  --muted: #5a6672;
  --border: #e2e8ef;
  --shadow: 0 1px 2px rgba(22, 32, 43, 0.05), 0 8px 24px rgba(22, 32, 43, 0.05);
  --radius: 14px;
  --wrap: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #6cb0ea;
    --accent-strong: #9acbf3;
    --bg: #10161c;
    --surface: #172029;
    --text: #e8edf2;
    --muted: #a3b0bc;
    --border: #26313c;
    --shadow: none;
  }
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.15rem; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }

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

.skip { position: absolute; left: -9999px; top: 0.5rem; background: var(--surface); padding: 0.5rem 0.9rem; border-radius: 8px; }
.skip:focus { left: 0.75rem; z-index: 20; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.6rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--text); text-decoration: none; }
.brand img { border-radius: 7px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; font-size: 0.92rem; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"] { font-weight: 600; }
.lang-switch { margin: 0 0 0 auto; font-size: 0.88rem; color: var(--muted); }
.lang-switch a { text-decoration: none; }
.lang-switch .current { font-weight: 600; color: var(--text); }

/* text */
main { padding: 2rem 0 3rem; }
h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 0.6rem; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 650; }
hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.muted, .meta { color: var(--muted); font-size: 0.92rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
img { max-width: 100%; height: auto; }

.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); }
th { font-weight: 650; }

/* hero */
.hero { text-align: center; padding: 1rem 0 0.5rem; }
.hero img.app-icon { width: 108px; height: 108px; border-radius: 24px; box-shadow: var(--shadow); }
.hero h1 { margin-top: 1rem; }
.hero .lead { max-width: 32rem; margin: 0 auto 1.5rem; }

.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 0.75rem; }
.badge {
  display: inline-flex;
  flex-direction: column;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
}
.badge:hover { border-color: var(--accent); color: var(--accent); }
.badge[aria-disabled="true"] { color: var(--muted); }
.badge .sub { font-size: 0.78rem; font-weight: 400; color: var(--muted); }

/* blocks */
.grid { display: grid; gap: 0.9rem; margin: 0 0 1.25rem; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 0.3rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .step { display: block; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.card audio { width: 100%; margin-top: 0.7rem; }

.card.ambience { text-align: center; }
.card.ambience img { width: 132px; height: 132px; margin-bottom: 0.4rem; }
.card.ambience h3 { margin-bottom: 0.2rem; }

.features { list-style: none; padding: 0; display: grid; gap: 0.5rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.features li { padding-left: 1.4rem; position: relative; }
.features li::before { content: "•"; color: var(--accent); position: absolute; left: 0.35rem; }

.disclaimer {
  margin: 2rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--muted);
}

.figure { margin: 1.25rem 0; text-align: center; }
.figure img { border-radius: var(--radius); border: 1px solid var(--border); }
.figure figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.5rem; }

.faq h3 { margin-top: 1.6rem; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 1.5rem 0 2.5rem; font-size: 0.92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-bottom: 0.75rem; }
.footer-nav a { text-decoration: none; }
.site-footer .lang-switch { margin: 0.5rem 0 0; }

@media (max-width: 30rem) {
  h1 { font-size: 1.6rem; }
  body { font-size: 1rem; }
  .lang-switch { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .site-footer, .skip { display: none; }
  body { background: #fff; color: #000; }
}
