/* calapp – wersja „Editorial”: papier #f6f3ed, atrament #242421, akcent #cc5948; Instrument Sans + Newsreader.
   Przeniesione z makiety Figma (Make: React + Tailwind) na statyczny HTML/CSS. Progi: sm 640, md 768, lg 1024. */
:root {
  --paper: #f6f3ed;
  --ink: #242421;
  --accent: #cc5948;
  --ink-20: rgba(36, 36, 33, .2);
  --ink-60: rgba(36, 36, 33, .6);
  --ink-75: rgba(36, 36, 33, .75);
  --paper-25: rgba(246, 243, 237, .25);
  --paper-60: rgba(246, 243, 237, .6);
  --sans: "Instrument Sans", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --gutter: 20px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1024px) { :root { --gutter: 56px; } }

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: var(--accent); color: var(--paper); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.page { position: relative; overflow: hidden; }
/* ziarno papieru nad całą stroną */
.page::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}

.upper { text-transform: uppercase; }
.arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }

/* nagłówek */
.top { position: relative; z-index: 50; display: flex; height: 80px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink-20); padding: 0 var(--gutter); }
.wordmark { font-size: 20px; font-weight: 700; letter-spacing: -.06em; }
.wordmark span { color: var(--accent); }
.topnav { display: none; align-items: center; gap: 36px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; }
.top-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; }
.nav-link { position: relative; }
.nav-link::after { content: ""; position: absolute; right: 0; bottom: -5px; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* oficjalna odznaka App Store (SVG Apple) */
.badge { display: inline-block; transition: opacity .2s; }
.badge:hover { opacity: .8; }
.badge img { height: 48px; width: auto; }

/* ramka telefonu */
.phone-shell { position: relative; overflow: hidden; padding: 7px; border: 1px solid var(--ink); border-radius: 39px; background: #111; box-shadow: 6px 8px 0 var(--accent); }
.phone-shell img { width: 100%; height: auto; border-radius: 32px; }
.phone-speaker { position: absolute; z-index: 2; top: 13px; left: 50%; width: 35%; height: 20px; border-radius: 0 0 14px 14px; background: #111; transform: translateX(-50%); }

/* siatka 12 kolumn */
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid12 > * { grid-column: span 12; }
.section { max-width: 1600px; margin: 0 auto; padding: 96px var(--gutter); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display { margin: 0; font-weight: 500; }
.display i { font-family: var(--serif); font-weight: 400; font-style: italic; }

/* hero */
.hero { position: relative; min-height: 1120px; border-bottom: 1px solid var(--ink); }
.hero-figure { position: absolute; z-index: 0; pointer-events: none; right: -18%; top: 48px; width: 58%; height: 760px; }
.hero-figure img, .privacy-figure img { width: 100%; height: 100%; object-fit: contain; }
.hero-grid { position: relative; z-index: 10; max-width: 1600px; margin: 0 auto; padding: 48px var(--gutter) 0; }
.hero-eyebrow { margin: 0 0 28px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .24em; }
.hero-title { position: relative; z-index: 2; max-width: 920px; font-size: 18vw; line-height: .75; letter-spacing: -.085em; }
.hero-title em { font-family: var(--serif); font-style: normal; font-weight: 400; color: var(--accent); }
.hero-lead { margin: 36px 0 0; max-width: 450px; font-size: 17px; line-height: 1.55; }
.hero-lead i { font-family: var(--serif); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.hero-fine { margin: 0; font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-60); }
.hero-phone { grid-column: 3 / span 8; margin-top: 64px; }
.hero-phone-inner { position: relative; }
.hero-phone .phone-shell { width: 245px; max-width: 100%; }
.hero-phone-label { display: none; position: absolute; left: -28px; top: 40px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; text-transform: uppercase; letter-spacing: .25em; white-space: nowrap; }
.hero-bar { position: absolute; bottom: 0; left: 0; z-index: 20; display: flex; width: 100%; align-items: center; justify-content: space-between; border-top: 1px solid var(--ink-20); padding: 16px var(--gutter); font-size: 9px; text-transform: uppercase; letter-spacing: .18em; }
.hero-bar .mid { display: none; }
.hero-bar a { display: flex; align-items: center; gap: 8px; }
.hero-bar a span { font-size: 16px; }

/* pasek przewijany */
.marquee { overflow: hidden; border-bottom: 1px solid var(--ink); padding: 16px 0; }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 2rem; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .24em; animation: marquee 26s linear infinite; }
.marquee-track b { color: var(--accent); font-size: 7px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* jak to działa */
.how-title { max-width: 950px; font-size: 13vw; line-height: .88; letter-spacing: -.07em; }
.feature { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 96px; border-top: 1px solid var(--ink); padding-top: 24px; }
.feature + .feature { margin-top: 112px; }
.feature-number { display: block; font-family: var(--serif); font-size: clamp(5rem, 10vw, 9rem); font-weight: 300; line-height: .75; color: var(--accent); }
.feature-label { margin: 8px 0 0; font-size: 10px; text-transform: uppercase; letter-spacing: .2em; }
.feature-text { max-width: 448px; }
.feature-text h3 { margin: 0; font-size: 36px; font-weight: 500; line-height: 1.1; letter-spacing: -.045em; }
.feature-text p { margin: 24px 0 0; font-size: 16px; line-height: 28px; color: var(--ink-75); }
.feature-media { position: relative; display: flex; justify-content: center; padding-top: 48px; }
.feature-media .phone-shell { width: 220px; }
.barcode { display: none; position: absolute; left: 16px; top: 48px; width: 96px; height: 128px; opacity: .75; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px); }
.feature-scale { position: relative; order: 99; display: flex; min-height: 320px; align-items: center; justify-content: center; margin-top: 64px; }
.scale-caption { position: absolute; bottom: 0; left: 0; margin: 0; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--accent); }
.scale-illustration { position: relative; width: 280px; height: 235px; }
.scale-bowl { position: absolute; top: 8px; left: 25px; width: 230px; height: 85px; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 50% 50%; transform: perspective(120px) rotateX(-5deg); }
.scale-bowl::before { content: ""; position: absolute; top: -7px; left: -1px; width: 230px; height: 17px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); }
.scale-body { position: absolute; top: 86px; left: 42px; display: flex; width: 196px; height: 116px; flex-direction: column; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 50% 50% 13px 13px; }
.scale-body span { min-width: 105px; padding: 7px 11px 4px; border: 1px solid var(--ink); font-family: var(--serif); font-size: 25px; letter-spacing: .08em; text-align: center; }
.scale-body small { margin-top: 8px; font-size: 7px; letter-spacing: .28em; }
.scale-line { position: absolute; bottom: 20px; left: 0; width: 100%; border-top: 1px solid var(--ink); }
.macro-note { display: none; position: absolute; left: -12px; top: 128px; grid-template-columns: auto auto; gap: 7px 24px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 14px 0; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.macro-note strong { text-align: right; color: var(--accent); }

/* prywatność */
.privacy { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.privacy-figure { position: absolute; right: -64px; bottom: -224px; width: 470px; height: 700px; opacity: .2; filter: invert(1); }
.privacy .section { position: relative; z-index: 10; }
.privacy-title { max-width: 896px; font-size: 16vw; line-height: .78; letter-spacing: -.08em; }
.privacy-title i { color: var(--accent); }
.privacy-grid { display: grid; grid-template-columns: 1fr; gap: 1px; max-width: 768px; margin-top: 64px; border-top: 1px solid var(--paper-25); border-bottom: 1px solid var(--paper-25); background: var(--paper-25); }
.privacy-grid > div { background: var(--ink); padding: 24px 0; }
.privacy-grid h3 { margin: 0; font-size: 18px; font-weight: 600; }
.privacy-grid p { margin: 12px 0 0; font-size: 14px; line-height: 24px; color: var(--paper-60); }
.privacy-note { margin: 36px 0 0; max-width: 672px; font-size: 14px; line-height: 24px; color: var(--paper-60); }
.privacy-note a { text-decoration: underline; text-underline-offset: 3px; }

/* szczegóły */
.details { row-gap: 64px; }
.details-kicker { margin: 0; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.2; color: var(--accent); }
.details-title { font-size: 14vw; line-height: .83; letter-spacing: -.08em; }
.outline-word { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.details-row { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 32px; margin-top: 64px; border-top: 1px solid var(--ink); padding-top: 28px; }
.details-row p { margin: 0; max-width: 448px; font-size: 16px; line-height: 28px; }

/* stopka */
.foot { border-top: 1px solid var(--ink); padding: 32px var(--gutter); }
.foot-row { display: flex; flex-direction: column; gap: 24px; max-width: 1600px; margin: 0 auto; font-size: 9px; text-transform: uppercase; letter-spacing: .18em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-credit { max-width: 1600px; margin: 24px auto 0; font-size: 11px; color: var(--ink-60); }
.foot-credit a { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 640px) {
  .hero-title { font-size: 14vw; }
  .hero-phone { grid-column: 4 / span 5; }
  .hero-bar .mid { display: block; }
  .privacy-grid { grid-template-columns: repeat(3, 1fr); }
  .privacy-grid > div { padding: 24px; }
  .privacy-grid > div:first-child { padding-left: 0; }
  .details-row { flex-direction: row; align-items: flex-end; }
  .foot-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 768px) {
  .top { height: 96px; }
  .topnav { display: flex; }
  .phone-shell { box-shadow: 8px 10px 0 var(--accent); }
  .section { padding: 144px var(--gutter); }
  .grid12 > .col-4 { grid-column: span 4; }
  .grid12 > .col-5 { grid-column: span 5; }
  .grid12 > .col-7 { grid-column: span 7; }
  .grid12 > .col-8 { grid-column: span 8; }
  .hero { min-height: 880px; }
  .hero-figure { right: -7%; top: -48px; width: 48%; height: 1020px; }
  .hero-grid { padding-top: 80px; }
  .hero-copy { grid-column: span 8; }
  .hero-lead { margin-top: 48px; margin-left: 14%; max-width: 42vw; font-size: 20px; } /* do 1023 px telefon zaczyna się na 61 % szerokości */
  .hero-cta { margin-left: 14%; max-width: 42vw; }
  .hero-phone { position: absolute; grid-column: 1 / -1; left: 61%; top: 38%; margin-top: 0; }
  .hero-phone .phone-shell { width: 270px; }
  .hero-phone-label { display: block; }
  .how-title { font-size: 7.5vw; }
  .feature { grid-template-columns: 1fr 1.35fr 1.2fr; align-items: start; gap: 48px; margin-top: 144px; padding-top: 32px; }
  .feature + .feature { margin-top: 176px; }
  .feature-text h3 { font-size: 48px; line-height: 1; }
  .feature-text.end { justify-self: end; }
  .feature-media { justify-content: flex-end; padding-top: 0; }
  .feature-scale { order: 0; margin-top: 0; }
  .scale-caption { left: -32px; }
  .barcode, .macro-note { display: block; }
  .macro-note { display: grid; }
  .privacy-title { font-size: 9vw; }
  .details-kicker { font-size: 36px; }
  .details-title { font-size: 7vw; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 11.2rem; }
  .hero-copy { grid-column: span 7; }
  .hero-phone { left: 60%; }
  .hero-lead { max-width: 450px; }
  .hero-cta { max-width: none; }
  .how-title { font-size: 7rem; }
  .privacy-title { font-size: 8rem; }
  .details-title { font-size: 6.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .badge, .nav-link::after { transition: none; }
}
