:root {
  --navy: #0b3557;
  --navy-deep: #06283f;
  --teal: #0d9496;
  --teal-dark: #087476;
  --aqua: #d8f5f1;
  --aqua-soft: #eefaf8;
  --gold: #f4bb49;
  --cream: #fbfaf6;
  --ink: #183345;
  --muted: #5e7482;
  --line: #d5e3e5;
  --white: #fff;
  --shadow: 0 24px 70px rgba(7, 45, 70, .14);
  --shadow-soft: 0 12px 34px rgba(7, 45, 70, .09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: 10px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(11, 53, 87, .11);
  background: rgba(251, 250, 246, .95);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand img { display: block; }

.brand > span {
  display: grid;
  gap: 0;
}

.brand strong {
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.2;
}

.brand small {
  color: var(--teal-dark);
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-header nav a {
  padding: 10px 11px;
  color: #28475d;
  border-radius: 10px;
  font-size: .86rem;
  font-weight: 720;
  text-decoration: none;
}

.site-header nav a:hover { color: var(--teal-dark); background: #edf7f5; }

.site-header nav .home-link {
  padding: 11px 16px;
  margin-left: 8px;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
}

.site-header nav .home-link:hover { color: var(--white); background: var(--teal-dark); }

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 78px);
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: clamp(42px, 6vw, 100px);
  padding: clamp(72px, 9vw, 130px) clamp(24px, 7vw, 112px);
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 18%, rgba(55, 214, 202, .2), transparent 28%),
    radial-gradient(circle at 96% 86%, rgba(244, 187, 73, .16), transparent 26%),
    var(--cream);
}

.hero::after {
  position: absolute;
  right: -130px;
  bottom: -210px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(13, 148, 150, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(13, 148, 150, .045), 0 0 0 130px rgba(13, 148, 150, .025);
  content: "";
}

.hero-copy, .hero-story { position: relative; z-index: 2; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--teal-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow > span { width: 34px; height: 2px; background: currentColor; }

.eyebrow.light { color: #83ddd4; }

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.2rem, 6.7vw, 7.2rem);
  letter-spacing: -.065em;
  line-height: .93;
}

.hero h1 em { display: block; color: var(--teal); font-style: normal; }

.hero-lead {
  max-width: 700px;
  margin: 28px 0 0;
  color: #466171;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: .88rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--white); background: var(--teal); box-shadow: 0 12px 28px rgba(13, 148, 150, .2); }
.button.primary:hover { background: var(--teal-dark); }
.button.secondary { color: var(--navy); border-color: #c8dadd; background: var(--white); }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.hero-facts li { padding: 0 14px; border-left: 1px solid var(--line); }
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.hero-facts strong { display: block; color: var(--navy); font-size: .83rem; }
.hero-facts span { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; }

.hero-story {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 30px;
  background: linear-gradient(145deg, #0b3557, #0a5267);
  box-shadow: 0 36px 90px rgba(4, 36, 56, .25);
  transform: rotate(1deg);
}

.story-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 20px;
  color: var(--white);
}

.story-head > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--navy);
  border-radius: 14px;
  background: var(--gold);
  font-weight: 950;
}

.story-head div { display: grid; }
.story-head small { color: #85dfd6; font-size: .67rem; font-weight: 900; letter-spacing: .11em; }
.story-head strong { font-size: .93rem; }

.hero-story ol { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }

.hero-story li {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 13px 16px;
  overflow: hidden;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 15px;
  background: rgba(255, 255, 255, .08);
}

.hero-story li::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: #4bd4c7;
  content: "";
  transform: scaleY(0);
  transform-origin: bottom;
  animation: story-line 8s ease-in-out infinite;
}

.hero-story li:nth-child(2)::after { animation-delay: 2s; }
.hero-story li:nth-child(3)::after { animation-delay: 4s; }
.hero-story li:nth-child(4)::after { animation-delay: 6s; }

@keyframes story-line {
  0%, 18% { transform: scaleY(1); }
  25%, 100% { transform: scaleY(0); }
}

.hero-story li > span { color: var(--gold); font-size: .76rem; font-weight: 900; }
.hero-story li div { display: grid; gap: 3px; }
.hero-story li small { color: #9adfd9; font-size: .64rem; font-weight: 850; letter-spacing: .1em; }
.hero-story li strong { font-size: .87rem; line-height: 1.35; }
.hero-story > p { display: flex; align-items: center; gap: 8px; margin: 18px 4px 2px; color: rgba(255,255,255,.72); font-size: .78rem; }
.hero-story > p span { color: var(--gold); }

.section { padding: clamp(78px, 9vw, 130px) clamp(24px, 7vw, 112px); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  align-items: end;
  gap: 40px;
  max-width: 1450px;
  margin: 0 auto 44px;
}

.section-heading > div { position: relative; }
.part-number { display: block; margin-bottom: 16px; color: var(--gold); font-size: .75rem; font-weight: 950; letter-spacing: .12em; }
.section-heading .eyebrow { margin-bottom: 10px; }

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.25rem, 4.5vw, 4.9rem);
  letter-spacing: -.05em;
  line-height: .98;
}

.section-heading > p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.section-heading.light h2 { color: var(--white); }
.section-heading.light > p { color: rgba(255,255,255,.7); }

.demo-section { background: var(--white); }

.demo-workspace {
  display: grid;
  max-width: 1450px;
  grid-template-columns: minmax(330px, .72fr) minmax(520px, 1.28fr);
  gap: 18px;
  margin: 0 auto;
}

.demo-controls, .demo-result {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 26px;
}

.demo-controls { display: grid; gap: 17px; background: var(--cream); box-shadow: var(--shadow-soft); }

.control-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.control-heading > span { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; color: var(--navy); background: var(--gold); border-radius: 13px; }
.control-heading div { display: grid; }
.control-heading small { color: var(--teal-dark); font-size: .66rem; font-weight: 900; letter-spacing: .1em; }
.control-heading h3 { margin: 1px 0 0; color: var(--navy); font-size: 1.35rem; }

.demo-controls > label, .demo-controls fieldset { display: grid; gap: 7px; padding: 0; margin: 0; border: 0; }
.demo-controls > label > span, .demo-controls legend { color: #3d5b6d; font-size: .8rem; font-weight: 850; }

.demo-controls select {
  width: 100%;
  min-height: 50px;
  padding: 0 13px;
  color: var(--navy);
  border: 1px solid #c7dadd;
  border-radius: 12px;
  background: var(--white);
}

.choice-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.choice-row label, .situation-grid label { cursor: pointer; }
.choice-row input, .situation-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row span { display: grid; min-height: 44px; place-items: center; border: 1px solid #c7dadd; border-radius: 11px; background: var(--white); color: #36576a; font-size: .77rem; font-weight: 850; }
.choice-row input:checked + span { color: var(--navy); border-color: var(--gold); background: #fff5df; box-shadow: inset 0 0 0 1px var(--gold); }

.situation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.situation-grid label > span { display: grid; min-height: 94px; align-content: center; gap: 1px; padding: 10px; border: 1px solid #c7dadd; border-radius: 12px; background: var(--white); }
.situation-grid b { display: grid; width: 26px; height: 26px; margin-bottom: 5px; place-items: center; color: var(--teal-dark); background: var(--aqua); border-radius: 8px; font-size: .7rem; }
.situation-grid strong { color: var(--navy); font-size: .77rem; }
.situation-grid small { color: var(--muted); font-size: .64rem; }
.situation-grid input:checked + span { border-color: var(--teal); background: var(--aqua-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.choice-row input:focus-visible + span, .situation-grid input:focus-visible + span { outline: 3px solid rgba(13,148,150,.22); outline-offset: 2px; }

.generate-button {
  min-height: 52px;
  margin-top: 2px;
  color: var(--white);
  border: 0;
  border-radius: 13px;
  background: var(--teal);
  font-size: .86rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(13,148,150,.18);
}
.generate-button:hover { background: var(--teal-dark); }
.local-line { margin: -4px 0 0; color: var(--muted); font-size: .7rem; text-align: center; }
.local-line span { color: var(--teal); font-weight: 900; }

.demo-result {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy-deep), #0c5268);
  border-color: rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}

.demo-result > header { display: grid; grid-template-columns: 12px 1fr; align-items: start; gap: 13px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.15); }
.ready-dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: #53d2a0; box-shadow: 0 0 0 6px rgba(83,210,160,.13); }
.demo-result header small { color: #92e3da; font-size: .67rem; font-weight: 900; letter-spacing: .1em; }
.demo-result header h3 { margin: 4px 0 3px; font-size: clamp(1.6rem, 3vw, 2.55rem); line-height: 1.12; }
.demo-result header p { margin: 0; color: rgba(255,255,255,.65); font-size: .79rem; }

.result-goal { padding: 17px 18px; margin: 22px 0 15px; color: var(--navy); border-left: 4px solid var(--gold); border-radius: 0 13px 13px 0; background: rgba(255,255,255,.95); }
.result-goal small { color: var(--teal-dark); font-size: .65rem; font-weight: 900; letter-spacing: .09em; }
.result-goal p { margin: 5px 0 0; font-size: .94rem; font-weight: 760; line-height: 1.5; }

.result-steps { display: grid; gap: 8px; padding: 0; margin: 0 0 17px; list-style: none; }
.result-steps li { display: grid; grid-template-columns: 54px 1fr; gap: 11px; align-items: center; min-height: 64px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(255,255,255,.07); }
.result-steps li > span { display: grid; place-items: center; min-height: 36px; color: var(--gold); border-right: 1px solid rgba(255,255,255,.15); font-size: .73rem; font-weight: 900; }
.result-steps strong { display: block; font-size: .86rem; }
.result-steps p { margin: 2px 0 0; color: rgba(255,255,255,.68); font-size: .74rem; }

.result-route { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; margin-top: auto; color: var(--navy); border-radius: 13px; background: var(--aqua); }
.result-route div { display: grid; }
.result-route small { color: var(--teal-dark); font-size: .6rem; font-weight: 900; letter-spacing: .09em; }
.result-route strong { font-size: 1rem; }
.result-route > span { max-width: 300px; color: #3e6271; font-size: .71rem; text-align: right; }

.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.result-actions button, .result-actions a { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 11px; font-size: .77rem; font-weight: 850; text-decoration: none; cursor: pointer; }
.result-actions button { color: var(--white); border: 1px solid rgba(255,255,255,.23); background: rgba(255,255,255,.08); }
.result-actions a { color: var(--navy); background: var(--gold); }

.audience-section { background: var(--navy-deep); }
.audience-layout { display: grid; max-width: 1450px; grid-template-columns: minmax(280px, .72fr) minmax(500px, 1.28fr); gap: 16px; margin: 0 auto; }
.audience-tabs { display: grid; gap: 9px; }
.audience-tabs button { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 12px; min-height: 88px; padding: 13px 15px; color: var(--white); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.06); text-align: left; cursor: pointer; }
.audience-tabs button > span { display: grid; width: 44px; height: 44px; place-items: center; color: var(--navy); background: rgba(255,255,255,.9); border-radius: 12px; font-size: .75rem; font-weight: 950; }
.audience-tabs button div { display: grid; }
.audience-tabs strong { font-size: .92rem; }
.audience-tabs small { color: rgba(255,255,255,.6); font-size: .69rem; }
.audience-tabs button[aria-selected="true"] { color: var(--navy); border-color: var(--gold); background: var(--gold); box-shadow: 0 14px 30px rgba(244,187,73,.14); }
.audience-tabs button[aria-selected="true"] > span { color: var(--white); background: var(--navy); }
.audience-tabs button[aria-selected="true"] small { color: #4e6571; }

.audience-panel { position: relative; min-height: 355px; padding: clamp(28px, 4vw, 54px); overflow: hidden; color: var(--navy); border-radius: 24px; background: var(--white); box-shadow: 0 26px 70px rgba(0,0,0,.16); }
.audience-panel::after { position: absolute; right: -70px; bottom: -90px; width: 260px; height: 260px; border: 45px solid rgba(13,148,150,.07); border-radius: 50%; content: ""; }
.audience-panel > p:first-child { margin: 0 0 8px; color: var(--teal-dark); font-size: .7rem; font-weight: 950; letter-spacing: .12em; }
.audience-panel h3 { max-width: 740px; margin: 0; font-size: clamp(1.8rem, 3vw, 3.15rem); letter-spacing: -.04em; line-height: 1.08; }
.audience-panel > p:not(:first-child) { max-width: 800px; margin: 16px 0 20px; color: var(--muted); font-size: .95rem; }
.audience-panel ul { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 0; list-style: none; }
.audience-panel li { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--aqua-soft); color: #355567; font-size: .75rem; font-weight: 720; }
.audience-panel li::before { margin-right: 6px; color: var(--teal); content: "✓"; font-weight: 950; }
.audience-proof { position: relative; z-index: 2; display: flex; align-items: center; gap: 13px; margin-top: 22px; }
.audience-proof span { color: var(--gold); font-size: 2.7rem; font-weight: 950; line-height: 1; }
.audience-proof p { max-width: 390px; margin: 0; color: #38586a; font-size: .78rem; font-weight: 760; }

.tour-section { background: #f1f7f6; }
.tour-player { display: grid; max-width: 1220px; grid-template-columns: minmax(0, 1fr) 310px; margin: 0 auto; overflow: hidden; border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.tour-stage { position: relative; min-height: 560px; padding: clamp(28px, 4vw, 54px); overflow: hidden; color: var(--white); background: linear-gradient(145deg, #082f4b, #0a5266); }
.tour-stage::after { position: absolute; right: -120px; bottom: -140px; width: 390px; height: 390px; border: 75px solid rgba(255,255,255,.04); border-radius: 50%; content: ""; }
.tour-topline { position: relative; z-index: 2; display: flex; justify-content: space-between; color: #8de0d8; font-size: .68rem; font-weight: 900; letter-spacing: .1em; }
.tour-visual { position: relative; z-index: 2; display: grid; width: min(100%, 560px); min-height: 225px; place-items: center; margin: 60px auto 42px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: rgba(255,255,255,.07); }

.tour-visual::before, .tour-visual::after { display: grid; place-items: center; border-radius: 17px; font-weight: 950; }
.tour-visual::before { width: 96px; height: 96px; color: var(--navy); background: var(--gold); font-size: 2.1rem; content: "?"; box-shadow: 0 0 0 15px rgba(244,187,73,.1); }
.tour-visual::after { position: absolute; bottom: 20px; padding: 7px 11px; color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); font-size: .66rem; content: "6. bekkur · 40 mín."; }
.tour-visual.is-choice::before { content: "3"; background: var(--aqua); }
.tour-visual.is-choice::after { content: "bekkur · námsgrein · tími"; }
.tour-visual.is-lesson::before { color: var(--white); background: var(--teal); content: "✓"; }
.tour-visual.is-lesson::after { content: "upphaf · verkefni · aðlögun · lok"; }
.tour-visual.is-student::before { color: var(--navy); background: var(--white); content: "▰"; }
.tour-visual.is-student::after { content: "stórt · skýrt · tilbúið"; }
.tour-visual.is-privacy::before { color: var(--white); background: #38b987; content: "✓"; }
.tour-visual.is-privacy::after { content: "án óþarfrar gagnasöfnunar"; }
.tour-copy { position: relative; z-index: 2; max-width: 760px; }
.tour-copy > p:first-child { margin: 0 0 6px; color: #8de0d8; font-size: .68rem; font-weight: 900; letter-spacing: .11em; }
.tour-copy h3 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 3.45rem); letter-spacing: -.045em; line-height: 1.06; }
.tour-copy > p:last-child { max-width: 700px; margin: 13px 0 0; color: rgba(255,255,255,.7); font-size: .91rem; }

.tour-controls { display: flex; flex-direction: column; padding: 26px 22px; background: var(--white); }
.tour-progress { height: 5px; overflow: hidden; background: #dfebec; border-radius: 999px; }
.tour-progress span { display: block; width: 0; height: 100%; background: var(--teal); border-radius: inherit; transition: width .1s linear; }
.tour-buttons { display: grid; grid-template-columns: 42px 1fr 42px; gap: 7px; margin-top: 14px; }
.tour-buttons button { min-height: 44px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); font-size: .77rem; font-weight: 850; cursor: pointer; }
.tour-buttons .tour-play { color: var(--white); border-color: var(--navy); background: var(--navy); }
.tour-chapters { display: grid; gap: 5px; margin-top: 25px; }
.tour-chapters button { display: grid; grid-template-columns: 27px 1fr; align-items: center; gap: 9px; min-height: 48px; padding: 8px 9px; color: #55707e; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.tour-chapters button span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: .65rem; font-weight: 900; }
.tour-chapters button strong { font-size: .74rem; }
.tour-chapters button.is-active { color: var(--navy); background: var(--aqua-soft); }
.tour-chapters button.is-active span { color: var(--white); border-color: var(--teal); background: var(--teal); }

.pack-section { background: var(--white); }
.pack-grid { display: grid; max-width: 1450px; grid-template-columns: minmax(540px, 1.25fr) minmax(330px, .75fr); gap: 16px; margin: 0 auto; }
.deck-card, .onepage-card, .scripts-card { border: 1px solid var(--line); border-radius: 23px; background: var(--cream); box-shadow: var(--shadow-soft); }
.deck-card { display: flex; min-height: 650px; flex-direction: column; padding: 19px; }
.deck-card > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 4px 16px; }
.deck-card header div { display: grid; }
.deck-card header small, .onepage-card small, .scripts-card > small { color: var(--teal-dark); font-size: .66rem; font-weight: 900; letter-spacing: .11em; }
.deck-card header h3 { margin: 2px 0 0; color: var(--navy); font-size: 1.16rem; }
.deck-card header > span { padding: 7px 10px; color: #4f6876; border: 1px solid var(--line); background: var(--white); border-radius: 999px; font-size: .72rem; font-weight: 850; }
.deck-slide { display: flex; min-height: 500px; flex: 1; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 72px); overflow: hidden; color: var(--white); border-radius: 18px; background: linear-gradient(145deg, #092f4c, #0b5b6e); }
.deck-slide .slide-kicker { margin: 0 0 13px; color: #91e1d9; font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.deck-slide h4 { max-width: 740px; margin: 0; font-size: clamp(2rem, 4.2vw, 4.6rem); letter-spacing: -.055em; line-height: .99; }
.deck-slide > p { max-width: 690px; margin: 20px 0 0; color: rgba(255,255,255,.72); font-size: clamp(.92rem, 1.4vw, 1.15rem); }
.deck-slide ul { display: grid; gap: 8px; max-width: 780px; padding: 0; margin: 22px 0 0; list-style: none; }
.deck-slide li { padding: 11px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; background: rgba(255,255,255,.07); font-size: .82rem; font-weight: 720; }
.deck-slide li::before { margin-right: 8px; color: var(--gold); content: "✓"; }
.deck-slide .slide-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 25px; }
.deck-slide .slide-flow span { padding: 14px 9px; color: var(--navy); border-radius: 11px; background: var(--gold); font-size: .72rem; font-weight: 900; text-align: center; }
.deck-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 3px 0; }
.deck-card footer div { display: flex; gap: 6px; }
.deck-card footer button, .onepage-card button { min-height: 43px; padding: 9px 12px; color: var(--navy); border: 1px solid #c9dbde; border-radius: 10px; background: var(--white); font-size: .74rem; font-weight: 850; cursor: pointer; }
.deck-card footer .print-button, .onepage-card button { color: var(--white); border-color: var(--teal); background: var(--teal); }

.pack-side { display: grid; gap: 16px; }
.onepage-card { display: grid; grid-template-columns: 1fr 112px; align-items: center; gap: 16px; padding: 24px; }
.onepage-card h3, .scripts-card h3 { margin: 4px 0 7px; color: var(--navy); font-size: 1.25rem; }
.onepage-card p { margin: 0; color: var(--muted); font-size: .79rem; }
.onepage-card button { grid-column: 1 / -1; }
.qr-preview { display: grid; width: 108px; height: 108px; padding: 8px; place-items: center; background: var(--white); border-radius: 12px; }
.qr-preview svg { width: 100%; height: 100%; }

.scripts-card { padding: 24px; }
.scripts-card details { border-top: 1px solid var(--line); }
.scripts-card details:first-of-type { margin-top: 16px; }
.scripts-card summary { display: flex; min-height: 50px; align-items: center; justify-content: space-between; color: var(--navy); font-size: .82rem; font-weight: 850; list-style: none; cursor: pointer; }
.scripts-card summary::-webkit-details-marker { display: none; }
.scripts-card summary span { color: var(--teal); font-size: 1.1rem; transition: transform .18s ease; }
.scripts-card details[open] summary span { transform: rotate(45deg); }
.scripts-card details p { padding: 0 3px 16px; margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.65; }
.scripts-card details strong { color: var(--teal-dark); }

.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(56px, 7vw, 90px) clamp(24px, 7vw, 112px); color: var(--white); background: linear-gradient(135deg, var(--navy-deep), #0b5267); }
.final-cta h2 { margin: 0; font-size: clamp(2.2rem, 4.5vw, 4.8rem); letter-spacing: -.05em; line-height: 1; }
.final-cta p:last-child { margin: 13px 0 0; color: rgba(255,255,255,.68); }
.final-cta > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.button.gold { color: var(--navy); background: var(--gold); }
.button.outline { color: var(--white); border-color: rgba(255,255,255,.35); background: transparent; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px clamp(24px, 7vw, 112px); color: #617683; background: var(--cream); font-size: .73rem; }
.site-footer .brand strong { font-size: .92rem; }
.site-footer .brand small { font-size: .58rem; }

.student-dialog { width: 100vw; max-width: none; height: 100vh; max-height: none; padding: 0; border: 0; background: var(--navy-deep); }
.student-dialog::backdrop { background: rgba(3,22,35,.84); }
.student-screen { min-height: 100%; color: var(--white); background: radial-gradient(circle at 90% 10%, rgba(50,203,190,.18), transparent 25%), var(--navy-deep); }
.student-screen > header { display: flex; min-height: 84px; align-items: center; justify-content: space-between; padding: 16px clamp(24px,5vw,70px); border-bottom: 1px solid rgba(255,255,255,.12); }
.student-screen > header div { display: flex; align-items: center; gap: 11px; }
.student-screen > header div span { display: grid; width: 42px; height: 42px; place-items: center; color: var(--navy); background: var(--gold); border-radius: 12px; font-weight: 950; }
.student-screen > header button { display: grid; width: 44px; height: 44px; place-items: center; color: var(--white); border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: transparent; font-size: 1.5rem; cursor: pointer; }
.student-screen > main { max-width: 1280px; padding: clamp(50px,8vw,110px) clamp(24px,7vw,100px); margin: 0 auto; }
.student-screen > main > p { margin: 0 0 8px; color: #8be0d7; font-size: .8rem; font-weight: 900; letter-spacing: .12em; }
.student-screen h2 { max-width: 900px; margin: 0 0 28px; font-size: clamp(3rem,7vw,7rem); letter-spacing: -.06em; line-height: .95; }
.student-screen main > div { padding: 20px 22px; color: var(--navy); border-radius: 16px; background: var(--gold); }
.student-screen main > div small { font-size: .7rem; font-weight: 900; letter-spacing: .1em; }
.student-screen main > div p { margin: 4px 0 0; font-size: clamp(1rem,2vw,1.45rem); font-weight: 800; }
.student-screen ol { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; padding: 0; margin: 18px 0 0; list-style: none; }
.student-screen li { min-height: 150px; padding: 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.07); }
.student-screen li span { display: block; margin-bottom: 12px; color: var(--gold); font-size: .75rem; font-weight: 950; }
.student-screen li strong { display: block; font-size: clamp(1rem,1.5vw,1.25rem); }
.student-screen li p { margin: 6px 0 0; color: rgba(255,255,255,.65); font-size: .82rem; }

.print-deck, .print-onepage { display: none; }

button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(244,187,73,.8); outline-offset: 3px; }

@media (max-width: 1100px) {
  .site-header nav a:not(.home-link) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-story { width: min(100%, 760px); justify-self: center; transform: none; }
  .demo-workspace, .audience-layout, .pack-grid { grid-template-columns: 1fr; }
  .tour-player { grid-template-columns: 1fr; }
  .tour-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .tour-progress, .tour-buttons { grid-column: 1 / -1; }
  .tour-chapters { grid-column: 1 / -1; grid-template-columns: repeat(5,1fr); margin-top: 5px; }
  .tour-chapters button { grid-template-columns: 27px 1fr; }
  .pack-side { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-header { min-height: 70px; padding: 9px 16px; }
  .site-header nav .home-link { padding: 9px 12px; font-size: .72rem; }
  .brand img { width: 43px; height: 43px; }
  .brand small { font-size: .6rem; }
  .hero { min-height: auto; grid-template-columns: minmax(0,1fr); gap: 48px; padding: 65px 20px 75px; }
  .hero h1 { font-size: clamp(3rem,16vw,5rem); }
  .hero-facts { grid-template-columns: 1fr; gap: 11px; }
  .hero-facts li, .hero-facts li:first-child { padding: 0 0 0 12px; border-left: 2px solid var(--aqua); }
  .hero-story { padding: 16px; border-radius: 21px; }
  .hero-story li { grid-template-columns: 42px 1fr; min-height: 72px; padding: 10px 12px; }
  .section { padding: 72px 18px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 30px; }
  .section-heading h2 { font-size: clamp(2.35rem,12vw,3.7rem); }
  .demo-controls, .demo-result { padding: 20px; border-radius: 19px; }
  .choice-row { grid-template-columns: repeat(2,1fr); }
  .situation-grid { grid-template-columns: 1fr; }
  .situation-grid label > span { grid-template-columns: 34px 1fr; min-height: 64px; align-items: center; align-content: center; column-gap: 9px; }
  .situation-grid b { grid-row: 1 / 3; margin: 0; }
  .result-route { align-items: flex-start; flex-direction: column; }
  .result-route > span { max-width: none; text-align: left; }
  .result-actions { grid-template-columns: 1fr; }
  .audience-layout { gap: 10px; }
  .audience-tabs { grid-template-columns: repeat(3,1fr); }
  .audience-tabs button { display: flex; min-height: 94px; flex-direction: column; justify-content: center; gap: 5px; padding: 9px; text-align: center; }
  .audience-tabs button > span { width: 34px; height: 34px; }
  .audience-tabs small { display: none; }
  .audience-panel { min-height: 430px; padding: 25px 21px; }
  .audience-panel ul { grid-template-columns: 1fr; }
  .tour-stage { min-height: 610px; padding: 26px 20px; }
  .tour-visual { min-height: 210px; margin: 45px auto 34px; }
  .tour-controls { display: flex; }
  .tour-chapters { grid-template-columns: 1fr; }
  .deck-card { min-height: 610px; padding: 13px; }
  .deck-slide { min-height: 455px; padding: 28px 21px; }
  .deck-slide .slide-flow { grid-template-columns: repeat(2,1fr); }
  .deck-card > footer { align-items: stretch; flex-direction: column; }
  .deck-card footer div { display: grid; grid-template-columns: 1fr 1fr; }
  .pack-side { grid-template-columns: 1fr; }
  .onepage-card { grid-template-columns: 1fr 96px; }
  .qr-preview { width: 94px; height: 94px; }
  .final-cta { align-items: flex-start; flex-direction: column; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .student-screen ol { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@keyframes result-in {
  0% { box-shadow: 0 0 0 0 rgba(13, 148, 150, .3), var(--shadow-soft); }
  55% { box-shadow: 0 0 0 8px rgba(13, 148, 150, 0), var(--shadow-soft); }
  100% { box-shadow: var(--shadow-soft); }
}

.demo-result.result-refreshed { animation: result-in .42s ease; }

@page { margin: 0; }
@page deck { size: A4 landscape; margin: 0; }
@page onepage { size: A4 portrait; margin: 0; }

@media print {
  body { background: var(--white); }
  body > * { display: none !important; }

  body.printing-deck #print-deck {
    display: block !important;
  }

  .print-deck .print-slide {
    page: deck;
    position: relative;
    display: flex;
    width: 297mm;
    height: 210mm;
    flex-direction: column;
    justify-content: center;
    padding: 25mm 27mm;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(145deg, #082f4b, #0b5b6e);
    break-after: page;
    page-break-after: always;
  }

  .print-deck .print-slide:last-child { break-after: auto; page-break-after: auto; }
  .print-slide::after { position: absolute; right: -45mm; bottom: -50mm; width: 130mm; height: 130mm; border: 20mm solid rgba(255,255,255,.04); border-radius: 50%; content: ""; }
  .print-slide .slide-kicker { margin: 0; color: #8fe1d8; font-size: 11pt; font-weight: 900; letter-spacing: .12em; }
  .print-slide h2 { max-width: 235mm; margin: 5mm 0 0; font-size: 39pt; letter-spacing: -.04em; line-height: 1; }
  .print-slide > p { max-width: 220mm; margin: 8mm 0 0; color: rgba(255,255,255,.78); font-size: 16pt; line-height: 1.5; }
  .print-slide ul { display: grid; gap: 3mm; max-width: 225mm; padding: 0; margin: 9mm 0 0; list-style: none; }
  .print-slide li { padding: 3mm 4mm; border: .3mm solid rgba(255,255,255,.17); border-radius: 3mm; background: rgba(255,255,255,.07); font-size: 12pt; }
  .print-slide li::before { margin-right: 3mm; color: var(--gold); content: "✓"; }
  .print-slide .print-slide-number { position: absolute; right: 18mm; top: 15mm; color: rgba(255,255,255,.55); font-size: 10pt; font-weight: 800; }
  .print-slide .slide-flow { display: grid; grid-template-columns: repeat(4,1fr); gap: 3mm; margin-top: 9mm; }
  .print-slide .slide-flow span { padding: 5mm 3mm; color: var(--navy); border-radius: 3mm; background: var(--gold); font-size: 11pt; font-weight: 900; text-align: center; }

  body.printing-onepage #print-onepage {
    display: flex !important;
  }

  .print-onepage {
    page: onepage;
    width: 210mm;
    min-height: 297mm;
    flex-direction: column;
    padding: 15mm;
    color: var(--ink);
    background: var(--white);
  }

  .print-onepage > header { display: flex; align-items: center; gap: 4mm; padding-bottom: 5mm; border-bottom: .4mm solid var(--line); }
  .print-onepage > header div { display: grid; }
  .print-onepage > header strong { color: var(--navy); font-size: 17pt; }
  .print-onepage > header small { color: var(--teal-dark); font-size: 7pt; font-weight: 900; letter-spacing: .1em; }
  .print-onepage > section { padding: 14mm 0 9mm; }
  .print-eyebrow { margin: 0 0 3mm; color: var(--teal-dark); font-size: 8pt; font-weight: 900; letter-spacing: .11em; }
  .print-onepage h1 { max-width: 170mm; margin: 0; color: var(--navy); font-size: 34pt; letter-spacing: -.04em; line-height: 1; }
  .print-onepage .print-lead { max-width: 165mm; margin: 6mm 0 0; color: #4e6978; font-size: 12pt; line-height: 1.55; }
  .print-flow { display: grid; grid-template-columns: repeat(4,1fr); gap: 3mm; padding: 0; margin: 0 0 10mm; list-style: none; }
  .print-flow li { padding: 4mm; border: .35mm solid var(--line); border-radius: 3mm; }
  .print-flow span { display: grid; width: 8mm; height: 8mm; margin-bottom: 3mm; place-items: center; color: var(--navy); border-radius: 2mm; background: var(--gold); font-size: 8pt; font-weight: 900; }
  .print-flow strong { display: block; color: var(--navy); font-size: 10pt; }
  .print-flow small { color: #617784; font-size: 7pt; }
  .print-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 7mm; }
  .print-columns section { padding: 7mm; border-radius: 4mm; background: var(--aqua-soft); }
  .print-columns h2 { margin: 0 0 4mm; color: var(--navy); font-size: 15pt; }
  .print-columns ul { display: grid; gap: 2.4mm; padding: 0; margin: 0; list-style: none; }
  .print-columns li { color: #405f70; font-size: 8.5pt; line-height: 1.4; }
  .print-columns li::before { margin-right: 2mm; color: var(--teal); content: "✓"; font-weight: 900; }
  .print-onepage > footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 7mm; color: var(--white); border-radius: 4mm; background: var(--navy); }
  .print-onepage > footer div:first-child { display: grid; }
  .print-onepage > footer strong { font-size: 13pt; }
  .print-onepage > footer span { color: rgba(255,255,255,.72); font-size: 8pt; }
  #print-qr { width: 28mm; height: 28mm; padding: 2mm; background: var(--white); border-radius: 2mm; }
  #print-qr svg { width: 100%; height: 100%; }
}
