/* PolishBook design system. Light only. Glossy lilac and coral, droplet motifs. */

:root {
  --bg: #FBF8FC;
  --surface: #FFFFFF;
  --ink: #211C29;
  --primary: #8A4FA8;
  --accent: #FF8E72;
  --muted: #655B70;

  --lilac-050: #FAF5FD;
  --lilac-100: #F3E9FA;
  --lilac-200: #E7D6F3;
  --lilac-300: #D4B9E8;
  --lilac-400: #B98FD6;
  --coral-050: #FFF4F0;
  --coral-100: #FFE5DC;
  --coral-200: #FFCDBC;
  --line: #E7D6F3;
  --line-soft: #F0E8F5;

  --sp-1: 0.35rem;
  --sp-2: 0.7rem;
  --sp-3: 1.05rem;
  --sp-4: 1.6rem;
  --sp-5: 2.4rem;
  --sp-6: 3.6rem;
  --sp-7: 5.2rem;
  --sp-8: 7rem;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 42px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(33, 28, 41, 0.06);
  --shadow-md: 0 14px 34px rgba(138, 79, 168, 0.12);
  --shadow-lg: 0 26px 60px rgba(138, 79, 168, 0.16);

  --display: "Yeseva One", "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Catamaran", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.8rem;
  --fs-sm: 0.92rem;
  --fs-base: 1.03rem;
  --fs-md: 1.16rem;
  --fs-lg: 1.4rem;
  --fs-xl: 1.9rem;
  --fs-2xl: 2.4rem;
  --fs-3xl: clamp(2.1rem, 5.2vw, 3.5rem);
  --fs-hero: clamp(2.4rem, 6.2vw, 4.15rem);

  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 6%, rgba(212, 185, 232, 0.42) 0, rgba(212, 185, 232, 0) 34%),
    radial-gradient(circle at 92% 2%, rgba(255, 205, 188, 0.4) 0, rgba(255, 205, 188, 0) 30%),
    radial-gradient(circle at 78% 88%, rgba(212, 185, 232, 0.3) 0, rgba(212, 185, 232, 0) 32%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-base);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 var(--sp-3);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--sp-3); }

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.wrap { width: min(100% - 2.2rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.2rem, 780px); margin-inline: auto; }

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

.skip-link {
  position: absolute;
  left: var(--sp-3);
  top: -60px;
  z-index: 200;
  padding: 0.6rem 1.1rem;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--primary) 100%, white 0%);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus { top: var(--sp-3); color: #FFFFFF; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 100%, white 0%);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- glossy shared pieces ---------- */

.gloss {
  position: relative;
  overflow: hidden;
}
.gloss::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -60%;
  width: 42%;
  height: 340%;
  background-image: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 48%, rgba(255,255,255,0) 100%);
  transform: rotate(12deg);
  transition: left 0.75s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}
.gloss:hover::after, .gloss:focus-visible::after { left: 130%; }

.droplet {
  width: 44px; height: 44px;
  border-radius: 58% 58% 50% 50% / 68% 68% 40% 40%;
  background-image: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(212,185,232,0.9));
  box-shadow: inset 0 -6px 12px rgba(138,79,168,0.18), var(--shadow-sm);
  position: relative;
  flex: none;
}
.droplet::before {
  content: "";
  position: absolute;
  top: 7px; left: 10px;
  width: 12px; height: 8px;
  border-radius: 50%;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.2));
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn-primary {
  background: color-mix(in srgb, var(--primary) 100%, white 0%);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { color: #FFFFFF; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: color-mix(in srgb, var(--surface) 100%, white 0%);
  color: var(--primary);
  border-color: var(--lilac-300);
}
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-2px); }
.btn-coral {
  background-color: var(--accent);
  color: #2A1A14;
  box-shadow: 0 12px 26px rgba(255, 142, 114, 0.34);
}
.btn-coral:hover { transform: translateY(-2px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  background-color: var(--lilac-100);
  border-radius: var(--r-pill);
  padding: 0.35rem 0.95rem;
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 9px; height: 11px;
  border-radius: 55% 55% 50% 50% / 70% 70% 40% 40%;
  background-color: var(--accent);
}

.lede { font-size: var(--fs-md); color: var(--muted); }

section { padding-block: var(--sp-7); position: relative; }
.band-tint { background-image: linear-gradient(180deg, rgba(243,233,250,0.9), rgba(251,248,252,0)); }
.band-coral { background-image: linear-gradient(180deg, rgba(255,229,220,0.75), rgba(251,248,252,0)); }

.sec-head { max-width: 720px; margin-bottom: var(--sp-5); }
.sec-head.centered { margin-inline: auto; text-align: center; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 248, 252, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 22px rgba(138, 79, 168, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-block: 0.8rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.32rem;
  color: var(--ink);
  text-decoration: none;
}
.wordmark svg { width: 34px; height: 34px; }
.wordmark span b { color: var(--primary); font-weight: inherit; }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--primary); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 2px solid var(--line);
  background-color: var(--surface);
  color: var(--primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero { padding-top: var(--sp-6); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: var(--sp-6);
  align-items: center;
}
.hero h1 span.pop {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}
.hero h1 span.pop::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.06em;
  height: 0.16em;
  border-radius: var(--r-pill);
  background-image: linear-gradient(90deg, rgba(255,142,114,0.85), rgba(212,185,232,0.85));
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--lilac-300);
  list-style: none;
  padding-left: 0;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
}
.trust-strip li::before {
  content: "";
  width: 12px; height: 14px;
  flex: none;
  border-radius: 55% 55% 50% 50% / 70% 70% 40% 40%;
  background-image: linear-gradient(160deg, var(--lilac-300), var(--primary));
}

.hero-photo {
  position: relative;
  border-radius: var(--r-xl);
  padding: 10px;
  background-image: linear-gradient(150deg, rgba(255,205,188,0.85), rgba(231,214,243,0.9));
  box-shadow: var(--shadow-lg);
}
.hero-photo img { border-radius: 34px; }
.hero-photo figcaption {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.5rem 1.1rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* ---------- cards ---------- */

.card {
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--lilac-300); }

.grid { display: grid; gap: var(--sp-3); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.cost {
  display: inline-block;
  margin-top: var(--sp-2);
  font-weight: 800;
  font-size: var(--fs-sm);
  color: var(--primary);
  background-color: var(--coral-050);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 0.35rem 0.8rem;
}

/* ---------- steps ---------- */

.steps { counter-reset: step; display: grid; gap: var(--sp-3); }
.step {
  position: relative;
  padding-left: 4.4rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 52px; height: 56px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.4rem;
  color: #FFFFFF;
  border-radius: 58% 58% 50% 50% / 66% 66% 42% 42%;
  background-image: linear-gradient(160deg, var(--lilac-400), var(--primary));
  box-shadow: inset 0 -8px 14px rgba(33,28,41,0.12);
}
.step h3 { margin-bottom: var(--sp-1); }
.solution-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-6); align-items: center; }
.section-photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 10px solid var(--surface);
  box-shadow: var(--shadow-lg);
}

/* ---------- features ---------- */

.feature-card { display: flex; flex-direction: column; gap: 0.4rem; }
.icon-badge {
  width: 56px; height: 56px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background-image: linear-gradient(155deg, var(--lilac-100), var(--lilac-200));
  box-shadow: inset 0 -6px 10px rgba(138,79,168,0.12), inset 0 6px 10px rgba(255,255,255,0.9);
  margin-bottom: var(--sp-2);
}
.icon-badge svg { width: 28px; height: 28px; }

/* ---------- outcomes ---------- */

.outcome {
  background-color: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-soft);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.outcome .num {
  font-family: var(--display);
  font-size: 2.7rem;
  line-height: 1;
  color: var(--primary);
  display: block;
  margin-bottom: var(--sp-2);
}
.outcome .num small { font-size: 1.2rem; color: var(--accent); }

/* ---------- swatch flip cards ---------- */

.swatch-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); margin-top: var(--sp-5); }
.swatch {
  perspective: 900px;
  height: 132px;
}
.swatch-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
  transform-style: preserve-3d;
}
.swatch:hover .swatch-inner, .swatch:focus-within .swatch-inner { transform: rotateY(180deg); }
.swatch-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 0.7rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.swatch-front { background-image: linear-gradient(160deg, rgba(255,255,255,0.95), rgba(231,214,243,0.95)); color: var(--primary); }
.swatch-front .dot {
  width: 34px; height: 34px; border-radius: 50%;
  margin: 0 auto 0.5rem;
  box-shadow: inset -5px -6px 10px rgba(33,28,41,0.16), inset 4px 5px 8px rgba(255,255,255,0.7);
}
.swatch-back {
  transform: rotateY(180deg);
  background-color: var(--surface);
  color: var(--muted);
  font-weight: 600;
}

/* ---------- testimonials ---------- */

.testimonial {
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  margin: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial::before {
  content: "";
  position: absolute;
  top: -14px; left: var(--sp-4);
  width: 28px; height: 34px;
  border-radius: 55% 55% 50% 50% / 70% 70% 40% 40%;
  background-image: linear-gradient(160deg, var(--coral-200), var(--accent));
  box-shadow: var(--shadow-sm);
}
.testimonial p { font-size: var(--fs-md); }
.testimonial figcaption { font-size: var(--fs-sm); color: var(--muted); border-top: 1px dashed var(--lilac-300); padding-top: var(--sp-2); }
.testimonial figcaption strong { color: var(--ink); display: block; font-size: var(--fs-base); }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  background-color: var(--lilac-050);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}
.metric-strip div { text-align: center; }
.metric-strip b {
  display: block;
  font-family: var(--display);
  font-size: 2.1rem;
  color: var(--primary);
  line-height: 1.1;
}
.metric-strip span { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- pricing ---------- */

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); align-items: start; }
.tier {
  background-color: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.tier.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  background-image: linear-gradient(180deg, rgba(243,233,250,0.85), rgba(255,255,255,1) 34%);
}
.tier .tag {
  align-self: flex-start;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3A1F0F;
  background-color: var(--accent);
  border-radius: var(--r-pill);
  padding: 0.25rem 0.8rem;
  margin-bottom: var(--sp-2);
}
.tier .amount { font-family: var(--display); font-size: 2.9rem; color: var(--ink); line-height: 1; }
.tier .per { color: var(--muted); font-size: var(--fs-sm); }
.tier ul { list-style: none; padding: 0; margin: var(--sp-3) 0 var(--sp-4); display: grid; gap: 0.55rem; }
.tier li { padding-left: 1.7rem; position: relative; font-size: var(--fs-sm); }
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 11px; height: 13px;
  border-radius: 55% 55% 50% 50% / 70% 70% 40% 40%;
  background-image: linear-gradient(160deg, var(--lilac-300), var(--primary));
}
.tier .btn { margin-top: auto; justify-content: center; }
.billing-note {
  margin-top: var(--sp-4);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ---------- faq ---------- */

.faq-list { display: grid; gap: var(--sp-2); }
.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  text-align: left;
  font-family: var(--body);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink);
  background-color: var(--surface);
  border: 0;
  padding: 1.1rem var(--sp-4);
  cursor: pointer;
}
.faq-item button:hover { background-color: var(--lilac-050); }
.faq-item .chev {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background-color: var(--lilac-100);
  display: grid; place-items: center;
  color: var(--primary);
  font-weight: 800;
  transition: transform 0.25s ease;
}
.faq-item button[aria-expanded="true"] .chev { transform: rotate(45deg); }
.faq-answer { padding: 0 var(--sp-4) var(--sp-3); color: var(--muted); }
.faq-answer[hidden] { display: none; }

/* ---------- form ---------- */

.contact-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: var(--sp-3); }
.field label { display: block; font-weight: 700; font-size: var(--fs-sm); margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: var(--fs-base);
  color: var(--ink);
  background-color: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.9rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: none; }
.field [aria-invalid="true"] { border-color: #B3261E; }
.err { display: block; color: #8C1D18; font-size: var(--fs-sm); font-weight: 700; margin-top: 0.3rem; }
.err[hidden] { display: none; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--fs-sm); }
.consent input { width: 20px; height: 20px; margin-top: 0.25rem; flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-3); }
.form-note { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-3); }

/* ---------- footer ---------- */

.site-footer {
  background-image: linear-gradient(180deg, rgba(243,233,250,0.55), rgba(255,229,220,0.5));
  border-top: 2px solid var(--line);
  padding-block: var(--sp-6) var(--sp-4);
  margin-top: var(--sp-7);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--sp-4); }
.site-footer h2 { font-size: var(--fs-base); font-family: var(--body); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: var(--sp-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.social-row { display: flex; gap: 0.5rem; margin-top: var(--sp-3); }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background-color: var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease;
}
.social-row a:hover { transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; }
.footer-base {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--lilac-300);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.byline {
  margin-top: var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  border-left: 4px solid var(--accent);
  background-color: var(--lilac-050);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* ---------- prose pages ---------- */

.prose { max-width: 800px; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-5); }
.prose h3 { font-size: var(--fs-md); font-family: var(--body); font-weight: 800; margin-top: var(--sp-4); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.fact-table { width: 100%; border-collapse: collapse; margin-block: var(--sp-3); }
.fact-table th, .fact-table td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); vertical-align: top; }
.fact-table th { width: 34%; color: var(--primary); }

.author-head { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-5); align-items: center; }
.author-head img { border-radius: var(--r-lg); border: 8px solid var(--surface); box-shadow: var(--shadow-md); }

.map-group { margin-bottom: var(--sp-4); }
.map-group li { margin-bottom: 0.55rem; }
.map-group li span { color: var(--muted); }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-grid, .solution-grid { grid-template-columns: 1fr; }
  .g-3, .g-4, .price-grid, .metric-strip, .swatch-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .author-head { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: var(--sp-3) 1.1rem var(--sp-4);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .header-cta { display: none; }
}

@media (max-width: 620px) {
  .g-2, .g-3, .g-4, .price-grid, .metric-strip, .swatch-row, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding-block: var(--sp-6); }
  .contact-card { padding: var(--sp-4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ================= magazine: The Polish Room ================= */

.mag-crumb { padding-top: var(--sp-4); }
.mag-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.7rem;
  list-style: none;
  margin: 0; padding: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
}
.mag-crumb li + li::before {
  content: "";
  display: inline-block;
  width: 7px; height: 9px;
  margin-right: 0.7rem;
  vertical-align: -1px;
  border-radius: 55% 55% 50% 50% / 70% 70% 40% 40%;
  background-color: var(--lilac-300);
}
.mag-crumb a { color: var(--primary); text-decoration: none; font-weight: 700; }
.mag-crumb a:hover { color: var(--ink); text-decoration: underline; }
.mag-crumb [aria-current="page"] { color: var(--muted); }

.mag-shell { width: min(100% - 2.2rem, var(--wrap)); margin-inline: auto; padding-bottom: var(--sp-7); }
.mag-measure { width: min(100%, 68ch); margin-inline: auto; }

.mag-head { padding-top: var(--sp-5); }
.mag-head h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: var(--sp-3);
}
.mag-standfirst {
  font-size: var(--fs-md);
  line-height: 1.62;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.mag-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem var(--sp-3);
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--muted);
  border-top: 1px dashed var(--lilac-300);
  border-bottom: 1px dashed var(--lilac-300);
  padding-block: var(--sp-2);
}
.mag-byline-who { font-weight: 700; color: var(--ink); }
.mag-byline a { font-weight: 700; text-decoration: none; }
.mag-byline a:hover { text-decoration: underline; }
.mag-byline time { font-weight: 600; }

.mag-figure {
  margin: var(--sp-5) 0 var(--sp-5);
  padding: 9px;
  border-radius: var(--r-xl);
  background-image: linear-gradient(150deg, rgba(255,205,188,0.85), rgba(231,214,243,0.9));
  box-shadow: var(--shadow-md);
}
.mag-figure img { border-radius: 32px; width: 100%; }
.mag-figure figcaption {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-align: center;
  padding: var(--sp-2) var(--sp-3) 0.35rem;
}

/* ---------- article body typography ---------- */

.mag-body { font-size: var(--fs-md); line-height: 1.75; }
.mag-body h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.05rem);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line-soft);
}
.mag-body h3 {
  font-size: var(--fs-lg);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-2);
  color: var(--primary);
}
.mag-body p { margin-bottom: var(--sp-3); }
.mag-body ul, .mag-body ol { margin: 0 0 var(--sp-4); padding-left: 1.3rem; }
.mag-body li { margin-bottom: var(--sp-2); }
.mag-body ul { list-style: none; padding-left: 0; }
.mag-body ul li { position: relative; padding-left: 1.7rem; }
.mag-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 11px; height: 13px;
  border-radius: 55% 55% 50% 50% / 70% 70% 40% 40%;
  background-image: linear-gradient(160deg, var(--lilac-300), var(--primary));
}
.mag-body blockquote {
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  background-color: var(--lilac-050);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--fs-md);
  color: var(--ink);
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) 0;
  font-size: var(--fs-sm);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.mag-body th, .mag-body td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}
.mag-body thead th { background-color: var(--lilac-100); color: var(--primary); font-weight: 800; }
.mag-body tbody tr:last-child td { border-bottom: 0; }
.mag-body a { font-weight: 600; }

.inline-read {
  margin: var(--sp-4) 0;
  padding: 0.85rem var(--sp-3);
  background-color: var(--coral-050);
  border: 1px dashed var(--coral-200);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted);
}
.inline-read a { color: var(--primary); text-decoration: none; }
.inline-read a:hover { text-decoration: underline; color: var(--ink); }

/* ---------- call to action ---------- */

.mag-cta {
  margin-top: var(--sp-6);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background-image: linear-gradient(150deg, rgba(243,233,250,0.95), rgba(255,229,220,0.85));
  border: 1px solid var(--lilac-200);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.mag-cta h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.mag-cta p { color: var(--muted); margin-bottom: var(--sp-4); }

/* ---------- author box ---------- */

.mag-author {
  margin-top: var(--sp-5);
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-4);
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.mag-author img { border-radius: var(--r-md); width: 128px; height: 128px; object-fit: cover; }
.mag-author h2 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.mag-author p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-2); }

/* ---------- read also ---------- */

.mag-related { margin-top: var(--sp-6); }
.mag-related > h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-4); }
.mag-related-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(3, 1fr); }
.mag-rel {
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.mag-rel:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--lilac-300); }
.mag-rel-media { display: block; }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel h3 { font-size: var(--fs-base); line-height: 1.28; margin: var(--sp-3) var(--sp-3) var(--sp-2); }
.mag-rel h3 a { color: var(--ink); text-decoration: none; }
.mag-rel h3 a:hover { color: var(--primary); }
.mag-rel p { font-size: var(--fs-xs); color: var(--muted); margin: 0 var(--sp-3) var(--sp-3); }
.mag-related-all { margin-top: var(--sp-4); font-weight: 700; }

.mag-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- magazine index ---------- */

.mag-index-head { padding-block: var(--sp-6) var(--sp-4); }
.mag-index-head .mag-measure { margin-inline: 0; }
.mag-index-head h1 { font-size: clamp(2.3rem, 6vw, 3.7rem); }
.mag-index-note { color: var(--muted); font-size: var(--fs-sm); }
.mag-index-list { padding-top: 0; }

.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.mag-card {
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.mag-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--lilac-300); }
.mag-card-media { display: block; }
.mag-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.mag-card h2, .mag-card h3 { font-size: var(--fs-md); line-height: 1.26; margin: 0; }
.mag-card h2 a, .mag-card h3 a { color: var(--ink); text-decoration: none; }
.mag-card h2 a:hover, .mag-card h3 a:hover { color: var(--primary); }
.mag-card p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.mag-card .mag-meta { margin-top: auto; padding-top: var(--sp-2); border-top: 1px dashed var(--lilac-200); }
.mag-tag {
  align-self: flex-start;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background-color: var(--lilac-100);
  border-radius: var(--r-pill);
  padding: 0.25rem 0.8rem;
}

.mag-card.lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  border-color: var(--lilac-200);
  box-shadow: var(--shadow-md);
}
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.mag-card.lead .mag-card-body { padding: var(--sp-5); justify-content: center; gap: var(--sp-3); }
.mag-card.lead h2, .mag-card.lead h3 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
.mag-card.lead p { font-size: var(--fs-md); }

/* ---------- home page magazine teaser ---------- */

.mag-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.mag-teaser-more { margin-top: var(--sp-4); font-weight: 700; }

/* ---------- author and site map listings ---------- */

.mag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.mag-list li {
  padding-left: var(--sp-3);
  border-left: 3px solid var(--lilac-200);
}
.mag-list a { font-weight: 700; text-decoration: none; }
.mag-list a:hover { text-decoration: underline; }
.mag-list .mag-meta { margin-top: 0.3rem; text-transform: none; letter-spacing: 0; font-weight: 600; }

/* ---------- magazine responsive ---------- */

@media (max-width: 960px) {
  .mag-grid, .mag-teaser-grid, .mag-related-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-card.lead { grid-template-columns: 1fr; }
  .mag-card.lead .mag-card-media img { min-height: 0; aspect-ratio: 3 / 2; }
}

@media (max-width: 620px) {
  .mag-grid, .mag-teaser-grid, .mag-related-grid { grid-template-columns: 1fr; }
  .mag-shell { padding-bottom: var(--sp-6); }
  .mag-figure { padding: 6px; border-radius: var(--r-lg); }
  .mag-figure img { border-radius: 22px; }
  .mag-body { font-size: var(--fs-base); }
  .mag-cta { padding: var(--sp-4); }
  .mag-author { grid-template-columns: 1fr; }
  .mag-author img { width: 96px; height: 96px; }
  .mag-byline { gap: 0.3rem var(--sp-2); font-size: var(--fs-xs); }
  .mag-standfirst { padding-left: var(--sp-2); }
}


/* Network column: five sibling products, rotated so every site is linked the same
   number of times. Sits in the footer link grid and inherits its type and colour. */
.site-network ul { list-style: none; margin: 0; padding: 0; }
.site-network li + li { margin-top: 0.4rem; }
.site-network a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { border-bottom-color: currentColor; }
