@font-face {
  font-family: 'Caveat';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/caveat-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-var.woff2') format('woff2');
}

:root {
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --paper: #ffffff;
  --mist: #f3f4f6;
  --line: #e5e7eb;
  --plum: #6a4c7c;
  --plum-dark: #553d64;
  --marigold: #f6b94b;
  --sky: #62aeea;
  --coral: #ee7b7b;
  --mint: #45bfa5;
  --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 72rem;
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath d='M9 17C62 7 170 3 291 9c4 12 6 27-1 40-86 7-196 9-281 5C1 42 0 28 9 17z'/%3E%3Cpath d='M2 27c40-6 90-9 140-8M160 50c40 1 90-1 136-5' stroke='%23000' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --stroke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M4 13C48 5 118 16 196 7' stroke='%23000' stroke-width='7' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --loop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpath d='M150 12C98-2 20 10 9 46c-10 36 60 50 118 44 58-6 72-40 50-62-14-14-40-18-66-16' stroke='%23000' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}

.skip:not(:focus),
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--paper);
  padding: 0.5rem 1rem;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.25rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.logo svg {
  width: 1.6rem;
  height: 1.6rem;
}
.nav {
  display: flex;
  gap: 1.75rem;
  margin-inline: auto;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a {
  text-decoration: none;
  color: var(--text);
}
.nav a:hover {
  color: var(--ink);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.top-actions a:not(.btn) {
  text-decoration: none;
}
.logo + .top-actions {
  margin-left: auto;
}
.lang {
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  font: 600 1rem/1.3 var(--sans);
  text-decoration: none;
  transition: background-color 0.15s;
}
.btn-primary {
  background: var(--plum);
  color: #fff;
}
.btn-primary:hover {
  background: var(--plum-dark);
}
.btn-soft {
  background: var(--mist);
  color: var(--ink);
}
.btn-soft:hover {
  background: var(--line);
}
.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

/* Handwritten type and marks */

.hand {
  font-family: var(--hand);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}
h1,
h2 {
  font-family: var(--hand);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  text-align: center;
}
h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.hl,
.ul,
.loop {
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}
.hl::before {
  content: '';
  position: absolute;
  inset: 0.2em -0.14em 0.02em -0.1em;
  z-index: -1;
  background: var(--c, var(--marigold));
  -webkit-mask: var(--brush) center / 100% 100% no-repeat;
  mask: var(--brush) center / 100% 100% no-repeat;
}
.ul::after {
  content: '';
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: -0.12em;
  height: 0.22em;
  z-index: -1;
  background: var(--c, var(--sky));
  -webkit-mask: var(--stroke) center / 100% 100% no-repeat;
  mask: var(--stroke) center / 100% 100% no-repeat;
}
.loop::after {
  content: '';
  position: absolute;
  inset: -0.12em -0.28em -0.08em -0.22em;
  z-index: -1;
  background: var(--c, var(--mint));
  -webkit-mask: var(--loop) center / 100% 100% no-repeat;
  mask: var(--loop) center / 100% 100% no-repeat;
}
.c-coral {
  --c: var(--coral);
}
.c-mint {
  --c: var(--mint);
}
.c-sky {
  --c: var(--sky);
}
.c-marigold {
  --c: var(--marigold);
}

.doodle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero */

.hero {
  padding-block: 4.5rem 7.5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(3rem, 7.4vw, 5.6rem);
}
.hero h1 .sub {
  display: block;
  margin-top: 0.35em;
  font-size: 0.62em;
  line-height: 1.12;
}
.hero-cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.75rem;
}
.hero-note {
  position: absolute;
  left: calc(50% + 14.5rem);
  top: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  color: var(--plum);
  text-align: left;
}
.hero-note svg {
  width: 3.5rem;
  flex: none;
  margin-top: -1.6rem;
  transform: rotate(-8deg);
}
.hero-note p {
  margin: 0.6rem 0 0;
  font: 700 1.7rem/1.05 var(--hand);
  transform: rotate(-6deg);
  max-width: 14rem;
}

/* Sections */

.band {
  position: relative;
  padding-block: 5.5rem;
}
.band-mist {
  background: var(--mist);
}
.curve {
  margin-top: 4rem;
  overflow-x: clip;
}
.curve::before {
  content: '';
  position: absolute;
  left: -15%;
  right: -15%;
  top: -5rem;
  height: 10rem;
  background: var(--mist);
  border-radius: 50%;
  z-index: -1;
}
.band-mist.curve {
  isolation: isolate;
  padding-top: 1rem;
}

.lead {
  max-width: 44rem;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 1.15rem;
}
.lead strong {
  color: var(--ink);
}

/* Module grid */

.modules {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2.25rem 1rem;
  max-width: 54rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.modules li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.tile {
  display: grid;
  place-items: center;
  width: 4.75rem;
  height: 4.75rem;
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 6px 16px -6px rgba(17, 24, 39, 0.14);
}
.tile svg {
  width: 2.75rem;
  height: 2.75rem;
}

/* Product mock */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  margin-top: 3.5rem;
}
.mock-wrap {
  position: relative;
  width: min(100%, 50rem);
}
.mock {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 30px 60px -30px rgba(17, 24, 39, 0.3);
  overflow: hidden;
  text-align: left;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}
.mock-bar i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--line);
}
.mock-bar span {
  margin-left: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.mock-body {
  padding: 1.5rem;
}
.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.mock-head b {
  color: var(--ink);
  font-size: 1.1rem;
}
.mock-head small {
  color: var(--muted);
  font-size: 0.85rem;
}
.rec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.rec-name {
  font-weight: 600;
  color: var(--ink);
}
.rec-why {
  grid-column: 1;
  font-size: 0.92rem;
  color: var(--text);
}
.rec-tags {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.tag {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--mist);
  color: var(--text);
}
.tag-fit {
  background: #e6f6f2;
  color: #1f7a66;
}
.tag-intent {
  background: #fdf1dc;
  color: #8a5a0b;
}
.rec-action {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  background: var(--plum);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.note {
  position: absolute;
  display: flex;
  gap: 0.25rem;
  color: var(--plum);
  font: 700 1.55rem/1.05 var(--hand);
}
.note svg {
  width: 3.25rem;
  flex: none;
}
.note-a {
  left: -12.5rem;
  top: 6.5rem;
  width: 12rem;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  transform: rotate(-4deg);
}
.note-a svg {
  margin-right: -0.5rem;
}
.note-b {
  right: -12rem;
  top: 13rem;
  width: 11.5rem;
  flex-direction: column;
  transform: rotate(3deg);
}
.note-c {
  right: -11rem;
  bottom: 2.5rem;
  width: 10.5rem;
  flex-direction: column;
  color: var(--mint);
  transform: rotate(-3deg);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 3.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.4rem;
  font: 700 3.4rem/1 var(--hand);
  color: var(--plum);
}
.steps p {
  margin: 0;
}

/* Split feature rows */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
  margin-top: 4rem;
}
.split + .split {
  margin-top: 5.5rem;
}
.split h3 {
  font: 700 2.4rem/1.05 var(--hand);
  margin-bottom: 1rem;
}
.split p {
  margin: 0 0 1rem;
}
.split ul {
  margin: 0;
  padding-left: 1.2rem;
}
.split li + li {
  margin-top: 0.35rem;
}
.split-flip .split-text {
  order: 2;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px -28px rgba(17, 24, 39, 0.28);
}
.panel-title {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.quad {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background:
    linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat,
    linear-gradient(135deg, transparent 50%, rgba(69, 191, 165, 0.1) 50%) 100% 0 / 50% 50% no-repeat;
}
.quad .dot {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  margin: -0.35rem;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.55;
}
.quad .dot.hot {
  background: var(--mint);
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(69, 191, 165, 0.2);
}
.quad .ax {
  position: absolute;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.quad .ax-x {
  right: 0;
  bottom: -1.7rem;
}
.quad .ax-y {
  left: -0.35rem;
  top: 0;
  transform: translateX(-100%);
  writing-mode: vertical-rl;
  rotate: 180deg;
  transform-origin: center;
  left: -1.7rem;
  transform: none;
}
.quad .zone {
  position: absolute;
  right: 0.75rem;
  top: 0.6rem;
  font: 700 1.35rem/1 var(--hand);
  color: #1f7a66;
}

.facts {
  margin: 0;
  display: grid;
  gap: 0.2rem;
}
.facts div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
.facts div:last-child {
  border-bottom: 0;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.mail {
  font-size: 0.92rem;
}
.mail-row {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.mail-row:first-of-type {
  border-top: 0;
}
.mail-row svg {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
}
.mail-row b {
  display: block;
  color: var(--ink);
}

/* Promise cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3.5rem;
}
.card {
  background: var(--paper);
  border-radius: 8px;
  padding: 1.6rem 1.5rem;
}
.card p {
  margin: 0;
  font-size: 0.97rem;
}
.card-wide {
  grid-column: span 2;
}

/* Final call */

.final {
  padding-block: 9rem 7rem;
  text-align: center;
}
.final-mark {
  position: relative;
  display: inline-block;
}
.final-mark svg {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: min(118%, 50rem);
  translate: -50% 6.25%;
  color: var(--marigold);
  stroke-width: 6;
  pointer-events: none;
}
.final h2 {
  position: relative;
}
.final .lead {
  margin-bottom: 2.25rem;
}

/* Footer */

.foot {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.foot a {
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
}
.foot .legal {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.82rem;
}

/* Legal pages */

.doc {
  max-width: 44rem;
  padding-block: 3.5rem 5rem;
}
.doc h1 {
  font-size: clamp(2.8rem, 6vw, 4rem);
  margin-bottom: 0.5rem;
}
.doc h2 {
  margin: 2.75rem 0 0.75rem;
  font: 600 1.25rem/1.35 var(--sans);
  text-align: left;
}
.doc p,
.doc ul {
  margin: 0 0 1rem;
}
.doc .updated {
  color: var(--muted);
  font-size: 0.95rem;
}
.doc address {
  margin-bottom: 1rem;
  font-style: normal;
}

/* One entrance: the hero highlight gets painted on load */

@media (prefers-reduced-motion: no-preference) {
  .hero .hl::before {
    clip-path: inset(0 100% 0 0);
    animation: paint 0.7s 0.25s cubic-bezier(0.6, 0, 0.3, 1) forwards;
  }
  @keyframes paint {
    to {
      clip-path: inset(0 0 0 0);
    }
  }
}

/* Narrow screens */

@media (max-width: 1180px) {
  .note {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .top-actions {
    margin-left: auto;
  }
  .hero-note {
    position: static;
    flex-basis: 100%;
    justify-content: center;
    margin-top: 1rem;
  }
  .hero-note svg {
    display: none;
  }
  .hero-note p {
    text-align: center;
  }
  .modules {
    grid-template-columns: repeat(3, 1fr);
  }
  .split,
  .steps,
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .split {
    gap: 2rem;
  }
  .split-flip .split-text {
    order: 0;
  }
  .card-wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .top-actions .login {
    display: none;
  }
  .hero {
    padding-block: 3rem 5.5rem;
  }
  .hl,
  .ul,
  .loop {
    white-space: normal;
  }
  .modules {
    gap: 1.75rem 0.5rem;
  }
  .tile {
    width: 4rem;
    height: 4rem;
  }
  .mock-body {
    padding: 1rem;
  }
  .rec {
    grid-template-columns: minmax(0, 1fr);
  }
  .rec-action {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 0.5rem;
  }
  .facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
