/* /dog and /focus: one headline, one button, and the big toggle between the two dogs. Warm biscuit colours. The laptop's blue desktop is there to make the dog stand out. */
:root {
  --bg: #fffaf4;
  --bg-warm: #fdeadb;
  --ink: #3a2a1e;
  --muted: #75604f;
  --button: #a9561f;
  --button-hover: #94481a;
  --button-ink: #ffffff;
  --shadow: rgba(92, 46, 14, 0.4);
  --metal: #c9ccd1;
  --metal-dark: #8e9298;
  --track: #f4e2d0;
  --track-edge: rgba(58, 42, 30, 0.12);
  --knob: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a130e;
    --bg-warm: #2c1e14;
    --ink: #f8efe6;
    --muted: #c4b09e;
    --button: #e9a56c;
    --button-hover: #f3b783;
    --button-ink: #2a1a0e;
    --shadow: rgba(0, 0, 0, 0.6);
    --metal: #6c6f75;
    --metal-dark: #3f4145;
    --track: #110c08;
    --track-edge: rgba(255, 240, 225, 0.1);
    --knob: #3b2b1f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a130e;
  --bg-warm: #2c1e14;
  --ink: #f8efe6;
  --muted: #c4b09e;
  --button: #e9a56c;
  --button-hover: #f3b783;
  --button-ink: #2a1a0e;
  --shadow: rgba(0, 0, 0, 0.6);
  --metal: #6c6f75;
  --metal-dark: #3f4145;
  --track: #110c08;
  --track-edge: rgba(255, 240, 225, 0.1);
  --knob: #3b2b1f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(105deg, var(--bg) 25%, var(--bg-warm) 100%) fixed var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.top { padding: 20px 32px 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 12px;
}
.brand img { width: 48px; height: 48px; display: block; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  width: min(1400px, 100%);
  min-height: calc(100vh - 124px);
  min-height: calc(100svh - 124px);
  margin: 0 auto;
  padding: 24px 32px 40px;
}

/* The laptop, drawn here so it stays sharp at any size. Its base is wider than its lid. */
.laptop { margin: 0; padding: 0 7%; }
.lid {
  padding: 2% 2% 2.4%;
  border-radius: 18px 18px 0 0;
  background: #141416;
  box-shadow: 0 0 0 1px var(--metal-dark), 0 40px 70px -40px var(--shadow);
}
.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 3px;
  background: #2b5a72;
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity 0.3s ease; }
.scene.off { opacity: 0; pointer-events: none; }
.base {
  position: relative;
  width: 114%;
  margin-left: -7%;
  aspect-ratio: 100 / 2.6;
  border-radius: 0 0 14px 14px / 0 0 100% 100%;
  background: linear-gradient(var(--metal) 30%, var(--metal-dark));
  box-shadow: 0 18px 24px -14px var(--shadow);
}
.base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 14%;
  height: 40%;
  border-radius: 0 0 8px 8px;
  background: var(--metal-dark);
  transform: translateX(-50%);
}

h1 {
  margin: 0 0 32px;
  font-size: clamp(36px, 4.3vw, 66px);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-transform: uppercase;
}
h1 b { font-weight: 800; }

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 280px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 24px -12px var(--shadow);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.download:hover { background: var(--button-hover); transform: translateY(-1px); }
.download:active { transform: translateY(1px); }
.download svg { width: 20px; height: 20px; flex: none; }
.needs { margin: 12px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
/* On a phone on /dog, under "Create your desktop dog" (lander.js): the one thing to know, big. */
.needs.big { margin-top: 14px; color: var(--ink); font-size: 19px; font-weight: 800; }
/* On a phone: an email box over the big button, which emails the download link to their computer (lander.js). The box's 18px text
   keeps iPhones from zooming in on it. */
.send { display: grid; gap: 10px; width: min(380px, 100%); margin: 0 auto; }
.send input {
  width: 100%;
  padding: 15px 22px;
  border: 2px solid var(--track-edge);
  border-radius: 999px;
  background: var(--knob);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  box-shadow: inset 0 2px 6px -3px var(--shadow);
}
.send input::placeholder { color: var(--muted); opacity: 0.8; }
.send input:focus { outline: none; border-color: var(--button); }
.send .download { width: 100%; min-width: 0; border: 0; font-family: inherit; cursor: pointer; }
.send .download:disabled { cursor: default; transform: none; }
.send.sent input { opacity: 0.6; }
/* The big toggle: a real dog on one side, the animated one on the other, and a knob that slides to the one showing.
   Each dog stands on a disc of the laptop's desktop blue and pokes out over the top of it. */
.pick {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(440px, 100%);
  margin-top: 30px;
  padding: 6px;
  border-radius: 999px;
  background: var(--track);
  box-shadow: inset 0 0 0 1px var(--track-edge), inset 0 2px 6px -2px var(--shadow);
}
.pick::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc(50% - 6px);
  border-radius: 999px;
  background: var(--knob);
  box-shadow: 0 0 0 1px var(--track-edge), 0 10px 20px -10px var(--shadow);
  transition: transform 0.32s cubic-bezier(0.3, 1.25, 0.5, 1);
}
.pick[data-on="focus"]::before { transform: translateX(100%); }
.pick a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 92px;
  padding: 16px 16px 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.pick a[aria-current], .pick a:hover { color: var(--ink); }
.pick a:focus-visible { outline-offset: -3px; }
.pic {
  position: relative;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #6aa6c2, #2b5a72 75%);
}
.pic img {
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: auto;
  transform: translateX(-50%);
  transition: transform 0.2s ease;
}
.pic img[src$="pick-real.png"] { height: 74px; }
.pic img[src$="pick-animated.png"] { height: 60px; bottom: 2px; }
.pick a:not([aria-current]) .pic { filter: saturate(0.6); opacity: 0.85; transition: filter 0.2s ease, opacity 0.2s ease; }
.pick a:not([aria-current]):hover .pic { filter: none; opacity: 1; }
.pick a:not([aria-current]):hover .pic img { transform: translateX(-50%) translateY(-3px) rotate(-4deg); }

.legal { color: var(--muted); font-weight: 600; text-underline-offset: 3px; }
.legal:hover { color: var(--ink); }
.legal:focus-visible { border-radius: 4px; }
footer { padding: 0 16px 28px; font-size: 14px; text-align: center; }
/* The footer's row of links to the other pages. */
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }

@media (max-width: 960px) {
  .top { padding: 16px 16px 0; }
  .brand { font-size: 26px; }
  .brand img { width: 40px; height: 40px; }
  /* The dog, headline, button and toggle fill the first screen on their own, and the footer's links wait below it. 56px is the
     header: its 16px padding and the 40px icon. */
  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 32px;
    min-height: calc(100vh - 56px);
    min-height: calc(100svh - 56px);
    padding: 20px 16px 40px;
  }
  .laptop { width: min(620px, 100%); margin: 0 auto; }
  .lid { border-radius: 12px 12px 0 0; }
  .copy { text-align: center; }
  .pick { margin-left: auto; margin-right: auto; }
}
@media (max-width: 400px) {
  .download { min-width: 0; width: 100%; }
  .pick a { gap: 8px; min-height: 84px; padding: 14px 10px 6px 6px; font-size: 17px; }
  .pic { width: 52px; height: 52px; }
  .pic img[src$="pick-real.png"] { height: 64px; }
  .pic img[src$="pick-animated.png"] { height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .pick::before, .scene, .pic, .pic img { transition: none; }
}
