/* DockTrot site. Colours come from the app's speech bubble and Settings
   window: cream fill, dark-brown ink, hover tan. */
:root {
  --cream: #FFF8E7;
  --paper: #FFFDF6;
  --tint: #F7ECD6;
  --ink: #2B1B10;
  --ink-soft: #6A5444;
  --tan: #C49A6C;
  --tan-light: #EBD5B3;
  --gold: #F4AE3F;
  --gold-hi: #FFC861;
  --sky-top: #9FD3FA;
  --sky-mid: #CBE8FF;
  --sky-low: #FBE7CB;
  --line: #2B1B10;
  --shadow: 4px 4px 0 var(--line);
  --radius: 14px;
  --font-pixel: "Pixelify Sans", ui-monospace, monospace;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1E150F;
    --paper: #2A1E16;
    --tint: #251A12;
    --ink: #FFF1DA;
    --ink-soft: #CDB8A0;
    --tan-light: #4A3626;
    --line: #0E0905;
    --shadow: 4px 4px 0 #0E0905;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-pixel); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Buttons: chunky, outlined, with a hard pixel shadow that presses in. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 18px/1 var(--font-pixel);
  text-decoration: none; color: #2B1B10;
  border: 3px solid var(--line); border-radius: 12px;
  padding: 14px 22px; box-shadow: var(--shadow);
  transition: transform .08s ease, box-shadow .08s ease, background-color .15s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-plain { background: var(--paper); color: var(--ink); }
.btn-big { font-size: 20px; padding: 16px 26px; }
.btn-small { font-size: 16px; padding: 8px 14px; border-width: 2px; box-shadow: 3px 3px 0 var(--line); border-radius: 10px; }
.btn[aria-disabled="true"] { background: var(--tan-light); color: var(--ink-soft); cursor: default; }
.btn[aria-disabled="true"]:hover, .btn[aria-disabled="true"]:active { transform: none; box-shadow: var(--shadow); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--font-pixel); }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 700; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav-links { display: none; } .nav-inner > .btn { margin-left: auto; } }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-copy { text-align: center; max-width: 820px; }
.eyebrow { display: inline-block; font: 600 15px/1 var(--font-pixel); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); background: var(--tan-light); padding: 8px 12px; border-radius: 999px; margin: 0 0 20px; }
h1 { font-size: clamp(44px, 8vw, 84px); }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); margin: 20px auto 28px; max-width: 640px; }
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.fine { font-size: 15px; color: var(--ink-soft); margin: 18px 0 0; }

.demo { margin-top: 48px; }

/* The pretend Mac screen */
.screen {
  position: relative;
  overflow: hidden; overflow: clip;   /* clip, so focus or a screen reader can't scroll the scene inside it */
  width: 100%;   /* or min-height pushes the width out through the aspect ratio on small phones */
  aspect-ratio: 2 / 1;
  min-height: 300px;
  border: 3px solid var(--line); border-radius: 22px;
  box-shadow: 8px 8px 0 var(--line);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-low) 100%);
  user-select: none; -webkit-user-select: none;
  isolation: isolate;
}
@media (max-width: 700px) { .screen { aspect-ratio: 4 / 3.4; border-radius: 16px; box-shadow: 5px 5px 0 var(--line); } }
.menubar {
  position: absolute; inset: 0 0 auto 0; height: 28px; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 14px; font-size: 13px; color: #1d1d1f;
  background: rgba(255, 255, 255, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.mb-left, .mb-right { display: flex; gap: 16px; align-items: center; white-space: nowrap; }
.mb-mem b { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .hide-sm { display: none; } .menubar { font-size: 11px; height: 24px; padding: 0 10px; } .mb-left, .mb-right { gap: 10px; } }

.cloud { position: absolute; background: rgba(255,255,255,.85); border-radius: 999px; filter: blur(.5px); z-index: 0; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.c1 { width: 160px; height: 36px; left: 8%; top: 22%; animation: drift 60s linear infinite; }
.c1::before { width: 70px; height: 60px; left: 24px; top: -32px; } .c1::after { width: 54px; height: 44px; left: 78px; top: -20px; }
.c2 { width: 120px; height: 28px; left: 62%; top: 14%; opacity: .8; animation: drift 80s linear infinite reverse; }
.c2::before { width: 54px; height: 46px; left: 18px; top: -24px; } .c2::after { width: 40px; height: 34px; left: 62px; top: -16px; }
.c3 { width: 100px; height: 24px; left: 38%; top: 38%; opacity: .6; animation: drift 100s linear infinite; }
.c3::before { width: 44px; height: 38px; left: 16px; top: -20px; } .c3::after { width: 34px; height: 28px; left: 50px; top: -12px; }
@keyframes drift { from { transform: translateX(-40px); } to { transform: translateX(40px); } }
.hills { position: absolute; left: -5%; right: -5%; bottom: -30%; height: 60%; z-index: 0;
  background:
    radial-gradient(60% 55% at 20% 100%, #F5D3A6 0 60%, transparent 61%),
    radial-gradient(55% 50% at 78% 100%, #F0C793 0 60%, transparent 61%);
  opacity: .8; }

/* A Liquid Glass-ish Dock built from plain tiles */
.dock {
  --tile: 44px;
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: 6px; padding: 7px 9px;
  background: rgba(255, 255, 255, .38);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(43, 27, 16, .18), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.dock i { display: block; width: var(--tile); height: var(--tile); border-radius: 24%; background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 2px 4px rgba(0,0,0,.12); position: relative; }
/* App tile colors live here, not in style="" attributes, so the CSP can block inline styles. */
.dock .t-blue { --a: #5BB8F5; --b: #2B7FD8; }
.dock .t-green { --a: #8CE07A; --b: #2FA34A; }
.dock .t-yellow { --a: #FFD25E; --b: #F29A1F; }
.dock .t-red { --a: #FF8A7A; --b: #E0453A; }
.dock .t-purple { --a: #C9A2FF; --b: #7B4FE0; }
.dock .t-teal { --a: #7FE3D8; --b: #1FA8A0; }
.dock .t-pink { --a: #FFB0D9; --b: #E0569B; }
.dock .t-indigo { --a: #A6B8FF; --b: #4A63D9; }
.dock .t-gold { --a: #FFE08A; --b: #E0B020; }
.dock .t-mint { --a: #9BE7B0; --b: #2E9E66; }
.dock .t-orange { --a: #FFA86B; --b: #E06A1F; }
.dock .t-sky { --a: #B8E2FF; --b: #3D9BE0; }
.dock .t-tan { --a: #D7C1A8; --b: #9C7650; }
.dock .t-sand { --a: #F4C77A; --b: #C98F3A; }
.dock .t-silver { --a: #EDEFF2; --b: #B9C0C8; }
.dock i::after { content: ""; position: absolute; inset: 22%; border-radius: 30%; background: rgba(255,255,255,.28); }
.dock .dock-app { background: none; box-shadow: none; }
.dock .dock-app::after { display: none; }
.dock .dock-app img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.15)); }
.dock-sep { width: 1px; align-self: stretch; margin: 4px 2px; background: rgba(43,27,16,.2); }
@media (max-width: 900px) { .dock { --tile: 30px; gap: 5px; border-radius: 16px; } }
@media (max-width: 700px) { .dock { --tile: 22px; gap: 4px; padding: 5px 6px; border-radius: 11px; bottom: 6px; } .dock-sep { margin: 2px 1px; } .dock .extra { display: none; } }

/* Sprites: one strip per clip, scaled up with crisp pixels */
.sprite { background-repeat: no-repeat; image-rendering: pixelated; image-rendering: crisp-edges; }
.pet { position: absolute; left: 0; bottom: 0; z-index: 4; cursor: pointer; outline: none; will-change: transform; }
.pet:focus-visible .sprite { filter: drop-shadow(0 0 0 var(--gold)) drop-shadow(0 0 3px var(--gold)); }
.pet .sprite { position: relative; }
.trail { position: absolute; inset: 0; pointer-events: none; }
.trail .sprite { position: absolute; left: 0; bottom: 0; }
.water { position: absolute; z-index: 5; image-rendering: pixelated; pointer-events: none; transition: opacity .35s; }
.water.dry { opacity: 0; }
.scene-canvas { position: absolute; left: 0; z-index: 4; pointer-events: none; image-rendering: pixelated; }
.screen.scene .screen-hint { display: none; }

.bubble {
  position: absolute; z-index: 6; min-width: 132px;
  display: flex; flex-direction: column; padding: 6px;
  background: #FFF8E7; color: #2B1B10;
  border: 2.5px solid #2B1B10; border-radius: 12px;
  box-shadow: 3px 3px 0 rgba(43,27,16,.9);
  animation: pop .14s ease-out;
}
.bubble::after { content: ""; position: absolute; left: var(--tail, 50%); bottom: -9px; width: 14px; height: 14px; margin-left: -7px; background: #FFF8E7; border: solid #2B1B10; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.bubble.below::after { bottom: auto; top: -9px; border-width: 2.5px 0 0 2.5px; }
.bubble button { font: 600 15px/1 var(--font-pixel); text-align: left; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: inherit; cursor: pointer; }
.bubble button:hover, .bubble button:focus-visible { background: #C49A6C; outline: none; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cloud, .bubble { animation: none; } }
.screen-hint { position: absolute; z-index: 3; left: 50%; top: 42%; transform: translate(-50%, -50%); margin: 0; font: 600 clamp(20px, 4.4vw, 40px)/1 var(--font-pixel); color: #2B1B10; white-space: nowrap; pointer-events: none; background: rgba(255,248,231,.92); border: 3px solid #2B1B10; border-radius: 14px; padding: .55em .8em; box-shadow: 4px 4px 0 #2B1B10; opacity: 0; transition: opacity .25s; }
.screen.holding .screen-hint { opacity: 1; }
.screen-hint.gone, .screen.holding .screen-hint.gone { opacity: 0; }
/* No pointer to hold the show with, so a small label stays out of its way until the first tap. */
@media (hover: none) { .screen-hint { opacity: 1; top: 38px; transform: translateX(-50%); font-size: 15px; border-width: 2px; border-radius: 9px; box-shadow: 2px 2px 0 #2B1B10; } }

/* Controls under the screen */
.controls { margin-top: 28px; }
.control + .control { margin-top: 14px; }
.control { background: var(--paper); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; min-width: 0; }
.control-label { display: block; font: 600 15px/1 var(--font-pixel); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 12px; }
.picker { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
/* Chips keep a light sky behind the pets so dark fur reads in dark mode too. */
.chip { flex: none; width: 58px; height: 58px; display: grid; place-items: center; border: 2px solid transparent; border-radius: 12px; background: linear-gradient(180deg, var(--sky-mid), var(--sky-low)); cursor: pointer; padding: 0; }
.chip:hover { border-color: var(--tan); }
.chip[aria-checked="true"] { border-color: var(--gold); box-shadow: 2px 2px 0 var(--line); }
.chip .sprite { pointer-events: none; }
/* Centred when they all fit, and still scrollable from the first one when they don't. */
.chip:first-child { margin-left: auto; }
.chip:last-child { margin-right: auto; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); border-block: 3px solid color-mix(in srgb, var(--ink) 10%, transparent); }
h2 { font-size: clamp(34px, 5vw, 54px); text-align: center; }
.section-lede { text-align: center; color: var(--ink-soft); font-size: 19px; max-width: 620px; margin: 16px auto 44px; }
.card { background: var(--paper); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 24px; }
.feature h3 { font-size: 24px; margin-bottom: 10px; }
.feat-pet { height: 72px; display: flex; align-items: flex-end; margin-bottom: 14px; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent); }
.feature p { margin: 0; color: var(--ink-soft); }
.meter { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 16px 0 0; }
.meter li { font: 600 14px/1.2 var(--font-pixel); text-align: center; padding: 8px 4px; border-radius: 8px; border: 2px solid var(--line); color: #2B1B10; }
.meter li b { display: block; font-size: 12px; opacity: .75; margin-bottom: 3px; }
.meter li:nth-child(1) { background: #BFE8B5; } .meter li:nth-child(2) { background: #FFE39A; }
.meter li:nth-child(3) { background: #FFC27A; } .meter li:nth-child(4) { background: #FF9C86; }

/* Characters */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.tab { font: 600 16px/1 var(--font-pixel); padding: 10px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; }
.tab:hover { background: var(--tan-light); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
/* Five across on wide screens: 25 cards make five full rows. */
@media (min-width: 1100px) { .roster { grid-template-columns: repeat(5, 1fr); gap: 18px; } .char h3 { font-size: 23px; } .char-body { padding: 14px 15px 18px; } .char p { font-size: 15px; } }
.char { display: flex; flex-direction: column; overflow: hidden; cursor: pointer; transition: transform .12s ease; outline: none; }
.char:hover, .char:focus-visible { transform: translateY(-3px); }
.char:focus-visible { box-shadow: 4px 4px 0 var(--line), 0 0 0 4px var(--gold); }
.stage { position: relative; height: 190px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(180deg, var(--sky-mid), var(--sky-low)); border-bottom: 3px solid var(--line); }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(6px); }
.stage .sprite { position: relative; z-index: 1; margin-bottom: 14px; }
.stage.hangs { align-items: flex-start; }
.stage.hangs::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px; background: rgba(255,255,255,.55); z-index: 2; }
.stage.hangs .sprite { margin: 16px 0 0; }
.stage canvas.water { position: absolute; left: 0; bottom: 14px; width: 100%; z-index: 2; }
.char-body { padding: 16px 18px 20px; }
.char-name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.char h3 { font-size: 26px; }
.tag { font: 600 13px/1 var(--font-pixel); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); background: var(--tan-light); padding: 5px 8px; border-radius: 999px; }
.char p { margin: 8px 0 0; color: var(--ink-soft); font-size: 16px; }

.season { position: absolute; z-index: 3; left: 8px; top: 8px; font: 600 12px/1 var(--font-pixel); letter-spacing: .04em; color: #2B1B10; background: #E0A23C; border: 2px solid #2B1B10; padding: 4px 7px; border-radius: 7px; }
.card[data-group="Halloween"] .season { background: #F28426; }

/* Holidays */
.holiday { display: flex; align-items: center; gap: 24px; padding: 24px 28px; }
.holiday-pets { display: flex; align-items: flex-end; gap: 10px; flex: none; }
.holiday-pets .feat-pet { height: 72px; margin: 0; border: 0; }
.holiday p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .holiday { flex-direction: column; text-align: center; gap: 14px; padding: 20px; } }

/* Buy */
.buy { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding: 40px 48px; max-width: 900px; margin: 0 auto; }
.buy h2 { text-align: left; }
.buy-art img { display: block; width: 180px; height: 180px; filter: drop-shadow(4px 6px 0 rgba(43,27,16,.25)); }
.buy-price { font: 700 40px/1 var(--font-pixel); margin: 12px 0 0; }
.ticks { list-style: none; padding: 0; margin: 18px 0 26px; }
.ticks li { position: relative; padding-left: 30px; margin: 8px 0; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 10px; border: solid var(--ink); border-width: 0 0 4px 4px; transform: rotate(-45deg); }
@media (max-width: 700px) { .buy { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; gap: 16px; } .buy h2 { text-align: center; } .buy-art img { width: 120px; height: 120px; margin: 0 auto; } .ticks { text-align: left; display: inline-block; } }

/* FAQ */
details { background: var(--paper); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 16px 0; }
summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font: 600 20px/1.3 var(--font-pixel); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 28px; }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); }
#faq h2 { margin-bottom: 32px; }

/* Footer */
.footer { padding: 0 0 40px; }
.footer-inner { text-align: center; }
.footer-pets { position: relative; height: 90px; border-bottom: 3px solid var(--line); margin-bottom: 24px; overflow: hidden; }
.footer-pets .sprite { position: absolute; bottom: 0; }
.footer p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* Activate page (after purchase) */
.activate { min-height: calc(100vh - 160px); }
.activate-card { max-width: 680px; margin: 0 auto; padding: 36px 40px; }
.activate-card h1 { font: 700 34px/1.15 var(--font-pixel); margin: 0 0 20px; text-align: left; }
.activate-steps { margin: 0; padding-left: 26px; display: grid; gap: 26px; }
.activate-steps h2 { font: 700 22px/1.2 var(--font-pixel); margin: 0 0 6px; text-align: left; }
.activate-steps p { margin: 0 0 14px; color: var(--ink-soft); }
.activate-key { margin-top: 30px; padding-top: 22px; border-top: 3px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.activate-key p { color: var(--ink-soft); margin: 0 0 10px; }
.activate-key-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.activate-key-row code { font: 600 15px/1.3 ui-monospace, monospace; background: var(--cream); border: 2px solid var(--line); border-radius: 8px; padding: 9px 12px; overflow-wrap: anywhere; flex: 1 1 260px; }
.activate-note { font-size: 14px; margin-top: 12px !important; }
@media (max-width: 600px) { .activate-card { padding: 26px 20px; } .activate-card h1 { font-size: 28px; } }
