/* tuliobox.com: the public site. The look the founder picked on 2026-12-02 ("Pack your box"): a sky, a kraft cardboard box,
   five colour stickers (Brand, Design, Rules, Skills, Memory), Fredoka and Nunito, chunky outlines. One light look on purpose.
   No inline styles anywhere: the site's CSP allows only this file (issue #40). */

@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/fredoka.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("fonts/nunito.woff2") format("woff2"); }

:root {
  --sky: #CFE5FF;
  --sky-2: #E4F0FF;
  --paper: #FFFFFF;
  --ink: #16244A;
  --ink-soft: #3F4C70;
  --plain: #EEF1F7;
  --kraft: #E7C796;
  --kraft-dark: #D2AC72;
  --brand: #FFC93C;
  --design: #FF86AE;
  --rules: #3CC48F;
  --skills: #A194FF;
  --memory: #FF9A4D;
  --harbor: #1E3A5C;
  --harbor-sand: #F1E6D4;
  --harbor-gold: #E0A84A;
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --line: 2.5px solid var(--ink);
  --pop: 3px 3px 0 var(--ink);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--sky); }
body { margin: 0; background: var(--sky); color: var(--ink); font: 600 17px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 72rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h2 { font: 700 clamp(1.8rem, 1.3rem + 2vw, 2.6rem)/1.05 var(--font-display); text-wrap: balance; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 40ch; margin-top: 0.6rem; }

/* Sticker colours */
.c-brand { --c: var(--brand); } .c-design { --c: var(--design); } .c-rules { --c: var(--rules); } .c-skills { --c: var(--skills); } .c-memory { --c: var(--memory); }
.m-brand { --m: var(--brand); } .m-rules { --m: var(--rules); } .m-memory { --m: var(--memory); }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); text-decoration: none; font: 600 1.05rem/1 var(--font-display); padding: 15px 24px; border-radius: 14px; box-shadow: 4px 4px 0 var(--memory); transition: transform 160ms var(--ease-out), box-shadow 160ms ease; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--memory); }
.btn.sm { padding: 10px 15px; font-size: 0.95rem; box-shadow: 3px 3px 0 var(--memory); }
.note { font-size: 0.95rem; color: var(--ink-soft); }

/* Top */
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 700 1.3rem/1 var(--font-display); text-decoration: none; }
.logo svg.i { width: 24px; height: 24px; }
.top-links { display: flex; align-items: center; gap: 16px; }
.top-links .plain { font: 600 1rem/1 var(--font-display); text-decoration: none; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 16px 56px; }
.hero-copy { display: grid; gap: 20px; align-content: center; }
h1 { font: 700 clamp(2.5rem, 1.4rem + 4.6vw, 4.4rem)/1 var(--font-display); text-wrap: balance; letter-spacing: -0.01em; }
.hero .sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 32ch; }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.scene { width: 100%; max-width: 480px; justify-self: center; display: grid; gap: 16px; }
.stage { position: relative; width: 100%; aspect-ratio: 46 / 34; }
.stage svg.box { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; }
.stick { position: absolute; z-index: 2; display: inline-flex; gap: 6px; align-items: center; padding: 8px 13px; border: var(--line); border-radius: 12px; background: var(--c); font: 600 1rem/1 var(--font-display); transform: rotate(var(--r)); box-shadow: var(--pop); animation: drop 700ms var(--ease-out) both; animation-delay: var(--d); }
.s1 { --r: -9deg; --d: 0ms; left: 6%; top: 4%; }
.s2 { --r: 6deg; --d: 90ms; left: 37%; top: 0%; }
.s3 { --r: -4deg; --d: 180ms; left: 67%; top: 5%; }
.s4 { --r: 5deg; --d: 270ms; left: 19%; top: 21%; }
.s5 { --r: -7deg; --d: 360ms; left: 52%; top: 22%; }
@keyframes drop { from { transform: translateY(-22px) rotate(var(--r)); } }
.apps { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.apps span { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: var(--line); border-radius: 999px; padding: 7px 13px; font: 600 0.95rem/1 var(--font-display); }

/* Bands */
.band { padding-block: 64px; border-top: var(--line); }
.band.white { background: var(--paper); }
.band.sky2 { background: var(--sky-2); }
.head { display: grid; gap: 4px; margin-bottom: 28px; }

/* The switch */
.switch-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 36px; align-items: center; }
.switch { display: inline-flex; background: var(--plain); border: var(--line); border-radius: 999px; padding: 4px; margin-top: 22px; }
.switch button { border: 0; background: transparent; color: var(--ink); font: 600 1rem/1 var(--font-display); padding: 11px 16px; border-radius: 999px; cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chat { background: var(--paper); border: var(--line); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); padding: 18px; display: grid; gap: 14px; min-height: 360px; align-content: start; min-width: 0; }
.ask { justify-self: end; background: var(--ink); color: var(--paper); padding: 10px 15px; border-radius: 16px 16px 4px 16px; max-width: 88%; }
.generic { display: grid; gap: 10px; }
.generic p { background: var(--plain); border-radius: 16px; padding: 13px 15px; line-height: 1.5; font-weight: 500; }
.generic .hash { background: transparent; color: var(--ink-soft); padding: 0 15px; }
.post { border: var(--line); border-radius: 16px; overflow: hidden; }
.post-top { display: flex; align-items: center; gap: 8px; background: var(--harbor); color: var(--paper); padding: 10px 14px; font: 700 1rem/1.2 Georgia, "Times New Roman", serif; flex-wrap: wrap; }
.mono { width: 26px; height: 26px; border-radius: 50%; background: var(--harbor-gold); color: var(--harbor); display: grid; place-items: center; font-size: 0.8rem; }
.post-body { padding: 16px; display: grid; gap: 10px; color: var(--harbor); font-weight: 500; }
.post-h { font: 700 1.5rem/1.15 Georgia, "Times New Roman", serif; }
mark { color: inherit; padding: 0 2px; border-radius: 3px; background: linear-gradient(transparent 50%, var(--m) 50%) no-repeat; background-size: 100% 100%; }
.played mark { animation: sweep 560ms var(--ease-out) both; }
.played mark:nth-of-type(2) { animation-delay: 120ms; }
@keyframes sweep { from { background-size: 0% 100%; } }
.tag { display: inline-flex; align-items: center; gap: 4px; vertical-align: 2px; font: 600 0.75rem/1 var(--font-display); padding: 4px 8px; border-radius: 8px; background: var(--c); color: var(--ink); border: 2px solid var(--ink); white-space: nowrap; margin-left: 4px; }
.tag svg.i { width: 13px; height: 13px; stroke-width: 2.4; }
.post-top .tag { margin-left: auto; }
.skillline { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--ink-soft); flex-wrap: wrap; }

/* What goes in */
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.card { border: var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 10px; align-content: start; background: var(--paper); min-width: 0; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; border: var(--line); background: var(--c); display: grid; place-items: center; box-shadow: var(--pop); }
.card .ico svg.i { width: 22px; height: 22px; }
.card h3 { font: 600 1.25rem/1.1 var(--font-display); }
.card p { font-size: 0.98rem; color: var(--ink-soft); line-height: 1.4; }
.swatches { display: flex; gap: 5px; }
.swatches span { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--ink); }
.sw-navy { background: #1E3A5C; } .sw-sand { background: #F1E6D4; } .sw-gold { background: #E0A84A; }

/* Your connected apps */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust li { border: var(--line); border-radius: 18px; padding: 18px; background: var(--paper); display: grid; gap: 8px; align-content: start; }
.trust h3 { font: 600 1.2rem/1.15 var(--font-display); }
.trust p { font-size: 0.98rem; color: var(--ink-soft); line-height: 1.45; }
.more { margin-top: 20px; font-family: var(--font-display); }

/* Packed by chatting */
.packed-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 36px; align-items: center; }
.soon { display: inline-block; margin-bottom: 12px; padding: 7px 12px; border: var(--line); border-radius: 10px; background: var(--brand); font: 600 0.95rem/1 var(--font-display); transform: rotate(-3deg); box-shadow: var(--pop); }
.thread { display: grid; gap: 12px; }
.bub { max-width: 86%; padding: 12px 16px; border: var(--line); border-radius: 18px; background: var(--paper); line-height: 1.45; display: flex; gap: 10px; align-items: flex-start; }
.bub .av { width: 30px; height: 30px; border-radius: 50%; background: var(--kraft); border: 2px solid var(--ink); display: grid; place-items: center; flex: none; }
.bub .av svg.i { width: 16px; height: 16px; }
.bub.you { justify-self: end; background: var(--ink); color: var(--paper); border-radius: 18px 18px 4px 18px; }
.files { display: flex; flex-wrap: wrap; gap: 6px; }
.files span { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.14); padding: 5px 9px; border-radius: 9px; font-size: 0.92rem; }
.files svg.i { width: 16px; height: 16px; }
.brandcard { display: grid; gap: 10px; }
.brandcard b { font-family: var(--font-display); font-weight: 600; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; font-size: 0.95rem; margin: 0; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; font: 600 0.92rem/1 var(--font-display); background: var(--paper); }
.chip.on { background: var(--ink); color: var(--paper); }
.packed { justify-self: start; display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border: var(--line); border-radius: 12px; background: var(--brand); font: 600 1rem/1.2 var(--font-display); transform: rotate(-2deg); box-shadow: var(--pop); }

/* End */
.end { background: var(--ink); color: var(--paper); border-top: var(--line); }
.end .wrap { padding-block: 64px; display: grid; justify-items: center; text-align: center; gap: 18px; }
.end h2 { color: var(--paper); }
.end .btn { background: var(--brand); color: var(--ink); box-shadow: 4px 4px 0 var(--memory); }
.end .note { color: #C9D3EC; }

/* Footer, on every page */
footer { background: var(--sky); border-top: var(--line); }
footer .wrap { padding-block: 20px 28px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 0.92rem; color: var(--ink-soft); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { font-family: var(--font-display); color: var(--ink); }

/* Text pages: privacy, terms, support */
.doc { background: var(--paper); border-top: var(--line); }
.doc .wrap { max-width: 46rem; padding-block: 48px 72px; }
.doc h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); }
.doc .updated { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }
.doc .intro { margin-top: 20px; font-size: 1.12rem; }
.doc h2 { font-size: 1.6rem; margin-top: 40px; margin-bottom: 10px; }
.doc p, .doc li { font-weight: 500; line-height: 1.6; }
.doc p + p { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: 8px; margin-top: 10px; }
.doc ul + p { margin-top: 12px; }
.doc strong { font-weight: 800; }
.doc a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc .box-note { margin-top: 16px; padding: 14px 16px; border: var(--line); border-radius: 14px; background: var(--sky-2); }

@media (max-width: 980px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .hero .wrap, .switch-grid, .packed-grid { grid-template-columns: minmax(0, 1fr); }
  .trust { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-block: 8px 44px; gap: 24px; }
  .band { padding-block: 48px; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .card .ico { grid-row: span 2; }
  .stick { font-size: 0.88rem; padding: 6px 10px; }
  .bub { max-width: 100%; }
  .chat { padding: 14px; }
  .top-links .plain { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stick, .played mark { animation: none; }
  .btn:active { transform: none; }
}
