/* aplikacja.celiakia.pl – palette and type follow celiakia.pl (Roboto, navy #004e8b, green #34b52d). */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/roboto-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/roboto-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 {
  --navy: #004e8b;
  --navy-dark: #004072;
  --link: #0079d7;
  --green: #34b52d;
  --green-text: #217a1c;
  --red: #df1946;
  --ink: #313131;
  --body: #4a4a4a;
  --muted: #6b6b6b;
  --line: #e2dfdc;
  --tint: #f5f4f3;
  --gold: #e3a823;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: #fff;
}

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

a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2 { color: var(--ink); font-weight: 700; line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(30px, 3.2vw + 14px, 46px); letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 1.6vw + 16px, 34px); }
p { margin: 0 0 16px; }
b { color: var(--ink); font-weight: 500; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 780px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: #fff; color: var(--navy); padding: 10px 14px; font-weight: 500;
}
.skip:focus { top: 12px; }

/* Header: the navy bar of celiakia.pl */
.top { background: var(--navy); color: #fff; }
.top__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand img { background: #fff; border-radius: 6px; padding: 4px 6px; width: 72px; height: auto; }
.brand__name { font-size: 14px; line-height: 1.35; font-weight: 500; }
.brand:hover { color: #fff; }
.top__nav { display: flex; gap: 26px; }
.top__nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; }
.top__nav a:hover { text-decoration: underline; color: #fff; }

/* Hero */
.hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: center; }
.kicker {
  color: var(--green-text); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.lead { font-size: 19px; color: var(--body); max-width: 36em; }
.note { color: var(--muted); font-size: 15px; margin-top: 14px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 168px; min-height: 56px; padding: 8px 20px;
  background: var(--ink); color: #fff; border-radius: 10px; text-decoration: none; line-height: 1.15;
}
.store:hover { background: #000; color: #fff; }
.store[aria-disabled="true"] { cursor: default; }
.store__small { font-size: 12px; opacity: 0.85; }
.store__big { font-size: 20px; font-weight: 500; }

/* Real screenshots in a plain phone outline */
.phone { margin: 0; }
.phone img {
  width: 100%;
  border: 8px solid #1f1f1f;
  border-radius: 34px;
  background: #1f1f1f;
}
.phone figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.phone figcaption b { display: block; font-size: 17px; margin-bottom: 4px; }
.phone--hero { max-width: 330px; justify-self: center; }

/* Facts strip */
.facts { background: var(--tint); border-bottom: 1px solid var(--line); }
.facts__row { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts__row p { margin: 0; padding: 26px 24px 26px 0; font-size: 15px; color: var(--body); }
.facts__row p + p { padding-left: 24px; border-left: 1px solid var(--line); }
.facts__row strong { display: block; font-size: 22px; color: var(--navy); font-weight: 700; margin-bottom: 2px; }

/* Content blocks */
.block { padding: 80px 0; }
.block--tint { background: var(--tint); }
.block__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.block__grid--flip .block__text { order: 2; }
.block__grid--flip .phone { order: 1; max-width: 330px; justify-self: center; }
.block__text { max-width: 34em; }
.aside {
  border-left: 3px solid var(--gold); padding: 2px 0 2px 16px;
  color: var(--muted); font-size: 15px; margin-top: 24px;
}

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 290px)); justify-content: space-between; gap: 32px; margin-top: 32px; }

/* The scanner colours, as in the app */
.legend { list-style: none; padding: 0; margin: 20px 0 0; }
.legend li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 16px; }
.legend li:last-child { border-bottom: 1px solid var(--line); }
.dot { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; transform: translateY(1px); }
.dot--klos { background: #15803d; }
.dot--ok { background: #2563eb; }
.dot--caution { background: #eab308; }
.dot--review { background: #ea580c; }
.dot--gluten { background: var(--red); }

/* How to join */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 52px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps b { display: block; }

/* FAQ */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-weight: 500; color: var(--ink); font-size: 18px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--navy); }
details[open] summary::after { content: '–'; }
details p { padding-bottom: 8px; }

/* Footer */
.foot { background: var(--navy-dark); color: #dfe9f2; padding: 44px 0; font-size: 15px; }
.foot a { color: #fff; }
.foot__grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot__name { color: #fff; font-weight: 500; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

@media (max-width: 900px) {
  .top__nav { display: none; }
  .hero { padding: 40px 0; }
  .hero__grid, .block__grid { grid-template-columns: 1fr; gap: 40px; }
  .block__grid--flip .block__text { order: 1; }
  .block__grid--flip .phone { order: 2; }
  .phone--hero { max-width: 280px; }
  .block { padding: 56px 0; }
  .trio { grid-template-columns: minmax(0, 300px); justify-content: start; }
  .facts__row { grid-template-columns: 1fr; }
  .facts__row p, .facts__row p + p { padding: 18px 0; border-left: 0; }
  .facts__row p + p { border-top: 1px solid var(--line); }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .brand__name { font-size: 12px; }
  .pair { gap: 12px; }
  .phone img { border-width: 5px; border-radius: 22px; }
  .lead { font-size: 17px; }
}
