/* Home page, on top of site.css. Scrapbook look of the app. */
@font-face { font-family: "Caveat"; font-weight: 700; src: url("/fonts/Caveat-Bold.ttf") format("truetype"); font-display: swap; }
:root { --white: #FFFFFF; --pink: #C2316B; --pink-tint: #FCE4EE; --yellow: #F9C33C; --line: #E6DED3;
  --shadow: 0 6px 18px rgba(184, 155, 106, 0.18); }
body.landing { overflow-x: clip; }
.landing .wrap { max-width: 1040px; padding-bottom: 32px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.landing main { background: none; padding: 0; box-shadow: none; border-radius: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 24px 0 56px; }
.hero h1 { font-size: 52px; margin: 0 0 16px; color: var(--ink); }
.hero h1 .scribble { color: var(--teal); background: linear-gradient(transparent 70%, var(--yellow) 70%, var(--yellow) 88%, transparent 88%); }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores a { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: 18px;
  background: var(--ink); color: var(--white); text-decoration: none; font-weight: 700; }
.stores a:hover { background: var(--teal); }
.stores svg { width: 22px; height: 22px; fill: currentColor; }
.promise { margin: 16px 0 0; font-size: 15px; color: var(--muted); }

/* Hero visual: drawings on tilted paper cards with washi tape */
.board { position: relative; height: 480px; }
.sheet { position: absolute; width: 230px; padding: 12px 12px 10px; background: #FFFEF9; border-radius: 6px; box-shadow: var(--shadow); }
.sheet svg { display: block; width: 100%; height: auto; border-radius: 2px; }
.sheet .cap { font-family: "Caveat", cursive; font-weight: 700; font-size: 20px; color: var(--ink); margin: 6px 2px 0; line-height: 1.1; }
.sheet::before { content: ""; position: absolute; top: -12px; left: 50%; width: 86px; height: 24px; margin-left: -43px;
  background: var(--tape); opacity: 0.8; transform: rotate(var(--tape-r, -4deg)); }
.sheet--a { --tape: #EC4F8C; top: 8px; left: 4%; transform: rotate(-6deg); }
.sheet--b { --tape: #8CC63F; --tape-r: 5deg; top: 24px; right: 2%; transform: rotate(5deg); }
.sheet--c { --tape: #3E8EDE; top: 250px; left: 22%; transform: rotate(-1.5deg); z-index: 1; }
.memo { position: absolute; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow); font-weight: 700; font-size: 15px; }
.memo .play { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pink); }
.memo .play svg { width: 16px; height: 16px; fill: var(--white); }
.memo .wave { display: flex; align-items: center; gap: 3px; }
.memo .wave i { display: block; width: 3px; border-radius: 2px; background: var(--pink); }
.love { position: absolute; left: 0; bottom: 110px; z-index: 2; padding: 8px 14px; border-radius: 14px; background: var(--pink-tint);
  color: var(--pink); font-weight: 700; font-size: 14px; transform: rotate(-3deg); }

/* Sections */
section.block { padding: 48px 0; }
.block h2 { font-size: 36px; text-align: center; margin: 0 0 8px; }
.block .sub { text-align: center; color: var(--muted); margin: 0 auto 32px; max-width: 560px; }
.underline { display: block; width: 120px; height: 10px; margin: 0 auto 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--white); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.step .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 12px;
  font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 22px; color: var(--white); background: var(--c); }
.step h3, .feature h3 { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 21px; line-height: 1.2; margin: 0 0 6px; }
.step p, .feature p { margin: 0; color: var(--muted); }

/* Screenshots: phones in a row, scrolling sideways when they do not fit */
.shots { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 16px 28px; margin: 0 -16px;
  scrollbar-width: thin; }
.shot { flex: 0 0 210px; margin: 0; scroll-snap-align: center; text-align: center; }
.shot img { display: block; width: 100%; height: auto; border-radius: 28px; border: 6px solid var(--ink); background: var(--paper);
  box-shadow: var(--shadow); }
.shot:nth-child(odd) img { transform: rotate(-1.5deg); }
.shot:nth-child(even) img { transform: rotate(1.5deg); }
.shot figcaption { font-family: "Caveat", cursive; font-weight: 700; font-size: 22px; line-height: 1.1; margin-top: 14px; }
.shot:first-child { margin-left: auto; }
.shot:last-child { margin-right: auto; }
@media (min-width: 1000px) { .shot { flex-basis: 180px; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--white); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); border-top: 6px solid var(--c); }
.feature .ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; margin-bottom: 12px;
  background: color-mix(in srgb, var(--c) 15%, white); color: var(--c); }
.feature .ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.compare { max-width: 760px; margin: 0 auto; background: var(--white); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare th, .compare td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.35; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 22px; border-bottom: 0; }
.compare thead th:first-child { width: 42%; }
.compare tbody th { font-weight: 400; color: var(--muted); }
.compare .pre { background: var(--tint); }
.compare thead .pre { background: var(--teal); color: var(--white); }
.compare small { color: var(--muted); font-size: 14px; }
.compare .yes { color: var(--teal); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plans-note { max-width: 760px; margin: 16px auto 0; text-align: center; }

.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 26px; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }
summary:focus-visible, .stores a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.cta { position: relative; text-align: center; background: var(--tint); border-radius: 32px; padding: 48px 24px; margin: 24px 0 0; }
.cta h2 { font-size: 36px; margin: 0 0 8px; }
.cta .stores { justify-content: center; }
.cta .star { position: absolute; width: 44px; top: 20px; right: 28px; transform: rotate(12deg); }

.landing footer { margin-top: 40px; color: var(--muted); }
.landing footer p { margin: 4px 0 0; }

@media (min-width: 861px) and (max-width: 980px) {
  .hero h1 { font-size: 44px; }
  .sheet { width: 200px; }
  .sheet--c { top: 230px; left: 18%; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 16px; padding-bottom: 32px; }
  .hero h1 { font-size: 40px; }
  .board { height: 480px; max-width: 420px; width: 100%; margin: 0 auto; }
  .steps, .features { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero { padding-top: 8px; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 17px; }
  section.block { padding: 36px 0; }
  .block h2, .cta h2 { font-size: 28px; }
  .block .sub { margin-bottom: 24px; }
  .step, .feature { padding: 20px; }
  .feature { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; }
  .feature .ico { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; margin: 0; }
  .feature .ico svg { width: 22px; height: 22px; }
  .feature h3 { font-size: 19px; }
  .compare { border-radius: 18px; }
  .compare th, .compare td { padding: 10px 10px; font-size: 15px; }
  .compare thead th { font-size: 18px; }
  .compare thead th:first-child { width: 38%; }
  .compare small { font-size: 13px; }
  .cta { padding: 36px 16px; border-radius: 24px; }
  .cta .star { width: 32px; top: 14px; right: 14px; }
  .brand { font-size: 24px; }
  .sheet { width: 148px; padding: 8px 8px 6px; }
  .sheet .cap { font-size: 16px; }
  .sheet--b { top: 40px; }
  .sheet--c { top: 215px; left: 16%; }
  .board { height: 420px; }
  .stores a { flex: 1 1 100%; justify-content: center; }
  .plans-note { font-size: 15px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 30px; }
  .sheet { width: 132px; }
  .sheet .cap { font-size: 15px; }
  .compare th, .compare td { padding: 8px 6px; font-size: 14px; }
  .compare thead th { font-size: 16px; }
  .compare small { font-size: 12px; }
  .switch button { min-width: 40px; }
}
