/* The landing page's one stylesheet (marketing/site/index.html): Mo's "bold and playful"
   direction on his brand, "Indigo and coral", whose rules are docs/brand/brand.md's:
   - Indigo carries the brand: headings, the primary button and the big bands. Mist is the
     ground: panels and cards. Periwinkle is decoration alone, too light to read: the hand-drawn
     doodles. Coral is the dot: full stops, the badge's dot, the ribbon's separators and one
     sticker in the opening; never text and never a button's fill.
   - Three typefaces, each served from this site under its licence beside it in fonts/, so no
     visitor's address goes to a font service: Anton, condensed, in capitals, for the display
     headings, the numbers and the ribbon; Instrument Serif italic for a few short asides;
     Inter for everything read, in three weights: SemiBold (600) headings and labels, Medium
     (500) emphasis, Regular (400) reading text.
   - Buttons 44px high, 10px corners, 15px SemiBold labels; one primary button per view.
   The site's policy admits styles and fonts from this site alone, so the page carries no style
   attribute and no <style> block. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anton";
  src: url("/fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --indigo: #2b3a8f;
  --periwinkle: #8a94c7;
  --coral: #ff6b4a;
  --mist: #e9eef7;
  --white: #ffffff;
  --text: #2b3a8f;
  --text-soft: #4a5699; /* Indigo, lightened for reading text that steps back; 6.8:1 on white */
  --line: #d6ddec;
  /* Impact first in the fallbacks: as condensed as Anton, so the headline keeps its shape and
     width while Anton loads */
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --shadow: 0 28px 48px -26px rgba(43, 58, 143, 0.45);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Inter", system-ui, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.625; /* 16 / 26 */
  font-weight: 400;
}

a {
  color: var(--indigo);
}

a:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 2rem;
  }
}

.dot {
  color: var(--coral);
}

/* the hand-drawn marks, periwinkle and never read */
.doodle {
  position: absolute;
  fill: none;
  stroke: var(--periwinkle);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* the guide's icons: a 24px grid, a 1.75px outline, round caps and joins, in a round tile */
.icon-round {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--indigo);
}

.icon-round svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- the top: a line of news, then the name, the sections and early access ----------------- */

.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--indigo);
  color: var(--mist);
  font-size: 0.75rem;
  line-height: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.announce-dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--coral);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.5rem;
}

.name {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--indigo);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.name img {
  border-radius: 10px;
}

.nav {
  display: none;
}

@media (min-width: 56rem) {
  .nav {
    display: flex;
    gap: 2.25rem;
  }
}

.nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav a:hover {
  text-decoration: underline;
}

/* --- buttons ---------------------------------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.375rem;
  border: 2px solid var(--indigo);
  border-radius: 10px;
  background: var(--indigo);
  color: var(--white);
  font-size: 0.9375rem; /* 15 */
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.12);
}

.button-outline {
  background: var(--white);
  color: var(--indigo);
}

.button-outline:hover {
  filter: none;
  background: var(--mist);
}

/* --- the opening: the words on one side, a preview of the product on the other -------------- */

.hero {
  padding: 1rem 0 0;
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}

@media (min-width: 64rem) {
  .hero-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
}

.hero-copy {
  padding-top: 1.5rem;
}

.aside {
  margin: 0 0 0.5rem clamp(2.5rem, 14vw, 12rem);
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: 1.75rem;
  font-style: italic;
  line-height: 1.2;
  transform: rotate(-4deg);
  transform-origin: left center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow-star {
  flex: none;
  width: 2.125rem;
  height: 2.125rem;
  fill: none;
  stroke: var(--periwinkle);
  stroke-width: 1.4;
  stroke-linejoin: round;
  transform: rotate(-12deg);
}

h1 {
  margin: 1rem 0 0;
  color: var(--indigo);
  font-family: var(--display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

h1 > span {
  display: block;
}

.tagline {
  margin: 1.5rem 0 0;
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-style: italic;
  line-height: 1.15;
}

.lede {
  max-width: 32.5rem;
  margin: 0.875rem 0 0;
  color: var(--text-soft);
  font-size: 1.125rem;
  line-height: 1.75rem;
}

/* the preview: a Mist panel, its left side one great curve on wide screens, holding three
   tilted cards from the product */
.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 3.5rem 1.25rem;
  border-radius: 28px;
  background: var(--mist);
}

@media (min-width: 64rem) {
  .hero-art {
    min-height: 40rem;
    padding: 4.5rem 2.5rem 4.5rem 8.75rem;
    border-radius: 20rem 28px 28px 20rem;
  }
}

.doodle-star {
  top: 2.75rem;
  right: 3.5rem;
  width: 3.625rem;
  height: 3.625rem;
  stroke-width: 1.2;
  transform: rotate(14deg);
}

.doodle-wave {
  bottom: 3.25rem;
  left: 38%;
  width: 5.5rem;
  height: 2.75rem;
  stroke-width: 1.4;
}

.doodle-spark {
  top: 46%;
  right: 1.625rem;
  width: 2.5rem;
  height: 2.5rem;
  stroke-width: 1.4;
}

.sticker {
  position: absolute;
  right: 4rem;
  bottom: 6rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--coral);
}

.mock {
  position: relative;
  box-shadow: var(--shadow);
}

.mock-lesson {
  max-width: 27.5rem;
  padding: 1.375rem 1.5rem;
  border-radius: 20px;
  background: var(--white);
  transform: rotate(-2deg);
}

.mock-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--line);
}

.mock-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* where a company's own logo would sit */
.logo-slot {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1.5px dashed var(--periwinkle);
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.625rem;
  border-radius: 999px;
  background: var(--indigo);
  color: var(--white);
  font-size: 0.6875rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--white);
}

.mock-label {
  margin: 1rem 0 0.625rem;
  color: var(--text-soft);
  font-size: 0.6875rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tiles {
  display: flex;
  gap: 0.625rem;
}

.tile {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.625rem 0.625rem 0.5rem;
  border: 2px solid var(--mist);
  border-radius: 12px;
  background: var(--mist);
  font-size: 0.75rem;
  font-weight: 600;
}

.tile-picked {
  border-color: var(--indigo);
  background: var(--white);
}

.tile span {
  display: block;
  line-height: 1rem;
}

.tile svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.375rem;
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mock-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.875rem;
  padding: 0.4375rem 0.75rem;
  border: 2px solid var(--indigo);
  border-radius: 10px;
  font-size: 0.8125rem;
  line-height: 1.125rem;
  font-weight: 600;
}

.mock-action svg,
.chip-tick svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--indigo);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mock-booklet {
  align-self: flex-end;
  max-width: 18.75rem;
  margin-top: -0.875rem;
  padding: 1.125rem 1.25rem;
  border-radius: 18px;
  background: var(--indigo);
  transform: rotate(3deg);
}

.mock-booklet p {
  margin: 0;
  color: var(--white);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.mock-booklet .mock-kicker {
  margin-bottom: 0.5rem;
  color: var(--mist);
  font-size: 0.6875rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mock-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 1.25rem 0 0 1.5rem;
  padding: 0.5rem 1.125rem 0.5rem 0.5rem;
  border-radius: 999px;
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  transform: rotate(-3deg);
}

.chip-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: var(--mist);
}

/* --- the ribbon: an Indigo band, tilted over a Periwinkle one, its words sliding past -------- */

/* the bands run wider than the page and tilt; the ribbon clips them at the page's edges, its
   padding leaving room for the tilted corners */
.ribbon {
  position: relative;
  margin-top: 4.75rem;
  padding: 2.5rem 0;
  overflow: hidden;
}

.ribbon-back {
  position: absolute;
  top: 50%;
  left: -5%;
  right: -5%;
  height: 5rem;
  margin-top: -2.5rem;
  background: var(--periwinkle);
  transform: rotate(1.6deg);
}

.ribbon-band {
  position: relative;
  margin: 0 -5%;
  padding: 1.375rem 0;
  overflow: hidden;
  background: var(--indigo);
  transform: rotate(-1.8deg);
}

/* two copies of the same line side by side: sliding by exactly one copy's width (half the
   track) brings the second into the first's place, so the loop has no seam */
.ribbon-track {
  display: flex;
  width: max-content;
  animation: ribbon-slide 34s linear infinite;
}

@keyframes ribbon-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon-track {
    animation: none;
  }
}

.ribbon-group {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin: 0;
  padding-right: 2.25rem;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.875rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ribbon-dot {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--coral);
}

/* --- the classroom: live lessons and booklets, side by side, given the most room ------------ */

.classroom {
  padding: 5.5rem 0 2.5rem;
}

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

@media (min-width: 56rem) {
  .pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 32px;
  background: var(--mist);
}

.feature-dark {
  background: var(--indigo);
  color: var(--white);
}

.feature-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.feature-number {
  font-family: var(--display);
  font-size: 3.5rem;
  line-height: 1;
}

.feature .icon-round {
  width: 3.75rem;
  height: 3.75rem;
}

.feature-dark .icon-round {
  background: var(--mist);
}

.feature h2 {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.375rem, 4vw, 3.625rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.feature-dark h2 {
  color: var(--white);
}

.doodle-corner {
  right: 2.25rem;
  bottom: 1.75rem;
  width: 3.5rem;
  height: 3.5rem;
  stroke-width: 1.2;
  transform: rotate(-10deg);
}

/* each line ticked: a round tile with a check drawn from two of a box's borders, turned 45°,
   since the policy admits no image but the page's own */
.ticks {
  position: relative;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 2.5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
}

.ticks li + li {
  margin-top: 0.875rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 0.0625rem;
  left: 0;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  background: var(--white);
}

.ticks li::after {
  content: "";
  position: absolute;
  top: 0.375rem;
  left: 0.59rem;
  width: 0.4375rem;
  height: 0.75rem;
  border: solid var(--indigo);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.feature-dark .ticks li::before {
  background: var(--mist);
}

/* --- the admin: four short lines on Mist cards ---------------------------------------------- */

.admin {
  padding: 3.5rem 0 2.5rem;
}

h2 {
  margin: 0;
  color: var(--indigo);
  font-family: var(--display);
  font-size: clamp(2.75rem, 5.4vw, 5rem);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.admin h2 {
  margin-bottom: 2.25rem;
}

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  padding: 1.75rem;
  border-radius: 24px;
  background: var(--mist);
}

.card p {
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  line-height: 1.45;
  font-weight: 600;
}

/* --- your brand: a reversed band, white on Indigo, beside a card with the company's slots --- */

.brand {
  padding: 2.5rem 0;
}

.band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem);
  border-radius: 36px;
  background: var(--indigo);
}

@media (min-width: 56rem) {
  .band {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.doodle-band-star {
  top: 2rem;
  right: 2.5rem;
  width: 4rem;
  height: 4rem;
  stroke-width: 1.2;
  transform: rotate(-10deg);
}

.doodle-band-wave {
  right: 30%;
  bottom: 1.75rem;
  width: 6rem;
  height: 3rem;
}

.band-copy {
  position: relative;
}

.band h2 {
  color: var(--white);
  font-size: clamp(2.5rem, 4.8vw, 4.25rem);
  line-height: 0.94;
}

.band p {
  max-width: 32.5rem;
  margin: 1.375rem 0 0;
  color: var(--mist);
  font-size: 1.125rem;
  line-height: 1.6;
}

.brand-card {
  position: relative;
  display: grid;
  gap: 1rem;
  justify-self: start;
  min-width: 16rem;
  padding: 1.375rem 1.5rem;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 20px 36px -22px rgba(0, 0, 0, 0.5);
  transform: rotate(-2deg);
}

.brand-card-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-slot-large {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  font-size: 0.5625rem;
}

.brand-card-name {
  font-size: 1.125rem;
  font-weight: 600;
}

/* where a company's own two colours would show */
.swatch {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border: 1.5px dashed var(--periwinkle);
  border-radius: 50%;
}

.brand-card-label {
  color: var(--text-soft);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --- the closing invitation: what working with us is like ----------------------------------- */

.join {
  padding: 2.5rem 0 5.5rem;
}

.join-panel {
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: 36px;
  background: var(--mist);
}

.join-panel h2 {
  max-width: 55rem;
  font-size: clamp(2.5rem, 4.8vw, 4.25rem);
  line-height: 0.94;
}

.promises {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 56rem) {
  .promises {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.promises li {
  padding: 1.75rem;
  border-radius: 24px;
  background: var(--white);
}

.promises .icon-round {
  width: 3rem;
  height: 3rem;
  background: var(--mist);
}

h3 {
  margin: 1.125rem 0 0.375rem;
  color: var(--indigo);
  font-size: 1.375rem; /* 22 / 29 */
  line-height: 1.3;
  font-weight: 600;
}

.promises p {
  margin: 0;
  color: var(--text-soft);
}

/* --- the foot ------------------------------------------------------------------------------- */

.bottom {
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.8125rem; /* caption, 13 / 18 */
  line-height: 1.125rem;
  font-weight: 500;
}

.bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.bottom p {
  margin: 0;
}
