/* Posture Reminder: Stand Up — shared styles */
:root {
  --cyan: #2bc0e4;
  --cyan-dark: #17a2c6;
  --cyan-bg: #eafafe;
  --orange: #f7941e;
  --orange-deep: #ef6c1a;
  --ink: #101418;
  --ink-soft: #3c4650;
  --muted: #64707c;
  --card: #ffffff;
  --line: #e3edf2;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(16, 42, 56, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 42, 56, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 14px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav .nav-links { display: flex; gap: 22px; }
@media (max-width: 720px) { .site-nav .nav-links { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px; font-weight: 700; font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer; text-decoration: none !important;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff; box-shadow: 0 8px 22px rgba(239,108,26,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(239,108,26,.45); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); }
.btn-appstore {
  background: #000; color: #fff; padding: 10px 22px; border-radius: 13px;
  display: inline-flex; align-items: center; gap: 11px; text-align: left; line-height: 1.15;
}
.btn-appstore:hover { transform: translateY(-2px); }
.btn-appstore svg { width: 26px; height: 26px; flex: none; }
.btn-appstore small { display: block; font-size: .66rem; font-weight: 400; opacity: .85; }
.btn-appstore span { display: block; font-size: 1.05rem; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--cyan) 0%, #3fd0f0 55%, #7ee0f6 100%);
  color: #06303d; overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px;
  align-items: center; padding-top: 72px; padding-bottom: 72px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12; letter-spacing: -.02em; color: #052b37; }
.hero h1 em { font-style: normal; color: #fff; text-shadow: 0 2px 14px rgba(5,43,55,.25); }
.hero .sub { margin: 20px 0 28px; font-size: 1.18rem; color: #0a3b4a; max-width: 34em; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-proof { margin-top: 22px; display: flex; align-items: center; gap: 16px; font-weight: 600; color: #063442; }
.hero-proof .stars { color: #ffb400; letter-spacing: 2px; font-size: 1.05rem; }
.hero-shot { position: relative; }
.hero-shot img {
  width: min(320px, 80%); margin: 0 auto; border-radius: 34px;
  box-shadow: var(--shadow-lg);
}
.badge-pill {
  display: inline-block; background: rgba(255,255,255,.85); color: #075063;
  font-weight: 700; font-size: .82rem; padding: 7px 14px; border-radius: 999px;
  margin-bottom: 18px; letter-spacing: .02em;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .sub { margin-inline: auto; }
  .hero-cta, .hero-proof { justify-content: center; }
}

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-alt { background: var(--cyan-bg); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; color: var(--cyan-dark); }
h2.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.015em; margin: 8px 0 14px; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 46em; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* ---------- Screenshots ---------- */
.shots {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 44px;
}
.shots figure { text-align: center; }
.shots img { border-radius: 22px; box-shadow: var(--shadow); }
.shots figcaption { margin-top: 10px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
@media (max-width: 960px) { .shots { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .shots { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Steps / cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 4px 16px rgba(16,42,56,.05);
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark)); color: #fff; font-weight: 800; font-size: 1.05rem;
  margin-bottom: 16px;
}
.card .emoji { font-size: 1.9rem; line-height: 1; margin-bottom: 14px; display: block; }

/* ---------- Guides ---------- */
.guide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
@media (max-width: 900px) { .guide-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .guide-list { grid-template-columns: 1fr; } }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .15s, box-shadow .15s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.guide-card .tag { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-deep); }
.guide-card h3 { color: var(--ink); font-size: 1.06rem; line-height: 1.35; }
.guide-card p { color: var(--muted); font-size: .92rem; }
.guide-card .more { margin-top: auto; font-weight: 700; color: var(--cyan-dark); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 44px auto 0; }
.faq details {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 4px 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.04rem; padding: 16px 0;
  list-style: none; position: relative; padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--cyan-dark); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 0 18px; color: var(--ink-soft); }
.faq .faq-a a { font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, #1d2b35 100%);
  color: #fff; border-radius: 26px; padding: 56px 40px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.cta-band p { color: #b8c6d0; max-width: 40em; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.site-footer { background: #0d1418; color: #93a3ad; padding: 56px 0 40px; margin-top: 76px; font-size: .93rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: .95rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #93a3ad; }
.site-footer a:hover { color: #fff; }
.site-footer .brandline { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; margin-bottom: 12px; }
.site-footer .brandline img { width: 30px; height: 30px; border-radius: 7px; }
.site-footer .legal { border-top: 1px solid #223038; margin-top: 40px; padding-top: 22px; font-size: .82rem; color: #6d7d87; }

/* ---------- Guide article pages ---------- */
.article-hero { background: linear-gradient(160deg, var(--cyan) 0%, #55d3ef 100%); padding: 56px 0; color: #052b37; }
.article-hero .crumbs { font-size: .85rem; margin-bottom: 14px; color: #07404f; }
.article-hero .crumbs a { color: #063442; font-weight: 600; }
.article-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; max-width: 22em; }
.article-hero .meta { margin-top: 14px; font-size: .9rem; color: #0a3b4a; font-weight: 600; }
.article {
  max-width: 760px; margin: 0 auto; padding: 56px 24px 20px;
  font-size: 1.05rem; color: #222b33;
}
.article h2 { font-size: 1.55rem; margin: 44px 0 14px; letter-spacing: -.01em; }
.article h3 { font-size: 1.18rem; margin: 30px 0 10px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 18px 24px; }
.article li { margin-bottom: 8px; }
.article .tip {
  background: var(--cyan-bg); border-left: 4px solid var(--cyan); border-radius: 0 12px 12px 0;
  padding: 16px 20px; margin: 22px 0; font-size: .98rem;
}
.article img.inline-shot { width: min(300px, 100%); margin: 26px auto; border-radius: 24px; box-shadow: var(--shadow); }
.app-integration {
  background: linear-gradient(150deg, #f0fbfe, #e2f6fc); border: 1px solid #cdeef7;
  border-radius: 20px; padding: 30px; margin: 44px 0;
}
.app-integration h2 { margin-top: 0; }
.app-integration ol { margin-left: 22px; }
.app-integration .cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.related { max-width: 760px; margin: 0 auto; padding: 0 24px 60px; }
.related h2 { font-size: 1.3rem; margin-bottom: 18px; }
.related ul { list-style: none; }
.related li { margin-bottom: 10px; }
.related a { font-weight: 600; }

.article .disclaimer {
  background: #fff8ec; border: 1px solid #f2ddb0; border-inline-start: 4px solid var(--orange);
  border-radius: 12px; padding: 15px 20px; margin: 0 0 30px; font-size: .9rem; line-height: 1.6;
  color: #6b5a2e;
}
.article .disclaimer p { margin: 0; }
.article .disclaimer strong { color: #8a6a1c; }

/* ---------- Language selector ---------- */
.lang-select {
  appearance: none;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364707c' d='M2 4.5 6 8.5l4-4z'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding: 7px 28px 7px 11px;
  color: var(--ink-soft); font-size: .9rem; font-weight: 500;
  font-family: inherit; cursor: pointer; max-width: 150px;
}
.lang-select:hover { color: var(--ink); border-color: #cfe0e8; }
.lang-select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
[dir="rtl"] .lang-select { background-position: left 10px center; padding: 7px 11px 7px 28px; }
@media (max-width: 520px) { .lang-select { max-width: 108px; } }

/* ---------- Language suggestion banner ---------- */
.lang-banner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px 14px;
  padding: 10px 46px 10px 18px; position: relative;
  background: var(--cyan-bg); border-bottom: 1px solid var(--line);
  color: var(--ink-soft); font-size: .93rem;
}
.lang-banner-go { color: var(--cyan-dark); font-weight: 700; text-decoration: underline; }
.lang-banner-go:hover { color: var(--ink); }
.lang-banner-x {
  position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; line-height: 1;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); font-size: 1.1rem; cursor: pointer;
}
.lang-banner-x:hover { background: rgba(16,42,56,.08); color: var(--ink); }

/* ---------- Footer language list ---------- */
.footer-langs { margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-langs h4 { margin-bottom: 12px; }
.footer-langs ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px;
}
.footer-langs li { margin: 0; }
.footer-langs a { font-size: .9rem; opacity: .82; }
.footer-langs a:hover { opacity: 1; }
.footer-langs [aria-current="page"] { font-weight: 700; opacity: 1; }

/* ---------- RTL ---------- */
[dir="rtl"] .site-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .grid-4, [dir="rtl"] .guide-list, [dir="rtl"] .faq { text-align: right !important; }
[dir="rtl"] .crumbs { direction: rtl; }
