/* ===========================================================
   Mondelēz × WhiteCoat — Corporate Benefit Info Hub
   Brand color: #006eff
   =========================================================== */

:root {
  --brand: #006eff;
  --brand-dark: #0052cc;
  --brand-light: #4d97ff;
  --brand-tint: #e8f1ff;
  --brand-tint-2: #cce0ff;
  --accent: #00c2ff; /* lighter blue, used sparingly for focus */
  --ink: #14233d;
  --muted: #5c6a82;
  --line: #e2e8f2;
  --bg: #ffffff;
  --bg-soft: #f7faff;
  --ok: #1f9d57;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(0, 110, 255, 0.10);
  --shadow-lg: 0 12px 40px rgba(0, 110, 255, 0.16);
  --maxw: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ============================ HEADER ============================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-client img { height: 38px; width: auto; }

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.companion { display: flex; align-items: center; gap: 10px; }

.companion-label {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.brand-wc img { height: 34px; width: auto; }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--brand);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  line-height: 1;
}

.lang-btn[aria-pressed="true"] { background: var(--brand); color: #fff; }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header title block */
.header-title {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 38px 20px 44px;
}

.header-title .eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.header-title h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ============================ BENEFIT BANNER ============================ */
.benefit-banner {
  background: var(--brand-tint);
  padding: 30px 0;
  border-bottom: 1px solid var(--brand-tint-2);
}

.benefit-headline {
  margin: 0 auto 20px;
  max-width: 820px;
  text-align: center;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--brand-dark);
}
.benefit-headline strong { color: var(--brand); }

.benefit-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--brand-tint-2);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-dark);
  box-shadow: var(--shadow);
}
.badge-icon { color: var(--brand); font-size: 1rem; }

/* ============================ GUIDE SECTIONS ============================ */
.guide { padding: 52px 0; }
.guide-alt { background: var(--bg-soft); }

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-num {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.step-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.step-title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--ink);
}

.step-tag {
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* Step strip — one composite screenshot per step group */
.step-strip { margin: 0; }

.step-strip-link {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.step-strip-link[href] { cursor: zoom-in; }
.step-strip-link img { width: 100%; height: auto; display: block; }
.step-strip.is-placeholder .step-strip-link { border-style: dashed; }

.step-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* Download row */
.download-row { display: grid; gap: 24px; }
.download-copy { margin: 0; font-size: 0.98rem; }

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.store-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  transition: transform .15s ease, opacity .15s ease;
}
.store-badge:hover { transform: translateY(-1px); opacity: 0.88; }
.store-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.store-badge img { height: 48px; width: auto; display: block; }

.qr {
  margin: 0;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: var(--shadow);
}
.qr img { width: 120px; height: 120px; }
.qr figcaption { margin-top: 6px; font-size: 0.78rem; color: var(--muted); }

/* Callout (scheme code + identifier) */
.callout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.callout-item {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow);
}

.callout-key {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.callout-val { font-size: 1.05rem; font-weight: 700; }
.callout-val.code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 8px;
  align-self: flex-start;
}

/* ============================ FAQ ============================ */
.faq { padding: 52px 0 64px; }

.faq-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}
.faq-search svg {
  position: absolute;
  left: 16px;
  color: var(--muted);
  pointer-events: none;
}
.faq-search input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 44px 14px 46px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}

.faq-clear {
  position: absolute;
  right: 12px;
  border: 0;
  background: var(--line);
  color: var(--ink);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.faq-clear:hover { background: var(--brand-tint-2); }

.faq-list { display: grid; gap: 12px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.faq-item.open { border-color: var(--brand-tint-2); box-shadow: var(--shadow); }

.faq-q {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  padding: 18px 52px 18px 20px;
  cursor: pointer;
  position: relative;
  display: block;
}
.faq-q:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.faq-q::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform .2s ease;
}
.faq-item.open .faq-q::after { content: "−"; }

.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  color: var(--ink);
}
.faq-item.open .faq-a { padding: 0 20px 20px; max-height: 2600px; }

.faq-a p { margin: 0 0 10px; }
.faq-a ul { margin: 0 0 10px; padding-left: 22px; }
.faq-a li { margin-bottom: 4px; }
.faq-a strong { color: var(--brand-dark); }

.faq-empty { text-align: center; color: var(--muted); padding: 30px 0; font-size: 0.98rem; }

mark {
  background: #fdeaa8;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

/* ============================ FOOTER ============================ */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 40px 0 32px;
}

.footer-company {
  text-align: center;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0 0 24px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.contact {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: #fff;
  text-decoration: none;
  transition: background .15s ease;
  min-width: 200px;
}
.contact:hover { background: rgba(255, 255, 255, 0.16); }
.contact-lbl { font-size: 0.78rem; color: rgba(255, 255, 255, 0.7); }
.contact strong { font-size: 1.02rem; }

/* ============================ RESPONSIVE ============================ */
@media (min-width: 720px) {
  .download-row { grid-template-columns: 1fr; }
  .download-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .brand-client img { height: 30px; }
  .brand-wc img { height: 28px; }
  .companion-label { font-size: 0.68rem; }
  .header-right { gap: 12px; }
  .header-title { padding: 28px 20px 32px; }
  .guide, .faq { padding: 38px 0; }
  .step-block { padding: 18px; }
  .download-actions { flex-direction: column; align-items: flex-start; gap: 18px; }
  .contact { min-width: 100%; }
}

@media (max-width: 380px) {
  .lang-toggle { order: 3; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
