/* KN Studio microsite
   Type and base tokens follow www.knowledgenow.ca (Merriweather / Pontano Sans / Almarai,
   dark teal, cream). The mauve family comes from the KN Studio logo and illustration. */

:root {
  --mauve: #7b585d;          /* illustration background, logo "kn" */
  --mauve-deep: #5d4247;     /* video caption band */
  --mauve-soft: #a07f83;
  --rose: #9b7a7e;
  --studio-teal: #74989a;    /* logo accent */
  --dark-teal: #495959;      /* KN main site */
  --teal-link: #227277;
  --cream: #dcd9cf;
  --paper: #f6f3ef;
  --ink: #1f1a1b;
  --muted: #5b5355;
  --white: #fff;

  --font-heading: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Pontano Sans", system-ui, sans-serif;
  --font-button: "Almarai", system-ui, sans-serif;

  --container: 1200px;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(31 26 27 / .06), 0 10px 30px rgb(31 26 27 / .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgb(123 88 93 / .15);
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[id] { scroll-margin-top: 88px; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-link); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: max(32px, env(safe-area-inset-left)) max(32px, env(safe-area-inset-right)); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--studio-teal); outline-offset: 3px; }

/* Buttons (shape and type mirror the main site's .btn) */
.btn {
  display: inline-block;
  font-family: var(--font-button);
  font-size: 16px;
  line-height: 1.2;
  padding: 15px 26px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity .12s linear, background-color .12s linear;
  cursor: pointer;
}
.btn:hover { opacity: .88; }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--mauve { background: var(--mauve); color: var(--white); }
.btn--dark { background: var(--dark-teal); color: var(--white); }
.btn--outline { color: var(--white); border-color: rgb(255 255 255 / .7); }
.btn--outline:hover { background: rgb(255 255 255 / .1); opacity: 1; }

.eyebrow {
  font-family: var(--font-button);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--cream); }

/* Header */
.header { background: var(--white); border-bottom: 1px solid #ece7e3; position: sticky; top: 0; z-index: 20; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.header__brand img { height: 56px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 28px; }
.header__nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 16px; }
.header__nav a:not(.btn):hover { color: var(--mauve); text-decoration: underline; text-underline-offset: 4px; }
.header__nav .header__parent { color: var(--muted); }
.header__nav .btn { padding: 12px 20px; }

/* Hero */
.hero { background: var(--mauve); color: var(--white); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px; min-height: min(78vh, 760px); }
.hero__copy { padding: 72px 0; position: relative; z-index: 1; }
.hero__title { font-size: clamp(38px, 4.6vw, 60px); margin-bottom: 22px; color: var(--white); }
.hero__lede { font-size: 21px; line-height: 1.5; max-width: 30ch; color: rgb(255 255 255 / .92); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__art { margin: 0 -48px 0 -24px; }
.hero__art img { width: 100%; }

/* Sections */
.section { padding: 104px 0; }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--mauve { background: var(--mauve-deep); color: var(--white); }
.section__title { font-size: clamp(28px, 3.2vw, 40px); max-width: 22ch; margin-bottom: 20px; color: var(--mauve-deep); }
.section__title--left { max-width: none; }
.section__title--light { color: var(--white); }
.section__lede { font-size: 20px; max-width: 58ch; color: var(--muted); }

/* Problem */
.problem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.problem-card { background: var(--paper); border-radius: var(--radius); padding: 34px 34px 26px; }
.problem-card h3 { font-size: 22px; margin: 22px 0 10px; color: var(--ink); }
.problem-card p { color: var(--muted); margin: 0; }
.problem-card__tags { display: flex; gap: 10px; flex-wrap: wrap; min-height: 38px; align-items: center; }
.tag { font-family: var(--font-button); font-weight: 800; font-size: 15px; letter-spacing: .04em; color: var(--white); padding: 6px 12px; border-radius: 6px; }
.tag--mauve { background: var(--mauve); }
.tag--teal { background: var(--dark-teal); }
.tag--rose { background: var(--rose); }
.flag { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 2px solid var(--mauve-deep); color: var(--mauve-deep); font-weight: 700; font-size: 16px; padding: 5px 16px 5px 6px; border-radius: 999px; }
.flag__dot { width: 24px; height: 24px; border-radius: 50%; background: var(--mauve-deep); color: var(--white); display: grid; place-items: center; font-size: 14px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: none; }
.step { border-top: 3px solid var(--mauve); padding-top: 22px; }
.step__num { font-family: var(--font-heading); font-size: 15px; color: var(--mauve); font-weight: 700; }
.step h3 { font-size: 21px; margin: 6px 0 8px; }
.step p { color: var(--muted); margin: 0; }

/* Outcome cards (recreate the video's "up to date" frames) */
.outcomes { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.outcome { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.outcome__mock { position: relative; width: 100%; aspect-ratio: 16 / 8; background: var(--white); border-radius: 10px; box-shadow: var(--shadow); padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.outcome__mock::after { content: ""; position: absolute; top: -11px; right: -11px; width: 28px; height: 28px; border-radius: 50%; background: var(--studio-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; border: 3px solid var(--paper); }
.mock-bar { height: 8px; width: 100%; background: repeating-linear-gradient(90deg, var(--mauve-soft) 0 22%, transparent 22% 26%); border-radius: 4px; opacity: .6; margin-bottom: 6px; }
.mock-line { height: 9px; border-radius: 5px; background: var(--dark-teal); }
.mock-line--w70 { width: 70%; } .mock-line--w60 { width: 60%; } .mock-line--w50 { width: 50%; } .mock-line--w40 { width: 40%; }
.mock-row { margin-top: auto; display: flex; align-items: center; gap: 12px; background: #eef1f0; border-radius: 8px; padding: 10px 12px; }
.mock-row .mock-line { background: var(--studio-teal); flex: 0 0 auto; }
.mock-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--rose); flex: none; }
.mock-chip { width: 22px; height: 22px; border-radius: 5px; background: var(--mauve); margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1.5px solid var(--dark-teal); color: var(--dark-teal); font-weight: 700; font-size: 15px; padding: 6px 16px 6px 8px; border-radius: 999px; }
.check { width: 20px; height: 20px; border-radius: 50%; background: var(--dark-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Split / sync panel */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split__copy p:not(.eyebrow) { color: var(--muted); font-size: 19px; max-width: 46ch; margin-bottom: 30px; }
.sync-panel { background: var(--mauve); border-radius: var(--radius); padding: 40px; color: var(--ink); }
.sync-panel__title { background: var(--white); margin: 0; padding: 22px 26px 6px; border-radius: 10px 10px 0 0; font-weight: 700; color: var(--mauve-deep); font-size: 18px; }
.sync-list { list-style: none; margin: 0; padding: 8px 26px 22px; background: var(--white); border-radius: 0 0 10px 10px; }
.sync-list li { display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: 17px; border-bottom: 1px solid #f0ebe8; }
.sync-list li:last-child { border-bottom: 0; font-weight: 700; }
.box { width: 22px; height: 22px; border-radius: 5px; flex: none; background: var(--dark-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.sync-list__final .box { background-color: var(--mauve); }
.sync-progress { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.sync-progress__bar { flex: 1; height: 8px; border-radius: 4px; background: rgb(255 255 255 / .25); position: relative; overflow: hidden; }
.sync-progress__bar::after { content: ""; position: absolute; inset: 0; width: 100%; background: var(--cream); border-radius: 4px; transform-origin: left; animation: sync 3.2s ease-in-out infinite; }
.sync-progress__label { color: var(--white); font-size: 15px; font-weight: 700; }
@keyframes sync { 0% { transform: scaleX(.05); } 70%, 100% { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .sync-progress__bar::after { animation: none; } }

/* Video */
.video-frame { margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgb(0 0 0 / .3); background: var(--mauve); }
.video-frame { position: relative; }
.video-frame video { width: 100%; }
.video-toggle { position: absolute; top: 16px; left: 16px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-button); font-size: 14px; color: var(--white); background: rgb(40 28 30 / .62); border: 1px solid rgb(255 255 255 / .35); border-radius: 999px; padding: 8px 14px 8px 10px; cursor: pointer; backdrop-filter: blur(4px); }
.video-toggle:hover { background: rgb(40 28 30 / .8); }
.video-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="false"] .i-play { display: block; }
.video-toggle[aria-pressed="false"] .i-pause { display: none; }

/* CTA */
.cta { background: var(--mauve); color: var(--white); padding: 96px 0; }
.cta__inner { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; }
.cta__logo { width: 200px; }
.cta__title { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 16px; }
.cta__lede { font-size: 20px; color: rgb(255 255 255 / .9); max-width: 50ch; margin-bottom: 30px; }

/* Footer (mirrors the main site's footer layout) */
.footer { background: var(--white); padding: 64px 0 max(36px, env(safe-area-inset-bottom)); font-size: 16px; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 48px; }
.footer__brand img { width: 220px; margin-bottom: 16px; }
.footer__brand p { margin: 0 0 6px; color: var(--muted); }
.footer__col h3 { font-size: 17px; margin-bottom: 14px; color: var(--ink); }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 8px; }
.footer a { color: var(--dark-teal); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__bottom { text-align: center; margin-top: 48px; color: var(--muted); font-size: 14px; }

/* Responsive */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero__copy { padding: 56px 0 8px; }
  .hero__lede { max-width: none; }
  .hero__art { margin: 0 -32px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .steps, .outcomes { grid-template-columns: 1fr; }
  .outcomes { max-width: 420px; margin-left: auto; margin-right: auto; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .container { padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
  [id] { scroll-margin-top: 72px; }

  /* Header: compact, frosted, logo + one action */
  .header { background: rgb(255 255 255 / .9); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
  .header__inner { padding-top: 10px; padding-bottom: 10px; }
  .header__nav a:not(.btn) { display: none; }
  .header__brand img { height: 40px; }
  .header__nav .btn { padding: 0 18px; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }

  /* Hero: tighter, art pulled up, stacked full-width buttons */
  .hero__copy { padding: 40px 0 4px; }
  .eyebrow { font-size: 12px; letter-spacing: .1em; margin-bottom: 12px; }
  .hero__title { font-size: 38px; line-height: 1.12; margin-bottom: 16px; letter-spacing: -.01em; }
  .hero__lede { font-size: 18px; margin-bottom: 26px; }
  .hero__actions { flex-direction: column; gap: 12px; }
  .hero__actions .btn { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; }
  .hero__art { margin: 8px -20px 0; }

  .section { padding: 64px 0; }
  .section__title { font-size: 27px; line-height: 1.22; }
  .section__lede { font-size: 17.5px; }

  .problem-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .problem-card { padding: 26px 22px 24px; }
  .problem-card h3 { font-size: 20px; margin-top: 18px; }

  .steps { margin-top: 36px; gap: 24px; }
  .step { display: grid; grid-template-columns: 36px 1fr; column-gap: 4px; padding-top: 18px; }
  .step__num { grid-row: span 2; font-size: 20px; line-height: 1.3; }
  .step h3 { margin-top: 0; font-size: 19px; }

  /* Outcomes: swipeable row instead of three tall stacked cards */
  .outcomes { display: flex; max-width: none; gap: 14px; margin: 40px -20px 0; padding: 14px 20px 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .outcomes::-webkit-scrollbar { display: none; }
  .outcome { flex: 0 0 76%; scroll-snap-align: start; gap: 14px; }
  .outcome__mock { padding: 16px 16px 14px; gap: 8px; }

  .split { gap: 36px; }
  .split__copy p:not(.eyebrow) { font-size: 17.5px; }
  .split__copy .btn, .cta .btn { min-height: 52px; display: inline-flex; align-items: center; }
  .sync-panel { padding: 18px; }
  .sync-panel__title { padding: 18px 20px 4px; }
  .sync-list { padding: 4px 20px 16px; }
  .sync-list li { font-size: 16px; padding: 10px 0; }

  /* Video: full-bleed so the burned-in captions are as large as possible */
  .video-frame { margin: 28px -20px 0; border-radius: 0; box-shadow: none; }
  .video-toggle { top: 10px; left: 10px; }

  .cta { padding: 64px 0; }
  .cta__inner { grid-template-columns: 1fr; gap: 24px; }
  .cta__logo { width: 104px; }
  .cta__title { font-size: 30px; }
  .cta__lede { font-size: 17.5px; }

  .footer { padding-top: 48px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__brand img { width: 190px; }
  .footer__col li { margin: 0; }
  .footer__col a, .footer__brand a[href^="mailto"] { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__col h3 { margin-bottom: 2px; }
  .footer__bottom { margin-top: 32px; padding-inline: 20px; }
}
