/* Dubsketch landing — hand-drawn paper aesthetic, light-only. */
:root {
  --ink: #1f2937;
  --accent: #2563eb;
  --paper: #fdfdfb;
  --line: #e5e7eb;
  --muted: #6b7280;
}
* { box-sizing: border-box; margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2, h3, .logo { font-family: "Caveat", cursive; }
h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 28px; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 6px; }
.accent { color: var(--accent); }

/* nav + hero */
.hero { padding: 20px 24px 56px; border-bottom: 2px solid var(--ink); }
nav { display: flex; justify-content: space-between; align-items: center; max-width: 1040px; margin: 0 auto; }
.logo { font-size: 1.7rem; font-weight: 700; }
.nav-cta {
  font-weight: 600; color: var(--accent); text-decoration: none;
  border: 2px solid var(--accent); border-radius: 10px; padding: 6px 16px;
}
.nav-cta:hover { background: var(--accent); color: #fff; }
.hero-inner { max-width: 1040px; margin: 64px auto 0; text-align: center; }
.sub { max-width: 560px; margin: 18px auto 30px; font-size: 1.15rem; color: var(--muted); }

/* waitlist form */
.waitlist-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; }
.waitlist-form input[type="email"] {
  padding: 12px 16px; font-size: 1rem; width: min(320px, 80vw);
  border: 2px solid var(--ink); border-radius: 10px; background: #fff;
}
.waitlist-form button {
  padding: 12px 22px; font-size: 1rem; font-weight: 600; cursor: pointer;
  background: var(--accent); color: #fff; border: 2px solid var(--accent); border-radius: 10px;
}
.waitlist-form button:hover { filter: brightness(1.1); }
.waitlist-form button:disabled { opacity: .6; cursor: default; }
.form-msg { width: 100%; min-height: 1.4em; font-size: .95rem; }
.form-msg.ok { color: #16a34a; }
.form-msg.err { color: #dc2626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* self-drawing hero sketch */
.hero-sketch { width: min(720px, 92vw); margin: 48px auto 0; display: block; }
.hero-sketch path, .hero-sketch rect, .hero-sketch circle {
  stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  animation: draw 1.1s ease forwards;
}
.hero-sketch .d2 { stroke: var(--accent); animation-delay: .5s; }
.hero-sketch .d3 { animation-delay: 1s; animation-duration: 1.4s; }
.hero-sketch .d4 { animation-delay: 2s; }
.hero-sketch .d5 { stroke: var(--accent); animation-delay: 2.6s; }
.hero-sketch .d6 { stroke: #dc2626; animation-delay: 3.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-sketch path, .hero-sketch rect, .hero-sketch circle { animation: none; stroke-dashoffset: 0; }
}

/* sections */
main section { padding: 72px 24px; max-width: 1040px; margin: 0 auto; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 640px; margin: 0 auto; }
.card {
  border: 2px solid var(--ink); border-radius: 14px; padding: 24px; background: #fff;
  box-shadow: 4px 4px 0 var(--line);
}
.card p { color: var(--muted); font-size: .98rem; }
.step-n {
  font-family: "Caveat", cursive; font-size: 2rem; font-weight: 700; color: var(--accent);
  width: 44px; height: 44px; border: 2px solid var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}

/* demo */
.demo-frame {
  border: 2px solid var(--ink); border-radius: 14px; overflow: hidden;
  aspect-ratio: 16 / 9; background: #fff; box-shadow: 6px 6px 0 var(--line);
}
.demo-placeholder {
  height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; color: var(--muted);
}
.demo-placeholder span {
  font-size: 2rem; width: 74px; height: 74px; border: 3px solid var(--ink);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  padding-left: 6px; color: var(--ink);
}

/* pricing */
.price-card { text-align: center; }
.price { font-size: 2.4rem; font-weight: 700; margin: 6px 0; color: var(--ink); }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.pricing-note { text-align: center; margin-top: 22px; color: var(--muted); }

/* final CTA + footer */
.cta-final { text-align: center; }
.cta-final > p { color: var(--muted); margin-bottom: 24px; }
footer {
  border-top: 2px solid var(--ink); padding: 22px 24px; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 10px;
  max-width: 1040px; margin: 0 auto; color: var(--muted); font-size: .95rem;
}
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--accent); }
