/* The home page (web/index.html and one folder per language, generated from src/site). Colors follow
   the app's palette (src/theme/colors.ts). The other pages on this site keep their own styles. */
:root {
  color-scheme: light dark;
  --bg: #f5f5f2;
  --surface: #ffffff;
  --raised: #eceae4;
  --border: #e1ddd3;
  --text: #1a1712;
  --muted: #5e594f;
  --accent: #8f6f3b;
  --on-accent: #ffffff;
  --torevo: #a57f3d;
  --ok: #2e9e6b;
  --coach: #0a86ae;
  --cardio: #d0543a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --surface: #1b1b1a;
    --raised: #262624;
    --border: #353532;
    --text: #f5f5f2;
    --muted: #a6a29a;
    --accent: #c3a87c;
    --on-accent: #141210;
    --ok: #43c285;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP', system-ui, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}
a {
  color: inherit;
}
.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.lang {
  position: relative;
  font-size: 14px;
}
.lang summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
  list-style: none;
}
.lang summary::-webkit-details-marker {
  display: none;
}
.lang summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.lang summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin: -3px 2px 0 2px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.lang[open] summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.lang[open] summary {
  background: var(--raised);
}
/* Every language at a glance: a grid that is two columns on a phone and four on a computer, so
   the list never has to scroll inside a narrow box. */
.lang ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 1;
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 2px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.16);
}
.lang li a,
.lang li span {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang li a:hover {
  background: var(--raised);
}
.lang li span {
  font-weight: 700;
  color: var(--accent);
  background: var(--raised);
}
.hero {
  text-align: center;
  padding: 40px 0 24px;
}
.hero img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.18);
}
.hero h1 {
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.2;
  margin: 20px 0 8px;
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.store {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 190px;
  text-align: start;
}
.store svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: currentColor;
}
.store b {
  display: block;
  font-size: 15px;
}
.store small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-inline-end: 6px;
  vertical-align: 1px;
}
section {
  padding: 36px 0;
}
h2 {
  font-size: 22px;
  margin: 0 0 18px;
  text-align: center;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature {
  text-align: center;
  padding: 18px 10px;
  text-decoration: none;
}
.feature svg {
  width: 40px;
  height: 40px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature b {
  display: block;
  margin-top: 8px;
  font-size: 15px;
}
.feature small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.plans h3 {
  margin: 0 0 12px;
  font-size: 17px;
}
.free-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.free-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.free-list li:last-child {
  border-bottom: 0;
}
.free-list li::before {
  content: '✓';
  color: var(--ok);
  font-weight: 700;
  margin-inline-end: 8px;
}
.bar {
  margin: 10px 0;
}
.bar .label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.bar .track {
  height: 14px;
  border-radius: 7px;
  background: var(--raised);
  margin-top: 4px;
  overflow: hidden;
}
.bar .fill {
  height: 100%;
  border-radius: 7px;
  background: var(--muted);
}
.bar.best .fill {
  background: var(--accent);
}
.save {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 14px;
}
.note {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}
footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 24px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 12px;
}
