/* DeskSloth site. Colours, type and shapes come from app/src/ui.tsx. */
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url(fonts/DMSans_400Regular.ttf); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url(fonts/DMSans_500Medium.ttf); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url(fonts/DMSans_600SemiBold.ttf); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url(fonts/DMSans_700Bold.ttf); }
:root {
  --linen: #FBF7ED; --gold: #FFD057; --green: #204D3D; --ink: #242321; --sub: #55584E;
  --sage: #CEE4AF; --white: #FFFEFC; --soft: #EFEBE1; --line: #DCDACF;
  --curve: clamp(28px, 6vw, 90px);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { background: var(--linen); color: var(--ink); font: 500 17px/1.5 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
.hero h1 { font-size: clamp(2.375rem, 4.8vw, 3.875rem); }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: 21px; letter-spacing: -0.015em; }
.big { font-size: clamp(18px, 1.7vw, 21px); text-wrap: pretty; }
.faq p { color: var(--sub); }
.note { font-size: 15px; color: var(--sub); }
.center { text-align: center; }
.center > .big { margin-top: 14px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.pad { padding-block: clamp(64px, 9vw, 120px); }
.two { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hide, .trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 20px; z-index: 20; }
.skip:focus { top: 12px; }
a, button, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.top { display: flex; align-items: center; padding: 12px max(20px, calc((100% - 1120px) / 2)); background: var(--gold); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: inherit; text-decoration: none; min-height: 44px; }
.face { width: 36px; height: 36px; flex: none; display: block; overflow: visible; }
.mid { width: 88px; height: 88px; margin: 0 auto 22px; }
.big-face { width: 48px; height: 48px; }

.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; border-radius: 27px; font: 600 17px 'DM Sans', system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: transform .12s ease-out, opacity .12s; white-space: nowrap; }
.pill:active { transform: scale(.97); opacity: .85; }
.pill:disabled { opacity: .55; cursor: default; }
.dark { background: var(--ink); color: #fff; }
.green { background: var(--green); color: #fff; }
.soft { background: var(--soft); color: var(--ink); }

/* Colour blocks with the app's shallow curve. */
.gold { background: var(--gold); }
.sage { background: var(--sage); }
.curve { border-radius: 0 0 50% 50% / 0 0 var(--curve) var(--curve); }
.curve-both { border-radius: 50% / var(--curve); }
.curve-top { border-radius: 50% 50% 0 0 / var(--curve) var(--curve) 0 0; }
.gold .note { color: #4b4637; }

.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(72px, 9vw, 130px); overflow: hidden; }
.lead > * + * { margin-top: 22px; }
.join { display: flex; flex-wrap: wrap; gap: 10px; max-width: 500px; }
.center .join { margin: 26px auto 14px; justify-content: center; }
.join input[type=email] { flex: 1 1 220px; min-width: 0; min-height: 54px; border: 0; border-radius: 27px; padding: 0 22px; background: var(--white); color: var(--ink); font: 500 17px 'DM Sans', system-ui, sans-serif; }
.join input::placeholder { color: #77776d; }
.status { flex-basis: 100%; font-weight: 600; }
.status:empty { margin-top: -10px; }
.status.bad { color: #8a1f11; }
.join.done input, .join.done button { display: none; }
.join.done .status { font-size: 21px; padding: 14px 0; }

.stage { position: relative; display: grid; place-items: center; }
.stage::before { content: ""; position: absolute; width: min(100%, 26rem); aspect-ratio: 1; background: #FFDF84; border-radius: 50%; }
.phone { position: relative; width: min(17rem, 70vw); margin-inline: auto; padding: 9px; border-radius: 52px; background: #111; box-shadow: 0 30px 60px rgb(36 35 33 / .22); }
.phone img { display: block; width: 100%; height: auto; border-radius: 43px; }

.demo { max-width: 460px; margin: clamp(28px, 4vw, 44px) auto 0; }
.banner { background: var(--white); border-radius: 26px; padding: 18px; display: grid; gap: 16px; box-shadow: 0 12px 34px rgb(29 42 34 / .14); }
.row { display: flex; align-items: center; gap: 14px; line-height: 1.35; }
.pills { gap: 10px; }
.pills .pill { flex: 1; min-height: 48px; padding: 0 10px; font-size: 16px; }
.links { flex-wrap: wrap; justify-content: space-between; gap: 4px; }
.links button { border: 0; background: none; font: 600 15px 'DM Sans', system-ui, sans-serif; color: var(--sub); min-height: 44px; padding: 0 10px; border-radius: 22px; cursor: pointer; white-space: nowrap; }
.links button:hover, .links [aria-pressed=true] { background: var(--soft); color: var(--ink); }
.pills [aria-pressed=true] { box-shadow: 0 0 0 3px var(--gold); }
.answer { margin-top: 16px; min-height: 52px; padding: 12px 18px; border-radius: 22px; background: #F3EEE2; text-align: center; font-weight: 600; display: grid; place-items: center; text-wrap: balance; }
.pop { animation: pop .32s ease-out; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

.shots { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.shots figure { min-width: 0; }
.shots figure:first-child { align-self: center; }
.shot-image { width: min(100%, 240px); margin-inline: auto; padding: 6px; border-radius: 40px; background: #111; box-shadow: 0 12px 28px rgb(29 42 34 / .16); }
.shot-image img { display: block; width: 100%; height: auto; border-radius: 34px; }
.shots figure:first-child .shot-image { width: min(100%, 420px); padding: 0; border-radius: 20px; }
.shots figure:first-child img { border-radius: inherit; }
.shots figcaption { text-align: center; margin: 20px auto 0; max-width: 30ch; }
.workday { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.faq { max-width: 760px; }
.faq h2 { margin-bottom: 34px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 19px; padding: 20px 44px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 27px; width: 9px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .18s; }
.faq details[open] summary::after { transform: translateY(5px) rotate(225deg); }
.faq p { padding: 0 44px 22px 0; }
.foot { background: var(--gold); text-align: center; padding: 8px 20px 36px; font-size: 14px; color: #4b4637; }

@media (max-width: 820px) {
  .two { grid-template-columns: 1fr; }
  .workday { grid-template-columns: 1fr; gap: 18px; max-width: 640px; }
  .shots { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .shots figure:first-child { grid-column: 1 / -1; }
  .lead { text-align: center; }
  .join { margin-inline: auto; justify-content: center; }
  .join .pill { flex: 1 1 100%; }
  .stage { margin-top: 26px; }
}
@media (max-width: 580px) {
  .shots { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::after { animation: none !important; transition: none !important; }
}
