:root {
  --ae-paper: #fdfbf7;
  --ae-ink: #2d2d2d;
  --ae-muted: #e5e0d8;
  --ae-accent: #ff4d4d;
  --ae-blue: #2d5da1;
  --ae-white: #ffffff;
  --ae-postit: #fff9c4;
  --ae-font-heading: Kalam, "Marker Felt", "Comic Sans MS", cursive;
  --ae-font-body: "Patrick Hand", "Comic Sans MS", "Bradley Hand", cursive;
  --ae-radius-wobbly: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --ae-radius-wobbly-md: 28px 220px 32px 180px / 180px 28px 160px 32px;
  --ae-radius-note: 16px 24px 18px 26px / 24px 18px 28px 16px;
  --ae-shadow: 4px 4px 0 0 var(--ae-ink);
  --ae-shadow-small: 3px 3px 0 0 var(--ae-ink);
  --ae-shadow-large: 8px 8px 0 0 var(--ae-ink);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ae-ink);
  background-color: var(--ae-paper);
  font-family: var(--ae-font-body);
  font-size: 18px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ae-ink);
  background-color: var(--ae-paper);
  background-image: radial-gradient(var(--ae-muted) 1px, transparent 1px);
  background-size: 24px 24px;
  line-height: 1.45;
}

h1,
h2,
h3 {
  font-family: var(--ae-font-heading);
  line-height: 1;
  text-wrap: balance;
}

p,
li,
small {
  text-wrap: pretty;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px dashed var(--ae-blue);
  outline-offset: 3px;
}

::selection {
  color: var(--ae-ink);
  background: var(--ae-postit);
}

@keyframes ae-rise {
  from {
    opacity: 0;
    translate: 0 10px;
    filter: blur(4px);
  }
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 8px 14px;
  border: 2px solid var(--ae-ink);
  border-radius: var(--ae-radius-note);
  background: var(--ae-postit);
  color: var(--ae-ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--ae-ink);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  transform: rotate(-6deg);
}

.site-footer .brand-mark {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-family: var(--ae-font-heading);
  font-size: 21px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  color: var(--ae-ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ae-accent);
  text-decoration: underline wavy;
  text-underline-offset: 5px;
}

.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 3px solid var(--ae-ink);
  border-radius: var(--ae-radius-wobbly);
  padding: 10px 24px;
  font-family: var(--ae-font-body);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--ae-shadow);
  transition: transform 100ms ease, box-shadow 100ms ease, background-color 100ms ease, color 100ms ease;
}

.button.primary {
  color: var(--ae-white);
  background: var(--ae-blue);
}

.button.secondary {
  color: var(--ae-ink);
  background: var(--ae-white);
}

.button.small {
  min-height: 44px;
  padding: 6px 18px;
  font-size: 16px;
  box-shadow: var(--ae-shadow-small);
}

.button:hover {
  color: var(--ae-white);
  background: var(--ae-accent);
  box-shadow: 2px 2px 0 0 var(--ae-ink);
  transform: translate(2px, 2px) rotate(-1deg);
}

.button:active {
  box-shadow: none;
  transform: translate(4px, 4px) rotate(-1deg);
}

.hero {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 44px;
  width: min(1060px, calc(100% - 40px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 24px 0 72px;
  text-align: center;
}

.scroll-cue {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-top: 8px;
  color: rgba(45, 45, 45, 0.5);
  font-size: 14px;
  font-weight: 700;
  animation: cue-bob 1.8s ease-in-out infinite;
}

.scroll-cue span {
  font-size: 20px;
  line-height: 0.8;
}

@keyframes cue-bob {
  50% {
    transform: translateY(5px);
  }
}

.hero-copy {
  display: grid;
  justify-items: center;
}

.hero-copy > * {
  animation: ae-rise 380ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero-copy > :nth-child(2) { animation-delay: 70ms; }
.hero-copy > :nth-child(3) { animation-delay: 140ms; }
.hero-copy > :nth-child(4) { animation-delay: 210ms; }
.hero-copy > :nth-child(5) { animation-delay: 280ms; }

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 62px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.hero h1::after {
  content: "!";
  color: var(--ae-accent);
  display: inline-block;
  transform: rotate(8deg) translateY(-2px);
}

.subhead {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: 21px;
}

.chrome-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 14px 28px;
  border: 3px solid var(--ae-ink);
  border-radius: var(--ae-radius-wobbly);
  background: var(--ae-white);
  box-shadow: 6px 6px 0 0 var(--ae-blue);
  color: var(--ae-ink);
  text-decoration: none;
  transition: transform 100ms ease, box-shadow 100ms ease, background-color 100ms ease;
}

.chrome-badge svg {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.badge-text {
  display: grid;
  justify-items: start;
  text-align: left;
}

.badge-text small {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(45, 45, 45, 0.62);
}

.badge-text strong {
  font-family: var(--ae-font-heading);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}

.chrome-badge:hover {
  background: var(--ae-postit);
  box-shadow: 2px 2px 0 0 var(--ae-ink);
  transform: translate(4px, 4px) rotate(-1deg);
}

.chrome-badge:active {
  box-shadow: none;
  transform: translate(6px, 6px) rotate(-1deg);
}

.ph-badge {
  margin-top: 18px;
  transition: transform 120ms ease;
}

.ph-badge img {
  display: block;
  width: 180px;
  height: auto;
}

.ph-badge:hover {
  transform: translateY(-2px);
}

.demo-section {
  display: grid;
  justify-items: center;
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 64px;
}

.monitor {
  width: min(560px, 100%);
  padding: 18px 18px 0;
  border: 3px solid var(--ae-ink);
  border-radius: 20px 20px 6px 6px;
  background: var(--ae-muted);
  box-shadow: var(--ae-shadow-large);
}

.monitor-screen {
  display: grid;
  justify-items: center;
  padding: 26px 20px 22px;
  border: 3px solid var(--ae-ink);
  border-radius: 8px;
  background: #f4f2ee;
  background-image: radial-gradient(rgba(45, 45, 45, 0.09) 1px, transparent 1px);
  background-size: 16px 16px;
}

.monitor-chin {
  display: grid;
  place-items: center;
  height: 26px;
}

.monitor-chin::after {
  content: "";
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(45, 45, 45, 0.35);
}

.monitor-stand {
  width: 80px;
  height: 26px;
  border: 3px solid var(--ae-ink);
  border-top: 0;
  background: var(--ae-muted);
}

.monitor-base {
  width: 190px;
  height: 12px;
  border: 3px solid var(--ae-ink);
  border-radius: 0 0 10px 10px;
  background: var(--ae-muted);
  box-shadow: var(--ae-shadow-small);
}

.site-demo {
  position: relative;
  width: min(420px, 100%);
  border: 3px solid var(--ae-ink);
  border-radius: 14px;
  background: var(--ae-white);
  box-shadow: var(--ae-shadow-large);
  color: #374151;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  text-align: left;
}

.site-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid #e5e7eb;
}

.site-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e5e7eb;
}

.site-chrome i {
  flex: 1;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 11px;
  font-style: normal;
}

.site-body {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}

.site-title {
  margin: 0 0 2px;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}

.site-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.site-grid.three {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.sf {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sf-label {
  color: #6b7280;
  font-size: 10.5px;
  font-weight: 500;
}

.sf-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-width: 0;
  height: 26px;
  padding: 0 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: var(--ae-white);
  color: #111827;
  font-size: 11.5px;
  white-space: nowrap;
  transition: background-color 200ms ease;
}

.sf-input[data-type="select"]::after {
  content: "▾";
  margin-left: auto;
  padding-left: 4px;
  color: #9ca3af;
  font-size: 9px;
}

.sf-input.empty {
  color: #9ca3af;
}

.sf-input.filled {
  background: #fdf6d8;
}

.sf-radios {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 26px;
}

.sf-radio {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
}

.sf-radio b {
  width: 12px;
  height: 12px;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  background: var(--ae-white);
  box-sizing: border-box;
}

.sf-radio.picked b {
  border: 4px solid #2563eb;
}

.sf-checkrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
}

.sf-cb {
  position: relative;
  width: 13px;
  height: 13px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  background: var(--ae-white);
}

.sf-cb.on {
  border-color: #2563eb;
  background: #2563eb;
}

.sf-cb.on::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 9px;
}

.demo-prompt {
  position: absolute;
  top: -26px;
  right: -16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 2.5px solid var(--ae-ink);
  border-radius: var(--ae-radius-note);
  background: var(--ae-postit);
  box-shadow: var(--ae-shadow-small);
  color: var(--ae-ink);
  font-family: var(--ae-font-body);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.9) rotate(2deg);
  transition: opacity 200ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-demo.prompting .demo-prompt {
  opacity: 1;
  transform: scale(1) rotate(2deg);
}

.prompt-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ae-ink);
  border-radius: 50% 45% 55% 48%;
  background: var(--ae-white);
  color: var(--ae-accent);
  font-size: 12px;
}

.demo-fill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border: 2px solid var(--ae-ink);
  border-radius: 999px;
  background: var(--ae-blue);
  color: var(--ae-white);
  font-size: 13px;
  transition: transform 100ms ease, background-color 100ms ease;
}

.site-demo.clicking .demo-fill-btn {
  background: var(--ae-accent);
  transform: scale(0.92);
}

.site-demo.loading .demo-fill-btn::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: demo-spin 500ms linear infinite;
}

@keyframes demo-spin {
  to {
    rotate: 1turn;
  }
}

.demo-cursor {
  position: absolute;
  z-index: 3;
  left: 60%;
  top: 85%;
  width: 20px;
  height: 20px;
  opacity: 0;
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.25));
  transition: left 750ms cubic-bezier(0.22, 1, 0.36, 1), top 750ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease, transform 120ms ease;
}

.demo-cursor.show {
  opacity: 1;
}

.demo-cursor.click {
  transform: scale(0.8);
}

.demo-stamp {
  position: absolute;
  right: -12px;
  bottom: -16px;
  padding: 6px 14px;
  border: 3px solid var(--ae-ink);
  border-radius: var(--ae-radius-note);
  background: var(--ae-accent);
  box-shadow: var(--ae-shadow-small);
  color: var(--ae-white);
  font-family: var(--ae-font-heading);
  font-size: 17px;
  font-weight: 700;
  opacity: 0;
  transform: rotate(-6deg) scale(1.5);
}

.site-demo.stamped .demo-stamp {
  opacity: 1;
  transform: rotate(-6deg) scale(1);
  transition: opacity 160ms ease-out, transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.section > h2 {
  margin: 0 0 28px;
  font-size: clamp(30px, 4vw, 40px);
}

.card {
  border: 3px solid var(--ae-ink);
  border-radius: var(--ae-radius-wobbly-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ae-shadow);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 24px;
}

.step:nth-child(1) { transform: rotate(-0.6deg); }
.step:nth-child(2) { transform: rotate(0.5deg); }
.step:nth-child(3) { transform: rotate(-0.4deg); }

.step-dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--ae-ink);
  border-radius: 50% 45% 55% 48%;
  background: var(--ae-blue);
  color: var(--ae-white);
  font-family: var(--ae-font-heading);
  font-size: 19px;
  font-weight: 700;
}

.step h3 {
  margin: 14px 0 8px;
  font-size: 25px;
}

.step p {
  margin: 0;
  color: rgba(45, 45, 45, 0.78);
}

.fills-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 22px;
}

.fills-card {
  padding: 26px;
}

.fills-card h3 {
  margin: 0 0 16px;
  font-size: 26px;
}

.fills-card.never {
  background: rgba(255, 249, 196, 0.55);
  transform: rotate(0.6deg);
}

.fills-card.never h3 {
  color: var(--ae-accent);
}

.fills-card p {
  margin: 16px 0 0;
  color: rgba(45, 45, 45, 0.78);
}

.fill-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
}

.fill-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.fill-list li::before {
  content: "✓";
  color: var(--ae-accent);
  font-family: var(--ae-font-heading);
  font-weight: 700;
}

.fill-list.no li::before {
  content: "✕";
  color: rgba(45, 45, 45, 0.55);
}

.cta-end {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding-bottom: 80px;
  text-align: center;
}

.cta-end h2 {
  margin: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 3px dashed rgba(45, 45, 45, 0.4);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--ae-ink);
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--ae-accent);
}

.site-footer p {
  margin: 0 0 0 auto;
  color: rgba(45, 45, 45, 0.6);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 16px;
  }

  .steps,
  .fills-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-footer p {
    margin-left: 0;
  }
}

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

  .hero-copy > *,
  .scroll-cue {
    animation: none;
  }

  .button,
  .chrome-badge,
  .demo-cursor,
  .demo-prompt,
  .demo-stamp {
    transition: none;
  }
}
