/* Vital Habits Guide: shared styles. Mobile first; logical properties so the same file serves RTL and LTR pages. */
:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #1f2430;
  --ink-soft: #454c5a;
  --muted: #6b7280;
  --line: #e6dfd3;
  --label-bg: #f1ece3;
  --accent: #2f4b7c;
  --accent-hover: #243b63;
  --good: #0f766e;
  --bad: #b45309;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { padding-block: 12px; }
.brand {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
}

/* Article */
article { padding-block: 20px 8px; }
.ad-label {
  display: inline-block;
  margin: 0 0 4px;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--ink-soft);
  background: var(--label-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}
h1 {
  font-size: clamp(26px, 6.6vw, 34px);
  line-height: 1.3;
  margin: 10px 0 18px;
}
h2 {
  font-size: 22px;
  line-height: 1.35;
  margin: 36px 0 12px;
}
p { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-inline-start: 22px; }
li { margin-bottom: 8px; }

/* Numbered steps: the number is its own element, so RTL never moves the digit. */
.step { display: flex; align-items: center; gap: 12px; }
.step .num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

/* The one-minute check */
.check {
  background: var(--card);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--good);
  border-radius: 12px;
  padding: 14px 16px 2px;
  margin: 16px 0 20px;
}

/* Illustrations */
.figure-pair { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 24px 0 8px; }
@media (min-width: 560px) { .figure-pair { grid-template-columns: 1fr 1fr; } }
.figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 12px 8px;
}
.figure svg { display: block; width: 100%; height: auto; }
.figure figcaption { font-size: 15px; line-height: 1.5; color: var(--ink-soft); margin-top: 8px; text-align: center; }

/* Product */
.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 18px 6px;
  margin: 40px 0 8px;
}
.product-img { margin: 16px 0 8px; }
.product-img img { display: block; width: 100%; height: auto; border-radius: 10px; }
.ticks { list-style: none; padding-inline-start: 0; }
.ticks li { position: relative; padding-inline-start: 30px; }
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .38em;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%230f766e'/%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Who it fits */
.fit { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px; }
@media (min-width: 560px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit-col { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 2px; }
.fit-yes { border-top: 4px solid var(--good); }
.fit-no { border-top: 4px solid var(--bad); }
.fit-title { font-weight: 700; margin-bottom: 6px; }
.fit ul { padding-inline-start: 20px; }

/* Call to action */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin: 20px 0 24px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.cta:hover { background: var(--accent-hover); }
.cta:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.cta[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer .wrap { padding-block: 20px 40px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.site-footer a { color: var(--ink-soft); }

/* Simple pages (privacy, home, 404) */
.page h1 { font-size: clamp(24px, 6vw, 30px); }
.page .updated { color: var(--muted); font-size: 15px; }
.page .summary { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 2px; }
.page h2 { font-size: 20px; margin-top: 28px; }
.guides { list-style: none; padding-inline-start: 0; }
.guides li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.guides .lang { display: block; font-size: 14px; color: var(--muted); }
