/* Shared styles for the idea pages (/ideas/...). Same look as the homepage: evergreen + cream,
   hot pink and gold, Bagel Fat One headings, tilted "sticker" shapes. */
@font-face { font-family: "Bagel Fat One"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/bagel-fat-one-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/fonts/figtree-latin.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --paper: #FFF6E6; --card: #FFFFFF; --panel: #FBEBD0;
  --ink: #0F2B27; --ink-soft: #4C6962; --mist: #CFE0D9; --line: rgba(15, 43, 39, .16);
  --ribbon: #E23A60; --ribbon-deep: #B0284A;
  --foil: #C99A2E; --foil-hi: #F2D68B;
  --font-display: "Bagel Fat One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-sm: 14px; --r-md: 20px; --r-lg: 28px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--ribbon-deep); font-weight: 700; }
:focus-visible { outline: 3px solid var(--ribbon); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 760px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* header */
.top { background: var(--ink); color: var(--paper); }
.top .wrap { display: flex; align-items: center; gap: 12px; padding-block: 14px; max-width: 1120px; }
.brand { text-decoration: none; display: inline-flex; transform: rotate(-3deg); }
.brand-ticket {
  display: inline-flex; align-items: center; gap: 8px; background: var(--foil-hi); color: var(--ink);
  font-family: var(--font-display); font-size: 1.45rem; line-height: 1; padding: 6px 16px 8px 18px;
  border-radius: 10px;
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.brand-ticket svg { width: 16px; height: 16px; border-left: 2px dashed rgba(15, 43, 39, .45); padding-left: 8px; box-sizing: content-box; }
.spacer { flex: 1; }
.top-cta { color: var(--foil-hi); text-decoration: none; font-weight: 800; padding: 10px 4px; }

/* hero with the playable card */
.hero { background: var(--ink); color: var(--paper); padding-block: 26px 56px; overflow: hidden; }
.crumb { font-size: .8125rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--foil-hi); }
.crumb a { color: inherit; text-decoration: none; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1; margin-top: 10px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--foil-hi); }
.lead { color: var(--mist); font-size: 1.125rem; margin-top: 14px; max-width: 40ch; }
.demo { display: grid; justify-items: center; gap: 12px; margin-top: 30px; }
.demo-card {
  position: relative; width: min(380px, 92%); aspect-ratio: 3 / 2;
  background: var(--paper); color: var(--ink); border-radius: var(--r-lg);
  box-shadow: 0 14px 0 var(--ribbon); transform: rotate(2.5deg);
  display: grid; place-content: center; gap: 8px; text-align: center; padding: 18px; overflow: hidden;
}
.demo-for { font-size: .8125rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ribbon-deep); }
.demo-text { font-family: var(--font-display); font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.04; text-wrap: balance; }
.demo-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .6s ease; }
.demo-card canvas.gone { opacity: 0; pointer-events: none; }
.demo-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--foil-hi); font-weight: 700; margin-top: 10px; }
.demo-hint svg { width: 20px; height: 20px; }
.cta-box { display: grid; gap: 8px; justify-items: center; margin-top: 26px; text-align: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 12px 28px; border-radius: 999px; border: 0;
  background: var(--ribbon); color: #FFFFFF; font-weight: 800; font-size: 1.1875rem;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn svg { width: 22px; height: 22px; }
.cta-note { font-size: .875rem; color: var(--mist); font-weight: 600; }
@media (max-width: 520px) { .cta-box .btn { width: 100%; } }

/* article */
main.article { padding-block: 40px 20px; }
.article h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 5.5vw, 2.25rem); line-height: 1.05; margin: 44px 0 16px; text-wrap: balance; }
.article h2:first-child { margin-top: 0; }
.article p { margin: 0 0 14px; }
.ideas { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: idea; }
.ideas li {
  counter-increment: idea; position: relative;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r-md);
  padding: 18px 18px 16px 64px;
}
.ideas li::before {
  content: counter(idea); position: absolute; left: 16px; top: 16px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--foil-hi); color: var(--ink); font-family: var(--font-display); font-size: 1.05rem;
  transform: rotate(-6deg);
}
.ideas h3 { font-size: 1.125rem; line-height: 1.3; margin-bottom: 4px; }
.ideas p { margin: 0; color: var(--ink-soft); }
.ideas li.ours { border-color: var(--ribbon); background: #FFF0F3; }
.steps { padding-left: 1.3em; margin: 0 0 8px; }
.steps li { margin-bottom: 8px; }
.inline-cta { margin: 24px 0 8px; }
.faq details { border-bottom: 2px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 800; cursor: pointer; list-style-position: outside; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }
.more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.more a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9375rem;
}
.more a:hover { background: var(--ink); color: var(--paper); }

/* index page */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.cards a {
  display: grid; gap: 6px; padding: 20px; border-radius: var(--r-md); background: var(--card);
  border: 2px solid var(--line); color: var(--ink); text-decoration: none;
}
.cards a:hover { border-color: var(--ribbon); }
.cards b { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; line-height: 1.1; }
.cards span { color: var(--ink-soft); font-weight: 500; }

.foot { margin-top: 56px; padding-block: 26px 36px; font-size: .875rem; color: var(--ink-soft); border-top: 2px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; max-width: 1120px; }
.foot a { color: var(--ink); }

/* confetti */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
@media (prefers-reduced-motion: reduce) { .demo-card, .brand { transform: none; } }
