/* AppFactory: bright, playful, mobile-first. */
:root {
  --ink: #1b1b3a;
  --muted: #4a4a6a;
  --bg: #fffdf5;
  --sun: #ffd23f;
  --coral: #ff5d73;
  --violet: #5b5bd6;
  --teal: #2ec4b6;
  --line: #e8e3cf;
  --radius: 16px;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--violet); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 850; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 253, 245, .92); backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.2rem; color: var(--ink); text-decoration: none; }

/* buttons */
.btn { display: inline-block; background: var(--coral); color: #fff; font-weight: 800; font-size: 1.05rem; text-decoration: none; border: 3px solid var(--ink); border-radius: 999px; padding: 12px 24px; box-shadow: 4px 4px 0 var(--ink); cursor: pointer; font-family: inherit; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-small { font-size: .9rem; padding: 7px 14px; box-shadow: 3px 3px 0 var(--ink); border-width: 2px; }
.link { font-weight: 700; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 1.5em; }

/* hero */
.hero { padding: 48px 0 40px; background:
  radial-gradient(circle at 90% 10%, rgba(255, 210, 63, .45), transparent 40%),
  radial-gradient(circle at 5% 90%, rgba(46, 196, 182, .18), transparent 40%); }
.hero-in { display: grid; gap: 32px; align-items: center; }
.kicker { display: inline-block; font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--sun); padding: 4px 12px; border-radius: 999px; }
.hl { background: linear-gradient(transparent 58%, var(--sun) 58%); padding: 0 .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-art { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); padding: 12px; }
.line { display: block; width: 100%; }

/* motion */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes belt { to { transform: translateX(24px); } }
.item { animation: bob 2.4s ease-in-out infinite; transform-box: fill-box; }
.item-2 { animation-delay: .4s; } .item-3 { animation-delay: .8s; }
.gear { animation: spin 6s linear infinite; }
.flow { animation: flow 1s linear infinite; }
.blink { animation: blink 1.2s steps(2) infinite; }
@media (prefers-reduced-motion: reduce) { .item, .gear, .flow, .blink { animation: none; } html { scroll-behavior: auto; } }

/* bands */
.band { padding: 56px 0; border-top: 2px solid var(--ink); }
.band-alt { background: #fff6d6; }
.band-cta { background: var(--violet); color: #fff; }
.band-cta h2 { color: #fff; }
.band-cta .lede { color: #e6e6ff; }

.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; counter-reset: s; }
.step { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 22px 20px 16px; box-shadow: 4px 4px 0 var(--ink); }
.step:nth-child(1) .num { background: var(--sun); }
.step:nth-child(2) .num { background: var(--teal); }
.step:nth-child(3) .num { background: var(--coral); color: #fff; }
.step:nth-child(4) .num { background: var(--violet); color: #fff; }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); font-weight: 900; margin-bottom: 10px; }
.step p, .card p { color: var(--muted); margin: 0; }

.cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.card { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 20px; }
.card h3::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--coral); border: 2px solid var(--ink); margin-right: 10px; vertical-align: 1px; }
.you-bring { margin-top: 24px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px; }
.you-bring h3 { color: var(--sun); }
.you-bring p { margin: 0; font-size: 1.1rem; }

.proof { display: flex; gap: 20px; align-items: flex-start; }
.proof img { flex: none; width: 72px; height: 72px; border-radius: 18px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }

/* faq */
.faq details { background: #fff; border: 3px solid var(--ink); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 800; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 900; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* form */
.idea-form { background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); padding: 22px; display: grid; gap: 16px; }
.idea-form label { display: grid; gap: 6px; font-weight: 700; }
.idea-form input:not([type=checkbox]), .idea-form textarea { width: 100%; font: inherit; font-weight: 400; padding: 11px 13px; border: 2px solid var(--ink); border-radius: 10px; background: var(--bg); color: var(--ink); }
.idea-form input:focus, .idea-form textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; }
.idea-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.idea-form legend { font-weight: 700; margin-bottom: 8px; width: 100%; }
.idea-form .check { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.idea-form .check input { width: 20px; height: 20px; accent-color: var(--coral); }
.row2 { display: grid; gap: 16px; }
.opt { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 700; }
.form-status.err { color: #c0142f; }
.form-ok { margin: 0; font-size: 1.2rem; font-weight: 800; background: #dff7f4; border: 2px solid var(--teal); border-radius: 10px; padding: 18px; }

/* footer */
.foot { background: var(--ink); color: #cfcfe6; padding: 28px 0; }
.foot a { color: #fff; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot p { margin: 0; }
.foot-brand { font-weight: 900; text-decoration: none; }

@media (min-width: 760px) {
  .hero { padding: 72px 0 64px; }
  .hero-in { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .row2 { grid-template-columns: 1fr 1fr; }
  .band { padding: 80px 0; }
  .idea-form { padding: 30px; }
}
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.target-msg { display: none; }
.target-msg:target { display: block; scroll-margin-top: 80px; }
#sent:target ~ .idea-form { display: none; }
.form-err { color: #fff; background: #c0142f; border: 2px solid var(--ink); border-radius: 10px; padding: 14px 18px; font-weight: 700; }

.form-legal { margin: 10px 0 0; font-size: 13px; opacity: .75; }
.form-legal a { color: inherit; }
