/* ---------------------------------------------------
   Tell Play — design tokens
--------------------------------------------------- */
:root {
  --paper: #faf9f6;
  --white: #ffffff;
  --ink: #1c1c1f;
  --ink-soft: #5b5d63;

  --lavender: #eae7f8;
  --lavender-deep: #cfc8ed;

  --teal-deep: #10849d;
  --teal-brand: #19b2b5;
  --mint-light: #bdeee3;

  --accent: #ef7b62;
  --accent-deep: #dd6249;

  --font-display: "Fredoka", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --container: 1200px;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

/* ---------------------------------------------------
   Reset
--------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.1; font-weight: 600; }
p { margin: 0; }
button { font: inherit; }
svg { display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--teal-deep);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------------------------------------------------
   Type helpers
--------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:active { opacity: .85; }
.btn:disabled { opacity: .6; cursor: default; }

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-deep); }

.btn-outline {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}
.btn-outline:hover { background: rgba(0,0,0,.06); }

.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* simple icon + text points — no cards, icon sits directly on the flat */
.point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.point-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  color: var(--accent);
  margin-top: 2px;
}
.point-icon svg { width: 30px; height: 30px; }
.point h3 {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
}
.point p {
  margin-top: 5px;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------------------------------------------------
   Header
--------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(28,28,31,.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--ink);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
  padding: 9px 16px;
  border-radius: 100px;
  transition: color .18s ease;
}
.main-nav a:hover { color: var(--teal-deep); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--paper);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle svg { width: 19px; height: 19px; }


/* ---------------------------------------------------
   Contact
--------------------------------------------------- */
.contact {
  background: var(--lavender);
  padding: 96px 0;
}
.contact .container {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 56px;
  align-items: start;
  max-width: 1080px;
}
.contact-intro h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
}
.contact-intro p {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 36ch;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: var(--ink);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 7px;
}
.form-row .optional {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-soft);
  font-size: .84rem;
}
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1.5px solid rgba(28,28,31,.14);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 2px;
}
.form-error {
  margin-top: 14px;
  font-size: .88rem;
  color: var(--accent-deep);
  text-align: center;
}
.form-success {
  display: none;
  text-align: center;
  padding: 24px 8px;
}
.form-success .icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.form-success h3 { font-size: 1.2rem; }
.form-success p { margin-top: 8px; color: var(--ink-soft); }
.contact-form.is-sent .contact-form-fields { display: none; }
.contact-form.is-sent .form-success { display: block; }

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.site-footer {
  background: var(--teal-brand);
  color: rgba(255,255,255,.82);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-nav a:hover { color: var(--white); }
.footer-meta { font-size: .85rem; }

/* =====================================================
   /storyplay — product page sections (prefixed .sp-)
===================================================== */

.sp-section-head { max-width: 700px; }
.sp-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sp-section-head h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sp-section-head p {
  margin-top: 16px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.sp-section-head .sp-sub {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Hero — centered product-page style */
.sp-hero {
  background: var(--teal-deep);
  color: var(--white);
  padding-top: 84px;
  overflow: hidden;
}
.sp-hero .container { text-align: center; }
.sp-hero-logo {
  width: 230px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.25));
}
.sp-hero-tagline {
  margin: 28px auto 0;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 17ch;
}
.sp-hero-intro {
  margin: 22px auto 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255,255,255,.86);
  max-width: 58ch;
}
.sp-hero-image {
  margin-top: 56px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  aspect-ratio: 18/7;
  max-height: 600px;
  overflow: hidden;
}
.sp-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hvorfor StoryPlay */
.sp-why { background: var(--white); padding: 110px 0; }
.sp-why-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.sp-why-points { display: flex; flex-direction: column; gap: 30px; }
.sp-why-points .point-icon { color: var(--teal-brand); }
.sp-why-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 20px 44px rgba(28,28,31,.14);
}
.sp-why-media img { width: 100%; height: 100%; object-fit: cover; }

/* StoryPlay i undervisningen */
.sp-steps { background: var(--lavender); padding: 110px 0; }
.sp-steps-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.sp-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(28,28,31,.12);
}
.sp-step:first-child { padding-top: 0; }
.sp-step:last-child { border-bottom: none; padding-bottom: 0; }
.sp-step-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--teal-brand);
  line-height: 1;
}
.sp-step-body { display: flex; flex-direction: column; }
.sp-step-heading { display: flex; align-items: center; gap: 10px; }
.sp-step-icon { width: 22px; height: 22px; color: var(--teal-deep); flex-shrink: 0; }
.sp-step-icon svg { width: 22px; height: 22px; }
.sp-step-heading h3 { font-size: 1.12rem; font-weight: 600; }
.sp-step-body p { margin-top: 8px; font-size: .97rem; line-height: 1.55; color: var(--ink-soft); }
.sp-steps-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 20px 44px rgba(28,28,31,.14);
}
.sp-steps-media img { width: 100%; height: 100%; object-fit: cover; }

/* Egne stemmer / følelser */
.sp-voices { background: var(--teal-brand); color: var(--white); padding: 88px 0; }
.sp-voices .sp-section-head p { color: rgba(255,255,255,.86); }
.sp-voices-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.sp-voices-tags { display: flex; flex-direction: column; gap: 20px; }
.sp-voices-tags .tag { display: flex; align-items: center; gap: 14px; }
.sp-voices-tags .tag-icon { width: 26px; height: 26px; color: var(--mint-light); flex-shrink: 0; }
.sp-voices-tags .tag-icon svg { width: 26px; height: 26px; }
.sp-voices-tags .tag span { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }

.sp-voices-characters { display: flex; justify-content: flex-end; }
.sp-voices-characters img {
  width: 55%;
  max-width: 220px;
  height: auto;
  margin-right: -12px;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.3));
}

/* Samarbejde — full-bleed image break */
.sp-collab {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 58vh;
  min-height: 400px;
  max-height: 580px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.sp-collab img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-collab::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16,132,157,.74);
}
.sp-collab-caption {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 0 max(28px, calc((100vw - var(--container)) / 2 + 28px));
  color: var(--white);
}
.sp-collab-caption h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 600; }
.sp-collab-caption p { margin: 12px auto 0; font-size: 1.06rem; line-height: 1.55; max-width: 58ch; color: rgba(255,255,255,.92); }

/* Skoletube */
.sp-skoletube { background: var(--teal-deep); color: var(--white); padding: 80px 0; text-align: center; }
.sp-skoletube .container { max-width: 640px; }
.sp-skoletube-icon {
  width: 46px; height: 46px;
  margin: 0 auto 20px;
  color: var(--mint-light);
}
.sp-skoletube-icon svg { width: 46px; height: 46px; }
.sp-skoletube h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 600; }
.sp-skoletube p { margin-top: 16px; font-size: 1.08rem; line-height: 1.6; color: rgba(255,255,255,.86); }

/* ---------------------------------------------------
   Reveal-on-scroll
--------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */
@media (max-width: 1080px) {
  .contact .container { grid-template-columns: 1fr; gap: 36px; }

  .sp-why-grid { grid-template-columns: 1fr; gap: 40px; }
  .sp-steps-grid { grid-template-columns: 1fr; gap: 40px; }
  .sp-steps-media { aspect-ratio: 16/10; order: -1; }
  .sp-voices-grid { grid-template-columns: 1fr; gap: 40px; }
  .sp-voices-characters { order: -1; justify-content: center; }
  .sp-voices-characters img { margin-right: 0; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }

  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid rgba(28,28,31,.07);
    padding: 10px 20px 20px;
    gap: 2px;
  }
  .site-header.is-nav-open .main-nav a { padding: 14px 12px; }
  .site-header.is-nav-open .main-nav .btn { margin: 10px 0 0; justify-content: center; }

  .contact { padding: 64px 0; }

  .contact-form { padding: 24px; }

  .sp-hero { padding-top: 56px; }
  .sp-hero-logo { width: 160px; }
  .sp-hero-image { margin-top: 40px; aspect-ratio: 4/5; max-height: 480px; }

  .sp-why, .sp-steps, .sp-voices, .sp-skoletube { padding: 64px 0; }
  .sp-voices-characters img { max-width: 190px; }

  .sp-collab { height: 46vh; min-height: 340px; }
  .sp-collab-caption { padding: 0 20px; }
}
