/* ===================================================================
   TAXI 519 Poznań — design tokens
   =================================================================== */
:root {
  --ink:        #15171c;   /* near-black text          */
  --ink-soft:   #4a4f5a;   /* secondary text           */
  --ink-faint:  #878d99;   /* captions / fine print    */
  --paper:      #ffffff;
  --paper-alt:  #f6f7f9;   /* alternating section bg   */
  --line:       #e7e9ee;   /* hairlines / borders      */
  --yellow:     #ffd21f;   /* taxi accent              */
  --yellow-deep:#f5b800;
  --dark:       #15171c;
  --radius:     16px;
  --radius-sm:  11px;
  --shadow:     0 1px 2px rgba(20,23,28,.04), 0 12px 32px -12px rgba(20,23,28,.16);
  --shadow-sm:  0 1px 2px rgba(20,23,28,.05), 0 6px 18px -10px rgba(20,23,28,.14);
  --wrap:       1120px;
  --pad:        clamp(20px, 5vw, 40px);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display:    'Sora', var(--font);
}

/* ===================================================================
   Reset / base
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.01em; }
p  { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* ===================================================================
   Buttons
   =================================================================== */
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-call { background: var(--yellow); color: var(--ink); box-shadow: 0 8px 22px -8px rgba(245,184,0,.7); }
.btn-call:hover { background: var(--yellow-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { box-shadow: 0 12px 28px -10px rgba(20,23,28,.6); }
.btn-chat { background: #5cc97a; color: var(--ink); box-shadow: 0 8px 22px -8px rgba(92,201,122,.7); }
.btn-chat:hover { background: #4cb869; }
.btn-disabled { background: #e6e6e6; color: #8a8f98; box-shadow: none; cursor: not-allowed; pointer-events: none; }
.btn-disabled:hover, .btn-disabled:active { transform: none; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: #1a8f3c; box-shadow: 0 0 0 3px rgba(26,143,60,.18); }

/* ===================================================================
   Hero gift promo — sits between the lead text and the CTA buttons
   =================================================================== */
.hero-gift {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .3rem .5rem;
  margin: 0 0 1.2rem;
  padding: .7rem 1.1rem;
  background: linear-gradient(180deg, #fff6d1, #ffe999);
  border: 1.5px solid var(--yellow-deep);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 6px 18px -10px rgba(245,184,0,.8);
  transition: transform .15s ease, box-shadow .2s ease;
  max-width: 100%;
}
.hero-gift strong { font-weight: 700; }
.hero-gift:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(245,184,0,.9); }

/* ===================================================================
   Gift cards
   =================================================================== */
.gift-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.gift-copy .section-head { max-width: none; }   /* let the intro run a longer line, not the 56ch cap */
.gift-steps { list-style: none; counter-reset: g; margin: 1.4rem 0 1.9rem; padding: 0; display: grid; gap: .9rem; }
.gift-steps li { position: relative; padding-left: 2.7rem; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.5; }
.gift-steps li::before {
  counter-increment: g; content: counter(g);
  position: absolute; left: 0; top: -.15rem;
  width: 1.85rem; height: 1.85rem; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-weight: 700;
  display: grid; place-items: center; font-size: .95rem;
}
.gift-steps strong { color: var(--ink); }
.gift-visual { display: grid; place-items: center; }
.gift-img { width: min(100%, 340px); height: auto; border-radius: 16px; box-shadow: 0 26px 50px -18px rgba(20,23,28,.4); }
@media (max-width: 860px) { .gift-inner { grid-template-columns: 1fr; } }

/* ===================================================================
   Header
   =================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 50px; width: auto; }
.nav { display: flex; gap: 1.7rem; margin-left: auto; }
.nav a { font-weight: 500; font-size: .98rem; color: var(--ink-soft); position: relative; padding: .2rem 0; }
.nav a:hover { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--yellow-deep); transition: width .2s ease; }
.nav a:hover::after { width: 100%; }
.header-call { padding: .55rem 1.1rem; font-size: .95rem; }

/* ===================================================================
   Hero
   =================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(32px, 5.5vw, 60px) 0 clamp(56px, 9vw, 96px);
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(255,210,31,.20), transparent 55%),
    radial-gradient(80% 60% at 0% 110%, rgba(255,210,31,.10), transparent 60%),
    var(--paper);
}
.hero-grid {
  display: grid; grid-template-columns: clamp(220px, 26vw, 320px) 1fr;
  gap: clamp(28px, 4vw, 52px); align-items: stretch;
}
.hero-photo {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.hero-photo { min-height: clamp(380px, 36vw, 480px); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-inner {
  max-width: 760px;
  min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1.5rem;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 600;
  color: var(--ink-faint); margin-bottom: 1.1rem;
}
.hero .eyebrow {
  font-size: clamp(.86rem, 1.4vw, 1rem); letter-spacing: .1em;
  color: var(--ink); font-weight: 700; margin-bottom: .9rem;
}
.hero h1 { margin-bottom: 0; }
.hl { position: relative; }
.hl::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: .08em; height: .34em; background: var(--yellow); z-index: -1; border-radius: 3px; }
.lead { font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--ink-soft); max-width: 60ch; }
.hero .lead { margin-bottom: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; list-style: none; margin: 0; padding: 0; }
.hero-points li { font-size: .98rem; color: var(--ink-soft); position: relative; padding-left: 1.4rem; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--yellow-deep); font-weight: 700; }
.hero-points strong { color: var(--ink); font-weight: 600; }

/* ===================================================================
   Sections
   =================================================================== */
.section { padding: clamp(60px, 9vw, 104px) 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 56ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: .7rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
/* Grid/flex children default to min-width:auto and refuse to shrink below their
   content — long words then force the whole page wider than the viewport. Let
   text-bearing children shrink so content wraps instead of overflowing. */
.hero-grid > *, .grid > *, .gift-inner > *, .app-inner > *, .footer-inner > *,
.b2b-banner-text, .b2b-banner, .header-inner { min-width: 0; }

/* ===================================================================
   Oferta cards
   =================================================================== */
.cards { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dcdfe6; }
.card .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; font-size: 1.5rem;
  background: linear-gradient(160deg, #fff6cf, #ffe888); margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ===================================================================
   Cennik
   =================================================================== */
.pricing { max-width: 760px; }
.cur { font-size: .82em; font-weight: 600; color: var(--ink-faint); letter-spacing: 0; }

.price-hero {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  background: linear-gradient(120deg, var(--ink), #23262e); color: #fff;
  border-radius: var(--radius); padding: 1.5rem 1.8rem; margin-bottom: 1rem;
}
.price-hero-label { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.price-hero-value { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.02em; }
.price-hero-value .cur { color: var(--yellow); }

.rate-list {
  list-style: none; margin: 0; padding: 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.rate {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 1.2rem;
  padding: 1.1rem 1.7rem; border-bottom: 1px solid var(--line);
}
.rate:last-child { border-bottom: 0; }
.rate-tag {
  font-family: var(--display); font-weight: 700; font-size: .82rem;
  background: var(--yellow); color: var(--ink);
  padding: .3rem .7rem; border-radius: 7px; white-space: nowrap;
}
.rate-desc { color: var(--ink-soft); font-size: 1rem; }
.rate-price { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; white-space: nowrap; }
.fineprint { margin-top: 1.5rem; color: var(--ink-faint); font-size: .92rem; max-width: 760px; }

/* ===================================================================
   B2B
   =================================================================== */
.b2b-grid { grid-template-columns: repeat(3, 1fr); }
.b2b-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.b2b-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dcdfe6; }
.b2b-card .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 13px; font-size: 1.35rem;
  background: linear-gradient(160deg, #fff6cf, #ffe888); margin-bottom: 1rem;
}
.b2b-card h3 { margin-bottom: .45rem; }
.b2b-card p { color: var(--ink-soft); font-size: .97rem; }

.b2b-banner {
  margin-top: clamp(20px, 3vw, 32px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
  background: linear-gradient(135deg, var(--ink), #23262e); color: #fff;
  border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow);
}
.b2b-banner-text { max-width: 56ch; }
.badge {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .1em;
  background: var(--yellow); color: var(--ink);
  padding: .25rem .7rem; border-radius: 999px; margin-bottom: .8rem;
}
.b2b-banner-text h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.b2b-banner-text p { color: rgba(255,255,255,.74); font-size: 1.02rem; }
.b2b-banner-cta { flex-shrink: 0; }

/* ===================================================================
   Dla firm
   =================================================================== */
.biznes-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.checklist { list-style: none; margin: 1.6rem 0 2rem; padding: 0; display: grid; gap: .85rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--ink-soft); font-size: 1.04rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  font-size: .8rem; font-weight: 700; display: grid; place-items: center;
}
.quote-card {
  background: linear-gradient(150deg, var(--ink), #23262e); color: #fff;
  border-radius: var(--radius); padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}
.quote { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 600; line-height: 1.3; }
.quote-sub { margin-top: 1rem; color: rgba(255,255,255,.7); font-size: 1rem; }

/* ===================================================================
   Kanały zamawiania
   =================================================================== */
.channels { grid-template-columns: repeat(3, 1fr); }
.channel {
  display: block; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.9rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.channel:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--yellow-deep); }
.ch-num { font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--yellow-deep); }
.channel h3 { margin: .6rem 0 .3rem; }
.ch-big { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: .6rem; }
.channel p:last-child { color: var(--ink-soft); font-size: .97rem; }

/* ===================================================================
   Aplikacja
   =================================================================== */
.app-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.store-badges { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.store {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: 12px;
  background: var(--ink); color: #fff;
  transition: transform .15s ease, box-shadow .2s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store svg { width: 20px; height: 20px; flex: none; }

/* phone — real app screenshot in a device frame */
.app-visual { display: grid; place-items: center; }
.phone {
  position: relative;
  width: 270px; padding: 11px; border-radius: 42px;
  background: linear-gradient(160deg, #2a2d36, #15171c);
  box-shadow: 0 50px 90px -34px rgba(20,23,28,.55), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone-island {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; border-radius: 999px; background: #0a0b0d; z-index: 2;
}
.phone-screen {
  display: block; width: 100%; height: auto;
  border-radius: 32px; background: #15171c;
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: clamp(48px, 7vw, 72px) 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { height: 70px; width: auto; }
.footer-brand p { margin-top: 1.1rem; font-size: .97rem; color: rgba(255,255,255,.6); }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--yellow); margin-bottom: 1rem; }
.footer-col p { font-size: .98rem; margin-bottom: .45rem; color: rgba(255,255,255,.72); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem;
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .88rem; color: rgba(255,255,255,.5);
}
.footer-bottom a:hover { color: var(--yellow); }

/* ===================================================================
   Floating call (mobile)
   =================================================================== */
.floating-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: none;
  align-items: center; justify-content: center; font-size: 1.5rem;
  background: var(--yellow); box-shadow: 0 12px 28px -8px rgba(245,184,0,.8);
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 900px) {
  .cards, .channels, .b2b-grid { grid-template-columns: repeat(2, 1fr); }
  .app-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-height: 260px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .header-call { margin-left: auto; }
  .cards, .channels, .b2b-grid { grid-template-columns: 1fr; }
  .rate { grid-template-columns: auto 1fr; }
  .rate-price { grid-column: 1 / -1; }
  .price-hero { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .floating-call { display: flex; }

  /* Buttons: allow wrapping text on very narrow screens */
  .btn { white-space: normal; text-align: center; justify-content: center; }

  /* Hero CTA: each button full width on mobile */
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  /* B2B banner: stack vertically, button full width */
  .b2b-banner { flex-direction: column; align-items: flex-start; }
  .b2b-banner-cta { width: 100%; text-align: center; justify-content: center; }

  /* Gift section: single column already from 860px breakpoint, just ensure CTA stacks */
  .gift-copy .hero-cta { flex-direction: column; }
  .gift-copy .hero-cta .btn { width: 100%; }

  /* App section: store badges stack */
  .store-badges { flex-direction: column; }
  .store { justify-content: center; }

  /* Pricing table: tighten padding */
  .rate { padding: .9rem 1.1rem; gap: .6rem .8rem; }
  .price-hero { padding: 1.2rem 1.1rem; }
}

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