/* Mianino — strona www. Kolory i kroje jak w aplikacji (docs/design.md). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f5f3fa;
  --surface: #ffffff;
  --ink: #1e1b2e;
  --muted: #5b5670;
  --primary: #5b3fd9;
  --primary-dark: #4329b8;
  --primary-container: #ece7fd;
  --on-primary-container: #3f27a8;
  --outline: #d9d4ea;
  --outline-variant: #e6e2f0;
  --dashed: #c9c2e0;
  --star: #f5b83d;
  --star-edge: #b07a00;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(56px, 8vw, 112px);
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

a:hover {
  color: var(--primary-dark);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Przyciski */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--dark {
  height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
}

.btn--dark:hover {
  background: #33304a;
  color: #fff;
}

/* Duże przyciski mogą zawinąć tekst na bardzo wąskim ekranie. */
.btn--primary,
.btn--light {
  min-height: 56px;
  padding: 12px 26px;
  white-space: normal;
  line-height: 1.25;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 10px 24px rgba(91, 63, 217, 0.28);
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--primary-dark);
  font-size: 17px;
}

.btn--light:hover {
  background: var(--primary-container);
  color: var(--primary-dark);
}

/* Nagłówek */

.site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  color: var(--ink);
}

.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--primary);
}

.logo__name {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-header .btn {
  margin-left: auto;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 6vw, 80px);
  padding-top: clamp(16px, 4vw, 56px);
  padding-bottom: var(--section);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(44px, 6.2vw, 80px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.lead {
  max-width: 520px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted);
}

.hero__actions {
  margin-top: 4px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px 0 14px;
  border: 1.5px dashed var(--dashed);
  border-radius: 14px;
  color: var(--muted);
}

.store__label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store__label small {
  font-size: 11px;
}

.store__label strong {
  font-size: 17px;
}

.note {
  font-size: 14px;
  color: var(--muted);
}

/* Telefon z kartą imienia (ilustracja) */

.hero__art {
  display: flex;
  justify-content: center;
  /* Ilustracja sięga do krawędzi ekranu, a poświata i dymki są przycinane na niej,
     nie na marginesie — żeby strona nie przewijała się w bok. */
  margin-inline: calc(-1 * var(--gutter));
  overflow-x: clip;
}

.phone-wrap {
  position: relative;
  flex: none;
  width: 300px;
  height: 610px;
}

.phone-wrap::before {
  content: "";
  position: absolute;
  inset: 40px -60px;
  background: radial-gradient(closest-side, rgba(91, 63, 217, 0.2), rgba(91, 63, 217, 0));
}

.phone {
  position: absolute;
  inset: 0;
  padding: 10px;
  border-radius: 44px;
  background: var(--ink);
  box-shadow: 0 30px 60px rgba(30, 27, 46, 0.25);
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 40px 16px 18px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--bg);
}

.phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 88px;
  height: 22px;
  border-radius: 11px;
  background: var(--ink);
  transform: translateX(-50%);
}

.phone__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone__title {
  flex: 1;
  min-width: 0;
}

.phone__title strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.phone__title span {
  font-size: 11px;
  color: var(--muted);
}

.avatars {
  display: flex;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--bg);
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
}

.avatar--me {
  background: var(--primary);
  color: #fff;
}

.avatar--partner {
  margin-left: -8px;
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.deck {
  position: relative;
  flex: 1;
}

.deck__back,
.deck__card {
  position: absolute;
  border-radius: 24px;
  background: var(--surface);
}

.deck__back {
  inset: 6px 4px 0;
  opacity: 0.7;
  transform: rotate(4deg);
  box-shadow: 0 8px 20px rgba(30, 27, 46, 0.06);
}

.deck__card {
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  box-shadow: 0 12px 28px rgba(30, 27, 46, 0.12);
}

.deck__gender {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 11px;
}

.deck__name {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.deck__name strong {
  font-family: var(--display);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.deck__name span {
  font-size: 13px;
  color: var(--muted);
}

.deck__pop {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--outline-variant);
  font-size: 12px;
}

.deck__pop small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.bars {
  display: flex;
  gap: 3px;
}

.bars i {
  width: 7px;
  height: 16px;
  border-radius: 4px;
  background: var(--primary);
}

.phone__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.round {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.round--undo {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--outline-variant);
  background: #fff;
  color: var(--muted);
}

.round--nope {
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--outline);
  background: #fff;
  color: var(--ink);
}

.round--like {
  width: 56px;
  height: 56px;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(91, 63, 217, 0.35);
}

.bubble {
  position: absolute;
  display: flex;
  padding: 10px 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(30, 27, 46, 0.16);
}

.bubble--match {
  left: -40px;
  top: 372px;
  align-items: center;
  gap: 8px;
  transform: rotate(-6deg);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
}

.bubble--match .round {
  width: 28px;
  height: 28px;
  background: var(--primary);
}

.bubble--stars {
  right: -34px;
  top: 128px;
  flex-direction: column;
  gap: 4px;
  transform: rotate(5deg);
  font-size: 12px;
  font-weight: 700;
}

.bubble--stars span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bubble--stars b {
  width: 36px;
}

.bubble--stars .partner {
  color: var(--muted);
}

/* Gwiazdki ocen (symbol #i-star) */

.star {
  fill: var(--star);
  stroke: var(--star-edge);
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.star--off {
  fill: none;
  stroke: var(--dashed);
}

/* Sekcje */

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.how {
  background: var(--surface);
}

.how .wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: var(--section);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 28px;
  background: var(--bg);
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--primary);
  color: #fff;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
}

.step h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step p {
  color: var(--muted);
}

.step__extra {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.code {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border: 1.5px dashed var(--dashed);
  border-radius: 14px;
  background: #fff;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.step .round {
  width: 44px;
  height: 44px;
}

.step .round--nope {
  width: 44px;
  height: 44px;
}

.stars {
  display: flex;
  gap: 4px;
}

.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: 40px 56px;
  padding-block: var(--section);
}

.why__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why__intro p {
  font-size: 17px;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
}

.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.feature h3 {
  font-size: 18px;
  font-weight: 700;
}

.feature p {
  font-size: 15px;
  color: var(--muted);
}

.cta {
  padding-bottom: var(--section);
}

.cta__box {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 40px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  border-radius: clamp(28px, 3vw, 40px);
  background: var(--primary-dark);
  color: #fff;
}

.cta__heart {
  position: absolute;
  right: -60px;
  bottom: -90px;
  opacity: 0.08;
  transform: rotate(-12deg);
}

.cta__text {
  position: relative;
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta__text h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.cta__text p,
.cta__soon {
  color: rgba(255, 255, 255, 0.82);
}

.cta__text p {
  font-size: 17px;
}

.cta__actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cta__soon {
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--outline-variant);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-block: 28px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.lang [aria-current] {
  font-weight: 700;
  color: var(--ink);
}

/* Strona 404 */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-block: var(--section);
}

/* Układ na węższych ekranach */

@media (max-width: 960px) {
  .hero,
  .why {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 359px) {
  /* Bardzo wąskie telefony (np. 320 px): mniejszy nagłówek i ilustracja. */
  .site-header {
    gap: 12px;
  }

  .logo__name {
    font-size: 20px;
  }

  .btn--dark {
    padding: 0 12px;
    font-size: 14px;
  }

  .cta__box {
    padding: 28px 20px;
  }

  .phone-wrap {
    transform: scale(0.86);
    transform-origin: top center;
    margin-bottom: -85px;
  }
}
