/* ZoofZoof's website. Colours, type, spacing and radii are the app's design tokens (ui-mock/design-system/tokens.json). */

@font-face { font-family: Inter; src: url(/assets/fonts/Inter-400.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/assets/fonts/Inter-600.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url(/assets/fonts/InterTight-600.ttf) format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --bg: #F5F4F0; --surface: #FFFFFF; --chip: #EAE8E2; --line: #DCDAD3;
  --ink: #111214; --ink-2: #45484D; --ink-3: #5F6267; --focus: #1D5BD8;
  --map-ground: #E9E7E1; --map-street: #F7F6F2;
  --mon: #1D5BD8; --tue: #C2530A; --wed: #0A7556; --thu: #BE2459; --fri: #7A5E00;
  --display: 'Inter Tight', Inter, system-ui, sans-serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --radius-md: 14px; --radius-xl: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0F11; --surface: #18191C; --chip: #222428; --line: #2B2E33;
    --ink: #F3F2EE; --ink-2: #C4C6CA; --ink-3: #A0A3A8; --focus: #78A8FF;
    --map-ground: #15171A; --map-street: #1E2125;
    --mon: #78A8FF; --tue: #FF9B57; --wed: #3FCB9C; --thu: #FF7BA6; --fri: #E6C34D;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--sans);
}
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* Header and footer share the landing's column, so the brand, the headline and the copyright start on one edge. */
.top, .foot { width: 100%; max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px/1 var(--display); letter-spacing: -0.035em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(0, 0, 0, 0.08); }
.lang { display: flex; gap: 4px; font-size: 14px; }
.lang a { padding: 6px 10px; border-radius: 999px; text-decoration: none; color: var(--ink-3); }
.lang a[aria-current] { background: var(--chip); color: var(--ink); font-weight: 600; }

/* Privacy and support: plain reading pages. */
.page { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 16px 24px 64px; }
.page h1 { font: 600 clamp(34px, 5vw, 44px)/1.05 var(--display); letter-spacing: -0.03em; margin: 16px 0 8px; }
.page h2 { font: 600 22px/1.2 var(--display); letter-spacing: -0.01em; margin: 40px 0 8px; }
.page .updated { color: var(--ink-3); font-size: 15px; margin: 0 0 32px; }
.page p, .page li { color: var(--ink-2); }
.page li { margin: 6px 0; }

.foot { border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.foot nav { display: flex; gap: 20px; }

/* The landing (Arne, 14 November): one screen, one idea. The words on the left, and the star on the right: a phone editing a day
   by itself (/assets/explain.js). Behind them the app's own ground, a faint street grid, and a soft glow round the phone. */
.home { flex: 1; position: relative; overflow: hidden; display: flex; align-items: center; }
.home::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--map-street) 2px, transparent 2px), linear-gradient(90deg, var(--map-street) 2px, transparent 2px);
  background-size: 56px 56px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 50%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 72% 50%, #000 10%, transparent 75%);
}
.stage {
  position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: 4px 24px 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 6vw, 96px); align-items: center;
}
.pitch { max-width: 580px; }
.soon { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.soon::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--wed); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wed) 22%, transparent); }
.pitch h1 { margin: 18px 0 22px; font: 600 clamp(48px, 6.2vw, 88px)/0.96 var(--display); letter-spacing: -0.05em; text-wrap: balance; }
.pitch .lede { margin: 0 0 34px; font-size: clamp(17px, 1.45vw, 20px); color: var(--ink-2); max-width: 32em; }
.gains { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 18px; }
.gains li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.gains .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 6px 16px rgba(0, 0, 0, 0.06); }
.gains b { display: block; color: var(--ink); font-weight: 600; font-size: 17px; margin-bottom: 2px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores img { display: block; height: 48px; width: auto; }
.show { position: relative; display: flex; justify-content: center; }
.show::before { content: ""; position: absolute; left: 50%; top: 50%; width: 780px; height: 780px; margin: -390px 0 0 -390px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--mon) 24%, transparent), transparent); pointer-events: none; }

.x-phone {
  position: relative;
  --bg: #F5F4F0; --surface: #FFFFFF; --chip: #EAE8E2; --line: #DCDAD3; --ink: #111214; --ink2: #45484D; --ink3: #5F6267;
  --good: #0A6B4F; --attention: #6E4300; --attention-bg: #F6E6C4; --mon: #1D5BD8; --ground: #E9E7E1; --street: #F7F6F2; --water: #D3DADD; --park: #DCE0D3;
  text-align: left; width: 360px; height: 756px; border-radius: 52px; background: #0B0C0E; padding: 10px; flex: none; transform-origin: top center;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08), 0 40px 80px rgba(10, 12, 20, 0.28), inset 0 0 0 2px #2A2C31;
}
.x-screen { position: relative; width: 340px; height: 736px; border-radius: 42px; overflow: hidden; background: var(--ground); color: var(--ink); font-family: var(--sans); user-select: none; -webkit-user-select: none; }
.x-island { position: absolute; top: 10px; left: 50%; width: 104px; height: 30px; margin-left: -52px; border-radius: 16px; background: #0B0C0E; z-index: 20; }
.x-status { position: absolute; top: 0; left: 0; right: 0; height: 46px; padding: 15px 30px 0; display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; z-index: 19; color: var(--ink); }
.x-map { position: absolute; left: 0; top: 0; width: 340px; height: 470px; }
.x-map svg { position: absolute; inset: 0; }
.x-ground { fill: var(--ground); }
.x-streets path { stroke: var(--street); fill: none; }
.x-water { fill: var(--water); }
.x-park { fill: var(--park); }
.x-route { fill: none; stroke: var(--mon); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; transition: d .7s cubic-bezier(.3,.7,.2,1); }
.x-home { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 5px; background: var(--ink); border: 3px solid var(--ground); z-index: 3; }
.x-pin { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 15px; background: var(--surface); border: 3px solid var(--mon); display: grid; place-items: center; font-weight: 700; font-size: 13.5px; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: all .5s cubic-bezier(.3,.7,.2,1); z-index: 3; }
.x-pin.x-cand { width: 20px; height: 20px; margin: -10px 0 0 -10px; border-width: 2.6px; box-shadow: none; z-index: 2; }
.x-pin.x-fits { border-color: var(--good); }
.x-pin.x-breaks { border-color: var(--attention); }
.x-note { position: absolute; left: 22px; top: -1px; font-size: 11.5px; font-weight: 700; white-space: nowrap; padding: 0 3px; border-radius: 4px; background: var(--ground); color: var(--good); }
.x-pin.x-pop { animation: x-pop .6s cubic-bezier(.3,1.6,.4,1); }
@keyframes x-pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }

.x-panel { position: absolute; left: 0; right: 0; bottom: 0; height: 278px; background: var(--bg); border-radius: 24px 24px 0 0; box-shadow: 0 -6px 20px rgba(0,0,0,.08); z-index: 6; }
.x-undo { position: absolute; right: 14px; top: -54px; height: 40px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--surface); box-shadow: 0 4px 14px rgba(0,0,0,.16); display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: var(--ink); transition: opacity .3s; }
.x-undo small { color: var(--ink3); font-weight: 500; font-size: 13px; }
.x-undo.x-faint { opacity: .3; }
.x-head { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 18px 8px; }
.x-head b { font-size: 20px; letter-spacing: -0.015em; }
.x-head span { font-size: 13px; color: var(--ink3); }
.x-strip { position: relative; margin: 6px 16px 0; height: 32px; border-radius: 8px; background: var(--chip); }
.x-road { position: absolute; left: 4px; right: 4px; top: 15px; height: 2.5px; background: var(--mon); border-radius: 2px; transition: right .7s cubic-bezier(.3,.7,.2,1); }
.x-tile { position: absolute; top: 5px; height: 22px; border-radius: 6px; background: var(--surface); border: 2px solid var(--mon); color: var(--mon); font-size: 11px; font-weight: 700; display: grid; place-items: center; transition: left .7s cubic-bezier(.3,.7,.2,1), width .7s cubic-bezier(.3,.7,.2,1), opacity .4s; z-index: 2; }
.x-tile.x-lifted { box-shadow: 0 8px 18px rgba(0,0,0,.25); z-index: 5; transition: none; }
.x-lunch { position: absolute; top: 5px; height: 22px; border-radius: 6px; background: var(--ink3); opacity: .75; transition: left .7s cubic-bezier(.3,.7,.2,1); z-index: 1; }
.x-end { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 1.5px dashed var(--ink2); z-index: 3; }
.x-over { position: absolute; top: 0; bottom: 0; right: 0; background: var(--attention-bg); border-radius: 0 8px 8px 0; transition: left .7s, opacity .4s; }
.x-times { display: flex; justify-content: space-between; padding: 10px 18px 0; font-size: 12.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.x-times b { color: var(--ink); font-weight: 600; }
.x-said { padding: 8px 18px 0; height: 64px; font-size: 13px; line-height: 19px; color: var(--ink); }
.x-said .warn { color: var(--attention); }
.x-bar { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); padding: 10px 16px 26px; display: flex; gap: 10px; }
.x-btn { height: 48px; border-radius: 14px; font: 600 15px var(--sans); display: flex; align-items: center; justify-content: center; padding: 0 16px; white-space: nowrap; }
.x-cancel { border: 2px solid var(--ink); color: var(--ink); }
.x-apply { flex: 1; background: var(--ink); color: var(--surface); }

.x-finger { position: absolute; left: 0; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 19px; background: rgba(17,18,20,.28); border: 2.5px solid rgba(255,255,255,.95); box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 30; opacity: 0; transition: translate .8s cubic-bezier(.45,.05,.2,1), opacity .3s; pointer-events: none; }
.x-cost.x-glow { animation: x-glow 1.2s ease-out; border-radius: 6px; }
@keyframes x-glow { 0% { background: color-mix(in srgb, #1D5BD8 22%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, #1D5BD8 22%, transparent); } 100% { background: transparent; box-shadow: 0 0 0 4px transparent; } }
.x-finger.x-press { animation: x-press .35s ease; }
@keyframes x-press { 50% { scale: .78; } }
.x-ripple { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 10px; border: 2px solid var(--ink); z-index: 29; animation: x-ripple .7s ease-out forwards; pointer-events: none; }
@keyframes x-ripple { to { transform: scale(3.4); opacity: 0; } }


@media (prefers-reduced-motion: reduce) {
  .x-phone * { transition-duration: .01s !important; animation-duration: .01s !important; }
}
/* A short laptop window (Windows scaling at 125% or 150%, a small MacBook): the words tighten so the page stays one screen. */
@media (min-width: 901px) and (max-height: 860px) {
  .top { padding-top: 12px; padding-bottom: 12px; }
  .pitch h1 { font-size: min(6.2vw, 9vh); margin: 12px 0 16px; }
  .pitch .lede { font-size: 17px; margin-bottom: 24px; }
  .gains { gap: 12px; margin-bottom: 26px; }
  .gains li { font-size: 15px; }
  .gains b { font-size: 16px; }
}
@media (min-width: 901px) and (max-height: 680px) {
  .gains li > span:last-child { font-size: 0; }
  .gains b { font-size: 16px; margin: 6px 0 0; }
  .pitch .lede { margin-bottom: 20px; }
}
/* A phone or an upright tablet: the headline, the line and the badges first, then the phone, then the three gains. */
@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; gap: 40px; padding: 8px 24px 56px; justify-items: center; text-align: center; }
  .pitch { display: contents; }
  .soon { order: 1; justify-self: center; }
  .pitch h1 { order: 2; margin: 0; max-width: 11em; }
  .pitch .lede { order: 3; margin: -16px auto 0; }
  .stores { order: 4; justify-content: center; }
  .show { order: 5; }
  .gains { order: 6; margin: 0; max-width: 30em; text-align: left; }
  .home::before { -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 62%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 90% 60% at 50% 62%, #000 10%, transparent 75%); }
  .foot { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .top { padding: 16px 20px; }
  .stage { padding: 4px 20px 48px; gap: 32px; }
  .x-phone { zoom: 0.86; }
}
@media (max-width: 360px) { .x-phone { zoom: 0.78; } }
