/* Chalk landing page.

   A bright, confident product page: white canvas, deep ink type, one
   primary blue for actions, and sticky-note colours used as big flat
   blocks. No gradients, no glass, no glow. The product itself (the live
   board in the hero) is the centrepiece; everything else frames it. */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --canvas: #f5f5f2;       /* off-white sections */
  --ink: #0e0f2c;          /* headlines, dark blocks */
  --text: #2c2e48;         /* body copy */
  --muted: #62647c;
  --line: #e4e4ea;
  --dot: #d9dae2;

  --primary: #3346ff;      /* actions */
  --primary-hover: #2230e0;

  --yellow: #ffd43d;
  --blue: #3346ff;
  --pink: #ff5c9d;
  --green: #12b886;
  --orange: #ff7a2f;
  --lilac: #8f6bff;

  --yellow-soft: #fff4c7;
  --blue-soft: #e3e7ff;
  --pink-soft: #ffe1ec;
  --green-soft: #d6f5ea;
  --orange-soft: #ffe6d6;
  --lilac-soft: #ece5ff;

  --note-yellow: #ffe066;
  --note-pink: #ffb3cf;
  --note-green: #9ee6c8;
  --note-blue: #b4c2ff;
  --note-orange: #ffc49a;

  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --r: 16px;
  --r-lg: 28px;

  --shadow-app: 0 1px 0 rgba(14, 15, 44, 0.04), 0 24px 60px -24px rgba(14, 15, 44, 0.28), 0 8px 20px -12px rgba(14, 15, 44, 0.12);
  --shadow-card: 0 18px 40px -22px rgba(14, 15, 44, 0.35);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  color: var(--ink);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.btn--lg {
  height: 58px;
  padding: 0 30px;
  font-size: 18px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn--yellow:hover {
  background: #ffc700;
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: #23254f;
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn--ghost-light:hover {
  border-color: #fff;
}

.link-quiet {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 6px;
}

.link-quiet:hover {
  color: var(--primary);
}

/* --------------------------------------------------------------------- logo */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.logo__mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 28px;
  height: 28px;
}

.logo__mark i {
  border-radius: 4px;
}

.logo__mark i:nth-child(1) { background: var(--yellow); }
.logo__mark i:nth-child(2) { background: var(--pink); border-radius: 50%; }
.logo__mark i:nth-child(3) { background: var(--blue); }
.logo__mark i:nth-child(4) { background: var(--green); border-radius: 4px 4px 14px 4px; }

.logo--sm {
  font-size: 18px;
}

.logo--sm .logo__mark {
  width: 22px;
  height: 22px;
  gap: 2px;
}

/* ---------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(12px);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links {
  display: flex;
  gap: 28px;
  margin-right: auto;
}

.nav__links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--primary);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }

  .nav__cta {
    margin-left: auto;
  }
}

@media (max-width: 400px) {
  .nav__cta .link-quiet {
    display: none;
  }
}

/* --------------------------------------------------------------------- hero */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) var(--pad) 0;
  text-align: center;
}

.hero__title {
  font-size: clamp(44px, 8.6vw, 104px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 13ch;
  margin: 0 auto;
}

/* A marker swipe behind the key phrase, drawn once on load. */
.swash {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}

.swash::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.04em;
  height: 0.38em;
  background: var(--yellow);
  border-radius: 0.1em 0.3em 0.14em 0.4em;
  transform: rotate(-1.2deg) scaleX(0);
  transform-origin: left center;
  animation: swipe 0.7s cubic-bezier(0.6, 0, 0.2, 1) 0.25s forwards;
}

@keyframes swipe {
  to { transform: rotate(-1.2deg) scaleX(1); }
}

@media (max-width: 520px) {
  .swash {
    white-space: normal;
  }
}

.hero__lede {
  max-width: 600px;
  margin: 28px auto 0;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 480px) {
  .hero__actions .btn {
    width: 100%;
  }
}

/* ------------------------------------------------------ the demo app frame */

.stage {
  position: relative;
  margin: clamp(48px, 7vw, 80px) auto 0;
  padding: clamp(12px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: var(--blue);
  max-width: 1100px;
  isolation: isolate;
}

/* Two flat shapes peeking out behind the frame: colour, not decoration soup. */
.stage::before,
.stage::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.stage::before {
  width: 180px;
  height: 180px;
  left: -44px;
  top: -44px;
  background: var(--yellow);
  border-radius: 50%;
}

.stage::after {
  width: 150px;
  height: 150px;
  right: -36px;
  bottom: 60px;
  background: var(--pink);
  border-radius: 28px;
  transform: rotate(12deg);
}

@media (max-width: 640px) {
  .stage::before,
  .stage::after {
    display: none;
  }
}

.app {
  position: relative;
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-app);
  text-align: left;
}

.app__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.app__board {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  min-width: 0;
}

.app__crumb {
  color: var(--muted);
}

.app__slash {
  color: var(--line);
}

.app__board strong {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.app__people {
  display: flex;
  align-items: center;
  gap: 4px;
}

.app__share {
  margin-left: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.face {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 999px;
  border: 2px solid #fff;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.face + .face {
  margin-left: -8px;
}

.face--sam { background: var(--pink); }
.face--you { background: var(--ink); }
.face--ana { background: var(--orange); }
.face--jo { background: var(--lilac); }

.app__body {
  position: relative;
  background-color: #fbfbfd;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.3px);
  background-size: 24px 24px;
}

.wb__svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62vh;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Floating tool dock, as in the app. */
.dock {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(14, 15, 44, 0.08), 0 8px 24px -10px rgba(14, 15, 44, 0.25);
}

.dock__btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.dock__btn:hover {
  background: var(--canvas);
}

.dock__btn.is-on {
  background: var(--blue-soft);
  color: var(--primary);
}

.dock__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock__sep {
  width: 22px;
  height: 1px;
  margin: 3px 0;
  background: var(--line);
}

.swatches {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}

.swatch {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c);
  cursor: pointer;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}

.swatch:hover {
  transform: scale(1.12);
}

.swatch.is-on {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c);
}

@media (max-width: 640px) {
  .dock {
    top: auto;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
  }

  .dock__sep {
    width: 1px;
    height: 22px;
    margin: 0 3px;
  }

  .swatches {
    flex-direction: row;
    padding: 0 4px;
  }

  .dock__btn {
    width: 34px;
    height: 34px;
  }
}

.stage__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(12px, 2vw, 24px);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(255, 212, 61, 0.7);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(255, 212, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 212, 61, 0); }
}

/* Board contents drawn by demo.js */

/* Unmodified strokes are Sam's, in Sam's cursor colour; the visitor's
   carry the colour picked in the dock. */
.wb-stroke {
  fill: none;
  stroke: var(--pink);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wb-stroke--ink { stroke: var(--ink); }
.wb-stroke--blue { stroke: var(--blue); }
.wb-stroke--pink { stroke: var(--pink); }
.wb-stroke--green { stroke: var(--green); }
.wb-stroke--orange { stroke: var(--orange); }

.wb-note {
  cursor: grab;
}

.wb-note.is-dragging {
  cursor: grabbing;
}

.wb-note__paper {
  fill: var(--note-yellow);
  filter: drop-shadow(0 6px 10px rgba(14, 15, 44, 0.14));
}

.wb-note--pink .wb-note__paper { fill: var(--note-pink); }
.wb-note--green .wb-note__paper { fill: var(--note-green); }
.wb-note--blue .wb-note__paper { fill: var(--note-blue); }
.wb-note--orange .wb-note__paper { fill: var(--note-orange); }

.wb-note__text {
  fill: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  pointer-events: none;
}

.wb-cursor {
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.wb-cursor__arrow {
  fill: var(--pink);
  stroke: #fff;
  stroke-width: 1.4;
}

.wb-cursor__tag {
  fill: var(--pink);
}

.wb-cursor__name {
  fill: #fff;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 800;
}

/* --------------------------------------------------------------------- uses */

.uses {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--pad) 0;
  text-align: center;
}

.uses__lead {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}

.uses__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
  color: var(--ink);
}

.chip--yellow { background: var(--yellow-soft); }
.chip--blue { background: var(--blue-soft); }
.chip--pink { background: var(--pink-soft); }
.chip--green { background: var(--green-soft); }
.chip--orange { background: var(--orange-soft); }
.chip--lilac { background: var(--lilac-soft); }

/* ----------------------------------------------------------- section heads */

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(34px, 5.2vw, 60px);
}

.section-head p {
  margin-top: 18px;
  font-size: clamp(17px, 1.8vw, 19px);
  color: var(--muted);
}

.section-head--light h2 {
  color: #fff;
}

/* ----------------------------------------------------------------- features */

.features {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) var(--pad) 0;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.feature + .feature {
  margin-top: clamp(64px, 9vw, 112px);
}

.feature--flip .feature__copy {
  order: 2;
}

.feature__copy h3 {
  margin-top: 16px;
  font-size: clamp(30px, 3.8vw, 44px);
}

.feature__copy p {
  margin-top: 16px;
  font-size: 18px;
  max-width: 44ch;
}

.kicker {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.kicker--blue { background: var(--blue-soft); color: var(--primary); }
.kicker--pink { background: var(--pink-soft); color: #d12a6b; }
.kicker--green { background: var(--green-soft); color: #0a7d5a; }

.panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.panel--blue { background: var(--blue); }
.panel--pink { background: var(--pink); }
.panel--green { background: var(--green); }

@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
  }

  .feature--flip .feature__copy {
    order: 0;
  }

  .panel {
    min-height: 280px;
  }
}

/* Panel 1: the live-cursor illustration */

.art {
  width: 100%;
  max-width: 460px;
  height: auto;
  overflow: visible;
}

.art-note { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.18)); }
.art-note--yellow { fill: var(--note-yellow); }
.art-note--pink { fill: var(--note-pink); }
.art-note--green { fill: var(--note-green); }

.art-stroke {
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art-arrow { stroke: #fff; stroke-width: 1.5; }
.art-arrow--orange, .art-tag--orange { fill: var(--orange); }
.art-arrow--ink, .art-tag--ink { fill: var(--ink); }
.art-arrow--lilac, .art-tag--lilac { fill: var(--lilac); }

.art-name {
  fill: #fff;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 800;
  text-anchor: middle;
}

/* Panel 2: share dialog */

.mock-share {
  width: 100%;
  max-width: 400px;
  padding: 24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  font-size: 15px;
}

.mock-share__title {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.mock-share__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-weight: 600;
  color: var(--ink);
}

.mock-toggle {
  flex: none;
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--green);
}

.mock-toggle i {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
}

.mock-share__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 6px 6px 6px 14px;
  border-radius: 12px;
  background: var(--canvas);
  font-size: 13.5px;
  color: var(--muted);
}

.mock-share__link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-share__link b {
  flex: none;
  padding: 7px 14px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
}

.mock-share__people {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.mock-share__people em {
  margin-left: 12px;
  font-style: normal;
  font-size: 13.5px;
  color: var(--muted);
}

/* Panel 3: board list */

.mock-list {
  width: 100%;
  max-width: 460px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.mock-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-size: 17px;
}

.mock-list__new {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.mock-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.mini {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--ink);
  min-width: 0;
}

.mini b {
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.mini__art {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background-color: var(--canvas);
  background-repeat: no-repeat;
}

.mini__art--yellow {
  background-image:
    linear-gradient(var(--note-yellow), var(--note-yellow)),
    linear-gradient(var(--note-pink), var(--note-pink));
  background-size: 36% 36%, 36% 36%;
  background-position: 18% 26%, 72% 70%;
}

.mini__art--blue {
  background-image:
    linear-gradient(var(--note-blue), var(--note-blue)),
    linear-gradient(var(--note-blue), var(--note-blue)),
    linear-gradient(var(--note-green), var(--note-green));
  background-size: 24% 30%, 24% 30%, 24% 30%;
  background-position: 16% 30%, 50% 30%, 84% 70%;
}

.mini__art--orange {
  background-image:
    linear-gradient(var(--note-orange), var(--note-orange)),
    linear-gradient(var(--line), var(--line));
  background-size: 70% 18%, 70% 40%;
  background-position: 50% 20%, 50% 78%;
}

/* ------------------------------------------------------------ how it works */

.how,
.close {
  width: min(var(--max), 100% - 2 * var(--pad));
  margin: clamp(88px, 12vw, 150px) auto 0;
  border-radius: var(--r-lg);
}

.how {
  padding: clamp(56px, 8vw, 96px) var(--pad);
  background: var(--ink);
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.step__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
}

.step:nth-child(1) .step__num { background: var(--yellow); }
.step:nth-child(2) .step__num { background: var(--pink); }
.step:nth-child(3) .step__num { background: var(--green); }

.step h3 {
  margin-top: 22px;
  font-size: 26px;
  color: #fff;
}

.step p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ pricing */

.pricing {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(88px, 12vw, 150px) var(--pad) 0;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.5vw, 36px);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}

.plan__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.plan__name {
  font-size: 28px;
}

.plan__blurb {
  margin-top: 6px;
  color: var(--muted);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 24px 0;
}

.plan__amount {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.plan__per {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
}

.plan__billed {
  margin: -16px 0 20px;
  font-size: 14px;
}

.plan__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan__current {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
}

.plan__features {
  list-style: none;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.plan__features li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  color: var(--ink);
}

.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-soft) no-repeat center / 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230a7d5a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Pro: the bold one */

.plan--pro {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.plan--pro .plan__name,
.plan--pro .plan__amount,
.plan--pro .plan__features li,
.plan--pro .plan__current {
  color: #fff;
}

.plan--pro .plan__blurb,
.plan--pro .plan__per,
.plan--pro .plan__billed {
  color: rgba(255, 255, 255, 0.78);
}

.plan--pro .plan__features {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.plan--pro .plan__features li::before {
  background-color: var(--yellow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230e0f2c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.toggle__opt {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.toggle__opt.is-on {
  background: #fff;
  color: var(--ink);
}

.toggle__save {
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
}

/* Compare table */

.limits-wrap {
  max-width: 880px;
  margin: 40px auto 0;
  overflow-x: auto;
}

.limits {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.limits caption {
  text-align: left;
  padding: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.limits th,
.limits td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.limits thead th {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}

.limits tbody th {
  font-weight: 600;
  color: var(--ink);
}

.limits td {
  width: 22%;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.limits td:last-child {
  color: var(--primary);
}

.limits .no {
  color: var(--muted);
  font-weight: 600;
}

.limits .yes {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #0a7d5a;
}

/* -------------------------------------------------------------------- close */

.close {
  position: relative;
  padding: clamp(64px, 10vw, 120px) var(--pad);
  background: var(--yellow);
  overflow: hidden;
  text-align: center;
}

.close__inner {
  position: relative;
  z-index: 1;
}

.close h2 {
  font-size: clamp(38px, 6.4vw, 80px);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.close p {
  margin: 20px 0 32px;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.close__doodle {
  position: absolute;
  width: clamp(90px, 14vw, 170px);
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.close__doodle--a {
  left: 4%;
  bottom: 10%;
  stroke: var(--primary);
}

.close__doodle--b {
  right: 5%;
  top: 12%;
  stroke: var(--pink);
  transform: rotate(14deg);
}

@media (max-width: 640px) {
  .close__doodle {
    opacity: 0.35;
  }
}

/* ------------------------------------------------------------------- footer */

.foot {
  margin-top: clamp(56px, 8vw, 88px);
  border-top: 1px solid var(--line);
}

.foot__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--pad) 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.foot__links {
  display: flex;
  gap: 24px;
  margin-right: auto;
}

.foot__links a,
.foot__meta a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.foot__links a:hover,
.foot__meta a:hover {
  color: var(--primary);
}

.foot__meta {
  font-size: 14px;
  color: var(--muted);
}

.foot__meta #release:not(:empty) {
  margin-right: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--canvas);
  font-weight: 700;
  color: var(--ink);
}

/* ---------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .swash::after {
    animation: none;
    transform: rotate(-1.2deg) scaleX(1);
  }

  .dot-live {
    animation: none;
  }
}
