/* Dioramo — the website is a coloring page: ink lines, paper, sticker panels with hard shadows. */

@font-face { font-family: "Fredoka"; src: url("fonts/fredoka.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --paper: #f4f1ea;
  --paper-2: #faf8f3;
  --ink: #1d1d1d;
  --ink-soft: #4a4a4a;
  --coral: #e8504a;
  --yellow: #f7c948;
  --blue: #4fc3d9;
  --green: #8bd17c;
  --accent: var(--yellow);          /* changed live by the swatch strip */
  --radius: 18px;
  --shadow: 0 5px 0 var(--ink);
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55;
  background-color: var(--paper);
  /* paper grain + two soft washes, like the app menu */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .11 0 0 0 0 .11 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 8% 6%, #fff7d6 0, transparent 34%),
    radial-gradient(circle at 96% 40%, #dff1f5 0, transparent 30%);
  background-attachment: fixed, scroll, scroll;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- ink-sticker building blocks ---------- */
.sticker { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 2px solid var(--ink); border-radius: 16px;
  background: #fff; box-shadow: var(--shadow); font: 700 18px/1 var(--display); text-decoration: none; color: var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: 0 5px 0 var(--accent), 0 5px 0 2px var(--ink); }
.btn small { display: block; font: 600 12px/1.1 var(--body); opacity: .75; letter-spacing: .02em; }
.btn .apple { width: 22px; height: 22px; }

.wordmark { font: 700 1em/1 var(--display); letter-spacing: .02em; display: inline-flex; }
.wordmark span {
  -webkit-text-stroke: .11em var(--ink); paint-order: stroke fill;
  text-shadow: .04em .04em 0 var(--ink), .08em .08em 0 var(--ink);
}
.c1 { color: var(--coral); } .c2 { color: #fff; } .c3 { color: var(--yellow); } .c4 { color: var(--blue); } .c5 { color: var(--green); }

/* a felt-tip highlight that sits behind words */
.mark { background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%); padding: 0 .08em; transition: background .4s; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; padding: 14px 0; transition: background .2s, box-shadow .2s; }
.site-head.scrolled { background: rgba(244, 241, 234, .92); backdrop-filter: blur(8px); box-shadow: 0 2px 0 var(--ink); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 30px; }
.brand img { width: 44px; height: 44px; }
.nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.nav a { font: 600 17px var(--display); text-decoration: none; padding: 8px 12px; border-radius: 12px; }
.nav a:hover { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
@media (max-width: 640px) { .nav a:not(.keep) { display: none; } .brand { font-size: 26px; } }

/* ---------- hero ---------- */
.hero { padding: 36px 0 70px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.kicker {
  display: inline-block; font: 600 15px var(--display); letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; background: var(--blue); border: 2px solid var(--ink); border-radius: 10px; transform: rotate(-2deg);
  box-shadow: 0 3px 0 var(--ink);
}
h1, h2, h3 { font-family: var(--display); line-height: 1.04; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(44px, 5.4vw, 74px); text-wrap: balance; font-weight: 700; margin: 20px 0 18px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 34ch; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.meta { font-size: 15px; color: var(--ink-soft); font-weight: 700; }

/* before / after: drag the brush to color the kitchen */
.compare { position: relative; transform: rotate(1.2deg); }
.compare .frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); border-radius: 22px; touch-action: pan-y; cursor: ew-resize; }
.compare .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.compare .color { clip-path: inset(0 calc(100% - var(--pos, 55%)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 55%); width: 0; pointer-events: none; }
.compare .handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -2px; width: 4px; background: var(--ink); }
.compare .knob {
  position: absolute; top: 50%; left: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); display: grid; place-items: center; font-size: 28px;
  transition: background .4s;
}
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare.hint .knob { animation: nudge 1.6s ease-in-out 1.2s 2; }
@keyframes nudge { 50% { transform: translateX(-26px) rotate(-12deg); } }
.tag {
  position: absolute; font: 600 16px/1.15 var(--display); padding: 10px 14px; background: #fff; border: 2px solid var(--ink);
  border-radius: 14px; box-shadow: 0 4px 0 var(--ink); white-space: nowrap; z-index: 2;
}
.tag.t1 { left: -26px; bottom: 34px; transform: rotate(-5deg); }
.tag.t2 { right: -14px; top: -20px; transform: rotate(4deg); background: var(--yellow); }
.tag .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); vertical-align: -2px; margin-right: 6px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .tag.t1 { left: 8px; bottom: -18px; } .tag.t2 { right: 8px; top: -18px; }
}

/* ---------- the toolbar strip (pick a color, the page follows) ---------- */
.toolbar { padding: 14px 18px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.toolbar p { margin: 0; font: 600 17px var(--display); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.swatches button {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--c); cursor: pointer; padding: 0;
  transition: transform .12s;
}
.swatches button:hover { transform: scale(1.12); }
.swatches button[aria-pressed=true] { outline: 4px solid var(--ink); outline-offset: 3px; }

/* ---------- sections ---------- */
section { padding: 80px 0; }
.section-head { max-width: 820px; margin-bottom: 40px; }
h2 { font-size: clamp(34px, 4.4vw, 54px); text-wrap: balance; font-weight: 700; margin-bottom: 14px; }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 19px; }

/* how it works — the same little animations as the in-app hint */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { padding: 22px; position: relative; }
.step:nth-child(1) { transform: rotate(-1deg); } .step:nth-child(3) { transform: rotate(1deg); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 18px; width: 40px; height: 40px;
  display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--accent);
  font: 700 20px var(--display); box-shadow: 0 3px 0 var(--ink); transition: background .4s;
}
.step h3 { font-size: 26px; margin: 16px 0 8px; }
.step p { margin: 0; color: var(--ink-soft); }
.demo { position: relative; height: 150px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper-2); overflow: hidden; }
.demo svg { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.finger { position: absolute; font-size: 36px; line-height: 1; filter: drop-shadow(1px 2px 0 rgba(0,0,0,.25)); }

.d-pick .mini { position: absolute; width: 92px; height: 70px; border: 2px solid var(--ink); border-radius: 10px; background: #fff center/cover; box-shadow: 0 3px 0 var(--ink); }
.d-pick .m1 { left: calc(50% - 120px); top: 38px; transform: rotate(-8deg); background-image: url("img/rooms/dino-lines.jpg"); }
.d-pick .m2 { left: calc(50% - 46px); top: 30px; z-index: 1; background-image: url("img/rooms/firestation-lines.jpg"); animation: pick 3s ease-in-out infinite; }
.d-pick .m3 { left: calc(50% + 28px); top: 38px; transform: rotate(8deg); background-image: url("img/rooms/doll-lines.jpg"); }
.d-pick .finger { left: calc(50% - 6px); top: 150px; animation: tap 3s ease-in-out infinite; }
@keyframes pick { 0%, 35% { transform: none; } 45%, 80% { transform: translateY(-10px) scale(1.12); } 100% { transform: none; } }
@keyframes tap { 0% { top: 150px; } 30%, 40% { top: 72px; } 55%, 100% { top: 150px; } }

#scribble { stroke-dasharray: 1; animation: scribble 3.2s linear infinite; }
@keyframes scribble { 0% { stroke-dashoffset: 1; } 75%, 100% { stroke-dashoffset: 0; } }
.d-paint .stage { position: absolute; left: 50%; top: 50%; width: 200px; height: 140px; translate: -50% -50%; }
.d-paint svg { left: 0; top: 0; translate: none; }
.d-paint .finger { left: 0; top: 0; animation: scribbleFinger 3.2s linear infinite; }
@keyframes scribbleFinger {
  0% { transform: translate(32px, 113px); opacity: 1; } 11.9% { transform: translate(50px, 30px); }
  23.9% { transform: translate(68px, 113px); } 37.5% { transform: translate(84px, 18px); }
  51.1% { transform: translate(102px, 113px); } 63.1% { transform: translate(120px, 30px); }
  75% { transform: translate(136px, 113px); opacity: 1; } 90%, 100% { transform: translate(136px, 113px); opacity: 0; } }

.d-spin .orbit, .d-spin .cube { position: absolute; left: 50%; top: 50%; animation: orbit 2.4s ease-in-out infinite alternate; }
.d-spin .cube { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
.d-spin .orbit { width: 0; height: 0; }
.d-spin .orbit .finger { left: -18px; top: -6px; }
.d-spin .fa { transform: translate(-52px, 0); } .d-spin .fb { transform: translate(52px, 0); }
@keyframes orbit { from { rotate: -40deg; } to { rotate: 40deg; } }

@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 34px; } .step { transform: none !important; } }

/* rooms gallery — tap a card to color it in */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.room { padding: 0; overflow: hidden; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: transform .14s, box-shadow .14s; }
.room:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 8px 0 var(--ink); }
.room:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.room .pic { display: block; position: relative; aspect-ratio: 16 / 10; border-bottom: 2px solid var(--ink); background: var(--paper); }
.room .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room .pic .on { clip-path: circle(0% at var(--x, 50%) var(--y, 50%)); transition: clip-path .7s cubic-bezier(.6, .1, .25, 1); }
.room.colored .pic .on { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.room .info { padding: 12px 16px 16px; display: block; }
.room b { display: block; font: 600 22px/1.2 var(--display); }
.room small { display: block; color: var(--ink-soft); font-size: 15px; margin-top: 2px; }
.rooms-note { margin-top: 22px; color: var(--ink-soft); font-weight: 700; display: flex; gap: 8px; align-items: center; }

/* grown-ups */
.parents { padding: 40px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; background: #fff; }
.parents h2 { margin-bottom: 16px; }
.parents .intro p { color: var(--ink-soft); margin: 0 0 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.checks .ic { width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 12px; display: grid; place-items: center; font-size: 19px; box-shadow: 0 3px 0 var(--ink); }
.checks b { font-family: var(--display); font-weight: 600; font-size: 20px; display: block; line-height: 1.2; }
.checks span { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 860px) { .parents { grid-template-columns: 1fr; padding: 26px; } }

/* closing call to action */
.finale { text-align: center; padding: 90px 0 100px; }
.finale .big { font-size: clamp(64px, 12vw, 150px); margin-bottom: 18px; }
.finale p { color: var(--ink-soft); font-size: 20px; margin: 0 auto 30px; max-width: 36ch; }

/* ---------- footer ---------- */
.site-foot { border-top: 2px solid var(--ink); padding: 30px 0 40px; font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.site-foot nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.site-foot a { font-weight: 700; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- document pages (privacy, support) ---------- */
.doc { padding: 30px 0 90px; }
.doc .paper { padding: clamp(24px, 5vw, 56px); max-width: 820px; margin: 0 auto; }
.doc h1 { font-size: clamp(38px, 5vw, 58px); margin: 14px 0 6px; }
.doc .updated { color: var(--ink-soft); font-weight: 700; margin: 0 0 28px; }
.doc h2 { font-size: 27px; margin: 38px 0 10px; }
.doc p, .doc li { color: #2e2e2e; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.summary { background: var(--paper-2); border: 2px solid var(--ink); border-radius: 14px; padding: 18px 22px; margin: 0 0 10px; }
.summary p { margin: 0; font-size: 19px; }
.contact-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 22px; margin: 6px 0 10px; background: var(--paper-2); }
.contact-card .em { font: 700 clamp(20px, 3vw, 26px) var(--display); text-decoration: none; word-break: break-all; }
.faq details { border: 2px solid var(--ink); border-radius: 14px; background: #fff; margin: 12px 0; box-shadow: 0 3px 0 var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font: 600 19px/1.3 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; font-size: 26px; transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 18px 16px; color: #2e2e2e; }
.faq details > div p { margin: 0 0 8px; }
.key { display: inline-block; border: 2px solid var(--ink); border-radius: 8px; padding: 0 6px; background: #fff; font-weight: 800; font-size: .9em; }

/* ---------- entrance ---------- */
.rise { animation: rise .7s cubic-bezier(.2, .8, .25, 1) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; } .rise.d4 { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .25, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  #scribble { stroke-dashoffset: 0; }
  .d-paint .finger { transform: translate(136px, 113px); }
}

@media (max-width: 600px) {
  .rooms { grid-template-columns: 1fr 1fr; gap: 14px; }
  .room .info { padding: 10px 12px 12px; }
  .room b { font-size: 17px; }
  .room small { font-size: 13px; }
  section { padding: 56px 0; }
}
.contact-card { flex-wrap: nowrap; }
.contact-card > div { min-width: 0; }
