/* Caloriator landing page */

:root {
  --brand: #146da8;
  --brand-dark: #0d5079;
  --brand-light: #21a3d1;
  --green: #25701a;
  --green-soft: #eaf6e7;
  --bg: #ffffff;
  --bg-alt: #f2f7fb;
  --surface: #ffffff;
  --text: #16232e;
  --text-muted: #4d6072;
  --border: #dde6ee;
  --shadow: 0 1px 2px rgba(16, 38, 56, .06), 0 8px 24px rgba(16, 38, 56, .08);
  --shadow-lg: 0 2px 4px rgba(16, 38, 56, .08), 0 18px 48px rgba(16, 38, 56, .16);
  --band-from: #0c4d76;
  --band-to: #15709b;
  --radius: 16px;
  --maxw: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4db4e2;
    --brand-dark: #21a3d1;
    --brand-light: #7fcdec;
    --green: #6cc75a;
    --green-soft: #17301a;
    --bg: #10171e;
    --bg-alt: #161f28;
    --surface: #1a242e;
    --text: #e8eef4;
    --text-muted: #a3b3c2;
    --border: #2a3844;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .32);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .45), 0 18px 48px rgba(0, 0, 0, .5);
    --band-from: #08324d;
    --band-to: #0e5476;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.15rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.3rem); letter-spacing: -.02em; }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .35em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section__head p { color: var(--text-muted); font-size: 1.08rem; margin: 0; }
.eyebrow {
  display: inline-block; margin-bottom: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand);
}
.lead { font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); color: var(--text-muted); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--brand-light);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--text-muted); text-decoration: none; font-size: .96rem; font-weight: 600; }
.site-nav a:hover { color: var(--brand); }
@media (max-width: 860px) { .site-nav .site-nav__link { display: none; } }

.lang-switch { display: flex; gap: 2px; padding: 3px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; }
.lang-switch a {
  padding: 4px 11px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); text-decoration: none;
}
.lang-switch a[aria-current="true"] { background: var(--brand); color: #fff; }

/* ---------- store badges ---------- */

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.stores a { display: inline-flex; text-decoration: none; transition: transform .15s ease; }
.stores a:hover { transform: translateY(-2px); }
.stores img { height: 54px; width: auto; }
.stores .badge-play img { height: 80px; margin: -13px 0; }

/* ---------- hero ---------- */

.hero { padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; text-align: center; } .hero .stores, .hero .chips { justify-content: center; } }
.hero h1 { margin-bottom: .35em; }
.hero__sub { font-size: clamp(1.05rem, .98rem + .45vw, 1.3rem); color: var(--text-muted); margin-bottom: 1.5em; }
.hero__note { margin-top: 20px; font-size: .93rem; color: var(--text-muted); }
.hero__note a { font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.chips li {
  margin: 0; padding: 6px 13px; border-radius: 999px;
  background: var(--green-soft); color: var(--green);
  font-size: .87rem; font-weight: 700; white-space: nowrap;
}

/* ---------- phone frame ---------- */

.phone {
  position: relative; width: 100%; max-width: 290px; margin: 0 auto;
  padding: 9px; border-radius: 38px;
  background: linear-gradient(160deg, #2b3946, #131b23);
  box-shadow: var(--shadow-lg);
}
.phone img { border-radius: 29px; width: 100%; }
.phone--sm { max-width: 250px; }
.hero .phone { max-width: 310px; }

/* ---------- feature rows ---------- */

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(48px, 6vw, 84px); }
.feature:last-child { margin-bottom: 0; }
.feature:nth-child(even) .feature__media { order: -1; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature:nth-child(even) .feature__media { order: 0; }
}
.feature__body h3 { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.7rem); letter-spacing: -.02em; }
.feature__body p { color: var(--text-muted); }
.feature__body ul { list-style: none; padding: 0; margin-top: 1.1em; }
.feature__body li { position: relative; padding-left: 28px; color: var(--text-muted); }
.feature__body li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: 16px; height: 16px;
  background: var(--green); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 12.4 2.4 8.6l1.4-1.4 2.4 2.4 6-6 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 12.4 2.4 8.6l1.4-1.4 2.4 2.4 6-6 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- privacy band ---------- */

.privacy { background: linear-gradient(135deg, var(--band-from), var(--band-to)); color: #fff; }
.privacy h2 { color: #fff; }
.privacy p { color: rgba(255, 255, 255, .93); }
.privacy .eyebrow { color: rgba(255, 255, 255, .8); }
.privacy__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { .privacy__grid { grid-template-columns: 1fr; } }
.privacy__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.privacy__list li {
  margin: 0; padding: 14px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  font-weight: 600;
}
.privacy__list strong { display: block; font-size: .96rem; }
.privacy a { color: #fff; }
.privacy__policy {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.privacy__policy::after { content: "\2192"; text-decoration: none; }

.privacy__list span { display: block; font-weight: 400; font-size: .9rem; color: rgba(255, 255, 255, .82); }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; }
.step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800;
}
.step p { color: var(--text-muted); margin: 0; font-size: .98rem; }

/* ---------- more-features grid ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card svg { width: 26px; height: 26px; margin-bottom: 12px; color: var(--brand); }
.card h3 { font-size: 1.03rem; margin-bottom: .3em; }
.card p { margin: 0; font-size: .94rem; color: var(--text-muted); }

/* ---------- gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 12px; text-align: center; font-size: .88rem; color: var(--text-muted); }

/* ---------- video ---------- */

.video { max-width: 860px; margin: 0 auto; }
.video__frame {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; padding: 0; border-radius: var(--radius); overflow: hidden;
  background: #000; cursor: pointer; box-shadow: var(--shadow-lg);
}
.video__frame img { width: 100%; height: 100%; object-fit: cover; }
.video__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.video__play::after {
  content: ""; width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255, 255, 255, .94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23146da8'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") center/44px no-repeat;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
  transition: transform .2s ease;
}
.video__frame:hover .video__play::after { transform: scale(1.07); }
.video__note { margin-top: 14px; text-align: center; font-size: .9rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */

.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 12px; width: 12px; height: 12px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq details p { color: var(--text-muted); margin: 0 0 16px; font-size: .98rem; }

/* ---------- final CTA ---------- */

.cta { text-align: center; }
.cta .stores { justify-content: center; margin-top: 26px; }
.cta__phones { display: flex; justify-content: center; gap: 18px; margin-top: 44px; }
.cta__phones .phone { max-width: 190px; margin: 0; }
@media (max-width: 620px) { .cta__phones .phone:nth-child(3) { display: none; } }

/* ---------- footer ---------- */

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 44px 0 32px; font-size: .92rem; color: var(--text-muted); }
.site-footer__grid { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer__bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .86rem; }
.contact-link { font-weight: 600; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- legal / policy pages ---------- */

.legal { max-width: 780px; margin: 0 auto; }
.legal__meta { margin: -6px 0 34px; font-size: .92rem; color: var(--text-muted); }
.legal h2 {
  font-size: clamp(1.2rem, 1.08rem + .5vw, 1.5rem);
  margin: 2.2em 0 .6em; padding-top: .3em;
}
.legal h2:first-of-type { margin-top: 1.4em; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 1.3em; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal__summary {
  margin: 0 0 8px; padding: 20px 24px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-left: 4px solid var(--brand); border-radius: 12px;
}
.legal__summary p { margin: 0; color: var(--text); }
.legal__back { display: inline-block; margin-top: 40px; font-weight: 600; }
