/* ============================================================
   Six Towns Daily — Media Pack
   Standalone stylesheet. Same brand tokens as the main site.
   ============================================================ */

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

:root {
  --red:    #C0392B;
  --dark:   #111;
  --body:   #333;
  --muted:  #888;
  --light:  #f6f6f6;
  --white:  #fff;
  --border: #ececec;
  --max:    1320px;
  --r:      999px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }

/* ── Container ── */
.c {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 700px) { .c { padding: 0 20px; } }

/* ── Typography helpers ── */
.kicker {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.08;
  letter-spacing: 0;
}
.h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: 0;
}
.lead-text {
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  color: #555;
  line-height: 1.75;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--r);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, color 0.2s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
/* Sheen sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn--red   { background: var(--red);   color: var(--white); box-shadow: 0 4px 14px rgba(192,57,43,0.28); }
.btn--red:hover { background: #a93226; box-shadow: 0 8px 24px rgba(192,57,43,0.35); }
.btn--ghost { background: transparent; color: var(--dark); border: 2px solid var(--border); }
.btn--ghost:hover { border-color: var(--dark); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--red);
  padding: 20px 0;
}
.site-header .c {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand svg { color: var(--white); flex-shrink: 0; }
.brand span {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn--white-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  height: 40px;
  font-size: 0.78rem;
}
.btn--white-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.14); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 100px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Soft animated dot-grid + radial glow behind the hero */
.hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  background-image: radial-gradient(rgba(192,57,43,0.12) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 0%, transparent 72%);
  animation: heroDrift 40s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.hero .c { position: relative; z-index: 1; }
@keyframes heroDrift {
  from { background-position: 0 0; }
  to   { background-position: 260px 260px; }
}
.hero .kicker { margin-bottom: 20px; }
.hero .h1 { margin-bottom: 24px; }
.hero .lead-text { max-width: 600px; margin: 0 auto 40px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Staggered load-in for hero content */
.hero .kicker,
.hero .h1,
.hero .lead-text,
.hero__actions {
  opacity: 0;
  transform: translateY(22px);
  animation: heroRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero .kicker      { animation-delay: 0.05s; }
.hero .h1          { animation-delay: 0.18s; }
.hero .lead-text   { animation-delay: 0.32s; }
.hero__actions     { animation-delay: 0.46s; }
@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--red);
  padding: 48px 0;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.stats-bar.is-visible .stat-item { opacity: 1; transform: none; }
.stats-bar.is-visible .stat-item:nth-child(2) { transition-delay: 0.08s; }
.stats-bar.is-visible .stat-item:nth-child(3) { transition-delay: 0.16s; }
.stats-bar.is-visible .stat-item:nth-child(4) { transition-delay: 0.24s; }
.stat-item__val {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.stat-item__lbl {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
@media (max-width: 700px) {
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   METRICS (readership / reach)
   ============================================================ */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.metric-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 26px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s, border-color 0.35s;
}
.metric-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #e07264);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(17,17,17,0.08);
  border-color: #f2d5d1;
}
.metric-card:hover::before { transform: scaleX(1); }
.metric-card__val {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.metric-card__lbl {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 12px;
  line-height: 1.35;
}
.metric-card__note {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 6px;
}
.metric-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 28px;
  font-style: italic;
}
@media (max-width: 860px) { .metric-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .metric-grid { grid-template-columns: 1fr; } }

/* ============================================================
   DEMOGRAPHICS
   ============================================================ */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.demo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 26px 28px;
}
.demo-card__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}
.demo-card__foot {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 20px;
}

/* Horizontal bars */
.demo-bars { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.demo-bars li { display: flex; align-items: center; gap: 12px; }
.demo-bars__label {
  width: 92px;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--body);
}
.demo-bars__track {
  flex: 1;
  height: 8px;
  background: var(--light);
  border-radius: 999px;
  overflow: hidden;
}
.demo-bars__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), #e07264);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.is-in .demo-bars__fill { transform: scaleX(1); }
.demo-bars__pct {
  width: 38px;
  flex-shrink: 0;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--dark);
  font-variant-numeric: tabular-nums;
}

/* Donut (single headline percentage) */
.demo-donut {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 4px auto 0;
}
.demo-donut__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--red) 0deg, var(--light) 0deg);
  transition: background 1.1s cubic-bezier(0.22,1,0.36,1);
}
.demo-donut.is-filled .demo-donut__ring {
  background: conic-gradient(var(--red) calc(var(--mobile) * 3.6deg), var(--light) 0deg);
}
.demo-donut__ring::after {
  content: '';
  position: absolute;
  inset: 16px;
  background: var(--white);
  border-radius: 50%;
}
.demo-donut__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.demo-donut__num { font-size: 1.7rem; font-weight: 900; color: var(--dark); line-height: 1; }
.demo-donut__cap { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ============================================================
   ENGAGEMENT
   ============================================================ */
.engage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.engage-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 28px;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s;
}
.engage-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(17,17,17,0.08); }
.engage-card__val {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}
.engage-card__lbl {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--dark);
  margin-top: 12px;
}
.engage-card__text {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 10px;
}
@media (max-width: 760px) { .engage-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ============================================================
   SECTION
   ============================================================ */
.section {
  padding: 80px 0;
}
.section--grey { background: var(--light); }
.section__head {
  text-align: center;
  margin-bottom: 56px;
}
.section__head .kicker { margin-bottom: 12px; }
.section__head .h2 { margin-bottom: 16px; }
.section__head p { color: #666; max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* ============================================================
   AUDIENCE GRID
   ============================================================ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.audience-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
  will-change: transform;
}
.audience-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(17,17,17,0.08);
  border-color: #f2d5d1;
}
.audience-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fdecea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--red);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.35s;
}
.audience-card:hover .audience-card__icon {
  transform: scale(1.1) rotate(-6deg);
  background: #fbdad6;
}
.audience-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.audience-card__text {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}
@media (max-width: 860px) { .audience-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audience-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PLACEMENTS
   ============================================================ */
.placements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.placement-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.4s;
}
.placement-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(17,17,17,0.12);
}
.placement-card--featured {
  border-color: var(--red);
  box-shadow: 0 12px 34px rgba(192,57,43,0.14);
}
.placement-card--featured:hover {
  box-shadow: 0 30px 70px rgba(192,57,43,0.24);
}
.placement-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: var(--white);
  color: var(--red);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--r);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  animation: badgePulse 2.6s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
.placement-card__img {
  width: 100%;
  height: 190px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
/* Subtle moving dot texture across every placement image */
.placement-card__img::before {
  content: '';
  position: absolute;
  inset: -30%;
  background-image: radial-gradient(rgba(192,57,43,0.18) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.5;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.placement-card:hover .placement-card__img::before { transform: translate(14px, 14px) scale(1.05); }
.placement-card__img--red {
  background: linear-gradient(135deg, #d32f23 0%, #a93226 100%);
}
.placement-card__img--red::before {
  background-image: radial-gradient(rgba(255,255,255,0.22) 1.5px, transparent 1.5px);
  opacity: 0.7;
}
.placement-card__img svg {
  position: relative;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.placement-card__img--red svg { opacity: 0.95; }
.placement-card:not(.placement-card--featured) .placement-card__img svg { opacity: 0.28; }
.placement-card:hover .placement-card__img svg { transform: scale(1.12) rotate(3deg); }
.placement-card__body { padding: 26px 24px 28px; }
.placement-card__name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
.placement-card__desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.placement-card__price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.placement-card__price span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
@media (max-width: 700px) { .placements-grid { grid-template-columns: 1fr; } }

/* ============================================================
   WHAT YOU GET / CHECKLIST
   ============================================================ */
.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.check-item__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-item__icon svg { color: var(--white); }
.check-item__text {
  font-size: 0.86rem;
  color: var(--body);
  line-height: 1.5;
}
@media (max-width: 560px) { .checklist { grid-template-columns: 1fr; } }

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about-strip {
  padding: 80px 0;
}
.about-strip .c {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-strip__dots {
  display: flex;
  justify-content: center;
}
.about-strip__dots svg {
  opacity: 0.1;
  animation: dotsFloat 6s ease-in-out infinite;
}
@keyframes dotsFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}
.about-strip__dots svg circle { transition: opacity 0.3s; }
@media (max-width: 700px) {
  .about-strip .c { grid-template-columns: 1fr; gap: 40px; }
  .about-strip__dots { display: none; }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--red);
  padding: 80px 0;
  text-align: center;
}
.cta-banner .h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1rem; line-height: 1.7; margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-banner .btn--white { background: var(--white); color: var(--red); height: 48px; }
.cta-banner .btn--white:hover { background: #f0f0f0; }
.cta-banner__contact { margin-top: 20px; font-size: 0.78rem; color: rgba(255,255,255,0.65); }
.cta-banner__contact a { color: rgba(255,255,255,0.9); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.site-footer .c {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer p { font-size: 0.72rem; color: var(--muted); }
.site-footer a { color: var(--red); }

/* ============================================================
   SCROLL REVEAL
   Elements tagged [data-reveal] start hidden and animate in
   when they enter the viewport (toggled by JS via .is-in).
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Stagger children within a revealed group */
[data-reveal-group].is-in > * {
  animation: revealChild 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
[data-reveal-group].is-in > *:nth-child(1) { animation-delay: 0.00s; }
[data-reveal-group].is-in > *:nth-child(2) { animation-delay: 0.08s; }
[data-reveal-group].is-in > *:nth-child(3) { animation-delay: 0.16s; }
[data-reveal-group].is-in > *:nth-child(4) { animation-delay: 0.24s; }
[data-reveal-group].is-in > *:nth-child(5) { animation-delay: 0.32s; }
[data-reveal-group].is-in > *:nth-child(6) { animation-delay: 0.40s; }
[data-reveal-group] > * { opacity: 0; }
[data-reveal-group].is-in > * { opacity: 1; }
@keyframes revealChild {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   REDUCED MOTION — honour user preference, disable all motion
   ============================================================ */
@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;
  }
  [data-reveal],
  [data-reveal-group] > *,
  .hero .kicker, .hero .h1, .hero .lead-text, .hero__actions,
  .stat-item,
  .demo-bars__fill {
    opacity: 1 !important;
    transform: none !important;
  }
}
