/* Roo website — "Sunburst" direction. Brand: Roo Brand Guide v1 (Fredoka + Nunito, Paper, Roo Orange,
   cartoon cards with a Roo Brown outline and a hard offset shadow). Fonts are self-hosted: no third-party requests. */

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

:root {
  --paper: #FFF6EA;
  --card: #FFFDF6;
  --cream: #FFE6C2;
  --cartoon: #FFF0C2;
  --mint: #D3F2EE;
  --sky-tint: #E3F1FC;
  --ink: #4A2C17;          /* outlines and hard shadows */
  --text: #4A2C17;
  --muted: #6B4E2A;
  --soft: #7A5A2E;
  --line: #EBD9BF;
  --orange: #FF8C1A;
  --on-orange: #3B230F;
  --accent: #E06F0B;       /* large display text only */
  --link: #B8530A;
  --link-hover: #7A3A06;
  --sky: #2F9BEF;
  --sky-text: #1A6AAE;
  --euc-text: #12806F;
  --wattle: #FFC83D;
  --wattle-light: #FFE08A;
  --night: #1F1712;
  --night-text: #FFF6EA;
  --night-muted: #E9D9C4;
  --night-link: #FFB866;
  --display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
  --radius: 22px;
  --wrap: 1240px;
  color-scheme: light;
}

/* Light only, like the Sunburst mockup: the site keeps Paper whatever the Mac's appearance. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.015em; margin: 0; }
.accent { color: var(--accent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--card); padding: 8px 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 2px solid transparent; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 44px; height: 44px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 28px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; font-weight: 700; font-size: 16px; }
.site-nav a { color: var(--text); text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--ink); background: var(--card); box-shadow: 0 3px 0 var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu svg { stroke: var(--text); }
.menu-panel { position: absolute; right: 0; top: 58px; min-width: 220px; display: flex; flex-direction: column; padding: 10px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); }
.menu-panel a { color: var(--text); text-decoration: none; font-weight: 700; padding: 12px 14px; border-radius: 10px; }
.menu-panel a:hover { background: var(--cream); }
@media (max-width: 900px) {
  .site-nav, .site-header .btn { display: none; }
  .menu { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 16px;
  border: 2.5px solid var(--ink); background: var(--card); color: var(--text);
  box-shadow: 0 5px 0 var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 19px; text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover { color: var(--text); transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { color: var(--on-orange); }
.btn-small { min-height: 46px; font-size: 17px; padding: 0 20px; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover, .btn[aria-disabled="true"]:active { transform: none; box-shadow: 0 5px 0 var(--ink); }
.btn svg { flex: none; }

/* ---------- Pills and labels ---------- */
.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 16px 6px 8px; color: var(--text); font-weight: 700; font-size: 15px; text-decoration: none; }
.pill:hover { color: var(--text); background: var(--cream); }
.new { background: var(--sky); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.kicker { display: inline-block; font-weight: 800; letter-spacing: 0.14em; font-size: 14px; text-transform: uppercase; color: var(--link); }
.kicker.sky { color: var(--sky-text); }
kbd { font-family: var(--body); font-weight: 800; font-size: 0.85em; background: var(--card); border: 2px solid var(--ink); border-bottom-width: 4px; border-radius: 8px; padding: 0 7px; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 48px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero h1 { font-size: clamp(52px, 7vw, 88px); line-height: 0.98; letter-spacing: -0.02em; margin-top: 26px; }
.lede { font-size: 22px; line-height: 1.5; color: var(--muted); margin: 24px 0 0; max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.meta { margin: 22px 0 0; font-size: 15px; font-weight: 700; color: var(--soft); }
.hero-art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
/* The outer circle draws the outline and hard shadow; .sunburst-clip holds the turning rays and
   Roo inside a clip-path circle. A clip-path stays round while the page is captured for a
   transition, where rounded corners on an animated layer could briefly paint as a square. */
.sunburst {
  position: relative; width: min(500px, 100%); aspect-ratio: 1; border-radius: 50%;
  border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink); background: var(--wattle);
}
.sunburst-clip {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; clip-path: circle(50% at 50% 50%);
  isolation: isolate; display: flex; align-items: flex-end; justify-content: center;
}
.sunburst-clip::before {
  content: ""; position: absolute; inset: -25%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, var(--wattle) 0deg 9deg, var(--wattle-light) 9deg 18deg);
  animation: spin 90s linear infinite;
  animation-delay: var(--spin-delay, 0s);
}
.sunburst img { position: relative; width: 66%; margin-bottom: -6px; animation: bob 3.2s ease-in-out infinite; animation-delay: var(--bob-delay, 0s); transform-origin: 50% 100%; }
.sparkle { position: absolute; width: 34px; height: 34px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  .sunburst-clip::before, .sunburst img { animation: none; }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Sections ---------- */
.section { margin-top: 110px; }
.section-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { flex: 1 1 520px; font-size: clamp(40px, 5vw, 58px); }
.section-head p { margin: 14px 0 0; font-size: 19px; color: var(--muted); max-width: 640px; }
.section-head .mascot { width: 120px; height: 120px; }
.shot { margin-top: 70px; }
.shot img { width: 100%; }

/* ---------- Cartoon cards ---------- */
.card { background: var(--card); border: 2.5px solid var(--ink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 28px; }
.feat { padding: 28px; }
.feat h3 { font-weight: 600; font-size: 24px; margin: 16px 0 8px; }
.feat p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--cream); border: 2px solid var(--ink); }
.icon svg { stroke: var(--text); }
.icon.mint { background: var(--mint); }
.icon.sky { background: var(--sky-tint); }

/* ---------- Backlog feature ---------- */
.spotlight { background: var(--cartoon); padding: 48px; display: flex; flex-wrap: wrap; gap: 44px; align-items: center; }
.spotlight-copy { flex: 1 1 380px; min-width: 0; }
.spotlight-copy h2 { font-size: clamp(40px, 5vw, 56px); margin-top: 12px; }
.spotlight-copy p { font-size: 19px; color: var(--muted); margin: 18px 0 0; }
.spotlight-shot { flex: 1.3 1 480px; min-width: 0; }
.steps { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 17px; font-weight: 600; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: var(--on-orange); border: 2px solid var(--ink); display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 1px; }
@media (max-width: 640px) { .spotlight { padding: 28px 22px; } }

.also { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.also div { padding: 20px 22px; }
.also h3 { font-family: var(--body); font-weight: 800; font-size: 17px; line-height: 1.3; }
.also p { margin: 6px 0 0; font-size: 16px; color: var(--muted); }

/* ---------- Film ---------- */
.film { padding: 14px; background: var(--card); }
.film video { width: 100%; border-radius: 12px; background: #000; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(720px, 86%); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 32px 24px; margin: 0 -32px; scrollbar-width: thin; }
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery figcaption { margin-top: 12px; font-weight: 700; font-size: 16px; color: var(--muted); text-align: center; }

/* ---------- Good to know ---------- */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 20px; align-items: start; }
.faq details { padding: 4px 24px; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-weight: 600; font-size: 21px; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: 1; color: var(--link); }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ul { margin: 0 0 18px; color: var(--muted); font-size: 17px; }

/* ---------- Night band ---------- */
.night { background: var(--night); color: var(--night-text); margin-top: 110px; }
.night .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 84px; padding-bottom: 84px; }
.night img { width: 220px; height: 220px; flex: none; }
.night h2 { font-size: clamp(38px, 4.6vw, 54px); }
.night p { font-size: 19px; color: var(--night-muted); margin: 16px 0 0; max-width: 660px; }
.night a { color: var(--night-link); font-weight: 700; }
.night .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.night .chips span { border: 1.5px solid #6B5543; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 15px; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 100px 0 84px; }
.cta img { width: 150px; height: 150px; margin: 0 auto; }
.cta h2 { font-size: clamp(48px, 6vw, 68px); margin-top: 16px; }
.cta p { font-size: 20px; color: var(--muted); margin: 16px 0 0; }
.cta .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; font-size: 15px; color: var(--soft); }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Inner pages (Support, Privacy, Ask Roo guide) ---------- */
.page-hero { padding: 56px 0 8px; }
.page-hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.page-hero img { width: 132px; height: 132px; flex: none; }
.page-hero h1 { font-size: clamp(44px, 6vw, 68px); }
.page-hero p { font-size: 20px; color: var(--muted); margin: 14px 0 0; max-width: 720px; }
.page-hero .eyebrow { font-weight: 800; letter-spacing: 0.14em; font-size: 14px; text-transform: uppercase; color: var(--link); }
.prose { max-width: 860px; margin: 40px auto 0; padding: 0 32px 90px; }
.prose .card { padding: 30px 34px; margin-top: 26px; }
.prose h2 { font-size: 34px; margin-top: 54px; }
.prose .card h2 { margin-top: 0; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 22px; margin-top: 30px; line-height: 1.2; }
.prose p, .prose li { color: var(--muted); }
.prose strong, .prose b { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--cream); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.prose .say { display: inline-block; background: var(--cartoon); border: 2px solid var(--ink); border-radius: 12px; padding: 2px 10px; font-weight: 700; color: var(--text); margin: 3px 2px; }
.prose .note { background: var(--sky-tint); border-color: var(--ink); }
.contact { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.contact .big { font-family: var(--display); font-weight: 600; font-size: 26px; word-break: break-all; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.toc a { text-decoration: none; font-weight: 700; font-size: 15px; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 14px; color: var(--text); }
.toc a:hover { background: var(--cream); }
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap, .prose { padding-left: 16px; padding-right: 16px; }
  .gallery { padding-left: 16px; padding-right: 16px; margin: 0 -16px; }
  .prose .card { padding: 22px 20px; }
  .feat { padding: 22px; }
  .lede { font-size: 19px; }
}

/* Single-column question list on inner pages */
.faq.one { grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }
.faq.one summary { font-size: 20px; }
.faq details p + p { margin-top: -6px; }
.group-title { display: flex; align-items: center; gap: 12px; }
.group-title .new { font-family: var(--body); font-size: 12px; }

/* Ask Roo guide: example phrases as speech chips */
.says { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.says li + li { margin-top: 0; }
.says .say { margin: 0; font-family: var(--body); font-size: 16px; }
.prose .card > p:first-of-type { margin-top: 10px; }
.prose .card ul:not(.says) li { margin-top: 10px; }
.guide-shot { margin-top: 34px; }

/* =====================================================================================
   Motion. Everything below is skipped for people who turn on Reduce Motion.
   ===================================================================================== */

/* Page to page: a cross-document view transition (Chrome, Edge, Safari 18.2+; other browsers
   just navigate). The header stays put; the page underneath fades and rises a little. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
main { view-transition-name: page; }
::view-transition-old(page) { animation: page-out 180ms ease-in both; }
::view-transition-new(page) { animation: page-in 380ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }

/* Anchors land below the sticky header. */
[id] { scroll-margin-top: 96px; }

/* Header gets a soft edge once the page scrolls. */
.site-header { transition: border-color 200ms ease, box-shadow 200ms ease; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgb(74 44 23 / 0.06); }

/* Nav underline grows in. */
.site-nav a { border-bottom: 0; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 220ms cubic-bezier(.2, .8, .2, 1); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Links, pills and cards ease their colour and lift. */
a, .pill, .toc a, .menu-panel a { transition: color 150ms ease, background-color 150ms ease; }
.feat, .also .card { transition: transform 200ms cubic-bezier(.2, .8, .2, 1), box-shadow 200ms cubic-bezier(.2, .8, .2, 1); }
.feat:hover, .also .card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--ink); }
.feat .icon { transition: transform 260ms cubic-bezier(.34, 1.56, .64, 1); }
.feat:hover .icon { transform: rotate(-6deg) scale(1.08); }
.gallery img { transition: transform 260ms ease; }
.gallery figure:hover img { transform: scale(1.015); }

/* Mobile menu opens with a little pop. */
.menu[open] .menu-panel { animation: menu-in 200ms cubic-bezier(.34, 1.56, .64, 1); transform-origin: top right; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }

/* Questions open and close smoothly where the browser can animate to auto height
   (Chrome 131+); elsewhere they simply open. */
.faq details { interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: clip; opacity: 0; transition: height 300ms cubic-bezier(.2, .8, .2, 1), opacity 240ms ease, content-visibility 300ms allow-discrete; }
.faq details[open]::details-content { height: auto; opacity: 1; }
.faq summary::after { transition: transform 250ms cubic-bezier(.2, .8, .2, 1); }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); }

/* Hero entrance on first load. */
.hero-copy > * { animation: rise 640ms cubic-bezier(.2, .8, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 70ms; }
.hero-copy > :nth-child(3) { animation-delay: 140ms; }
.hero-copy > :nth-child(4) { animation-delay: 210ms; }
.hero-copy > :nth-child(5) { animation-delay: 280ms; }
.sunburst { animation: pop 760ms 120ms cubic-bezier(.34, 1.56, .64, 1) both; }
.page-hero .wrap > * { animation: rise 600ms cubic-bezier(.2, .8, .2, 1) both; }
.page-hero .wrap > :nth-child(2) { animation-delay: 90ms; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes pop { from { opacity: 0; transform: scale(.85) rotate(-4deg); } }

/* Scroll reveals: roo.js marks blocks with .reveal and adds .in as they come into view.
   Only when scripts run (html.js), so nothing stays hidden without them. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 600ms cubic-bezier(.2, .8, .2, 1), transform 600ms cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .feat.reveal.in:hover, .js .also .card.reveal.in:hover { transform: translateY(-4px); transition-delay: 0ms; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .feat:hover, .also .card:hover { transform: none; }
}

/* Returning visitors (html.seen, set from localStorage by the head script): no entrance or
   scroll reveals, and only a short, plain fade between pages. Hover feedback stays. */
.seen .hero-copy > *, .seen .sunburst, .seen .page-hero .wrap > * { animation: none; }
.seen .reveal { opacity: 1; transform: none; transition: none; }
.seen::view-transition-old(page) { animation: fade-out 120ms ease both; }
.seen::view-transition-new(page) { animation: fade-in 160ms ease both; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
