/* Portal klienta programu lojalnościowego Partner Tele.com
   Paleta z logotypu: granat i błękit marki + pomarańczowa „kropka” (używana tylko jako ładunek/akcja). */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/static/fonts/archivo-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: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/static/fonts/archivo-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: #052b48;
  --blue: #005b9a;
  --blue-deep: #004a7e;
  --sky: #6fb0e0;
  --orange: #fa8b24;
  --orange-deep: #c45f06;
  --paper: #f3f7fb;
  --surface: #ffffff;
  --ink: #0d2233;
  --mute: #52677a;
  --line: #d3e1ec;
  --ok: #0b7a55;
  --focus: #fa8b24;
  --on-navy: #e9f2fa;
  --on-navy-mute: #a9c4dc;
  --radius-s: 6px;
  --radius-l: 14px;
  --wrap: 1040px;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1f31;
    --surface: #10283d;
    --ink: #e4edf5;
    --mute: #93abc0;
    --line: #1b3850;
    --blue: #5aa9e6;
    --blue-deep: #8cc4ef;
    --ok: #4fd3a0;
    --navy: #031423;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-stretch: 100%;
  font-size: 1rem;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* --- nagłówek: logo zawsze na białym, jak w materiałach firmy --- */
.top { background: #fff; border-bottom: 3px solid var(--orange); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { display: block; height: 60px; width: auto; margin: -4px 0 -4px -18px; }
.top__nav { display: flex; align-items: center; gap: 18px; font-size: .9rem; color: #52677a; }
.top__nav a, .link-btn { color: #005b9a; }
.who__label { color: #7890a4; }
.inline { display: inline; margin: 0; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lang { text-decoration: none; font-weight: 600; }

/* --- typografia --- */
.h1, .hero__title, .meter__num, .cta__title {
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.h1 { font-size: clamp(1.75rem, 4.2vw, 2.5rem); margin: 0 0 .5em; color: var(--ink); }
.h2 { font-size: 1.3rem; font-weight: 700; font-stretch: 112%; margin: 0 0 1rem; }
.lead { font-size: 1.125rem; max-width: 60ch; color: var(--mute); margin: 0 0 1.5rem; }
.muted { color: var(--mute); max-width: 60ch; }
.fine { color: var(--mute); font-size: .85rem; margin-top: 2.5rem; margin-bottom: 2rem; }

/* --- przyciski --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-stretch: 110%; font-size: 1rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--charge { background: var(--orange); color: #241200; }
.btn--charge:hover { background: #ff9c42; color: #241200; }
.btn--blue { background: #005b9a; color: #fff; }
.btn--blue:hover { background: #004a7e; color: #fff; }
.btn--big { min-height: 58px; padding: 0 34px; font-size: 1.08rem; }

/* --- start --- */
.hero { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.hero::after {
  /* pomarańczowa „kropka” z logo, powiększona — jedyny ozdobnik strony */
  content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  right: -110px; bottom: -150px; background: var(--orange); opacity: .95;
}
.hero__in { position: relative; z-index: 1; padding-top: clamp(40px, 8vw, 88px); padding-bottom: clamp(48px, 9vw, 104px); }
.hero__kicker { margin: 0 0 14px; color: var(--sky); font-weight: 600; }
.hero__title { font-size: clamp(2.1rem, 6.4vw, 4.2rem); margin: 0 0 20px; max-width: 14ch; color: #fff; }
.hero__lead { font-size: 1.125rem; max-width: 54ch; margin: 0 0 32px; color: var(--on-navy-mute); }

.ask { max-width: 620px; }
.ask__label { display: block; font-weight: 600; margin-bottom: 8px; color: #fff; }
.ask__row { display: flex; gap: 10px; flex-wrap: wrap; }
.ask__input, .code__input {
  flex: 1 1 260px; min-height: 52px; padding: 0 18px; border-radius: 999px;
  border: 2px solid transparent; background: #fff; color: #0d2233; font: inherit; font-size: 1.05rem;
}
.ask__input:focus, .code__input:focus { outline: none; border-color: var(--orange); }
.ask__input[aria-invalid="true"], .code__input[aria-invalid="true"] { border-color: #ff6b6b; }
.cf-turnstile { margin-top: 14px; min-height: 65px; }
.ask__error { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-s); background: #fff1f0; color: #9b1c1c; font-weight: 600; max-width: 60ch; }
.ask__note { margin: 16px 0 0; font-size: .9rem; color: var(--on-navy-mute); max-width: 56ch; }

.how { padding-top: clamp(40px, 7vw, 72px); padding-bottom: clamp(40px, 7vw, 72px); }
.how__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 40px; }
.how__list li { border-top: 3px solid var(--line); padding-top: 18px; }
.how__n { display: inline-block; font-stretch: 125%; font-weight: 800; font-size: 2rem; line-height: 1; color: var(--blue); margin-bottom: 10px; }
.how__list h3 { margin: 0 0 6px; font-size: 1.1rem; }
.how__list p { margin: 0; color: var(--mute); }

/* --- strony proste (wysłano, link, błędy) --- */
.plain { padding-top: clamp(40px, 8vw, 80px); padding-bottom: clamp(40px, 8vw, 80px); max-width: 720px; margin-left: auto; margin-right: auto; }
.envelope { color: var(--blue); margin-bottom: 20px; }
.envelope .dot { fill: var(--orange); }
.code { margin: 8px 0 28px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
.code__label { display: block; font-weight: 600; margin-bottom: 10px; }
.code__row { display: flex; gap: 10px; flex-wrap: wrap; }
.code__input { border-color: var(--line); letter-spacing: .4em; font-weight: 700; font-stretch: 115%; max-width: 260px; text-align: center; }

/* --- moje punkty --- */
.board { background: var(--navy); color: var(--on-navy); padding-top: 22px; }
.board__campaign { margin: 0; font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.board__period { font-weight: 400; color: var(--on-navy-mute); font-size: .9rem; }
.board__hint { margin: 10px 0 0; color: var(--on-navy-mute); font-size: .9rem; max-width: 70ch; }
.tabs { display: flex; gap: 6px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs__tab {
  font: inherit; cursor: pointer; border: 0; border-radius: 10px 10px 0 0; padding: 10px 18px;
  background: rgba(255,255,255,.08); color: var(--on-navy); font-weight: 600; white-space: nowrap;
}
.tabs__tab[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.tabs__pts { display: block; font-weight: 400; font-size: .82rem; opacity: .8; }

.meter { background: var(--navy); color: var(--on-navy); padding-bottom: clamp(32px, 6vw, 56px); }
.board + .account .meter, .account .meter { padding-top: 22px; }
.board:has(.tabs) + .account .meter, .board:has(.tabs) ~ .account .meter { border-top: 0; }
.meter__label { margin: 0; font-size: 1rem; font-weight: 600; color: var(--on-navy-mute); }
.meter__acc { color: var(--sky); font-weight: 400; margin-left: 6px; }
.meter__num { margin: 4px 0 26px; font-size: clamp(3.4rem, 13vw, 7.5rem); color: #fff; font-variant-numeric: tabular-nums; }
.meter__unit { font-size: .32em; font-weight: 700; font-stretch: 110%; color: var(--orange); letter-spacing: 0; }

.battery-wrap { max-width: 640px; }
.battery { display: block; width: 100%; height: auto; overflow: visible; }
.battery__shell { fill: rgba(255,255,255,.06); stroke: #a9c4dc; stroke-width: 3; }
.battery__cap { fill: #a9c4dc; }
.battery__fill { fill: var(--orange); transform-box: fill-box; transform-origin: left center; animation: charge 1.4s cubic-bezier(.2,.7,.2,1) .2s both; }
.battery__cell { stroke: var(--navy); stroke-width: 2; opacity: .55; }
.battery__bolt { fill: #fff; opacity: .9; }
.battery__scale { display: flex; justify-content: space-between; margin: 8px 0 0; font-size: .85rem; color: var(--on-navy-mute); font-variant-numeric: tabular-nums; }
@keyframes charge { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.meter__missing { margin: 22px 0 0; font-size: 1.15rem; max-width: 60ch; }
.meter__missing-num { color: #fff; font-stretch: 115%; font-weight: 800; font-size: 1.35em; white-space: nowrap; }
.meter__reward { display: block; color: var(--on-navy-mute); font-size: .95rem; margin-top: 4px; }
.meter__done { margin: 0; font-size: 1.15rem; max-width: 56ch; color: var(--on-navy-mute); }
.meter__done strong { display: block; color: #fff; font-size: 1.3rem; }
.claim { margin: 20px 0 0; display: inline-block; padding: 10px 16px; border-radius: var(--radius-s); background: rgba(250,139,36,.16); color: #ffd3a8; border-left: 4px solid var(--orange); }

/* oś progów: pionowa na telefonie, pozioma od tabletu */
.path { padding-top: clamp(36px, 6vw, 60px); }
.path__list { list-style: none; margin: 0; padding: 0; position: relative; }
.step { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 26px; }
.step::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 3px; background: var(--line); }
.step:last-child::before { display: none; }
.step--granted::before, .step--reached::before { background: var(--blue); }
.step__node {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 3px solid var(--line); background: var(--surface); color: #fff; position: relative; z-index: 1;
}
.step--granted .step__node, .step--reached .step__node { background: var(--blue); border-color: var(--blue); }
.step--next .step__node { border-color: var(--orange); box-shadow: 0 0 0 5px rgba(250,139,36,.22); }
.step__pts { margin: 0; font-weight: 800; font-stretch: 118%; font-size: 1.2rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.step__state { margin: 2px 0 10px; color: var(--mute); font-size: .92rem; }
.step--reached .step__state { color: var(--ok); font-weight: 600; }
.step--next .step__state { color: var(--orange-deep); font-weight: 600; }
.step--locked .step__pts, .step--locked .step__rewards { opacity: .7; }
.step__rewards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step__rewards li { display: flex; align-items: center; gap: 10px; }
.step__img { width: 56px; height: 56px; flex: none; border-radius: 10px; background: #fff; border: 1px solid var(--line); object-fit: contain; }
.step__img--none { display: grid; place-items: center; color: var(--blue); background: var(--surface); }
.step__name { font-size: .95rem; line-height: 1.35; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .step--next .step__state { color: var(--orange); }
}

@media (min-width: 760px) {
  .path__list { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; }
  .step { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; gap: 12px; padding: 0 16px 0 0; }
  .step::before { left: 28px; right: 0; top: 13px; bottom: auto; width: auto; height: 3px; }
  .step:last-child::before { display: none; }
  .step__rewards li { flex-direction: column; align-items: flex-start; }
  .step__img { width: 72px; height: 72px; }
  .step__state { min-height: 2.9em; }
}

.glance { padding-top: clamp(28px, 5vw, 48px); }
.glance__grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line); }
.glance__grid > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.glance__grid dt { color: var(--mute); font-size: .9rem; }
.glance__grid dd { margin: 4px 0 0; font-weight: 800; font-stretch: 118%; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.glance__grid dd small { font-size: .55em; font-weight: 600; color: var(--mute); }
.glance__community { color: var(--mute); margin: 16px 0 0; max-width: 70ch; }

.cta { margin-top: clamp(36px, 6vw, 60px); background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta__in { display: flex; gap: 20px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; }
.cta__title { font-size: clamp(1.4rem, 3.4vw, 2rem); margin: 0 0 8px; }
.cta__text { margin: 0; color: var(--mute); max-width: 52ch; }

.foot { border-top: 1px solid var(--line); color: var(--mute); font-size: .88rem; }
.foot__in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 24px; }

@media (max-width: 560px) {
  .who__label { display: none; }
  .who { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand img { height: 48px; margin-left: -14px; }
  .top__nav { gap: 12px; }
  .ask__row .btn, .code__row .btn, .cta .btn { width: 100%; }
  .hero::after { width: 200px; height: 200px; right: -90px; bottom: -110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
