/* Shared base for every Turbo Pudding site. A site's theme.css follows it and sets the tokens. */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/fredoka-latin.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/nunito-latin.woff2) format('woff2'); }

:root {
  --head: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 28px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 18px/1.6 var(--body); color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(42px, 6.4vw, 78px); line-height: 1.02; margin: 0.2em 0 0.3em; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 0 0 0.45em; }
h3 { font-size: 22px; line-height: 1.2; margin: 0.9em 0 0.3em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1120px; margin: 0 auto; padding: 18px 20px; position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 26px/1 var(--head); text-decoration: none; color: var(--brand, var(--ink)); }
.brand img { width: 34px; height: 34px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; padding: 0.95em 1.7em; border-radius: 999px; border: 0;
  font: 600 19px/1 var(--head); text-decoration: none; cursor: pointer; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 5px 0 var(--accent-shade), 0 12px 24px -10px var(--accent-shade); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--accent-shade), 0 16px 28px -10px var(--accent-shade); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--accent-shade); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; }
.btn.small { padding: 0.62em 1.15em; font-size: 16px; box-shadow: 0 3px 0 var(--accent-shade); }
.btn.soon { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); cursor: default; }
.btn.soon:hover, .btn.soon:active { transform: none; box-shadow: inset 0 0 0 2px var(--line); }

/* hero */
.hero { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; max-width: 1120px; margin: 0 auto; padding: 12px 20px 72px; position: relative; min-height: min(88vh, 820px); }
.hero > * { min-width: 0; }
.eyebrow { display: inline-block; font: 600 14px/1 var(--head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--eyebrow, var(--muted)); }
.lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--ink-2, var(--ink)); max-width: 32em; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.note { font-size: 15px; color: var(--muted); margin-top: 16px; }

/* screenshot frames */
.phone { justify-self: center; width: min(340px, 78vw); padding: 11px; border-radius: 48px; background: var(--frame, #0e0a24);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06), 0 40px 80px -30px rgba(0,0,0,0.55); position: relative; }
.phone img { border-radius: 38px; width: 100%; }
.screen { padding: 8px; border-radius: 24px; background: var(--frame, #fff); box-shadow: 0 30px 70px -30px rgba(0,0,0,0.35); }
.screen img { border-radius: 17px; width: 100%; }

/* sections */
.sec { padding: 84px 0; }
.sec.tight { padding: 56px 0; }
.center { text-align: center; }
.sub { color: var(--muted); max-width: 36em; margin: 0 auto 40px; font-size: 19px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--card-shadow, 0 1px 0 rgba(0,0,0,0.04)); }
.card p { color: var(--muted); margin: 0; font-size: 17px; }
.card h3 { margin-top: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 28px 0 0; }
.pills li { padding: 10px 18px; border-radius: 999px; background: var(--card); font: 500 16px/1.2 var(--head); }

/* footer */
.foot { max-width: 1120px; margin: 0 auto; padding: 36px 20px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.tp { display: inline-flex; align-items: center; gap: 10px; font: 500 16px/1 var(--head); color: var(--ink); }
.tp img { width: 30px; height: 30px; transition: transform 0.3s; }
.tp:hover img { transform: rotate(-8deg) scale(1.08); }

/* text pages (privacy, support, 404) */
.page { max-width: 760px; margin: 0 auto; padding: 24px 20px 72px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); }
.page h2 { font-size: 24px; margin-top: 1.6em; }
.page p, .page li { color: var(--ink-2, var(--ink)); }
.page a { color: var(--link, var(--ink)); }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 40px; text-align: center; min-height: 0; padding-top: 4px; }
  .lead { margin-left: auto; margin-right: auto; }
  .ctas { justify-content: center; }
  .grid3 { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .sec { padding: 60px 0; }
  .foot { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Tatako: warm paper, bright crayons. The palette follows the current lessons (kokoto.xyz). */
:root {
  color-scheme: light;
  --bg: #fff7ec; --ink: #33303e; --ink-2: #44404f; --muted: #6f6878; --line: #efdfc6;
  --card: #ffffff; --accent: #ff6b57; --accent-ink: #ffffff; --accent-shade: #d9493a;
  --eyebrow: #2e9e6a; --frame: #fff; --link: #d9493a;
  --card-shadow: 0 2px 0 #efdfc6, 0 18px 40px -28px rgba(51, 48, 62, 0.4);
}
body { background: radial-gradient(500px 360px at 92% 4%, #ffe7c2 0%, transparent 70%), radial-gradient(420px 320px at 0% 40%, #e3f4ff 0%, transparent 70%), var(--bg); }
.word span { display: inline-flex; gap: 0.02em; font-size: 30px; letter-spacing: 0.02em; }
.word b { font-weight: 600; }
.word b:nth-child(1) { color: #ff6b57; } .word b:nth-child(2) { color: #f5a623; } .word b:nth-child(3) { color: #4fb3e8; }
.word b:nth-child(4) { color: #4ecb8d; } .word b:nth-child(5) { color: #8d7be8; } .word b:nth-child(6) { color: #ff8a3d; }
h1 em { font-style: normal; background: linear-gradient(transparent 62%, #ffd23f 62%, #ffd23f 90%, transparent 90%); padding: 0 0.06em; }
.link { font: 600 18px/1 var(--head); color: var(--ink); text-decoration: none; padding: 0.9em 0.6em; }
.link:hover { color: var(--accent); }

.words { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 460px; justify-self: center; width: 100%; }
.wcard { appearance: none; border: 0; cursor: pointer; border-radius: 28px; padding: 26px 12px 20px; display: grid; place-items: center; gap: 10px;
  background: #fff; color: var(--ink); box-shadow: 0 6px 0 var(--sh), 0 22px 40px -26px rgba(51,48,62,0.45); transition: transform 0.15s, box-shadow 0.15s; }
.wcard .em { font-size: clamp(54px, 9vw, 76px); line-height: 1; }
.wcard b { font: 600 22px/1 var(--head); letter-spacing: 0.08em; color: var(--tx); }
.wcard:hover { transform: translateY(-3px) rotate(-1deg); }
.wcard:active, .wcard.on { transform: translateY(4px) scale(0.98); box-shadow: 0 2px 0 var(--sh); }
.wcard.on .em { animation: boing 0.6s ease; }
@keyframes boing { 30% { transform: scale(1.25) rotate(-6deg); } 60% { transform: scale(0.92) rotate(4deg); } }
.c1 { --sh: #ffc6bd; --tx: #e2523f; background: #fff3f0; } .c2 { --sh: #ffe0a6; --tx: #c98309; background: #fff9ec; }
.c3 { --sh: #bfe4f7; --tx: #2d8fc4; background: #f0f9ff; } .c4 { --sh: #c4efd9; --tx: #23955f; background: #f0fbf5; }
.words .hint { grid-column: 1 / -1; text-align: center; margin: 6px 0 0; font: 500 15px/1 var(--head); color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; }
.steps .n { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font: 600 22px/1 var(--head); color: #fff; }
.steps li:nth-child(1) .n { background: #ff6b57; } .steps li:nth-child(2) .n { background: #4fb3e8; } .steps li:nth-child(3) .n { background: #4ecb8d; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.big { font-size: 20px; color: var(--ink-2); }
.grown { padding: 30px; }
.grown h3 { margin-top: 0; }
.marks { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.marks li { padding: 8px 14px; border-radius: 999px; font: 500 15px/1 var(--head); }
.m1 { background: #efeaff; color: #6a58d6; } .m2 { background: #fff0d6; color: #b9770a; } .m3 { background: #e3f4ff; color: #2d8fc4; } .m4 { background: #e2f8ec; color: #23955f; }
.pills li { background: #fff; box-shadow: 0 2px 0 var(--line); }
.final .note { max-width: 34em; margin: 22px auto 0; }

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .words { max-width: 380px; }
}
