/* ============================================
   Sănătate Cenzurată — sanatatecenzurata.ro
   Editorial book-jacket landing page
   ============================================ */

:root {
  /* Palette — cream paper + deep ink + book-border burgundy */
  --bg: #f4eddd;
  --bg-warm: #efe6d2;
  --surface: #faf6ec;
  --card: #fffaef;
  --ink: #1a1614;
  --ink-2: #4a423b;
  --ink-3: #7a7166;
  --muted: #b8ad9a;
  --border: #e0d5bb;
  --border-strong: #c9bb9c;
  --accent: #6e1a1e;
  --accent-deep: #5a1418;
  --accent-soft: #f1e3e3;
  --success: #2f5d3a;
  --danger: #8a1f24;

  /* Type */
  --ff-display: "Fraunces", "Times New Roman", Georgia, serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ff-mono: "Special Elite", "Courier Prime", "Courier New", monospace;

  /* Spacing scale (4/8) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;
  --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --s-10: 128px;

  /* Layout */
  --container: 1180px;
  --container-narrow: 820px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 600ms;
}

/* ============================================
   Reset & base
   ============================================ */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

[hidden] { display: none !important; }

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

button { font: inherit; cursor: pointer; }

::selection { background: var(--accent); color: var(--bg); }

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

.skip {
  position: absolute; top: 8px; left: 8px;
  padding: 10px 16px; background: var(--ink); color: var(--bg);
  border-radius: var(--radius); transform: translateY(-200%);
  transition: transform 200ms ease;
  z-index: 100;
}
.skip:focus { transform: translateY(0); }

/* ============================================
   Typography
   ============================================ */

.display {
  font-family: var(--ff-display);
  font-weight: 350;
  font-style: normal;
  font-size: clamp(56px, 11vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--ink);
  margin: 0 0 var(--s-5);
}

.section__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 60;
  color: var(--ink);
  margin: 0 0 var(--s-6);
  max-width: 18ch;
}

.serif-italic { font-style: italic; font-weight: 400; }

.kicker {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.kicker--center { display: flex; justify-content: center; }
.kicker--center::before { display: none; }

.eyebrow {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin: 0 0 var(--s-5);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 14px 8px 12px;
  background: rgba(110, 26, 30, 0.06);
  border: 1px solid rgba(110, 26, 30, 0.15);
  border-radius: 100px;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex: 0 0 6px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

.prose p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 var(--s-4);
  max-width: 64ch;
}
.prose__lead {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  margin: var(--s-7) 0 0;
  max-width: 28ch;
  font-variation-settings: "opsz" 30;
}
.prose__note em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

/* ============================================
   Layout
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.container--narrow { max-width: var(--container-narrow); }
.container--split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section--carte { background: var(--bg); }
.section--quote {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--autor {
  background: var(--bg);
}
.section--order {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.section--trust {
  background: var(--bg-warm);
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid var(--border);
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 237, 221, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.nav__brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
}
.nav__brand-text { display: inline-block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 28px);
  font-size: 14.5px;
  font-weight: 500;
}
.nav__links a {
  color: var(--ink-2);
  padding: 8px 4px;
  position: relative;
  transition: color 160ms ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px;
  height: 1px; background: var(--ink); transform: scaleX(0);
  transform-origin: left; transition: transform 220ms var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); }

.nav__cta {
  padding: 9px 16px !important;
  background: var(--ink);
  color: var(--bg) !important;
  border-radius: 100px;
  transition: background 160ms ease;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--accent); }

@media (max-width: 640px) {
  .nav__brand-text { display: none; }
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 120px);
  background:
    radial-gradient(80% 60% at 80% 20%, rgba(110, 26, 30, 0.06), transparent 70%),
    radial-gradient(70% 50% at 10% 90%, rgba(110, 26, 30, 0.04), transparent 65%),
    var(--bg);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero__copy { max-width: 620px; }

.hero__subtitle {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  color: var(--ink-2);
  margin: 0 0 var(--s-6);
  font-variation-settings: "opsz" 30;
}

.hero__pitch {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 var(--s-6);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: 0 0 var(--s-5);
}

.hero__trust {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__trust svg { color: var(--success); flex: 0 0 16px; }

/* "Cenzurată" with hand-drawn strikethrough */
.redact {
  position: relative;
  display: inline-block;
  font-family: var(--ff-mono);
  font-style: normal;
  font-weight: 400;
  font-size: 0.78em;
  letter-spacing: 0.005em;
  color: var(--accent);
  padding: 0 0.05em;
  margin-left: 0.1em;
  vertical-align: 0.04em;
  transform: rotate(-2deg);
  transform-origin: left center;
}
.redact__word { position: relative; z-index: 1; }
.redact__line {
  position: absolute;
  left: -4%;
  right: 100%;
  top: 52%;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(-1.5deg);
  transform-origin: left center;
  transition: right 1100ms var(--ease-out);
}
.is-loaded .redact__line {
  right: -4%;
  transition-delay: 900ms;
}

/* Hero visual — book */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.book {
  position: relative;
  width: min(440px, 80vw);
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  will-change: transform;
  animation: float 8s var(--ease-in-out) infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
  50% { transform: translateY(-12px) rotateX(1deg) rotateY(-1deg); }
}
.book img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(26, 22, 20, 0.18))
          drop-shadow(0 10px 16px rgba(26, 22, 20, 0.12));
}
.book__shadow {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -4%;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(26, 22, 20, 0.18), transparent 70%);
  filter: blur(8px);
  z-index: -1;
}

.hero__scroll {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 36px;
  overflow: hidden;
  opacity: 0.5;
}
.hero__scroll span {
  display: block;
  width: 1px; height: 100%;
  background: var(--ink);
  animation: scroll-line 2.2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .book { width: min(280px, 70vw); }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  transition: transform 200ms var(--ease-out),
              background 180ms ease,
              color 180ms ease,
              border-color 180ms ease,
              box-shadow 220ms var(--ease-out);
  text-decoration: none;
  min-height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.985); }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink);
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 6px 20px -8px rgba(26, 22, 20, 0.35);
}
.btn--primary:hover {
  background: var(--accent);
  box-shadow: 0 10px 28px -8px rgba(110, 26, 30, 0.4);
}
.btn--primary:hover .btn__arrow { transform: translateX(3px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: rgba(26, 22, 20, 0.04);
  border-color: var(--ink);
}

.btn--block { width: 100%; }

.btn__arrow { transition: transform 220ms var(--ease-out); }

.btn__spinner {
  display: none;
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__spinner { display: block; }
.btn.is-loading .btn__arrow { display: none; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
  font-size: 15px;
  padding: 4px 0;
  border-bottom: 1px solid currentColor;
  transition: color 160ms ease, gap 180ms var(--ease-out);
}
.link:hover { color: var(--accent-deep); gap: 10px; }
.link--btn {
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  font-family: var(--ff-body);
}

/* ============================================
   Carte section — questions
   ============================================ */

.questions {
  list-style: none;
  margin: var(--s-7) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
  max-width: 920px;
}
.questions li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 220ms var(--ease-out),
              border-color 220ms ease,
              box-shadow 220ms var(--ease-out);
}
.questions li:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 24px -16px rgba(26, 22, 20, 0.2);
}
.questions__num {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
  flex: 0 0 auto;
  font-variation-settings: "opsz" 60;
}
.questions p {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.35;
  color: var(--ink);
  font-variation-settings: "opsz" 30;
}

@media (max-width: 720px) {
  .questions { grid-template-columns: 1fr; }
}

/* ============================================
   Book excerpts slider
   ============================================ */

.excerpts {
  margin-top: clamp(56px, 9vw, 104px);
}
.excerpts__head {
  margin-bottom: var(--s-6);
}
.excerpts__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.excerpts__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 60;
  max-width: 20ch;
}

.excerpt-slider {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 64px) clamp(20px, 3vw, 32px);
  overflow: hidden;
  box-shadow: 0 16px 40px -28px rgba(26, 22, 20, 0.2);
}
.excerpt-slider::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(var(--accent), var(--accent-deep));
  opacity: 0.8;
}
.excerpt-slider:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink);
}

.excerpt-mark {
  position: absolute;
  top: clamp(-8px, 1vw, 8px);
  right: clamp(16px, 4vw, 40px);
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(90px, 14vw, 150px);
  line-height: 1;
  color: var(--accent);
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
}

.excerpt-viewport {
  display: grid;
  position: relative;
}
.excerpt {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
  pointer-events: none;
}
.excerpt.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
/* JS-enhanced: container height follows the active slide (no wasted space) */
.excerpt-viewport.is-dynamic {
  display: block;
  transition: height 450ms var(--ease-out);
}
.excerpt-viewport.is-dynamic .excerpt {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.excerpt__quote {
  margin: 0 0 var(--s-5);
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: "opsz" 60;
}
.excerpt__page {
  font-family: var(--ff-body);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.excerpt__page::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.excerpt-controls {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.excerpt-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 200ms var(--ease-out);
  touch-action: manipulation;
}
.excerpt-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.excerpt-btn:active { transform: scale(0.94); }
.excerpt-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink);
}
.excerpt-counter {
  font-family: var(--ff-display);
  font-size: 16px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  font-variation-settings: "opsz" 14;
  margin-left: auto;
}
.excerpt-counter b {
  color: var(--ink);
  font-weight: 500;
}

/* ============================================
   Pull quote
   ============================================ */

.pullquote {
  position: relative;
  margin: 0;
  padding: var(--s-7) clamp(20px, 5vw, 64px);
  text-align: center;
}
.pullquote__mark {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 300;
  font-size: 160px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}
.pullquote blockquote {
  margin: 0 0 var(--s-5);
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(26px, 4.2vw, 44px);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60;
}
.pullquote figcaption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-3);
}
.pullquote__name {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.pullquote__role {
  font-style: italic;
  font-family: var(--ff-display);
  font-variation-settings: "opsz" 14;
}
.pullquote__role::before {
  content: "·";
  margin-right: 8px;
  color: var(--muted);
}

/* ============================================
   Author
   ============================================ */

.autor__visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-warm);
}
.autor__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 1;
}
.autor__shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 80%;
  background: linear-gradient(135deg, #8aa9c7, #6f95b9);
  border-radius: 0 0 50% 0;
  z-index: 0;
}

@media (max-width: 880px) {
  .container--split { grid-template-columns: 1fr; }
  .autor__visual { max-width: 480px; margin: 0 auto; }
}

/* ============================================
   Testimonials
   ============================================ */

.section--marturii {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
}

.testimonials {
  margin-top: var(--s-7);
  columns: 3;
  column-gap: var(--s-4);
}
@media (max-width: 980px) { .testimonials { columns: 2; } }
@media (max-width: 620px)  { .testimonials { columns: 1; } }

.tcard {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 var(--s-4);
  padding: var(--s-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 240ms var(--ease-out),
              border-color 240ms ease,
              box-shadow 240ms var(--ease-out);
}
.tcard:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 28px -18px rgba(26, 22, 20, 0.22);
}

.tcard__quote {
  margin: 0 0 var(--s-3);
  position: relative;
  padding-left: 18px;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
  font-variation-settings: "opsz" 40;
}
.tcard__quote::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.7;
}

.tcard__body p {
  margin: 0 0 var(--s-2);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.tcard__body p:last-child { margin-bottom: 0; }

.tcard__author {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tcard__author::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
  flex: 0 0 16px;
}

.testimonials.is-collapsed .tcard--more { display: none; }

.testimonials__actions {
  display: flex;
  justify-content: center;
  margin-top: var(--s-6);
}
.btn__chev { transition: transform 260ms var(--ease-out); }
#moreBtn[aria-expanded="true"] .btn__chev { transform: rotate(180deg); }

/* ============================================
   Checkout block (Stripe payment)
   ============================================ */

.section__lead {
  font-size: 17px;
  color: var(--ink-2);
  margin: calc(var(--s-6) * -1) 0 var(--s-6);
  max-width: 56ch;
  line-height: 1.55;
}

.checkout {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(20px, 4vw, 36px);
  box-shadow:
    0 1px 0 rgba(26, 22, 20, 0.02),
    0 16px 40px -24px rgba(26, 22, 20, 0.18);
  margin-top: var(--s-5);
  position: relative;
  overflow: hidden;
}
.checkout::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep) 60%, transparent);
  opacity: 0.7;
}

.checkout__product {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--border);
}

.checkout__cover {
  position: relative;
  width: 132px;
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 8px 16px rgba(26, 22, 20, 0.18));
}
.checkout__cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout__details { min-width: 0; }
.checkout__eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 6px;
}
.checkout__title {
  font-family: var(--ff-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  margin: 0 0 4px;
  color: var(--ink);
  font-variation-settings: "opsz" 30;
  letter-spacing: -0.01em;
}
.checkout__meta {
  margin: 0 0 var(--s-4);
  color: var(--ink-3);
  font-size: 14px;
}
.checkout__price {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.checkout__amount {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 52px);
  line-height: 1;
  color: var(--ink);
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.015em;
}
.checkout__amount small {
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 6px;
  letter-spacing: 0.04em;
}
.checkout__free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--success);
  background: #e9f1ea;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
}

#payBtn {
  margin-top: var(--s-5);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.005em;
  padding: 18px 24px;
}
.btn--xl { min-height: 60px; padding: 18px 28px; font-size: 16px; }
.btn__lock { flex: 0 0 18px; }
.btn--xl .btn__label { flex: 1; text-align: center; }

#payBtn:hover .btn__arrow { transform: translateX(4px); }

.checkout__steps {
  margin: var(--s-4) 0 var(--s-5);
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.5;
}

.checkout__trust {
  list-style: none;
  margin: 0 0 var(--s-4);
  padding: var(--s-4) 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.checkout__trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  position: relative;
}
.checkout__trust li + li::before {
  content: "·";
  position: absolute;
  left: -2px;
  color: var(--muted);
}
.checkout__trust svg { color: var(--success); }

.checkout__steps strong { color: var(--ink-2); font-weight: 600; }

.checkout__seller {
  margin: var(--s-4) 0 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  text-align: center;
}
.checkout__seller strong { color: var(--ink-2); font-weight: 600; }
.checkout__seller a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkout__seller a:hover { color: var(--accent-deep); }

.checkout__assist {
  margin: var(--s-3) 0 0;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}
.checkout__assist a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkout__assist a:hover { color: var(--accent-deep); }

@media (max-width: 560px) {
  .checkout__product {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .checkout__cover {
    width: 140px;
    margin: 0 auto;
  }
  .checkout__price { justify-content: center; }
}


/* ============================================
   Trust strip
   ============================================ */

.trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.trust li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) 0;
}
.trust svg { color: var(--accent); flex: 0 0 22px; margin-top: 2px; }
.trust strong {
  display: block;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 2px;
}
.trust span {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.4;
}

@media (max-width: 880px) {
  .trust { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
}
@media (max-width: 480px) {
  .trust { grid-template-columns: 1fr; }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--ink);
  color: rgba(244, 237, 221, 0.7);
  padding: var(--s-7) 0 var(--s-5);
  font-size: 13.5px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.footer__col { min-width: 0; }
.footer__brand {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--bg);
  margin: 0 0 4px;
  font-variation-settings: "opsz" 30;
}
.footer__line {
  margin: 0 0 var(--s-4);
  color: rgba(244, 237, 221, 0.55);
  font-size: 13px;
}
.footer__company {
  font-style: normal;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(244, 237, 221, 0.6);
}
.footer__company strong { color: rgba(244, 237, 221, 0.85); font-weight: 600; }
.footer__company a {
  color: rgba(244, 237, 221, 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 160ms ease;
}
.footer__company a:hover { color: var(--bg); }

.footer__heading {
  margin: 0 0 var(--s-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 237, 221, 0.45);
}
.footer__links,
.footer__anpc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__links a,
.footer__anpc a {
  color: rgba(244, 237, 221, 0.75);
  font-size: 13px;
  line-height: 1.4;
  transition: color 160ms ease;
}
.footer__links a:hover,
.footer__anpc a:hover { color: var(--bg); }
.footer__copy {
  grid-column: 1 / -1;
  margin: var(--s-5) 0 0;
  padding-top: var(--s-5);
  border-top: 1px solid rgba(244, 237, 221, 0.12);
  font-size: 12.5px;
  color: rgba(244, 237, 221, 0.45);
}

@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* ============================================
   Sticky mobile CTA
   ============================================ */

.sticky-cta {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  z-index: 40;
  box-shadow: 0 12px 32px -8px rgba(26, 22, 20, 0.4);
  opacity: 0;
  transform: translateY(120%);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
  pointer-events: none;
}
.sticky-cta span {
  line-height: 1.25;
  flex: 1;
}
.sticky-cta strong {
  background: var(--bg);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 14px;
  font-variation-settings: "opsz" 14;
  white-space: nowrap;
  flex: 0 0 auto;
}
.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (max-width: 720px) {
  .sticky-cta { display: flex; }
}

/* ============================================
   Reveal animations
   ============================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Legal pages (termeni / confidențialitate)
   ============================================ */

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 237, 221, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.legal-nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: gap 180ms var(--ease-out), color 160ms ease;
}
.legal-back:hover { color: var(--ink); gap: 12px; }

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 40px) clamp(64px, 10vw, 120px);
}
.legal__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-3);
}
.legal h1 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--s-4);
  font-variation-settings: "opsz" 80;
}
.legal__updated {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 0 0 var(--s-7);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--border);
}
.legal h2 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: var(--s-7) 0 var(--s-3);
  font-variation-settings: "opsz" 40;
}
.legal h2 .legal__num {
  color: var(--accent);
  font-style: italic;
  margin-right: 10px;
}
.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.legal p { margin: 0 0 var(--s-4); }
.legal ul {
  margin: 0 0 var(--s-4);
  padding-left: 22px;
}
.legal li { margin-bottom: 6px; }
.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover { color: var(--accent-deep); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal__box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  margin: 0 0 var(--s-5);
}
.legal__box p:last-child { margin-bottom: 0; }
.legal__note {
  font-size: 13.5px;
  color: var(--ink-3);
  font-style: italic;
}

/* ============================================
   Author modal
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 20, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 280ms var(--ease-out);
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  max-width: 860px;
  width: 100%;
  max-height: calc(100dvh - clamp(32px, 8vw, 80px));
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(26, 22, 20, 0.5);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}
.modal.is-open .modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.modal__dialog:focus { outline: none; }

.modal__media {
  position: relative;
  background: var(--bg-warm);
  min-height: 100%;
}
.modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.modal__body {
  padding: clamp(28px, 4vw, 44px);
  overflow-y: auto;
}
.modal__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-2);
}
.modal__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--s-5);
  font-variation-settings: "opsz" 60;
}
.modal__prose p {
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--ink-2);
  margin: 0 0 var(--s-4);
}
.modal__prose em {
  font-family: var(--ff-display);
  font-style: italic;
  color: var(--ink);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, transform 200ms var(--ease-out);
}
.modal__close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.modal__close:active { transform: scale(0.94); }
.modal__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink);
}

@media (max-width: 720px) {
  .modal__dialog {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 32px);
  }
  .modal__media {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

body.modal-open { overflow: hidden; }

/* ============================================
   Thank-you page
   ============================================ */

.thanks {
  min-height: 70vh;
  min-height: 70dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 40px);
}
.thanks__inner { max-width: 540px; }
.thanks__check {
  display: inline-grid;
  place-items: center;
  width: 72px; height: 72px;
  margin: 0 auto var(--s-5);
  border-radius: 50%;
  background: #e9f1ea;
  color: var(--success);
  border: 1px solid #b6cebd;
}
.thanks h1 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--s-4);
  font-variation-settings: "opsz" 72;
}
.thanks p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 auto var(--s-6);
  max-width: 46ch;
}
.thanks__actions { display: flex; justify-content: center; gap: var(--s-3); flex-wrap: wrap; }

/* ============================================
   Cookie consent banner
   ============================================ */

.cc {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  display: none;
  padding: clamp(12px, 2vw, 20px);
  background: var(--surface);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -16px 40px -24px rgba(26, 22, 20, 0.4);
  transform: translateY(110%);
  transition: transform 360ms var(--ease-out);
}
.cc.is-visible { display: block; transform: translateY(0); }

.cc__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}
.cc__main { flex: 1; min-width: 0; }
.cc__title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 4px;
  font-variation-settings: "opsz" 30;
}
.cc__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 70ch;
}
.cc__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.cc__options {
  margin-top: var(--s-4);
  display: grid;
  gap: 10px;
}
.cc__opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
}
.cc__opt input {
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--accent);
  flex: 0 0 16px;
}
.cc__opt input:disabled { opacity: 0.6; cursor: not-allowed; }
.cc__opt strong { color: var(--ink); font-weight: 600; }

.cc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
  align-items: center;
}
.cc__btn { min-height: 44px; padding: 11px 18px; font-size: 14px; white-space: nowrap; }

@media (max-width: 820px) {
  .cc__inner { flex-direction: column; align-items: stretch; gap: var(--s-4); }
  .cc__actions { justify-content: flex-end; }
}
@media (max-width: 480px) {
  .cc__btn { flex: 1 1 auto; }
}

/* Ascunde CTA-ul fix cât timp bannerul de cookie e deschis */
body.cc-open .sticky-cta { opacity: 0; pointer-events: none; }

/* ============================================
   Reduced motion — calm everything down
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .redact__line { right: -4% !important; transition: none; }
  .book { animation: none; }
  .hero__scroll, .eyebrow__dot { animation: none; }
}
