/* Unfold — sticker book. Cobalt + sunny yellow + ink on dotted cream paper. */
:root {
  --cream: #fff8ec;
  --dots: #ead9bd;
  --ink: #111111;
  --ink-soft: #3b3b3b;
  --muted: #6b6257;
  --blue: #2357f5;
  --blue-deep: #1a45d1;
  --yellow: #ffc933;
  --white: #ffffff;
  --line: #d9c7a8;

  --font: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --outline: 3px solid var(--ink);
  --pop: 6px 6px 0 var(--ink);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--cream);
  background-image: radial-gradient(var(--dots) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font: 400 18px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

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

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

.wrap {
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
}

/* Sticker treatment: thick outline + hard offset shadow. */
.sticker {
  border: var(--outline);
  box-shadow: var(--pop);
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

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

.logo img {
  width: 44px;
  height: 44px;
}

.nav-links {
  display: flex;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.chip:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 28px;
  border: var(--outline);
  border-radius: 16px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  box-shadow: var(--pop);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

a.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

a.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.fine {
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 40px 0 90px;
}

h1 {
  font-size: clamp(64px, 9vw, 124px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 30px;
}

.highlight {
  display: inline-block;
  background: var(--yellow);
  padding: 0 14px 6px;
  border-radius: 18px;
  transform: rotate(-2deg);
  margin-top: 6px;
}

.lede {
  font-size: 21px;
  line-height: 1.5;
  max-width: 34ch;
  margin: 0 0 34px;
}

.hero-art {
  position: relative;
  min-height: 560px;
}

.hero-art .mascot {
  position: absolute;
  right: 4%;
  top: 0;
  width: min(520px, 92%);
  transform: rotate(4deg);
}

.tag {
  position: absolute;
  background: var(--white);
  border-radius: 16px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
}

.tag-time {
  left: 0;
  top: 64%;
  transform: rotate(-6deg);
}

.tag-done {
  right: 0;
  top: 82%;
  transform: rotate(5deg);
  background: var(--yellow);
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  background: var(--yellow);
  border-block: var(--outline);
  padding: 16px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 18px;
  font-weight: 800;
  font-size: 22px;
  white-space: nowrap;
}

.ticker-track span::after {
  content: '✦';
  margin-left: 18px;
}

@media (prefers-reduced-motion: no-preference) {
  .ticker-track {
    animation: ticker 32s linear infinite;
  }

  @keyframes ticker {
    to {
      transform: translateX(-50%);
    }
  }
}

/* ---------- Sections ---------- */
section {
  padding: 110px 0;
}

h2 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0 0 50px;
  max-width: 16ch;
}

h2 u {
  text-decoration-color: var(--blue);
  text-decoration-thickness: 8px;
  text-underline-offset: 10px;
}

/* Steps as tilted sticker cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  padding: 26px;
  transition: transform 0.2s var(--ease);
}

.card:nth-child(1) {
  transform: rotate(-1.5deg);
}

.card:nth-child(3) {
  transform: rotate(1.5deg);
}

.card:hover {
  transform: rotate(0) translateY(-4px);
}

.card img {
  display: block;
  width: 170px;
  margin: -6px auto 12px;
}

.card .n {
  position: absolute;
  top: 18px;
  left: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: var(--outline);
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 800;
  font-size: 20px;
}

.card h3 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

/* Demo: the real box on a dark article */
.demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.stage {
  position: relative;
  /* Own stacking context, so the mascot can sit behind the box but in front of the stage. */
  isolation: isolate;
  min-height: 500px;
  border-radius: 28px;
  background: #111114;
  overflow: hidden;
}

.stage .lines {
  position: absolute;
  z-index: -2;
  inset: 46px 44px auto;
}

.stage .lines i {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: #2a2a30;
  margin-bottom: 16px;
}

.ext {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(340px, calc(100% - 56px));
  border-radius: 18px;
  background: #16131f;
  border: 1px solid #2f2a45;
  padding: 18px;
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.45);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.ext .peek {
  position: absolute;
  left: 10px;
  top: -82px;
  width: 104px;
  z-index: -1;
}

.ext .eyebrow {
  margin-left: 92px;
  color: #c9a8ff;
  font-size: 13px;
}

.ext .title {
  margin: 2px 0 14px 92px;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}

.ext .ais {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.ext .ais span {
  flex: 1;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f2f2f4;
}

.ext .ais svg {
  width: 20px;
  height: 20px;
  fill: #18181b;
}

.ext .copy {
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f2f2f4;
  color: #18181b;
  font-weight: 600;
  font-size: 15px;
}

.demo h2 {
  font-size: clamp(40px, 4.6vw, 60px);
  margin-bottom: 28px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 20px;
}

.list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 2px dashed var(--line);
}

.list b {
  flex: none;
  margin-top: 4px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  padding: 0 8px;
  font-size: 14px;
}

/* Privacy band */
.band {
  background: var(--blue);
  color: var(--white);
  border-block: var(--outline);
}

.band h2 span {
  color: var(--yellow);
}

.band a {
  color: var(--yellow);
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 34px;
}

.trio div {
  background: rgb(255 255 255 / 0.1);
  border: 2px solid rgb(255 255 255 / 0.35);
  border-radius: 20px;
  padding: 24px;
  line-height: 1.5;
}

.trio strong {
  display: block;
  margin-bottom: 6px;
  color: var(--yellow);
  font-size: 26px;
}

/* Closing CTA */
.end {
  text-align: center;
  padding-bottom: 80px;
}

.end img {
  width: 200px;
}

.end h2 {
  margin: 10px auto 30px;
  max-width: none;
}

.end .cta {
  justify-content: center;
}

/* Footer */
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  border-top: var(--outline);
  padding: 24px 0 40px;
  font-weight: 600;
  font-size: 15px;
}

footer a {
  color: var(--ink);
}

/* ---------- Privacy page ---------- */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 0 100px;
}

.doc h1 {
  font-size: clamp(52px, 8vw, 84px);
  margin: 20px 0 8px;
}

.doc .meta {
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 32px;
}

.doc h2 {
  font-size: 32px;
  margin: 48px 0 12px;
  max-width: none;
}

.doc p,
.doc li {
  color: var(--ink-soft);
}

.doc li + li {
  margin-top: 8px;
}

.doc .box {
  background: var(--yellow);
  border-radius: 20px;
  padding: 10px 26px;
}

.doc .box li {
  color: var(--ink);
}

/* ---------- Entrance (one moment, reduced-motion safe) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.8s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 90ms);
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero,
  .demo {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 60px;
  }

  .hero-art {
    min-height: 0;
    aspect-ratio: 1 / 0.95;
  }

  .hero-art .mascot {
    right: 10%;
    width: 80%;
  }

  .cards,
  .trio {
    grid-template-columns: 1fr;
  }

  .card:nth-child(n) {
    transform: none;
  }

  section {
    padding: 72px 0;
  }

  .stage {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .nav-links .chip:not(.keep) {
    display: none;
  }

  .lede {
    font-size: 19px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .tag {
    font-size: 14px;
  }

  .ticker-track {
    font-size: 18px;
  }
}
