:root {
  --paper: #fdfaf0;
  --paper-warm: #fbf6e6;
  --ink: #1a1a1a;
  --muted: rgba(26, 26, 26, 0.62);
  --grid: rgba(120, 170, 200, 0.32);
  --chroma: #00FF00;
  --chroma-deep: #00cc00;
  --chroma-shadow: rgba(0, 200, 0, 0.28);
  --accent: #ff5b3a;
  --radius: 18px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
strong { font-weight: 700; }
em { font-style: italic; color: var(--accent); font-weight: 600; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: rgba(0,255,0,0.18);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.92em;
  font-weight: 600;
}

/* Hand-drawn text accent */
.hand {
  font-family: "Caveat", "Patrick Hand", cursive;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hand.green { color: var(--chroma-deep); }

.wave {
  display: inline-block;
  animation: gentleWave 4s ease-in-out infinite;
  font-family: "Caveat", cursive;
  font-weight: 700;
  color: var(--chroma-deep);
}
@keyframes gentleWave {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(253, 250, 240, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px dashed rgba(26,26,26,0.12);
}
.nav nav { display: flex; gap: 20px; align-items: center; }
.nav nav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.nav nav a:hover { color: var(--chroma-deep); }
.nav .btn { padding: 8px 16px; font-size: 14px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--chroma);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  position: relative;
  transform: rotate(-3deg);
}
.brand-name {
  font-family: "Caveat", cursive;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 22px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: "Inter", system-ui, sans-serif;
}
.btn-primary {
  background: var(--chroma);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-secondary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--paper-warm);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border-width: 2px;
}
.btn-ghost:hover { background: var(--paper-warm); }
.btn-big {
  padding: 18px 36px;
  font-size: 18px;
}

/* Layout helpers */
main > section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 28px;
}
.section-title {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 56px;
  text-align: center;
}

/* HERO */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 28px 32px !important;
  text-align: center;
}
.hero-top {
  max-width: 820px;
  margin: 0 auto 32px;
}
.kicker {
  font-family: "Patrick Hand", "Caveat", cursive;
  font-size: 20px;
  color: var(--accent);
  margin: 0 0 12px;
  transform: rotate(-1deg);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(48px, 7.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  font-weight: 800;
}
.hero h1 .hand {
  font-size: 1.08em;
  display: inline-block;
}
.hero h1 .hand.green {
  display: inline-block;
  transform: rotate(-3deg);
}
.hero .sub {
  font-size: clamp(17px, 1.7vw, 22px);
  color: var(--ink);
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.5;
}
.hero .sub strong { font-weight: 700; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 14px;
}
.micro {
  font-family: "Patrick Hand", cursive;
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}

/* The stage — iPad with chalk doodles */
.stage {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 24px auto 0;
  aspect-ratio: 16 / 11;
}

/* iPad mockup */
.ipad {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transform: rotate(-2.2deg);
}
.ipad-bezel {
  width: 78%;
  aspect-ratio: 4 / 3;
  background: #1a1a1a;
  border: 3px solid var(--ink);
  border-radius: 28px;
  padding: 22px;
  box-shadow:
    8px 8px 0 var(--ink),
    0 30px 60px rgba(0,0,0,0.18);
  position: relative;
}
.ipad-bezel::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  width: 4px;
  height: 36px;
  background: #333;
  border-radius: 2px;
}
.ipad-screen {
  width: 100%;
  height: 100%;
  background: var(--chroma);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}
.anim-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Animated strokes inside the iPad */
.draw {
  fill: none;
  stroke: #111;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawCycle 10s ease-in-out infinite;
}
.d1 { animation-delay: 0.0s; }
.d2 { animation-delay: 0.7s; }
.d3 { animation-delay: 1.4s; }
.d4 { animation-delay: 2.1s; }
.d5 { animation-delay: 2.8s; }

@keyframes drawCycle {
  0%   { stroke-dashoffset: 1000; }
  18%  { stroke-dashoffset: 0; }
  78%  { stroke-dashoffset: 0; opacity: 1; }
  90%  { stroke-dashoffset: 0; opacity: 0; }
  91%  { stroke-dashoffset: 1000; opacity: 0; }
  100% { stroke-dashoffset: 1000; opacity: 1; }
}

/* Floating pencil */
.pencil {
  position: absolute;
  top: 18%;
  right: 4%;
  width: 18px;
  height: 130px;
  transform: rotate(28deg);
  pointer-events: none;
  animation: pencilBob 6s ease-in-out infinite;
}
.pencil-body {
  position: absolute;
  inset: 0 0 12% 0;
  background: linear-gradient(180deg, #f4d35e 0%, #f4d35e 70%, #b08d3a 100%);
  border: 2px solid var(--ink);
  border-radius: 4px;
}
.pencil-tip {
  position: absolute;
  bottom: 0;
  left: -2px;
  right: -2px;
  height: 18%;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
@keyframes pencilBob {
  0%, 100% { transform: rotate(28deg) translateY(0); }
  50% { transform: rotate(28deg) translateY(-8px); }
}

/* Chalk doodles around the iPad */
.doodle {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.doodle .scribble {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.1;
  text-align: center;
  background: rgba(253, 250, 240, 0.7);
  padding: 4px 10px;
  border-radius: 6px;
}
.doodle .arrow {
  width: 80px;
  height: 80px;
  margin-top: -4px;
}
.arrow .ink {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arrow.flip-x  { transform: scaleX(-1); }
.arrow.flip-y  { transform: scaleY(-1); }
.arrow.flip-xy { transform: scale(-1, -1); }

.doodle-tl { top: 2%; left: 2%; transform: rotate(-6deg); }
.doodle-tr { top: 2%; right: 2%; transform: rotate(5deg); }
.doodle-tr .arrow { transform: scaleX(-1) rotate(0); }
.doodle-bl { bottom: 2%; left: 4%; transform: rotate(4deg); flex-direction: column-reverse; }
.doodle-bl .arrow { transform: scaleY(-1); }
.doodle-br { bottom: 2%; right: 4%; transform: rotate(-4deg); flex-direction: column-reverse; }
.doodle-br .arrow { transform: scale(-1, -1); }

/* AUDIENCE */
.audience { padding-top: 56px !important; }
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:nth-child(odd) { transform: rotate(-0.8deg); }
.card:nth-child(even) { transform: rotate(0.6deg); }
.card:hover {
  transform: translate(-2px, -2px) rotate(0);
  box-shadow: 7px 7px 0 var(--ink);
}
.card .emoji { font-size: 32px; margin-bottom: 10px; }
.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* HOW */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.steps li {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 5px 5px 0 var(--ink);
  position: relative;
}
.steps li:nth-child(1) { transform: rotate(-1deg); }
.steps li:nth-child(3) { transform: rotate(1deg); }
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--chroma);
  border: 2px solid var(--ink);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 14px;
  font-family: "Caveat", cursive;
}
.steps h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.steps p {
  margin: 0;
  color: var(--ink);
  font-size: 15.5px;
}

/* FEATURES */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 4px 4px 0 var(--ink);
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* PRICING — single plan */
.plan-single {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(0,255,0,0.12) 0%, transparent 55%),
    var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 26px;
  padding: 56px 42px 38px;
  box-shadow: 8px 8px 0 var(--ink);
  text-align: center;
  transform: rotate(-0.6deg);
}
.ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  background: var(--chroma);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
}
.plan-name {
  font-family: "Caveat", cursive;
  font-size: 28px;
  color: var(--muted);
  font-weight: 700;
}
.plan-price {
  font-size: clamp(80px, 12vw, 120px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 4px 0 6px;
  color: var(--ink);
}
.plan-line {
  font-family: "Patrick Hand", cursive;
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
}
.plan-single ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 32px;
  text-align: left;
  max-width: 420px;
}
.plan-single li {
  padding: 9px 0 9px 30px;
  position: relative;
  font-size: 15.5px;
  line-height: 1.45;
}
.plan-single li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 15px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--chroma-deep);
  border-bottom: 3px solid var(--chroma-deep);
  transform: rotate(-45deg);
}
.plan-single .btn-big { width: 100%; max-width: 360px; }

.love-note {
  font-family: "Caveat", cursive;
  font-size: 22px;
  color: var(--ink);
  margin: 28px 0 0;
  line-height: 1.3;
}
.love-note a {
  color: var(--chroma-deep);
  border-bottom: 2px solid var(--chroma);
  font-weight: 700;
}
.heart {
  display: inline-block;
  animation: heartbeat 1.6s ease-in-out infinite;
  font-size: 1.1em;
  transform-origin: center;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

/* BUILDER */
.builder { padding-top: 64px !important; padding-bottom: 48px !important; }
.builder-bio {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
}
.builder-bio a { color: var(--chroma-deep); border-bottom: 2px solid var(--chroma); }

/* FAQ */
.faq { max-width: 820px !important; }
.faq details {
  border-top: 1.5px dashed rgba(26,26,26,0.25);
  padding: 18px 0;
}
.faq details:last-of-type { border-bottom: 1.5px dashed rgba(26,26,26,0.25); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 18px;
  padding-right: 30px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -4px;
  font-size: 28px;
  color: var(--chroma-deep);
  font-weight: 700;
  line-height: 1;
  font-family: "Caveat", cursive;
}
.faq details[open] summary::after { content: '–'; }
.faq p {
  font-size: 16px;
  margin: 12px 0 0;
  max-width: 700px;
  color: var(--muted);
}

/* FINAL CTA */
.final-cta {
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(0,255,0,0.18), transparent 65%);
  padding: 110px 28px !important;
  max-width: none !important;
  border-top: 2px dashed rgba(26,26,26,0.18);
  border-bottom: 2px dashed rgba(26,26,26,0.18);
}
.final-cta h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  font-weight: 800;
}
.final-cta p {
  font-family: "Patrick Hand", cursive;
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 30px;
}

/* Footer */
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--chroma-deep); }
.copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-family: "Patrick Hand", cursive;
}

/* Responsive */
@media (max-width: 980px) {
  .grid-4, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .doodle .scribble { font-size: 18px; }
  .doodle .arrow { width: 60px; height: 60px; }
  main > section { padding: 72px 22px; }
}

@media (max-width: 640px) {
  .grid-4, .feature-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 50px; }
  .nav nav a:not(.btn) { display: none; }
  .doodle-tl, .doodle-tr { font-size: 14px; }
  .doodle-bl, .doodle-br { display: none; }
  .ipad-bezel { padding: 14px; border-radius: 18px; }
}
