/* ─────────────────────────────────────────
   samskab.dk · 2025 · Trendsetter edition
   ───────────────────────────────────────── */

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

:root {
  --primary:   #3D7A6B;
  --pl:        #EBF4F1;
  --text:      #111009;
  --muted:     #6B6760;
  --subtle:    #A8A49F;
  --bg:        #F7F5F1;
  --white:     #FFFFFF;
  --border:    #E5E2DD;
  --dark:      #111009;

  --s-f: #3D7A6B;
  --s-l: #2A4A6B;
  --s-s: #7A4A35;
  --s-p: #4A3A6B;
  --s-g: #3A6B4A;

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Plus Jakarta Sans', system-ui, sans-serif;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 680px) { .wrap { padding: 0 24px; } }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── NAV ── */
.nav {
  background: rgba(247,245,241,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 19px; font-weight: 600; letter-spacing: -.025em; color: var(--text);
}
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
  font-size: 12px; color: var(--muted); font-weight: 400;
  letter-spacing: .02em; transition: color .15s;
}
.nav-link:hover { color: var(--text); }

/* ── HERO ── */
.hero {
  background: var(--white);
  padding: 88px 0 80px;
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 40px;
  align-items: center;
}
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(64px, 8.5vw, 128px);
  font-weight: 600;
  color: var(--text);
  line-height: .93;
  letter-spacing: -.04em;
  margin-bottom: 32px;
}
.hero-h1 .italic {
  color: var(--primary);
  font-style: italic;
  font-weight: 300;
}
.hero-meta {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
  max-width: 360px;
  margin-bottom: 36px;
}
.hero-links {
  display: flex; align-items: center; gap: 28px;
}
.hero-link-primary {
  font-size: 13px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 7px;
  border-bottom: 1.5px solid var(--text);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.hero-link-primary:hover { color: var(--primary); border-color: var(--primary); }
.hero-link-secondary {
  font-size: 13px; font-weight: 400; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.hero-link-secondary:hover { color: var(--text); }

/* Fanned card deck */
.hero-deck {
  position: relative;
  width: 460px;
  height: 380px;
  flex-shrink: 0;
}
.hero-deck .hc {
  position: absolute;
  width: 188px;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 16px 56px rgba(0,0,0,.2);
  transform-origin: bottom center;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}

/* Simulated page edges */
.hero-deck .hc::after {
  content: '';
  position: absolute;
  right: -9px;
  top: 5px;
  width: 11px;
  height: calc(100% - 46px);
  background: linear-gradient(to right,
    rgba(220,210,195,.55) 0px,
    rgba(230,220,205,.3) 4px,
    rgba(235,225,210,.15) 7px,
    transparent 11px
  );
  border-radius: 0 3px 3px 0;
  z-index: -1;
}

.hero-deck .hc:nth-child(1) {
  left: 0px; top: 32px;
  transform: rotate(-8deg);
  z-index: 1;
}
.hero-deck .hc:nth-child(2) {
  left: 136px; top: 0;
  transform: rotate(1deg);
  z-index: 3;
}
.hero-deck .hc:nth-child(3) {
  left: 264px; top: 28px;
  transform: rotate(8deg);
  z-index: 2;
}
.hero-deck:hover .hc:nth-child(1) { transform: rotate(-14deg) translateY(-12px); }
.hero-deck:hover .hc:nth-child(2) { transform: rotate(1deg) translateY(-20px); }
.hero-deck:hover .hc:nth-child(3) { transform: rotate(14deg) translateY(-12px); }

.hc-cover {
  padding: 14px 14px 12px 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.hc-cover-h { height: 224px; }
.hc-cover-xl { height: 276px; }

/* Spine */
.hc-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 12px;
  background: rgba(0,0,0,.22);
  z-index: 2;
}

.hc-series {
  font-size: 7px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.45); font-weight: 500; position: relative; z-index: 1;
}
.hc-bottom {
  display: flex; flex-direction: column; gap: 6px;
  position: relative; z-index: 1;
}
.hc-title {
  font-family: var(--serif); font-size: 14px; color: #fff;
  font-weight: 400; line-height: 1.25;
}
.hc-publisher {
  font-family: var(--serif); font-size: 7px;
  color: rgba(255,255,255,.28); letter-spacing: .1em; font-weight: 600;
}
.hc-foot { background: var(--white); padding: 9px 12px; border-radius: 0 0 12px 12px; }
.hc-price { font-size: 11px; font-weight: 600; color: var(--text); }
.hc-price.free { color: var(--primary); }
.hc-price small { font-size: 9px; color: var(--subtle); font-weight: 300; margin-left: 2px; }

/* ── MARQUEE ── */
.marquee-wrap {
  background: var(--dark);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.04);
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
  padding: 0 32px;
}
.marquee-item.accent { color: var(--primary); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── PRODUCTS ── */
.section-products { padding: 88px 0 0; }
.products-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.products-h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 400; color: var(--text);
  letter-spacing: -.025em; line-height: 1.1;
}
.products-h2 em { font-style: italic; font-weight: 300; color: var(--primary); }
.products-hint {
  font-size: 12px; color: var(--subtle);
  font-weight: 300; letter-spacing: .02em;
  display: flex; align-items: center; gap: 6px;
}
.products-hint svg { opacity: .4; }

/* Horizontal shelf */
.shelf-outer {
  position: relative;
  margin: 0 -56px;
  padding: 0 56px 48px;
}
.shelf {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding-right: 56px;
  padding-bottom: 4px;
}
.shelf:active { cursor: grabbing; }
.shelf::-webkit-scrollbar { display: none; }
.shelf-card {
  flex-shrink: 0;
  width: 280px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: box-shadow .3s, transform .3s;
  transform-style: preserve-3d;
}
.shelf-card:not(.disabled):hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  transform: translateY(-4px);
}
.sc-cover {
  height: 220px;
  padding: 22px 22px 18px 34px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}

/* Spine */
.sc-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 14px;
  background: rgba(0,0,0,.22);
  z-index: 2;
}

.sc-series {
  font-size: 8px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.45); font-weight: 500; position: relative; z-index: 1;
}
.sc-bottom {
  display: flex; flex-direction: column; gap: 7px;
  position: relative; z-index: 1;
}
.sc-title {
  font-family: var(--serif); font-size: 22px; color: #fff;
  font-weight: 400; line-height: 1.2;
}
.sc-title em { font-style: italic; font-weight: 300; }
.sc-publisher {
  font-family: var(--serif); font-size: 9px;
  color: rgba(255,255,255,.28); letter-spacing: .1em; font-weight: 600;
}
.sc-foot {
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.sc-price { font-size: 15px; font-weight: 600; color: var(--text); }
.sc-price.free { color: var(--primary); }
.sc-badge {
  font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px;
}
.sc-badge.free-badge { background: var(--pl); color: var(--primary); }
.sc-badge.soon-badge { background: var(--bg); color: var(--subtle); }
.shelf-card.disabled { opacity: .5; cursor: default; pointer-events: none; }

/* Scroll fade edges */
.shelf-outer::before, .shelf-outer::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.shelf-outer::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.shelf-outer::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

/* ── STATEMENT ── */
.section-statement {
  background: var(--white);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.statement-ghost {
  font-family: var(--serif);
  font-size: clamp(140px, 20vw, 280px);
  font-weight: 600; color: rgba(17,16,9,.035);
  position: absolute; right: -24px; top: 50%;
  transform: translateY(-50%);
  line-height: 1; user-select: none; letter-spacing: -.04em;
  pointer-events: none; white-space: nowrap;
}
.statement-body {
  position: relative; z-index: 1;
  max-width: 800px;
}
.statement-num { display: none; }
.statement-content {}
.statement-q {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 48px);
  color: var(--text); font-weight: 300; font-style: italic;
  line-height: 1.25; letter-spacing: -.03em; margin-bottom: 28px;
}
.statement-q strong {
  font-weight: 600; font-style: normal;
}
.statement-attr {
  font-size: 11px; color: var(--subtle);
  letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
}
.statement-attr::before {
  content: ''; width: 24px; height: 1px;
  background: var(--border); display: block;
}

/* ── GRATIS ── */
.section-gratis {
  background: var(--bg);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.gratis-strip {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 56px;
  align-items: center;
}
.gratis-cta-col {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  flex-shrink: 0;
}

/* Left: product cover card */
.gratis-book-wrap {
  display: flex; justify-content: center; align-items: center;
}
.gratis-cover {
  background: var(--s-f);
  border-radius: 10px;
  padding: 20px 18px 16px 30px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  aspect-ratio: 3/4;
  width: 100%;
  box-shadow: 0 20px 56px rgba(61,122,107,.28);
  transform: rotate(-3deg);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.gratis-cover:hover { transform: rotate(0deg) translateY(-4px); }

/* Spine */
.gc-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 18px;
  background: rgba(0,0,0,.22);
  z-index: 2;
}

/* Page edges — small cards on right */
.gratis-cover::after {
  content: '';
  position: absolute;
  right: -12px; top: 8px;
  width: 14px; height: calc(100% - 16px);
  background: linear-gradient(to right,
    rgba(220,210,195,.6) 0px,
    rgba(230,220,205,.3) 5px,
    rgba(235,225,210,.12) 9px,
    transparent 14px
  );
  border-radius: 0 4px 4px 0;
  z-index: -1;
}

.gratis-cover-series {
  font-size: 8px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.45); font-weight: 500; position: relative; z-index: 1;
}
.gratis-cover-bottom {
  display: flex; flex-direction: column; gap: 16px;
  position: relative; z-index: 1;
}
.gratis-cover-title {
  font-family: var(--serif); font-size: 18px; color: #fff;
  font-weight: 400; line-height: 1.2;
}
.gratis-cover-title em { font-style: italic; font-weight: 300; }
.gratis-cover-foot {
  display: flex; align-items: center; justify-content: space-between;
}
.gratis-cover-tag {
  font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.8);
  padding: 5px 10px; border-radius: 4px; backdrop-filter: blur(8px);
}
.gc-publisher {
  font-family: var(--serif); font-size: 9px;
  color: rgba(255,255,255,.28); letter-spacing: .1em; font-weight: 600;
}

/* Right: info column */
.gratis-info {}
.gratis-kicker {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--primary); font-weight: 600; margin-bottom: 20px;
}
.gratis-h {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 46px);
  color: var(--text); font-weight: 400; line-height: 1.1;
  letter-spacing: -.03em; margin-bottom: 20px;
  hyphens: auto; overflow-wrap: break-word;
}
.gratis-h em { font-style: italic; font-weight: 300; color: var(--primary); }
.gratis-line {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text); font-weight: 300; font-style: italic;
  line-height: 1.5; letter-spacing: -.02em;
  margin-bottom: 36px;
}
.gratis-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: #fff;
  background: var(--text);
  padding: 16px 32px; border-radius: 6px;
  transition: background .2s, transform .15s;
}
.gratis-btn:hover { background: var(--primary); transform: translateY(-2px); }
.gratis-note {
  display: block; margin-top: 14px;
  font-size: 12px; color: var(--subtle); font-weight: 300;
}

/* ── SC VALUE SPECS ── */
.sc-specs {
  font-size: 10px; color: var(--subtle); font-weight: 300;
  margin-top: 3px; letter-spacing: .01em;
}

/* ── TESTIMONIAL ── */
.section-testimonial {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 0;
}
.testimonial-inner {
  max-width: 760px;
  position: relative;
}
.testimonial-mark {
  font-family: var(--serif);
  font-size: 80px; line-height: .7;
  color: var(--primary); opacity: .35;
  margin-bottom: 12px; display: block;
  font-weight: 600;
}
.testimonial-q {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--text); font-weight: 300; font-style: italic;
  line-height: 1.45; letter-spacing: -.02em;
  margin: 0 0 28px;
}
.testimonial-person {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted); font-weight: 400;
}
.testimonial-name { font-weight: 600; color: var(--text); }
.testimonial-sep { color: var(--border); }
.testimonial-title { font-weight: 300; }

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-top {
  padding: 64px 0 56px;
  display: grid;
  grid-template-columns: 1fr 160px 160px;
  gap: 64px;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand {}
.footer-logo {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  color: rgba(255,255,255,.6); letter-spacing: -.025em;
  display: block; margin-bottom: 8px;
}
.footer-logo span { color: var(--primary); }
.footer-tagline {
  font-size: 13px; color: rgba(255,255,255,.2);
  font-weight: 300; line-height: 1.5; margin-bottom: 12px;
}
.footer-om {
  font-size: 12px; color: rgba(255,255,255,.18);
  font-weight: 300; line-height: 1.65; max-width: 260px;
}
.footer-col-head {
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.18); font-weight: 600; margin-bottom: 16px;
}
.footer-col-links {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-link {
  font-size: 13px; color: rgba(255,255,255,.32);
  font-weight: 300; transition: color .15s;
}
.footer-link:hover { color: rgba(255,255,255,.72); }
.footer-bottom {
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.18); font-weight: 300; }
.footer-saysome {
  font-size: 12px; color: rgba(255,255,255,.28); font-weight: 300;
}
.footer-saysome a {
  color: rgba(255,255,255,.45); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.2);
  transition: color .15s;
}
.footer-saysome a:hover { color: rgba(255,255,255,.75); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 64px; }
  .shelf-outer { margin: 0 -24px; padding: 0 24px 40px; }
  .products-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .gratis-strip { grid-template-columns: 1fr; gap: 28px; }
  .gratis-cover { max-width: 160px; }
  .gratis-cta-col { align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  /* Mobile hero: show one book card instead of hiding */
  .hero-deck {
    display: block;
    width: 160px;
    height: auto;
    margin: 40px auto 0;
  }
  .hero-deck .hc {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 160px;
  }
  .hero-deck .hc::after { display: none; }
  .hero-deck .hc:nth-child(2),
  .hero-deck .hc:nth-child(3) { display: none; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .shelf-card { width: 240px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .testimonial-inner { max-width: 100%; }
  .gratis-btn { width: 100%; justify-content: center; }
}
