/* Pip landing page. Warm paper canvas, white cards with hairlines, and one accent: the colour of the pet you pick. */
@font-face { font-family: 'Inter'; src: url('fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Source Serif'; src: url('fonts/source-serif.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #f0765a; }
@property --tint { syntax: '<color>'; inherits: true; initial-value: #fbd9cf; }
@property --tint-2 { syntax: '<color>'; inherits: true; initial-value: #fdeee9; }

:root {
  --canvas: #f6f5f4; --card: #fff; --ink: #000; --text: rgba(0, 0, 0, .95); --body: #615d59; --mute: rgba(0, 0, 0, .54); --line: rgba(0, 0, 0, .08);
  --on-accent: #000;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; --serif: 'Source Serif', Georgia, serif;
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
  transition: --accent .4s ease, --tint .4s ease, --tint-2 .4s ease;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: 'lnum'; }
h1, h2, h3, p, ol { margin: 0; }
h1, h2 { font-weight: 600; text-wrap: balance; color: var(--ink); }
p { color: var(--body); text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code { font: 500 .9em var(--mono); background: rgba(0, 0, 0, .05); padding: 2px 6px; border-radius: 4px; color: var(--text); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.shell { width: min(1120px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; }

/* buttons: one filled button style on the page */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 8px; background: #111; color: #fff; font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .2s ease, scale .15s ease; }
.btn:hover { background: #2b2b2b; } .btn:active { scale: .96; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn.small { min-height: 36px; padding: 8px 14px; font-size: 14px; }
.btn.ghost { background: var(--tint); color: var(--ink); } .btn.ghost:hover { background: var(--tint-2); }
.btn.outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); min-height: 40px; padding: 8px 14px; font-size: 14px; } .btn.outline:hover { background: rgba(0, 0, 0, .04); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--canvas); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 8px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.nav nav { display: flex; }
.nav nav a { padding: 12px 14px; border-radius: 8px; color: var(--mute); font: 500 14px/1 var(--sans); text-decoration: none; transition: color .2s ease; }
.nav nav a:hover { color: var(--ink); }

/* hero */
.hero { padding: 56px 0 0; text-align: center; }
.marks { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.mark { all: unset; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--ring, var(--line)); overflow: hidden; position: relative; transition: scale .2s cubic-bezier(.3, 1.4, .5, 1), translate .2s cubic-bezier(.3, 1.4, .5, 1); }
.mark:hover { translate: 0 -3px; } .mark:active { scale: .96; }
.mark[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.mark:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mark .pip { position: absolute; width: 164%; height: 164%; left: -32%; top: var(--crop, -8%); pointer-events: none; }
.mark .pip .shadow { display: none; }
.hero h1 { font-size: clamp(42px, 7.2vw, 88px); line-height: 1.04; letter-spacing: -.045em; }
.pill { display: inline-block; padding: 0 .26em .04em; border-radius: 9999px; background: var(--tint); }
.lede { max-width: 620px; margin: 24px auto 0; font: 400 clamp(18px, 2vw, 21px)/1.5 var(--serif); }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.fine { margin-top: 14px; font-size: 13px; color: var(--mute); }
.fine a { color: var(--text); }

/* the product in frame: a terminal with the pet in its corner */
.mock { margin: 48px auto 0; max-width: 920px; background: var(--card); border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 4px 12px rgba(0, 0, 0, .1); text-align: left; overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(0, 0, 0, .12); }
.mock-bar span { margin-left: 10px; font: 500 12px var(--mono); color: var(--mute); }
.mock-body { position: relative; height: 340px; background: var(--tint-2); }
.term { margin: 0; padding: 24px 28px; font: 400 14px/1.75 var(--mono); color: var(--text); white-space: pre-wrap; max-width: 62%; }
.term b { font-weight: 600; } .term .dim { color: var(--mute); }
.corner { position: absolute; right: 28px; bottom: 10px; display: flex; flex-direction: column; align-items: center; }
.pet { all: unset; display: block; aspect-ratio: 1; position: relative; }
button.pet { cursor: pointer; } button.pet:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 16px; }
#hero-pet { width: 176px; }
.say { max-width: 230px; margin-bottom: 2px; padding: 9px 13px 10px; background: var(--card); border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 4px 12px rgba(0, 0, 0, .1); position: relative; font-size: 13px; line-height: 1.35; transform-origin: 50% 100%; }
.say[hidden] { display: none; }
.say.pop { animation: pop .3s cubic-bezier(.2, 1.4, .4, 1); }
.say b { display: block; font-weight: 600; color: var(--ink); } .say span { color: var(--body); }
@keyframes pop { from { opacity: 0; transform: scale(.7) translateY(8px); } }
.dots { display: flex; gap: 5px; height: 8px; margin-top: 2px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(0, 0, 0, .22); }
.dots i.working { background: #e8a04c; animation: pulse .9s ease-in-out infinite alternate; }
.dots i.done { background: #4f9a63; } .dots i.needs { background: #d9482b; animation: pulse .45s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(.6); opacity: .6; } }
.seg { display: flex; gap: 2px; padding: 8px; border-top: 1px solid var(--line); }
.seg button { all: unset; cursor: pointer; min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 8px; font: 500 14px/1 var(--sans); color: var(--mute); transition: background-color .2s ease, color .2s ease, scale .15s ease; }
.seg button:hover { color: var(--ink); } .seg button:active { scale: .96; }
.seg button[aria-pressed="true"] { background: rgba(0, 0, 0, .06); color: var(--ink); }
.seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* sections */
.block { padding-top: 112px; }
.block h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -.035em; }
.sub { max-width: 600px; margin-top: 16px; font: 400 clamp(17px, 1.7vw, 19px)/1.55 var(--serif); }
.card { background: var(--card); border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.card h3, .steps h3 { font-size: 20px; font-weight: 600; letter-spacing: -.011em; line-height: 1.3; color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.cards .card { padding: 8px 8px 24px; }
.cards h3 { margin: 20px 16px 6px; } .cards p { margin: 0 16px; }
.stage { display: grid; place-items: center; height: 220px; border-radius: 6px; background: var(--tint-2); }
.stage .pet { width: 150px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.split p + p { margin-top: 14px; }
.demo { padding: 8px 8px 12px; }
.desk { position: relative; height: 200px; border-radius: 6px; background: var(--tint-2); overflow: hidden; margin-bottom: 4px; }
.desk .pet { position: absolute; right: 22px; bottom: 6px; width: 150px; transition: translate .35s cubic-bezier(.3, 1.3, .5, 1), opacity .25s ease; }
.desk.away .pet { translate: 0 70%; opacity: 0; transition: translate .25s ease-in, opacity .2s ease; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 15px; }
.switch { all: unset; cursor: pointer; flex: none; width: 44px; height: 26px; border-radius: 13px; background: rgba(0, 0, 0, .14); position: relative; transition: background-color .2s ease; }
.switch::before { content: ''; position: absolute; inset: -9px 0; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: translate .2s cubic-bezier(.3, 1.3, .5, 1); }
.switch[aria-checked="true"] { background: #111; } .switch[aria-checked="true"]::after { translate: 18px 0; }
.switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.demo-foot { display: flex; align-items: center; gap: 14px; padding: 14px 16px 4px; }
.demo-foot p { font-size: 14px; }

/* characters */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 36px; }
.tile { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 2px; padding: 10px 6px 10px; border-radius: 12px; text-align: center; font: 500 13px/1.2 var(--sans); color: var(--mute); transition: background-color .2s ease, color .2s ease, scale .15s ease; }
.tile .pet { width: 76px; }
.tile:hover { background: rgba(0, 0, 0, .04); color: var(--ink); } .tile:active { scale: .96; }
.tile[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 4px 12px rgba(0, 0, 0, .08); }
.tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.picked { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 8px; margin-top: 16px; padding: 8px; }
.stage.big { height: auto; min-height: 340px; } .stage.big .pet { width: min(250px, 70%); }
.picked-info { padding: 24px 24px 24px 28px; }
.picked-info h3 { font-size: 40px; letter-spacing: -.035em; line-height: 1.1; }
.picked-info h3.swap { animation: swap .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
.picked-info > p:first-of-type { margin-top: 10px; min-height: 4.5em; }
.label { margin-top: 22px; font: 600 13px/1 var(--sans); color: var(--ink); } .label span + span { font-weight: 400; color: var(--mute); margin-left: 4px; }
.swatches { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.swatches button { all: unset; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.swatches button::after { content: ''; width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); transition: scale .15s ease; }
.swatches button:hover::after { scale: 1.12; } .swatches button:active::after { scale: .96; }
.swatches button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.swatches button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.note { margin-top: 8px; font-size: 13px; } .note[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips button { all: unset; cursor: pointer; min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 9999px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); font: 500 14px/1 var(--sans); color: var(--text); transition: background-color .2s ease, color .2s ease, scale .15s ease; }
.chips button:hover { background: rgba(0, 0, 0, .04); } .chips button:active { scale: .96; }
.chips button[aria-pressed="true"] { background: #111; color: #fff; box-shadow: none; }
.chips button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* many sessions */
.rows { display: grid; }
.row { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 15px; transition: background-color .4s ease; }
.row.changed { background: var(--tint-2); }
.row i { width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, .22); }
.row.working i { background: #e8a04c; } .row.done i { background: #4f9a63; } .row.needs i { background: #d9482b; }
.row b { font: 500 14px var(--mono); color: var(--ink); } .row span { color: var(--mute); font-size: 14px; font-variant-numeric: tabular-nums; }
.many-pet { display: grid; justify-items: center; padding: 14px 0 6px; } .many-pet .pet { width: 132px; }

/* setup */
.steps { list-style: none; padding: 0; margin: 40px 0 0; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 300px) minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.steps li::before { content: counter(step); font: 500 15px var(--mono); color: var(--mute); }
.both { margin-top: 24px; max-width: 640px; font: 400 18px/1.55 var(--serif); }

/* the one coloured panel */
.adopt { background: var(--accent); color: var(--on-accent); border-radius: 12px; padding: 72px 24px 0; text-align: center; overflow: hidden; }
.adopt h2 { color: inherit; margin-bottom: 28px; }
.adopt .fine { color: inherit; opacity: .78; } .adopt .fine a { color: inherit; }
.parade { display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 2vw, 22px); margin-top: 40px; }
.parade .pet { width: clamp(76px, 10vw, 118px); flex: none; }

footer { margin-top: 112px; padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
footer .shell { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer span { max-width: 720px; }

/* pets off screen stop animating */
.offscreen .pip *, .offscreen .pip { animation-play-state: paused !important; }

@media (max-width: 860px) {
  .nav nav { display: none; }
  .cards { grid-template-columns: 1fr; } .stage { height: 190px; }
  .split, .picked { grid-template-columns: 1fr; gap: 28px; } .picked { gap: 8px; }
  .block { padding-top: 80px; }
  .mock-body { height: 380px; } .term { max-width: none; padding: 18px 18px 0; font-size: 13px; } .corner { right: 12px; } #hero-pet { width: 140px; }
  .steps li { grid-template-columns: 32px 1fr; } .steps li p { grid-column: 2; }
  .parade .pet:nth-child(n+6) { display: none; }
  .picked-info { padding: 20px 16px; } .stage.big { min-height: 260px; }
  .marks { gap: 6px; } .mark { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .say.pop, .picked-info h3.swap { animation: none; }
}
