/* Nuzzlings marketing site. Palette from the game (game/scripts/ui/ui_style.gd + art/CANON.md). */
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --cream: #FBF5EA;
  --card: #FFF9F2;
  --peach: #F6C7A8;
  --peach-soft: #FDEBDD;
  --coral: #F08A6A;
  --mint: #BFE8D0;
  --mint-soft: #E3F4EA;
  --lavender: #CDBCF6;
  --lavender-soft: #EEE6FC;
  --blush: #F6B7C3;
  --blush-soft: #FCE7EB;
  --border: #E6D6C4;
  --outline: #6E5448;
  --text: #50382F;
  --text-soft: #6B5548;
  --btn-text: #4A2E24;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 8px 24px -14px rgba(110, 84, 72, .30);
  --wrap: 1120px;
  --head: "Fredoka", "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--cream); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
main { flex: 1 0 auto; }
.shots:focus-visible { outline-offset: 6px; }
a { color: var(--text); text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #7A3E2A; }
:focus-visible { outline: 3px solid #B5532F; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; letter-spacing: .005em; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- header -------------------------------------------------------------------------------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(251, 245, 234, .94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid #EADCCB; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 60px; width: auto; }
.nav { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; font-weight: 700; font-size: 1rem; padding: 12px 12px; border-radius: 999px; text-decoration: none; }
.nav a:hover { color: #8A4934; text-decoration: underline; text-decoration-color: var(--coral); }
@media (max-width: 640px) {
  .site-head .wrap { height: 62px; }
  .brand img { height: 44px; }
  .nav .nav-wide { display: none; }
  .nav { gap: 2px; } .nav a { padding: 12px 10px; font-size: .97rem; }
}

/* ---- buttons + chips ------------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 999px; font-family: var(--head); font-weight: 600; font-size: 1.05rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary { background: var(--coral); color: var(--btn-text); box-shadow: 0 4px 0 -1px #D9714F, 0 10px 20px -12px rgba(110, 84, 72, .5); }
.btn-primary:hover { color: var(--btn-text); transform: translateY(-1px); }
.btn-soft { background: var(--card); color: var(--text); border: 2px solid var(--border); }
.btn-soft:hover { background: #fff; }
.eyebrow { display: inline-block; font-family: var(--head); font-weight: 600; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: #8A4B33; margin-bottom: 10px; }

/* ---- hero ---------------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: 48px 72px;
  background:
    radial-gradient(520px 380px at 88% 22%, rgba(191, 232, 208, .55), transparent 70%),
    radial-gradient(560px 420px at 8% 92%, rgba(246, 199, 168, .30), transparent 70%),
    radial-gradient(620px 420px at 55% 115%, rgba(205, 188, 246, .28), transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 32px; }
.hero h1 { margin: 0 0 18px; }
.hero h1 img { width: min(100%, 490px); }
.hero-lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.19rem); max-width: 540px; line-height: 1.6; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.avail { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: var(--text); }
.hero-pet { position: relative; justify-self: center; width: min(100%, 410px); }
.hero-pet::after { content: ""; position: absolute; inset: 6% -4% 4% -4%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(191, 232, 208, .65), rgba(191, 232, 208, 0)); }
.hero-pet { z-index: 0; }
.hero-pet::before { content: ""; position: absolute; inset: auto 6% -2% 6%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(110, 84, 72, .18), transparent); }
.hero-pet img { position: relative; width: 100%; animation: bob 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-6px) scale(1.01, .99); } }
@media (max-width: 860px) {
  .hero { padding-block: 22px 44px; }
  .hero-grid { grid-template-columns: minmax(0, 220px) clamp(110px, 34vw, 138px); justify-content: center; grid-template-areas: "logo pet" "lead lead" "cta cta"; gap: 0 10px; text-align: center; align-items: center; }
  .hero-grid > div:first-child { display: contents; }
  .hero h1 { grid-area: logo; margin: 0; }
  .hero h1 img { width: 100%; }
  .hero-pet { grid-area: pet; width: 100%; margin: 0; }
  .hero-lead { grid-area: lead; margin: 20px auto 24px; font-size: 1.06rem; }
  .hero-cta { grid-area: cta; flex-direction: column; justify-content: center; gap: 16px; }
}

/* ---- sections ------------------------------------------------------------------------------ */
.section { padding-block: 80px; }
.section-head { max-width: 660px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 1.1rem; }
.band { background: var(--card); border-block: 1px solid rgba(226, 205, 187, .6); }
.tint-peach { background: #FCF0E6; }
.tint-mint { background: #EEF7F0; }
@media (max-width: 640px) { .section { padding-block: 48px; } .section-head { margin-bottom: 26px; } }
#pets { padding-bottom: 40px; }
#screenshots { padding-top: 48px; }
@media (max-width: 640px) { #pets { padding-bottom: 24px; } #screenshots { padding-top: 32px; } }

/* ---- intro features (open columns) ------------------------------------------------------ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature h3 { font-size: 1.35rem; margin-bottom: 8px; }
.feature .info-ico { margin-bottom: 16px; }
.feature p { margin: 0; color: var(--text-soft); }
.info-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 20px; }
.info-ico svg { width: 30px; height: 30px; }
.ico-mint { background: var(--mint-soft); } .ico-lav { background: var(--lavender-soft); } .ico-peach { background: var(--peach-soft); }
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; gap: 24px; max-width: 520px; margin-inline: auto; }
  .feature { display: grid; grid-template-columns: 48px 1fr; gap: 0 16px; }
  .feature .info-ico { width: 48px; height: 48px; border-radius: 15px; margin: 0; grid-row: span 2; }
  .feature .info-ico svg { width: 26px; height: 26px; }
  .feature h3 { font-size: 1.2rem; margin: 2px 0 4px; }
}

/* ---- story --------------------------------------------------------------------------------- */
.story { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.story li { counter-increment: step; }
.story .frame { position: relative; border-radius: 24px; overflow: hidden; border: 4px solid #fff; outline: 1px solid var(--border); box-shadow: 0 10px 26px -16px rgba(110, 84, 72, .45); background: #E9B79C; }
.story .frame img { width: 100%; }
.story h3 { margin: 16px 0 6px; display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.story h3::before { content: counter(step); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--coral); color: var(--btn-text); font-size: 1rem; }
.story p { color: var(--text-soft); margin: 0; font-size: 1rem; line-height: 1.55; }
.story li.extra { counter-increment: none; }
.story li.extra h3::before { content: ""; background: var(--blush) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20s-7-4.4-7-9.3A3.9 3.9 0 0 1 12 8a3.9 3.9 0 0 1 7 2.7C19 15.6 12 20 12 20z' fill='%2350382F'/%3E%3C/svg%3E") center / 15px no-repeat; }
@media (max-width: 960px) { .story { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; max-width: 620px; margin-inline: auto; } .story .frame { border-radius: 18px; border-width: 3px; } }
@media (max-width: 340px) { .story { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .story { gap: 28px 12px; } .story h3 { font-size: 1.06rem; gap: 7px; } .story h3::before { width: 24px; height: 24px; font-size: .9rem; } .story p { font-size: .94rem; } }

/* ---- gallery ------------------------------------------------------------------------------- */
.pets { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 861px) {
  .pet-card { display: flex; align-items: center; gap: 32px; padding: 24px 40px 24px 24px; }
  .pet-card:nth-child(even) { flex-direction: row-reverse; padding: 24px 24px 24px 40px; }
  .pet-card .pet-stages { flex: 0 0 60%; }
  .pet-card h3 { margin-bottom: 8px; }
  .pet-card .pet-text { flex: 1; }
  .pet-card h3 { margin-top: 0; font-size: 2rem; }
  .stage img { max-height: 250px; }
}
.pet-card { border-radius: 28px; padding: 20px 20px 22px; border: 1.5px solid rgba(110, 84, 72, .14); box-shadow: var(--shadow); }
.pet-card h3 { font-size: 1.75rem; margin: 16px 0 4px; }
.pet-card p { margin: 0; color: var(--text); }
.pet-card .pet-note { margin-top: 12px; font-size: .9rem; color: var(--text-soft); }
.pet-text p { max-width: 340px; }
.pet-dumpling { background: linear-gradient(180deg, #FDEBDD, #FFF6EE); }
.pet-sprig { background: linear-gradient(180deg, #E3F4EA, #F5FBF6); }
.pet-lumi { background: linear-gradient(180deg, #EEE6FC, #F8F4FE); }
.pet-stages { display: flex; align-items: flex-end; justify-content: center; gap: 2px; min-height: 0; padding: 12px 6px 0; border-radius: 20px; background: rgba(255, 255, 255, .32); }
.stage { margin: 0; display: flex; flex-direction: column; align-items: center; flex: 0 1 auto; min-width: 0; }
.stage img { max-height: 220px; width: auto; }
.stage figcaption { font-size: .875rem; font-weight: 700; color: var(--text-soft); padding: 4px 0 10px; }
@media (max-width: 860px) { .pets { max-width: 520px; margin-inline: auto; gap: 20px; } .pet-card { padding: 16px 16px 20px; } .pet-stages { padding: 8px 2px 0; } .pet-card h3 { font-size: 1.65rem; } }

.families { margin: 40px auto 0; max-width: 920px; display: grid; grid-template-columns: 3fr 2fr; gap: 16px 32px; align-items: center; background: var(--blush-soft); border-radius: 24px; padding: 26px 30px; }
.families h3 { font-size: 1.4rem; margin-bottom: 6px; }
.families p { color: var(--text-soft); margin: 0; }
.family-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.family-chips li { background: rgba(255, 255, 255, .5); border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: .82rem; }
@media (max-width: 760px) { .families { grid-template-columns: 1fr; padding: 20px; } .families h3 { font-size: 1.3rem; } }

/* ---- screenshots --------------------------------------------------------------------------- */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.shot { margin: 0; text-align: center; }
.phone { border-radius: 26px; padding: 4px; background: #fff; box-shadow: 0 10px 26px -16px rgba(110, 84, 72, .45); outline: 1px solid var(--border); }
.phone img { border-radius: 22px; width: 100%; aspect-ratio: 9 / 18; object-fit: cover; object-position: top; }
.shot figcaption { margin-top: 12px; font-weight: 700; font-size: .95rem; }
@media (max-width: 900px) {
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 20px 18px; margin-inline: -20px; scroll-padding-inline: 20px; }
  .shot { flex: 0 0 min(60vw, 235px); scroll-snap-align: start; }
}
.shots-hint { display: none; text-align: center; color: var(--text-soft); font-size: .875rem; margin: 0; }
@media (max-width: 900px) { .shots-hint { display: block; } }

/* ---- fair ---------------------------------------------------------------------------------- */
.fair { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.fair > div:first-child { padding-top: 48px; }
.fair-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fair-list li { display: flex; gap: 14px; align-items: flex-start; padding: 6px 0; }
.fair-list svg { flex: none; width: 26px; height: 26px; margin-top: 1px; }
.fair-list strong { font-family: var(--head); font-weight: 600; font-size: 1.1rem; display: block; }
@media (max-width: 860px) { .fair { grid-template-columns: 1fr; gap: 28px; } .fair > div:first-child { padding-top: 0; } .fair p { margin: 0; } .fair-list { gap: 12px; } .fair-list li { gap: 12px; } }

/* ---- platforms ----------------------------------------------------------------------------- */
.soon { text-align: center; background: linear-gradient(135deg, var(--mint-soft), var(--lavender-soft) 55%, var(--peach-soft)); border-radius: 34px; padding: 44px 24px; }
.soon p { max-width: 580px; }
@media (max-width: 640px) { .soon { padding: 32px 24px; border-radius: 28px; } .soon h2 { font-size: 1.8rem; } }
.soon h2 { margin-bottom: 10px; }
.soon p { max-width: 36em; margin: 0 auto; }
.platforms { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin: 20px 0 0; padding: 0; list-style: none; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; font-size: 1.15rem; }
.platforms svg { width: 22px; height: 22px; }

/* ---- faq ----------------------------------------------------------------------------------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1.5px solid #DED1C1; border-radius: 18px; padding: 0 22px; }
.faq summary { text-wrap: balance; cursor: pointer; list-style: none; font-family: var(--head); font-weight: 500; font-size: 1.15rem; padding: 18px 38px 18px 0; position: relative; }
.faq details[open] { background: #FFF4EC; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 11px; height: 11px; border-right: 3px solid #B5532F; border-bottom: 3px solid #B5532F; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding-bottom: 18px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---- prose pages (support / legal) --------------------------------------------------------- */
.page-hero { padding-block: 52px 20px; text-align: center; }
.page-hero p { color: var(--text-soft); font-size: 1.1rem; max-width: 36em; margin-inline: auto; }
.prose { max-width: 760px; margin: 0 auto; padding-bottom: 56px; overflow-wrap: anywhere; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; text-wrap: balance; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.draft-banner { max-width: 760px; margin: 0 auto 28px; background: #FFF1C9; border: 2px solid #E8C25A; border-radius: 18px; padding: 16px 20px; }
.draft-banner strong { font-family: var(--head); font-weight: 600; font-size: 1.15rem; }
.counsel { background: var(--lavender-soft); border-left: 3px solid #9B86E0; border-radius: 12px; padding: 14px 16px; margin: 12px 0 18px; font-size: .97rem; }
.counsel::before { content: "Open question for counsel: "; font-weight: 800; }
.contact-card { text-align: center; background: var(--peach-soft); border-radius: 28px; padding: 32px; max-width: 520px; margin: 0 auto 40px; }
.contact-card .email { margin-bottom: 20px; }
.contact-card .btn { margin: 0 0 16px; }
@media (max-width: 640px) { .contact-card { padding: 24px; } }
.contact-card .email { font-family: var(--head); font-weight: 500; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.45rem); word-break: break-word; }

/* ---- footer -------------------------------------------------------------------------------- */
.site-foot { background: #F3E6D6; padding-block: 44px 28px; margin-top: 0; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.foot-brand img { height: 64px; width: auto; margin-bottom: 10px; }
.foot-brand p { margin: 0; color: var(--text-soft); max-width: 26em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.foot-links a { font-weight: 700; text-decoration: none; display: inline-block; padding: 6px 0; }
.foot-links a:hover { text-decoration: underline; }
@media (max-width: 640px) { .foot-grid { gap: 24px; } .foot-links { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 2px 24px; } }
.foot-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(110, 84, 72, .18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .95rem; color: var(--text-soft); }
.foot-bottom a { color: var(--text-soft); }
