/* ===== InnerSteps design system: warm paper, ink navy, croc green, sunshine, coral ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #FFF6E8;
  color: #2B3550;
  font: 600 16px/1.65 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #2F7A3D; }
a:hover { color: #FF5A47; }
::placeholder { color: rgba(43,53,80,0.45); }
textarea:focus, input:focus { outline: 2px solid rgba(255,90,71,0.5); outline-offset: 1px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid rgba(255,90,71,0.55); outline-offset: 2px; border-radius: 8px; }

/* ---- type ---- */
.h2 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: clamp(1.55rem, 5.4vw, 2.05rem); line-height: 1.22; margin: 0; text-align: center; text-wrap: pretty; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #2F7A3D; margin: 0 0 14px; text-align: center; }
.sq { display: flex; justify-content: center; margin: 10px 0 0; }

/* ---- buttons: toy-press, same object as the app ---- */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: min(88%, 400px); margin: 0 auto;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  background: #FF5A47; color: #2B3550; border: 2px solid #2B3550; box-shadow: 3px 3px 0 #2B3550;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { color: #2B3550; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #2B3550; }
.btn:active, a[data-story-cta]:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #2B3550; }
.btn-nav { display: inline-flex; width: auto; max-width: none; margin: 0; min-height: 44px; padding: 0 19px; font-size: 16px; box-shadow: 2px 2px 0 #2B3550; white-space: nowrap; }
.btn-nav:hover { box-shadow: 3px 3px 0 #2B3550; }
.press-btn { transition: transform 0.1s ease, box-shadow 0.1s ease; }
.press-btn:active { transform: translate(3px,3px) !important; box-shadow: 0 0 0 #2B3550 !important; }

/* ---- layout shells ---- */
.wrap { max-width: 620px; margin: 0 auto; padding-left: clamp(20px, 5vw, 40px); padding-right: clamp(20px, 5vw, 40px); }
.sec { padding-top: clamp(54px, 9vw, 96px); padding-bottom: clamp(54px, 9vw, 96px); }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; background: #FFF6E8; border-bottom: 2px solid rgba(43,53,80,0.14); }
.hero-inner { max-width: 620px; margin: 0 auto; padding: clamp(34px, 5.5vw, 60px) clamp(20px, 5vw, 40px) 0; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; background: rgba(255,210,63,0.32); border: 1.5px solid rgba(43,53,80,0.2); border-radius: 999px; padding: 6px 15px; font-size: 16px; font-weight: 700; letter-spacing: 0.2px; color: rgba(43,53,80,0.72); animation: rise 0.6s cubic-bezier(0.16,1,0.3,1) both; }
.hero-h1 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: clamp(2.5rem, 10.4vw, 3.7rem); line-height: 1.05; letter-spacing: -0.005em; margin: 26px 0 0; }
.hw { display: inline-block; animation: rise 0.65s cubic-bezier(0.16,1,0.3,1) both; }
.hero-squig path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawIn 0.6s ease-out 0.95s forwards; }
.hero-sub { font-size: 17.5px; font-weight: 600; line-height: 1.6; margin: 22px auto 30px; max-width: 32ch; color: rgba(43,53,80,0.78); animation: rise 0.65s cubic-bezier(0.16,1,0.3,1) 0.5s both; }
.hero-cta-zone { animation: rise 0.65s cubic-bezier(0.16,1,0.3,1) 0.64s both; }
.micro { font-size: 16px; font-weight: 700; color: rgba(43,53,80,0.7); text-align: center; margin: 12px 0 0; }
.stars { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; }
.hero-art { position: relative; width: clamp(250px, 66vw, 340px); margin: 30px auto 0; padding-top: 62px; }
.hero-art > img { width: 100%; position: relative; animation: rickyUp 0.85s cubic-bezier(0.16,1,0.3,1) 0.35s both; }
.glow { position: absolute; left: 50%; bottom: -22%; width: 150%; aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,210,63,0.5), rgba(255,210,63,0) 72%); pointer-events: none; }
.worry { position: absolute; top: 4px; left: -1%; width: 78px; opacity: 0.72; pointer-events: none; animation: dissolve 0.8s ease-in 1.6s forwards; }
.worry path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawIn 0.85s ease-out 0.5s forwards; }
.sun { position: absolute; top: 2px; left: 4%; width: 52px; opacity: 0; pointer-events: none; animation: sunPop 0.55s cubic-bezier(0.34,1.3,0.5,1) 2.3s forwards, bob 5.5s ease-in-out 3.2s infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rickyUp { from { transform: translateY(52px); } to { transform: translateY(0); } }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
@keyframes dissolve { to { opacity: 0; filter: blur(6px); transform: translateY(-10px) scale(1.06); } }
@keyframes sunPop { 0% { opacity: 0; transform: scale(0.2) rotate(-30deg); } 70% { opacity: 0.68; transform: scale(1.07) rotate(2deg); } 100% { opacity: 0.62; transform: scale(1) rotate(0deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1); } }

/* ---- scroll reveals: things settle like paper ---- */
html.js .rv { opacity: 0; transform: translateY(20px) rotate(var(--r0, 0deg)); transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1); transition-delay: var(--d, 0s); }
html.js .rv.in { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); }

/* ---- sticky notes / bubble ---- */
.note { position: relative; border: 1.5px solid #2B3550; border-radius: 5px 16px 7px 18px / 15px 7px 17px 9px; box-shadow: 3px 4px 0 rgba(43,53,80,0.12); padding: 17px 46px 17px 18px; transform: rotate(var(--r, 0deg)); }
.note p { font-size: 17px; font-weight: 700; line-height: 1.5; margin: 0; text-wrap: pretty; }
.worry-list { display: flex; flex-direction: column; gap: 22px; max-width: 400px; margin: 36px auto 0; }
.worry-list .note-l { align-self: flex-start; }
.worry-list .note-r { align-self: flex-end; }
.tape { position: absolute; top: -10px; width: 54px; height: 19px; opacity: 0.8; border-radius: 2px; }
.doodle { position: absolute; right: 12px; bottom: 9px; opacity: 0.7; }

/* ---- awards marquee ---- */
.awards-strip { max-width: 860px; }
.marquee { display: flex; width: max-content; animation: press-marquee 26s linear infinite; }
.marquee-row { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.marquee-row img { opacity: 0.55; }
.device-showcase { margin: 30px 0 4px; }
@keyframes press-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- outcome (yellow) ---- */
.spot { background: #FFD23F; }
.torn { display: block; width: 100%; height: 22px; }

/* ---- outcome ---- */
.out-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.bigphoto { position: relative; border: 2.5px solid #2B3550; border-radius: 20px; box-shadow: 5px 6px 0 rgba(43,53,80,0.14); transform: rotate(var(--r, 0deg)); background: #FFFDF6; }
.bigphoto img { border-radius: 17px; width: 100%; }
.out-copy p { font-size: 19px; font-weight: 800; text-align: center; line-height: 1.5; margin: 0 0 18px; text-wrap: pretty; }

/* ---- testimonials: polaroids ---- */
.pols { display: flex; flex-direction: column; gap: 30px; margin-top: 38px; }
.pol { position: relative; background: #FFFFFF; border: 1.5px solid rgba(43,53,80,0.22); border-radius: 6px; padding: 12px 12px 14px; box-shadow: 0 14px 30px rgba(43,53,80,0.12); transform: rotate(var(--r, 0deg)); }
.pol .tape { left: 50%; margin-left: -27px; }
.pol-inner { border-radius: 4px; padding: 18px 16px 16px; }
.pol-inner .stars-sm { color: #FF5A47; font-size: 16px; letter-spacing: 3px; }
.pol-inner blockquote { font-size: 16.5px; font-weight: 700; line-height: 1.6; margin: 8px 0 0; text-wrap: pretty; }
.pol .cap { display: flex; align-items: center; gap: 9px; padding: 12px 6px 0; }
.pol .ava { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #2B3550; display: flex; align-items: center; justify-content: center; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 16px; flex-shrink: 0; }
.pol .who { font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 16px; }
.pol .vrf { margin-left: auto; font-size: 16px; font-weight: 700; color: #2F7A3D; white-space: nowrap; }

/* ---- proof stamps + press ---- */
.stamps { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 14px; max-width: 380px; margin: 34px auto 0; }
.stamp { transform: rotate(var(--r, 0deg)); }
.stamp-ring { border: 2px solid #2B3550; border-radius: 50% 46% 52% 48% / 46% 52% 44% 56%; padding: 4px; }
.stamp-in { border: 1.5px dashed rgba(43,53,80,0.55); border-radius: 50% 46% 52% 48% / 46% 52% 44% 56%; padding: 16px 8px 14px; text-align: center; }
.stamp-big { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 28px; line-height: 1; }
.stamp-sm { font-weight: 800; font-size: 16px; letter-spacing: 0; text-transform: none; line-height: 1.3; margin-top: 5px; }
.press { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 36px; margin-top: 38px; opacity: 0.55; }

/* ---- pricing ---- */
.price-lede { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 38px; }
.price-shell { position: relative; max-width: 400px; margin: 0 auto; }
.price-card { background: #FFFDF6; border: 2.5px solid #2B3550; border-radius: 26px 22px 28px 20px / 22px 28px 20px 26px; box-shadow: 5px 6px 0 rgba(43,53,80,0.18); padding: 30px 24px 26px; text-align: center; }

/* ---- FAQ ---- */
details.faq { background: #FFF6E8; border: 1.5px solid #2B3550; border-radius: 20px; padding: 16px 18px; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faqplus { transform: rotate(45deg); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq .q { font-size: 17px; font-weight: 800; line-height: 1.4; }
.faqplus { font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 26px; line-height: 1; color: #FF5A47; flex-shrink: 0; transition: transform 0.2s ease; }
.faq .a { font-size: 16.5px; line-height: 1.6; margin: 10px 0 2px; color: rgba(43,53,80,0.9); }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.sec-faq { padding-bottom: clamp(32px, 5vw, 56px); }

/* ---- closing / footer ---- */
.closing { background: radial-gradient(120% 90% at 50% 112%, #FFECC0 0%, #FFF6E8 60%); }
.footer-inner { max-width: 620px; margin: 0 auto; padding: 34px clamp(20px, 5vw, 40px) 38px; text-align: center; }
.footer-tag { font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 16px; margin: 0 0 16px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 0 0 18px; }
.footer-links a { font-size: 16px; font-weight: 700; text-decoration: none; }
.footer-copy { font-size: 16px; font-weight: 600; color: rgba(43,53,80,0.62); margin: 0; }

/* ===== small tablet ===== */
@media (min-width: 600px) {
  .worry-list { max-width: 520px; }
  .hero-h1 { font-size: clamp(3rem, 7vw, 3.6rem); }
  .hero-sub { font-size: 18.5px; }
}

/* ===== tablet ===== */
@media (min-width: 768px) {
  .wrap { max-width: 860px; }
  .awards-strip { max-width: 1000px; }
  .worry-list { max-width: 620px; }
  .pols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
  .faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .stamps { grid-template-columns: repeat(4, 1fr); max-width: 720px; }
  .method-inner { max-width: 680px; }
  .price-lede p { font-size: 18px; }
}

/* ===== laptop: sections open out ===== */
@media (min-width: 1024px) {
  .wrap { max-width: 1120px; }
  .awards-strip { max-width: 1120px; }
  .hero-inner { max-width: 1120px; display: grid; grid-template-columns: 1.08fr 0.92fr; column-gap: clamp(40px, 5vw, 76px); align-items: end; text-align: left; padding-top: 64px; }
  .hero-copy { padding: 24px 0 84px; }
  .hero-h1 { font-size: clamp(3.1rem, 4.4vw, 4.1rem); margin-top: 30px; }
  .hero-sub { margin: 24px 0 34px; max-width: 32ch; font-size: 20px; }
  .h2 { font-size: clamp(1.95rem, 2.7vw, 2.5rem); }
  .hero-cta-zone { max-width: 420px; }
  .hero-cta-zone .btn { margin-left: 0; max-width: 400px; }
  .micro { text-align: left; }
  .stars { justify-content: flex-start; }
  .hero-art { margin: 0; width: clamp(330px, 30vw, 430px); justify-self: center; }

  .worry-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; max-width: 900px; align-items: start; }
  .worry-list .note-l { align-self: auto; justify-self: start; }
  .worry-list .note-r { align-self: auto; justify-self: end; }

  .method-inner { max-width: 1040px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); column-gap: clamp(40px, 5vw, 76px); align-items: center; }
  .method-inner > .h2, .method-inner > .sq, .method-inner > .m-lede { grid-column: 1 / -1; }
  .method-inner > .m-step { grid-column: 1; }
  .method-inner > .device-showcase { grid-column: 2; grid-row: 4 / span 3; margin: 0; }
  .method-inner > .btn { grid-column: 1; max-width: 360px; }
  .device-showcase img { max-width: 230px !important; }

  .out-grid { grid-template-columns: 1fr 1fr; align-items: center; column-gap: clamp(40px, 5vw, 76px); }
  .out-copy .h2, .out-copy p { text-align: left; }

  .price-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: center; column-gap: clamp(48px, 6vw, 90px); max-width: 980px; }
  .price-lede { align-items: flex-start; margin-bottom: 0; gap: 18px; }
  .price-lede img { width: 68px !important; height: 68px !important; border-radius: 16px !important; }
  .price-lede p { text-align: left !important; font-size: 22px; line-height: 1.5; max-width: 20ch; }
  .price-shell { margin: 0; max-width: 420px; }

  .footer-inner { max-width: 1120px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; row-gap: 14px; }
  .footer-tag, .footer-links { margin: 0; }
  .footer-links { justify-content: flex-end; }
  .footer-copy { flex-basis: 100%; text-align: left; margin: 0; }
}

/* ===== desktop ===== */
@media (min-width: 1280px) {
  .wrap { max-width: 1200px; }
  .hero-inner { max-width: 1200px; padding-top: 76px; }
  .hero-h1 { font-size: clamp(3.5rem, 4.4vw, 4.5rem); }
  .worry-list { max-width: 960px; gap: 30px 56px; }
  .method-inner { max-width: 1120px; }
  .device-showcase img { max-width: 250px !important; }
  .price-wrap { max-width: 1060px; grid-template-columns: minmax(0, 1fr) 440px; }
  .price-shell { max-width: 440px; }
  .pols { gap: 30px; }
  .faq-list { gap: 18px; }
  .stamps { max-width: 860px; gap: 22px; }
  .footer-inner { max-width: 1200px; }
}

/* ===== large desktop ===== */
@media (min-width: 1600px) {
  .wrap { max-width: 1280px; }
  .hero-inner { max-width: 1280px; }
  .footer-inner { max-width: 1280px; }
}

/* ===== reduced motion: everything just is ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .worry { display: none; }
  .sun { opacity: 0.62; }
  html.js .rv { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); }
}

/* ===== Story page ===== */
body.story-page { min-height: 100vh; display: flex; flex-direction: column; position: relative; }
.story-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.story-header, .story-main { position: relative; z-index: 1; }
.story-main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 10px 20px 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
@media (min-width: 768px) { .story-main { padding-left: 32px; padding-right: 32px; } }
.screen { width: 100%; max-width: 480px; display: none; flex-direction: column; align-items: center; text-align: center; }
.screen.active { display: flex; animation: storyFade 0.25s ease both; }
@keyframes storyFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.panel-card { width: 100%; background: #FFFFFF; border: 1.5px solid #2B3550; border-radius: 24px; padding: 22px 20px; }
