/* SWEETBED — soft magazine LP, relacje 40+ · optimized static */
:root {
  --bg: #fff9f6;
  --bg-soft: #f3e8e2;
  --ink: #2a2320;
  --mute: #6d625c;
  --line: rgba(42, 35, 32, 0.1);
  --rose: #c4787a;
  --rose-deep: #a85d60;
  --sand: #e8d5c8;
  --white: #ffffff;
  --max: 1040px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
}

.skip:focus {
  top: 0.75rem;
}

.w {
  width: min(100% - 1.75rem, var(--max));
  margin-inline: auto;
}

/* Header */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 249, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.bar-inner {
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.logo b {
  color: var(--rose);
  font-weight: 800;
}

.nav {
  display: none;
  gap: 1.1rem;
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--mute);
}

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

.bar .cta {
  margin-left: auto;
}

@media (min-width: 780px) {
  .nav {
    display: flex;
  }

  .bar .cta {
    margin-left: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-main {
  background: var(--rose);
  color: #fff;
}

.btn-main:hover {
  background: var(--rose-deep);
}

.btn-line {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-line:hover {
  border-color: var(--rose);
  color: var(--rose-deep);
}

.btn-full {
  width: 100%;
}

/* Hero — stacked magazine, not full-bleed dark */
.hero {
  padding: 2rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2.5rem;
    min-height: calc(88vh - 4rem);
  }
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.85rem;
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.lead {
  margin: 0 0 1.25rem;
  color: var(--mute);
  font-size: 1.05rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--mute);
}

.meta-row strong {
  color: var(--ink);
}

.hero-pic {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(42, 35, 32, 0.08);
  aspect-ratio: 16 / 10;
}

.hero-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pill strip */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0 2rem;
}

.pill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  color: var(--mute);
  font-weight: 600;
}

/* Sections */
.sec {
  padding: 3rem 0;
}

.sec-soft {
  background: var(--bg-soft);
}

.sec h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.sub {
  margin: 0 0 1.75rem;
  color: var(--mute);
  max-width: 36rem;
}

/* Pain list — horizontal scroll cards on mobile */
.row-cards {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .row-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem 1.2rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--mute);
  font-size: 0.95rem;
}

/* Steps ribbon */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: st;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--white);
  border-radius: 1rem;
  border: 1px solid var(--line);
  padding: 1.25rem;
  counter-increment: st;
}

.step::before {
  content: counter(st, decimal-leading-zero);
  display: block;
  font-weight: 800;
  color: var(--rose);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--mute);
  font-size: 0.94rem;
}

/* Media + text */
.media-row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .media-row {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.media-row img {
  width: 100%;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  object-fit: cover;
  max-height: 340px;
}

.quote {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.quote footer {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--rose);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Chapters compact */
.chapters {
  display: grid;
  gap: 0.55rem;
}

.ch {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.ch span {
  font-weight: 800;
  color: var(--rose);
  font-size: 0.85rem;
}

.ch strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}

.ch em {
  font-style: normal;
  color: var(--mute);
  font-size: 0.9rem;
}

/* Prices */
.prices {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 760px) {
  .prices {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.price.best {
  border-color: var(--rose);
  box-shadow: 0 10px 28px rgba(196, 120, 122, 0.15);
}

.price h3 {
  margin: 0;
  font-size: 1.1rem;
}

.price .amt {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--mute);
  font-size: 0.9rem;
  flex: 1;
}

/* Order */
.order-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.35rem;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 14px 36px rgba(42, 35, 32, 0.06);
}

.order-box h2 {
  text-align: center;
}

.order-box .sub {
  text-align: center;
  margin-inline: auto;
}

.fields {
  display: grid;
  gap: 0.8rem;
}

label.f {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.f input,
.f select {
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--bg);
}

.checks {
  display: grid;
  gap: 0.65rem;
  margin: 0.9rem 0;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--mute);
}

.check input {
  margin-top: 0.2rem;
  accent-color: var(--rose);
}

.check a {
  color: var(--rose-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.err {
  display: none;
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: #fdecea;
  color: #8a2b1c;
  border-radius: 0.65rem;
  font-size: 0.88rem;
}

.err.show {
  display: block;
}

.ok {
  display: none;
  text-align: center;
  padding: 0.5rem 0;
}

.ok.show {
  display: block;
}

.ok h3 {
  margin: 0 0 0.5rem;
  color: var(--rose-deep);
}

.ok p {
  margin: 0 0 0.65rem;
  color: var(--mute);
}

.note {
  font-size: 0.85rem;
  color: var(--mute);
  margin: 1rem 0 0;
  max-width: 40rem;
}

.pay-n {
  text-align: center;
  font-size: 0.82rem;
  color: var(--mute);
  margin: 0.75rem 0 0;
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0 1.75rem;
  font-size: 0.9rem;
  color: var(--mute);
  background: var(--white);
}

.foot strong {
  color: var(--ink);
  display: block;
  margin-bottom: 0.35rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin: 0.85rem 0;
}

.foot-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.foot-copy {
  font-size: 0.8rem;
  opacity: 0.75;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
}

/* Legal */
.legal-bar {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 0.9rem 0;
}

.legal-bar .w {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.legal-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--mute);
}

.legal-bar a[aria-current="page"] {
  color: var(--rose);
  font-weight: 700;
}

.legal {
  width: min(100% - 1.75rem, 720px);
  margin: 1.75rem auto 3rem;
}

.legal h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.legal .meta {
  color: var(--mute);
  margin: 0 0 1.5rem;
}

.legal h2 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--mute);
}

.legal a {
  color: var(--rose-deep);
  text-decoration: underline;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 60;
  opacity: 0;
  transition: 0.25s transform, 0.25s opacity;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

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

  .toast {
    transition: none;
  }
}
