/* Same palette as the app (theme.js): warm paper, deep ink, one teal accent. */
:root {
  --bg: #F5F2EC; --card: #FFFFFF; --ink: #1E2430; --sub: #5B6270; --line: #E3DED3;
  --accent: #1F5F5B; --on-accent: #FFFFFF; --soft: #E7F0EE;
  --ei: #C2693F; --sn: #2F7D6D; --tf: #3E5C9A; --jp: #8A5A9B; --err: #B3261E;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171C; --card: #1D2128; --ink: #ECE9E2; --sub: #A3A9B5; --line: #2B313A;
    --accent: #6FC1B8; --on-accent: #0F1A19; --soft: #1D2E2D;
    --ei: #E08A5F; --sn: #58B7A4; --tf: #7E9BDB; --jp: #BE8CCF; --err: #F2B8B5;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; transform: translateY(-200%); background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 3; }
.skip:focus { transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

header.top { padding: 20px 0 0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar { position: relative; }

/* Language menu: a <details>, no script. Flags are flag-icons artwork (MIT), as in winmyland. */
.fi { display: inline-block; width: 1.333em; height: 1em; flex: none; background: center / cover no-repeat; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.fi-en { background-image: url(/img/flags/en.svg); } .fi-fr { background-image: url(/img/flags/fr.svg); }
.fi-es { background-image: url(/img/flags/es.svg); } .fi-de { background-image: url(/img/flags/de.svg); }
.fi-it { background-image: url(/img/flags/it.svg); } .fi-pt { background-image: url(/img/flags/pt.svg); }
.fi-he { background-image: url(/img/flags/he.svg); } .fi-ar { background-image: url(/img/flags/ar.svg); }
.fi-ru { background-image: url(/img/flags/ru.svg); } .fi-zh { background-image: url(/img/flags/zh.svg); }
details.lang { background: none; border: 0; border-radius: 0; margin: 0; }
.lang summary { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 30px 0 12px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 15px; }
.lang summary::after { content: ""; right: 14px; width: 7px; height: 7px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); }
.lang[open] summary::after { content: ""; transform: translateY(-30%) rotate(225deg); }
[dir=rtl] .lang summary { padding: 0 12px 0 30px; }
[dir=rtl] .lang summary::after { right: auto; left: 14px; }
.lang ul { position: absolute; z-index: 2; right: 16px; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; min-width: 190px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(30, 36, 48, .18); }
[dir=rtl] .lang ul { right: auto; left: 16px; }
.lang li a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.lang li a:hover { background: var(--soft); }
.lang li a[aria-current] { background: var(--soft); font-weight: 700; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 20px var(--serif); min-height: 48px; }
.brand img { border-radius: 12px; }

.hero { display: grid; gap: 36px; padding-top: 28px; padding-bottom: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 9vw, 58px); letter-spacing: -.01em; }
.hero .lead { color: var(--sub); font-size: 19px; margin-top: 16px; max-width: 34em; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--ink); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badge { display: inline-flex; align-items: center; gap: 10px; min-width: 168px; min-height: 56px; padding: 6px 18px 6px 14px;
  background: #000; color: #fff; border: 1px solid #A6A6A6; border-radius: 10px; text-decoration: none; line-height: 1.15; }
.badge > span { display: flex; flex-direction: column; }
.badge small { font-size: 12px; }
.badge b { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.badge .mark { width: 26px; height: 26px; flex: none; }
[dir=rtl] .badge { padding: 6px 14px 6px 18px; }
.badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.note { color: var(--sub); font-size: 14px; margin-top: 14px; }
.shot { justify-self: center; width: min(320px, 100%); border-radius: 30px 30px 0 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }

section { padding: 56px 0; }
section > .wrap > h2 { font-size: clamp(28px, 6vw, 38px); margin-top: 6px; }
.intro { color: var(--sub); margin-top: 10px; max-width: 40em; }

.features { display: grid; gap: 16px; margin-top: 28px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.feature h3 { font-size: 23px; margin: 12px 0 10px; }
.feature p { color: var(--sub); }
.feature ul { margin: 12px 0 0; padding-inline-start: 20px; }
.feature li + li { margin-top: 4px; }
.bars { display: grid; gap: 6px; width: 96px; }
.bars i { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.bars i::before { content: ""; display: block; height: 100%; border-radius: 4px; background: var(--c); width: var(--w); }

.alt { background: var(--soft); }
.gallery { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery img { border-radius: 14px; box-shadow: 0 6px 20px rgba(30, 36, 48, .12); }

.faq { margin-top: 24px; max-width: 760px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-top: 12px; }
summary { cursor: pointer; list-style: none; padding-block: 16px; padding-inline: 20px 52px; font-weight: 600; position: relative; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 24px; font-weight: 400; }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 20px 18px; color: var(--sub); }

/* The 16 types: a grid of links on the home pages and at the foot of each type page. */
.types { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.types a { display: flex; flex-direction: column; justify-content: center; min-height: 72px; height: 100%; padding: 12px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); line-height: 1.3; }
.types a:hover { border-color: var(--accent); }
.types b { color: var(--accent); font-size: 18px; letter-spacing: .12em; }
.types span { font-size: 14px; color: var(--sub); }
.types [aria-current] { border-color: var(--accent); background: var(--soft); }

/* A type page. */
.type-head { padding-top: 28px; padding-bottom: 8px; }
.code { display: block; color: var(--accent); font-family: var(--sans); font-size: clamp(52px, 15vw, 76px); font-weight: 800; letter-spacing: .12em; line-height: 1.05; }
.type-head h1 { font-size: clamp(30px, 7vw, 44px); }
.type-head .lead { color: var(--sub); font-size: 19px; margin-top: 12px; max-width: 34em; }
.letters { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.letters li { border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 15px; }
.letters b { color: var(--c); margin-inline-end: 6px; }
.cards { display: grid; gap: 16px; padding: 24px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.card.soft { background: var(--soft); }
.card h2 { font-size: 23px; margin-bottom: 8px; }
.card p + p { margin-top: 8px; }
.card ol { margin: 12px 0 0; padding-inline-start: 22px; }
.card li + li { margin-top: 8px; }
.card .badges { margin-top: 20px; }
.cta { margin-top: 16px; }

/* Coaches section and the coach contact form (site/coach-form.js). */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 600 16px var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.coaches { display: grid; gap: 16px; margin-top: 28px; }
.coach { display: grid; gap: 18px; align-items: start; }
.coach img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.coach h3, .join h3 { font-size: 23px; }
.coach .role { color: var(--accent); font-weight: 600; margin-top: 4px; }
.coach .bio { color: var(--sub); margin-top: 10px; }
.langs-label { margin-top: 16px; font-size: 14px; color: var(--sub); }
.langs { list-style: none; padding: 0; margin: 8px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.langs li { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 14px; }
.join { display: flex; flex-direction: column; align-items: flex-start; }
.join p { color: var(--sub); margin: 8px 0 20px; }

dialog.sheet { width: min(520px, 100% - 32px); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line); border-radius: 22px;
  background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(20, 23, 28, .35); }
dialog.sheet[open] { animation: sheet-in .28s cubic-bezier(.2, .8, .2, 1); }
dialog.sheet::backdrop { background: rgba(20, 23, 28, .5); backdrop-filter: blur(3px); animation: fade-in .28s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(28px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open], dialog.sheet::backdrop { animation: none; } .btn:hover { transform: none; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px 0; padding-inline: 24px 16px; }
.sheet-head h2 { font-size: 24px; }
.x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.x:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cform { display: grid; gap: 14px; padding: 16px 24px 24px; }
.cform label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.cform small { font-weight: 400; color: var(--sub); }
.cform input, .cform textarea { width: 100%; padding: 12px 14px; font: 16px var(--sans); color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--soft); }
.cform textarea { min-height: 110px; resize: vertical; }
.cform .btn { justify-self: start; min-width: 140px; }
.status { min-height: 1.5em; font-size: 15px; }
.status.ok { color: var(--accent); font-weight: 600; }
.status.err { color: var(--err); font-weight: 600; }
/* Phones: the form slides up as a bottom sheet. */
@media (max-width: 639px) {
  dialog.sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92%; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
}

/* The privacy policy pages. */
.legal { max-width: 760px; padding-top: 28px; padding-bottom: 56px; }
.legal h1 { font-size: clamp(28px, 6vw, 36px); }
.legal .muted { color: var(--sub); font-size: 15px; margin-top: 8px; }
.legal .card { margin-top: 16px; }
.legal .card h2 { font-size: 20px; margin: 28px 0 8px; }
.legal .card h2:first-child { margin-top: 0; }
.legal .summary { border-inline-start: 5px solid var(--accent); }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--sub); font-size: 15px; }
footer nav ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 4px 24px; }
footer nav a { display: inline-block; padding: 12px 0; font-weight: 600; }
footer p + p { margin-top: 8px; }

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .types { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .coaches { grid-template-columns: 2fr 1fr; }
  .coach { grid-template-columns: 112px 1fr; }
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr 320px; padding-top: 48px; gap: 56px; }
}
