/* HiveMind web — same palette, type and card language as the mobile app. */
/* Chakra Petch (SIL OFL 1.1) is served from this site, not Google Fonts,
   so visitors' IP addresses are not sent to Google. */
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/chakra-petch-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/chakra-petch-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/chakra-petch-500-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/chakra-petch-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/chakra-petch-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/chakra-petch-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/chakra-petch-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/chakra-petch-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --primary: #00873f;        /* AppColors.primary */
  --primary-dark: #006b32;
  --honey: #f89519;          /* AppColors.secondary */
  --amber: #ffc107;          /* selected SelectionButton */
  --error: #ff2012;
  --text: #2d3436;           /* AppColors.darkGray */
  --muted: #636e72;          /* AppColors.formGray */
  --surface: #f7f5f2;
  --card: #ffffff;
  --border: #8f8f8f;
  --brown: #4e342e;          /* hive card number tag */
  --radius: 16px;
  --shadow: 0 4px 12px rgba(248, 149, 25, 0.10), 0 1px 4px rgba(0, 0, 0, 0.03);
  --band: linear-gradient(90deg, rgba(0, 135, 63, 0.06), rgba(248, 149, 25, 0.04));
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Chakra Petch", system-ui, sans-serif;
  color: var(--text);
  background: #fbe3a6 url("../img/honeycomb.webp") center / cover fixed;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1; }

a { color: var(--primary); }

img { max-width: 100%; display: block; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
/* The bar spans the window: brand on the far left, menu and languages on the far right. */
.site-header .wrap { width: calc(100% - 2 * clamp(16px, 3vw, 40px)); display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px;
  color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav { margin-left: auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--primary); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }

/* ── Buttons (SelectionButton / ActionButtons language) ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 700 16px "Chakra Petch", sans-serif; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(0, 135, 63, 0.3); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-honey { background: var(--amber); color: var(--text); border-color: var(--border); }
/* Google's sign-in button: white, the multicolour G, dark label. */
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #747775; gap: 12px; }
.btn-google:hover { background: #f8f9fa; }
.btn-google svg { width: 20px; height: 20px; flex: none; }
.btn-apple { background: #000; color: #fff; border: 1px solid #000; gap: 10px; margin-top: 10px; }
.btn-apple:hover { background: #1f1f1f; }
.btn-apple svg { width: 18px; height: 20px; flex: none; fill: currentColor; }
.btn-light { background: #f6f5f5; color: var(--text); border-color: var(--border); }
.btn:disabled { opacity: 0.6; cursor: default; }

/* ── Cards (HiveSectionCard) ────────────────────────────── */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-title { background: var(--band); padding: 12px 18px; margin: 0; text-align: center;
  font-size: 17px; font-weight: 700; color: var(--text); }
.card-body { padding: 14px 18px 18px; }

/* ── Landing ─────────────────────────────────────────────── */
.hero { padding: 56px 0 40px; }
.hero .wrap { width: min(1320px, 100% - 32px); display: grid; grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr); gap: 32px; align-items: center; }
.hero-card { background: rgba(255, 255, 255, 0.94); border-radius: 24px; padding: 32px 40px; box-shadow: var(--shadow); }
.eyebrow { display: inline-block; font-weight: 700; color: var(--primary); background: rgba(0, 135, 63, 0.08);
  border-radius: 999px; padding: 4px 12px; font-size: 13px; letter-spacing: 0.4px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; margin: 14px 0 12px; }
.hero h1 em { font-style: normal; color: var(--honey); }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { order: -1; }
/* On wide screens the bee leaves the content column and sits near the screen's left edge. */
@media (min-width: 861px) { .hero-art img { transform: translateX(clamp(-150px, (1320px - 100vw) / 2 + 24px, 0px)); } }
.hero-art img { width: 100%; max-width: 360px; margin-inline: 0 auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.18)); }
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.trust span { background: #fff; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 999px; padding: 6px 12px;
  font-size: 14px; font-weight: 600; }
/* Wide screens: all badges on a single row, so they are a touch smaller. */
@media (min-width: 1360px) {
  .trust { flex-wrap: nowrap; gap: 6px; }
  .trust span { font-size: 12px; padding: 5px 8px; white-space: nowrap; }
}

section.block { padding: 36px 0; }
.section-head { text-align: center; margin-bottom: 22px; }
.section-head h2 { display: inline-block; margin: 0; font-size: clamp(24px, 3.4vw, 32px);
  background: rgba(255, 255, 255, 0.92); padding: 8px 20px; border-radius: 14px; }
.section-head p { margin: 10px auto 0; max-width: 680px; background: rgba(255, 255, 255, 0.85);
  padding: 6px 14px; border-radius: 10px; color: var(--muted); }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature .card-body { display: flex; gap: 14px; align-items: flex-start; }
.feature .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; background: rgba(248, 149, 25, 0.14); }
.feature h3 { margin: 0 0 4px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.tag-new { font-size: 11px; font-weight: 700; color: #fff; background: var(--honey); border-radius: 6px;
  padding: 1px 6px; margin-left: 6px; vertical-align: middle; }

.steps { counter-reset: step; }
.step .card-body { text-align: center; }
.step .num { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%; background: var(--amber);
  display: grid; place-items: center; font-weight: 700; font-size: 20px; border: 1px solid var(--border); }

.price { text-align: center; }
.price .amount { font-size: 44px; font-weight: 700; color: var(--primary); margin: 6px 0; }
.check { list-style: none; padding: 0; margin: 12px 0 0; text-align: left; }
.check li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px dashed rgba(0, 0, 0, 0.08); }
.check li::before { content: "✓"; position: absolute; left: 4px; color: var(--primary); font-weight: 700; }
.note { font-size: 13px; color: var(--muted); }

details.faq { background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

.site-footer { margin-top: 40px; background: rgba(45, 52, 54, 0.95); color: #e9ecef; padding: 28px 0; font-size: 14px; }
.site-footer a { color: #ffd27a; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }

/* ── Legal pages ─────────────────────────────────────────── */
.doc { padding: 32px 0; }
.doc .card-body h2 { font-size: 18px; margin: 22px 0 6px; }
.doc .card-body p { margin: 0 0 8px; }
.doc .card-body ul { margin: 0 0 8px; padding-left: 20px; }
.doc .card-body li { margin: 0 0 4px; }
.doc-table { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-size: 15px; }
.doc-table th, .doc-table td { padding: 8px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); text-align: left; vertical-align: top; }
.doc-table th { background: var(--band); font-weight: 700; }
.doc-table td:first-child { font-weight: 600; }
/* Phones: each row becomes a small block instead of squeezed columns. */
@media (max-width: 560px) {
  .doc-table thead { display: none; }
  .doc-table tr { display: block; padding: 8px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
  .doc-table td { display: block; padding: 2px 0; border: 0; }
  .doc-table td:last-child:not(:first-child) { color: var(--muted); }
}

/* ── Web panel ───────────────────────────────────────────── */
.panel-main { padding: 24px 0 40px; }
.login-card { max-width: 420px; margin: 40px auto; }
.login-card form { display: grid; gap: 10px; }
.field { width: 100%; min-height: 48px; border: 1px solid var(--border); border-radius: 12px; padding: 0 14px;
  font: 500 16px "Chakra Petch", sans-serif; background: #fff; }
.divider { text-align: center; color: var(--muted); margin: 6px 0; }
.error-text { color: var(--error); min-height: 20px; margin: 4px 0 0; text-align: center; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.92); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); }
.toolbar .who { font-weight: 700; margin-right: auto; }
.search { flex: 1 1 220px; min-height: 44px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0 16px; font: 500 15px "Chakra Petch", sans-serif; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: rgba(255, 255, 255, 0.95); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 26px; color: var(--honey); }
.stat span { color: var(--muted); font-size: 14px; }

.today .row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  background: rgba(247, 245, 242, 0.6); margin-bottom: 4px; cursor: pointer; border: none; width: 100%;
  text-align: left; font: inherit; color: inherit; }
.today .row[aria-pressed="true"] { background: rgba(255, 193, 7, 0.24); }
.today .row .ico { font-size: 20px; }
.today .row .t { flex: 1; }
.today .row .t b { display: block; font-size: 15px; }
.today .row .t small { color: var(--muted); }
.badge { min-width: 28px; text-align: center; border-radius: 999px; padding: 2px 8px; font-weight: 700; }

.hives { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.hive { background: #e9b866; border-radius: 14px; padding: 12px 10px 10px; box-shadow: 0 4px 10px rgba(78, 52, 46, 0.18);
  border-top: 12px solid #6d4c41; cursor: pointer; text-align: left; font: inherit; color: inherit; border-left: 0;
  border-right: 0; border-bottom: 0; }
.hive.passive { opacity: 0.55; }
.hive .num { background: #fff; border-radius: 8px; text-align: center; font-weight: 800; color: var(--brown);
  padding: 4px 6px; margin-bottom: 8px; }
.hive .num small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); }
.hive .paper { background: rgba(255, 255, 255, 0.86); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.hive .paper div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.hive .paper span { color: var(--muted); }

.lvl-good { color: var(--primary); }
.lvl-warning { color: var(--honey); }
.lvl-critical { color: var(--error); }
.lvl-none { color: var(--muted); }

dialog.sheet { border: none; border-radius: 18px; padding: 0; width: min(560px, 100% - 24px); max-height: 86vh; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.35); }
.info-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px;
  background: rgba(247, 245, 242, 0.6); margin-bottom: 2px; }
.info-row span { color: var(--muted); font-weight: 600; }
.read-only { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }

@media (max-width: 860px) {
  .hero .wrap, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-art img { max-width: 220px; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 12px; }
  .nav .hide-sm { display: none; }
}

/* Grid/flex children may shrink below their content (long names, amounts). */
.grid > *, .stats > *, .hives > * { min-width: 0; }
.hive { display: flex; flex-direction: column; justify-content: flex-start; }
.info-row > * { min-width: 0; overflow-wrap: anywhere; }
.badge { background: rgba(0, 0, 0, 0.05); }

/* ── Panel entry forms (SelectionButton / BeeTextField language) ── */
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-danger { background: #fff; color: var(--error); border-color: var(--error); }
.icon-btn { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px;
  width: 30px; height: 30px; border-radius: 8px; flex: none; }
.icon-btn:hover { background: rgba(255, 32, 18, 0.1); color: var(--error); }
.row-actions { display: flex; gap: 8px; margin-top: 10px; }
.row-end { display: flex; align-items: center; gap: 6px; }
.action-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.action-grid .btn { padding: 0 8px; font-size: 14px; min-height: 42px; }
.action-grid.secondary { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0 0; }
details.history { margin-top: 10px; }
details.history summary { cursor: pointer; font-weight: 700; padding: 6px 0; }

dialog.sheet { overflow: auto; }
form.entry .card-body { display: grid; gap: 10px; }
.form-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: center; }
.form-row > span { font-weight: 600; font-size: 14px; }
.form-row.stacked { grid-template-columns: 1fr; gap: 6px; text-align: center; }
.form-section { margin: 10px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--band);
  font-size: 15px; text-align: center; }
.field.area { min-height: 80px; padding: 10px 14px; resize: vertical; }
select.field { appearance: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: #f6f5f5;
  font: 600 14px "Chakra Petch", sans-serif; color: var(--text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--amber); }
.copy-last { justify-self: center; }
.hive-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; max-height: 220px;
  overflow: auto; text-align: left; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 12px; padding: 8px; }
.hive-pick label { display: flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; }
.hive-pick small { color: var(--muted); font-weight: 500; }
.hive-pick .pick-all { grid-column: 1 / -1; border-bottom: 1px dashed rgba(0, 0, 0, 0.1); padding-bottom: 6px; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 18px 18px; position: sticky; bottom: 0;
  background: #fff; padding-top: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: var(--text);
  color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 4px; }
  .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar .btn { flex: 1 1 auto; }
  .nav a:not(.btn) { display: none; }
}

/* ── Store buttons (Google Play / App Store) ── */
.stores { align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 16px 6px 12px;
  border-radius: 12px; background: #1f2325; color: #fff; text-decoration: none; font-weight: 700; }
.store:hover { background: #000; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.15; font-size: 16px; }
.store small { font-size: 11px; font-weight: 500; opacity: 0.8; }
.store[aria-disabled="true"] { background: #5f6a6e; cursor: default; }

/* ── Brand with slogan ── */
.brand span { display: grid; line-height: 1.1; }
.brand small { font-size: 11px; font-weight: 600; letter-spacing: 0.6px; color: var(--primary); text-transform: uppercase; }

/* ── Plans ── */
.plans .price .amount small { font-size: 18px; color: var(--muted); font-weight: 600; }
.plans .price.pro { outline: 3px solid var(--amber); }
.plans .price.pro .card-title { background: linear-gradient(90deg, rgba(255, 193, 7, 0.35), rgba(248, 149, 25, 0.2)); }
.center { text-align: center; }

/* Screenshot gallery on the landing page. */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shot { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.shot.wide { grid-column: 1 / -1; }
.shot img { width: 100%; height: auto; border-bottom: 1px solid #eee; }
.shot figcaption { padding: 10px 14px; font-weight: 600; text-align: center; }
.shots-phone { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.shots-phone img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 10px 28px rgba(62, 39, 35, 0.18); }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr; }
  .shots-phone { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Language switcher (TR · EN · DE) — SelectionButton look: amber = current ── */
.lang-switch { display: flex; flex: none; gap: 2px; padding: 2px; border-radius: 12px; background: #f6f5f5;
  border: 1px solid rgba(0, 0, 0, 0.08); }
.lang-switch a { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: 0.5px; }
.lang-switch a:hover { color: var(--primary); background: rgba(0, 135, 63, 0.06); }
.lang-switch a[aria-current="page"] { background: var(--amber); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.lang-switch a:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
@media (max-width: 1000px) { .nav { gap: 12px; } }
/* Phones: brand + panel button fill the bar, so the switcher gets its own slim row. */
@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 2px; padding: 6px 0; }
  .lang-switch { order: 3; margin-left: auto; }
}
/* The English slogan is the longest; keep brand + panel button on one row at 360px. */
@media (max-width: 400px) { html[lang="en"] .brand small { font-size: 10px; letter-spacing: 0.2px; } }

/* ── Usage guide: chapters with the app's own screenshots ── */
.guide { padding: 28px 0 8px; display: grid; gap: 20px; }
.guide-hero { background: rgba(255, 255, 255, 0.94); border-radius: 24px; padding: 28px 32px; box-shadow: var(--shadow); }
.guide-hero h1 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.15; margin: 12px 0 10px; }
.guide-hero .lead { font-size: 17px; color: var(--muted); margin: 0 0 18px; max-width: 760px; }
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.toc a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 12px;
  background: #f6f5f5; border: 1px solid rgba(0, 0, 0, 0.08); color: var(--text); text-decoration: none; font-weight: 600; }
.toc a:hover { background: rgba(255, 193, 7, 0.24); }
.toc b, .chapter .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--amber); border: 1px solid var(--border); font-size: 14px; }
.chapter { scroll-margin-top: 80px; }
.chapter .card-title { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; padding: 14px 18px; }
.chapter-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 18px 22px 22px; align-items: start; }
.chapter-body.solo { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
.chapter-body .text > :first-child { margin-top: 0; }
.chapter-body p { margin: 0 0 12px; }
.ui { display: inline-block; background: #fff7e0; border: 1px solid rgba(248, 149, 25, 0.45); border-radius: 7px;
  padding: 0 6px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
ol.how { counter-reset: how; list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
ol.how > li { counter-increment: how; position: relative; padding-left: 40px; }
ol.how > li::before { content: counter(how); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; }
ul.dots { padding-left: 20px; margin: 0 0 14px; display: grid; gap: 8px; }
ul.dots li::marker { color: var(--honey); }
.tip { background: rgba(0, 135, 63, 0.07); border-left: 4px solid var(--primary); border-radius: 10px; padding: 10px 14px; }
.tip::before { content: "💡 "; }
.phones { display: grid; gap: 14px; }
.phones.one { width: 260px; }
.phones.two { grid-template-columns: repeat(2, 230px); }
/* Three screenshots sit under the text, so the steps keep a readable width. */
.chapter-body:has(> .phones.three) { grid-template-columns: 1fr; }
.phones.three { grid-template-columns: repeat(3, minmax(0, 240px)); justify-content: center; }
.phones img { width: 100%; height: auto; border-radius: 18px; border: 6px solid #2d3436; box-shadow: 0 10px 24px rgba(62, 39, 35, 0.18); }
table.score { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 15px; }
table.score th, table.score td { padding: 7px 8px; border-bottom: 1px dashed rgba(0, 0, 0, 0.1); text-align: left; }
table.score td:nth-child(2) { font-weight: 700; color: var(--primary); white-space: nowrap; }
table.score td:last-child { color: var(--muted); }
.guide .shot img { border-bottom: 1px solid #eee; }
.guide-help { text-align: center; }
.guide-help h2 { margin: 0 0 6px; font-size: 22px; }
.guide-help p { margin: 0; }
@media (max-width: 1000px) {
  .chapter-body, .chapter-body.solo { grid-template-columns: 1fr; }
  .phones.one, .phones.two, .phones.three { width: auto; justify-self: center; }
  .phones.one { width: min(260px, 100%); }
  .phones.two { grid-template-columns: repeat(2, minmax(0, 230px)); }
}
@media (max-width: 560px) {
  .guide-hero { padding: 22px 18px; }
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc a { font-size: 14px; padding: 6px 8px; gap: 8px; }
  .chapter-body { padding: 14px 16px 18px; }
  .phones.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones img { border-width: 4px; border-radius: 14px; }
  .ui { white-space: normal; }
}
.guide-link { margin: 18px 0 0; }
