/* labelGo: playful stationery look layered over app.css. Colours live in the :root block. */
@font-face { font-family: Fredoka; src: url("../fonts/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }

:root {
  --ink: #1b1464;
  --muted: #5d5a86;
  --paper: #fff8e7;
  --card: #ffffff;
  --line: #e7dcc4;
  --magenta: #ff3d8b;
  --magenta-deep: #e0206f;
  --cyan: #19c3ff;
  --cyan-deep: #0a8fc2;
  --yellow: #ffd23f;
  --purple: #7c4dff;
  --orange: #ff8a3d;
  --lime: #4cd964;
  --blue: #2f5bea;
  --pop: 4px 4px 0 var(--ink);
  --pop-sm: 3px 3px 0 var(--ink);
  --radius: 22px;
}
body { background: var(--paper); color: var(--ink); background-image: radial-gradient(rgba(27,20,100,.07) 1.4px, transparent 1.6px); background-size: 22px 22px; }
h1, h2, h3, .btn, .brand-tag, .eyebrow, .site-nav a, .pack-name, .step-no { font-family: Fredoka, Outfit, sans-serif; }
h1 { font-weight: 700; letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -0.01em; }
a { color: var(--blue); }

.examplebar { background: repeating-linear-gradient(-45deg, #ffe08a 0 14px, #ffd23f 14px 28px); color: var(--ink); text-align: center; padding: .45rem 1rem; font-size: .88rem; border-bottom: 3px solid var(--ink); }
.devbar { border-bottom: 3px solid var(--ink); }

/* header */
.site-header { background: #fff; color: var(--ink); border-bottom: 4px solid var(--ink); box-shadow: 0 4px 0 var(--magenta); gap: .8rem; }
.brand { gap: .45rem; text-decoration: none; align-items: center; }
.brand img { height: 52px; width: auto; }
.brand-tag { background: var(--magenta); color: #fff; font-weight: 700; padding: .15rem .8rem .25rem; border-radius: 999px; border: 3px solid var(--ink); transform: rotate(-4deg); font-size: 1.15rem; box-shadow: var(--pop-sm); }
.brand-by { font-family: Fredoka, Outfit, sans-serif; font-weight: 600; font-size: .82rem; color: var(--ink); transform: rotate(-4deg); white-space: nowrap; }
.brand-by a { color: inherit; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: 1.02rem; padding: .35rem .8rem; border: 3px solid transparent; border-radius: 999px; }
.site-nav a:hover { background: var(--yellow); border-color: var(--ink); }
.site-nav a.is-active { background: var(--cyan); border-color: var(--ink); }
.site-nav a.nav-out { background: var(--ink); color: #fff; }
.site-nav a.nav-out:hover { background: var(--purple); border-color: var(--ink); }
.nav-toggle { color: var(--ink); border: 3px solid var(--ink); background: var(--yellow); font-weight: 700; box-shadow: var(--pop-sm); }

/* buttons */
.btn { border: 3px solid var(--ink); box-shadow: var(--pop-sm); transition: transform .12s, box-shadow .12s; font-weight: 700; }
.btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-magenta { background: var(--magenta); color: #fff; }
.btn-magenta:hover { background: var(--magenta); }
.btn-cyan { background: var(--cyan); color: var(--ink); }
.btn-cyan:hover { background: var(--cyan); }
.btn-ghost { background: #fff; color: var(--ink); border: 3px solid var(--ink); }
.btn-big { font-size: 1.2rem; padding: 1rem 1.6rem; }
.btn-small { border-radius: 14px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }
.site-header .btn { color: #fff; }

/* hero */
.hero.hero-funky { background: linear-gradient(135deg, #ffd23f 0%, #ff8ac2 55%, #b79bff 100%); color: var(--ink); border-bottom: 4px solid var(--ink); position: relative; overflow: hidden; min-height: 0; padding: clamp(1.8rem, 5vw, 4.5rem); }
.hero-funky .eyebrow { color: var(--ink); background: #fff; display: inline-block; border: 3px solid var(--ink); border-radius: 999px; padding: .15rem .8rem; transform: rotate(-2deg); box-shadow: var(--pop-sm); letter-spacing: .08em; }
.hero-funky h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); text-shadow: 3px 3px 0 #fff; }
.hero-funky .lede { color: var(--ink); font-weight: 500; }
.hero-funky .hero-note { color: var(--ink); font-weight: 600; }
.wiggle { display: inline-block; color: var(--magenta); text-shadow: 3px 3px 0 var(--ink); transform: rotate(-3deg); }
.hero-stickers { position: relative; min-height: 360px; }
.sticker-pile { position: relative; height: 100%; min-height: 360px; }
.sticker-pile .theme-sample { position: absolute; display: block; filter: drop-shadow(3px 4px 0 rgba(27,20,100,.9)); transition: transform .2s; }
.sticker-pile .theme-sample:hover { transform: scale(1.06) rotate(0deg) !important; }
.sticker-pile .s1 { left: 4%; top: 2%; transform: rotate(-9deg); }
.sticker-pile .s2 { left: 36%; top: 6%; transform: rotate(5deg); }
.sticker-pile .s3 { right: 2%; top: 34%; transform: rotate(12deg); }
.sticker-pile .s4 { left: 6%; top: 36%; transform: rotate(3deg); }
.sticker-pile .s5 { left: 14%; bottom: 4%; transform: rotate(-6deg); }
.sticker-pile .s6 { right: 14%; bottom: 2%; transform: rotate(-12deg); }
.label-sample { display: block; }
.theme-sample { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: center; }
.theme-sample .label-sample { filter: drop-shadow(2px 3px 0 rgba(27,20,100,.85)); }

/* sections */
.theme-strip, .packs-band, .steps, .dtf-band, .page-head, .pack-flow, .theme-section { width: min(1120px, calc(100% - 2rem)); margin: 2.4rem auto; }
.theme-strip { text-align: center; }
.theme-marquee { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1rem 0; }
.theme-chip { text-decoration: none; color: #fff; font-family: Fredoka, sans-serif; font-weight: 600; padding: .45rem 1rem; border-radius: 999px; border: 3px solid var(--ink); background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: var(--pop-sm); text-shadow: 1px 1px 0 rgba(0,0,0,.45); transition: transform .12s; }
.theme-chip:nth-child(odd) { transform: rotate(-2deg); }
.theme-chip:nth-child(even) { transform: rotate(1.5deg); }
.theme-chip:hover { transform: scale(1.08) rotate(0); }
.section-lede { max-width: 40rem; margin-top: -.2rem; color: var(--muted); font-size: 1.1rem; }

.page-head { text-align: center; }
.page-head .eyebrow { color: var(--magenta); }
.page-head .lede { margin-inline: auto; color: var(--ink); }
.eyebrow { color: var(--magenta); }

/* pack cards */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; margin-top: 1rem; }
.pack-card { display: block; position: relative; cursor: pointer; text-decoration: none; color: inherit; }
.pack-card input, .theme-card input, .size-card input, .choice input { position: absolute; opacity: 0; pointer-events: none; }
.pack-card-body { display: flex; flex-direction: column; gap: .35rem; align-items: center; text-align: center; background: #fff; border: 4px solid var(--ink); border-radius: var(--radius); padding: 1rem .9rem 1.1rem; box-shadow: var(--pop); transition: transform .15s, box-shadow .15s, background .15s; height: 100%; }
.pack-card:nth-child(4n+1) .pack-card-body { background: #fff0f7; }
.pack-card:nth-child(4n+2) .pack-card-body { background: #eefaff; }
.pack-card:nth-child(4n+3) .pack-card-body { background: #fff9dc; }
.pack-card:nth-child(4n+4) .pack-card-body { background: #f1ecff; }
.pack-card:hover .pack-card-body { transform: translate(-2px, -3px) rotate(-.6deg); box-shadow: 7px 8px 0 var(--ink); }
.pack-card input:checked + .pack-card-body { outline: 5px solid var(--magenta); outline-offset: 3px; transform: rotate(-.8deg); }
.pack-card input:focus-visible + .pack-card-body, .theme-card input:focus-visible + .theme-card-body, .size-card input:focus-visible + .size-card-body, .choice input:focus-visible + span { outline: 4px solid var(--cyan); outline-offset: 3px; }
.pack-preview { background: #fff; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 rgba(27,20,100,.25); max-width: 100%; }
.pack-name { font-size: 1.3rem; font-weight: 700; margin-top: .3rem; }
.pack-blurb { font-size: .95rem; color: var(--muted); }
.pack-counts { list-style: none; padding: 0; margin: .2rem 0; font-size: .92rem; text-align: left; width: 100%; }
.pack-counts li { padding: .1rem 0; border-bottom: 2px dotted rgba(27,20,100,.2); }
.pack-counts small { color: var(--muted); }
.pack-meta { font-size: .88rem; color: var(--muted); font-weight: 600; }
.pack-price { font-family: Fredoka, sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--magenta-deep); }
.pack-price small { font-size: .75rem; color: var(--muted); font-weight: 500; }
.pack-grid-home { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.pack-card-link .pack-card-body { padding-bottom: .8rem; }

/* flow steps */
.flow-step { background: #fff; border: 4px solid var(--ink); border-radius: 28px; padding: 1.2rem 1.4rem 1.6rem; margin: 1.6rem 0; box-shadow: var(--pop); }
.flow-step h2 { display: flex; align-items: center; gap: .7rem; }
.step-no { display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%; font-weight: 700; transform: rotate(-6deg); }
.group-title { font-size: 1.25rem; margin: 1.2rem 0 .5rem; display: inline-block; padding: .15rem 1rem; border: 3px solid var(--ink); border-radius: 999px; box-shadow: var(--pop-sm); }
.group-title.boys { background: var(--cyan); }
.group-title.girls { background: #ff9ccb; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; margin-top: .6rem; }
.theme-card { position: relative; cursor: pointer; }
.theme-card-body { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .7rem .5rem; background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--pop-sm); transition: transform .12s; height: 100%; }
.theme-card:hover .theme-card-body { transform: translateY(-3px) rotate(-1deg); }
.theme-card input:checked + .theme-card-body { background: #fff4a8; outline: 5px solid var(--magenta); outline-offset: 2px; }
.theme-card .theme-sample { min-height: 62px; }
.theme-card strong { font-family: Fredoka, sans-serif; font-size: 1.05rem; }
.name-field { display: grid; gap: .3rem; font-weight: 700; font-family: Fredoka, sans-serif; max-width: 26rem; margin: .6rem auto; }
.flow-step .name-field { margin-inline: 0; }
.name-field input, .size-edit input, .size-edit select, .size-edit textarea, .checkout input:not([type=radio]):not([type=checkbox]), .checkout select, .checkout textarea { border: 3px solid var(--ink); border-radius: 14px; padding: .65rem .85rem; background: #fff; font-weight: 500; width: 100%; }
.name-field input { font-size: 1.3rem; }
.name-field input:focus, .size-edit input:focus, .size-edit select:focus { outline: 4px solid var(--cyan); }
.hint { color: var(--muted); font-size: .9rem; }

/* theme gallery */
.theme-showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.theme-tile { background: #fff; border: 4px solid var(--ink); border-radius: 24px; padding: 1rem; box-shadow: var(--pop); text-align: center; display: flex; flex-direction: column; gap: .6rem; align-items: center; }
.theme-tile:nth-child(3n+1) { transform: rotate(-.6deg); }
.theme-tile:nth-child(3n+2) { transform: rotate(.5deg); }
.theme-tile h3 { margin: 0; font-size: 1.3rem; }
.theme-tile .theme-sample { min-height: 150px; align-content: center; }

/* size cards */
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.size-card { position: relative; cursor: pointer; }
.size-card-body { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; background: #fff; border: 3px solid var(--ink); border-radius: 20px; padding: .9rem .6rem 1rem; box-shadow: var(--pop-sm); height: 100%; transition: transform .12s; }
.size-card:hover .size-card-body { transform: translateY(-3px); }
.size-card input:checked + .size-card-body { background: #fff4a8; outline: 5px solid var(--magenta); outline-offset: 2px; }
.size-shape { display: block; background: linear-gradient(135deg, var(--cyan), var(--purple)); border: 3px solid var(--ink); width: calc(var(--w) * 1.3px); height: calc(var(--h) * 1.3px); max-width: 110px; max-height: 80px; min-width: 18px; min-height: 14px; border-radius: 8px; margin: .3rem 0; }
.size-shape.size-round { border-radius: 50%; }
.size-card .muted, .fit-counts { color: var(--muted); font-size: .82rem; }
.fit-counts b { color: var(--magenta-deep); }
.choice-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: .6rem 0 1.2rem; }
.choice { position: relative; cursor: pointer; }
.choice > span { display: block; border: 3px solid var(--ink); border-radius: 18px; padding: .8rem 1.1rem; background: #fff; box-shadow: var(--pop-sm); }
.choice input:checked + span { background: #fff4a8; outline: 5px solid var(--magenta); outline-offset: 2px; }

/* steps + dtf band */
.steps ol { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; padding: 0; counter-reset: none; }
.steps li { background: #fff; border: 4px solid var(--ink); border-radius: 24px; padding: 1.1rem 1.2rem 1.3rem; box-shadow: var(--pop); }
.steps li:nth-child(1) { background: #fff0f7; transform: rotate(-1deg); }
.steps li:nth-child(2) { background: #eefaff; transform: rotate(.8deg); }
.steps li:nth-child(3) { background: #fff9dc; transform: rotate(-.6deg); }
.steps li span { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--magenta); color: #fff; border: 3px solid var(--ink); font-family: Fredoka, sans-serif; font-weight: 700; font-size: 1.3rem; }
.steps h3 { margin: .5rem 0 .2rem; }
.dtf-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--ink); color: #fff; border-radius: 28px; padding: 1.4rem 1.6rem; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--magenta); }
.dtf-band h2 { margin: 0; color: #fff; }
.dtf-band p { margin: .2rem 0 0; color: #dcd8ff; }
.dtf-band .btn-ghost { box-shadow: 3px 3px 0 var(--magenta); }

/* builder */
.builder { width: min(1500px, calc(100% - 1.2rem)); margin: 1rem auto; }
.builder-intro { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.builder-intro h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0; }
.builder-intro p { margin: .2rem 0; }
.price-pill { background: var(--yellow); border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--pop-sm); font-family: Fredoka, sans-serif; font-weight: 700; padding: .5rem 1rem; transform: rotate(1deg); }
.panel { background: #fff; border: 4px solid var(--ink); border-radius: 24px; padding: 1rem; box-shadow: var(--pop); }
.panel h2 { font-size: 1.25rem; }
.tool-box { border: 3px solid var(--ink); border-radius: 16px; padding: .5rem .8rem .8rem; margin: .6rem 0; background: #fffdf5; }
.tool-box > summary { cursor: pointer; font-family: Fredoka, sans-serif; font-weight: 700; font-size: 1.05rem; padding: .25rem 0; }
.tool-box[open] > summary { margin-bottom: .4rem; }
.size-edit { display: grid; gap: .25rem; font-weight: 600; font-size: .92rem; margin: .45rem 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; align-items: end; }
.size-edit input[type="color"] { padding: .15rem; height: 2.6rem; }
.size-edit input[type="range"] { padding: 0; border: 0; }
.upload { border: 3px dashed var(--magenta); background: #fff0f7; border-radius: 16px; font-family: Fredoka, sans-serif; }
.sheet-scroll { border: 4px solid var(--ink); border-radius: 20px; background: #f4f0ff; box-shadow: var(--pop); }
.sheet-canvas-wrap { box-shadow: 0 0 0 1px rgba(27,20,100,.25), 6px 8px 0 rgba(27,20,100,.2); }
.sheet-canvas-wrap #mask { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 6; }
.zoom-controls button { border: 3px solid var(--ink); border-radius: 14px; background: #fff; font-weight: 700; box-shadow: 2px 2px 0 var(--ink); }
.zoom-controls button:disabled { box-shadow: none; }
.sheet-tabs button { border: 3px solid var(--ink); border-radius: 999px; background: #fff; padding: .3rem .9rem; font-weight: 700; }
.sheet-tabs button.is-active { background: var(--yellow); }
.art-list li { border: 2px solid var(--ink); border-radius: 12px; }
.art-list li.is-active { background: #fff4a8; border-color: var(--magenta); }
.quote div { border-bottom: 2px dotted rgba(27,20,100,.25); }
.warnings li { color: #9b3a00; }
.builder-alert { border: 3px solid var(--ink); border-radius: 16px; background: #ffe3e8; padding: .6rem 1rem; margin-top: .6rem; font-weight: 600; }
.app-dock { border-top: 4px solid var(--ink); }
.app-dock button { font-family: Fredoka, sans-serif; font-weight: 700; }

/* footer */
.site-footer { background: var(--ink); color: #fff; border-top: 6px solid var(--magenta); }
.site-footer a { color: var(--yellow); }
.site-footer h2 { color: #fff; font-family: Fredoka, sans-serif; }
.site-footer .credit { color: #b9b4f0; }

/* checkout and prose pages */
.checkout > *, .stack, .summary-card { border-radius: 22px; }
.summary-card, .checkout fieldset { background: #fff; border: 4px solid var(--ink); box-shadow: var(--pop); }
.prose h1, .narrow h1 { font-size: clamp(2rem, 4vw, 3rem); }
.prose details { background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--pop-sm); }
.banner { border: 3px solid var(--ink); border-radius: 16px; }

@media (max-width: 980px) {
  .hero.hero-funky { grid-template-columns: 1fr; }
  .hero-stickers { min-height: 300px; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 4px solid var(--ink); padding: .8rem 1rem 1rem; flex-direction: column; margin: 0; }
  .nav-open .site-nav { display: flex; }
  .site-header { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .pack-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .pack-grid-home { grid-template-columns: repeat(2, 1fr); }
  .pack-card-body { padding: .7rem .5rem; }
  .pack-counts { font-size: .8rem; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .size-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-showcase { grid-template-columns: 1fr; }
  .flow-step { padding: .9rem .8rem 1.2rem; border-radius: 22px; }
  .sticker-pile .theme-sample { transform-origin: center; }
  .sticker-pile .s1 { left: 0; } .sticker-pile .s3 { right: 0; }
  .brand img { height: 44px; }
  .brand-tag { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.price-pill span { color: var(--ink); font-weight: 500; font-size: .8em; }
.sheet-scroll { max-height: min(84vh, 1000px); }

.sheet-grid { margin: 0 auto; }
@media (max-width: 640px) {
  .examplebar, .devbar { font-size: .74rem; padding: .3rem .6rem; line-height: 1.25; }
  .builder-intro { align-items: flex-start; }
}

[hidden] { display: none !important; }

.checkout input[type=radio], .checkout input[type=checkbox] { width: auto; accent-color: var(--magenta); }
.radio { display: flex; gap: .6rem; align-items: center; }
.stack label.radio, .stack label.check { display: flex; }
.checkout fieldset { padding: .6rem 1rem .9rem; }

/* Multi-A4 pack previews */
.pack-preview-wrap { display: flex; gap: .4rem; justify-content: center; align-items: flex-end; flex-wrap: wrap; width: 100%; }
.pack-preview-wrap .pack-page { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.pack-preview-wrap .page-tag { font-size: .72rem; font-weight: 700; color: var(--ink); }
.custom-theme-card .theme-card-body { text-align: left; max-width: 28rem; margin-inline: auto; }
.custom-theme-panel { display: flex; flex-direction: column; gap: .45rem; margin: .7rem 0 .3rem; padding: .7rem; border: 3px solid var(--ink); border-radius: 16px; background: #fff8e7; }
.icon-library { display: flex; flex-wrap: wrap; gap: .3rem; }
.icon-pick { width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 10px; background: #fff center/cover no-repeat; padding: 0; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.icon-pick.is-on { background-color: var(--yellow); outline: 3px solid var(--magenta); }
.theme-showcase .theme-sample { display: flex; flex-wrap: wrap; gap: .45rem .5rem; justify-content: center; align-items: flex-end; }
.theme-showcase .theme-tile { padding: 1rem .7rem 1.1rem; }
.footer-brand .brand-by { margin-left: .25rem; }
