@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/InstrumentSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/InstrumentSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/InstrumentSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #050505;
  --text-2: #4a4a4a;
  --text-3: #6b6b6b;
  --hairline: rgba(0, 0, 0, 0.08);
  --on-ink-2: #b3b3b3;
  --wrap: 1240px;
  --gutter: 24px;
  interpolate-size: allow-keywords;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: #fff; }
/* The rubber-band overscroll reveals the root background: white above the white header, dark below the dark footer.
   The colour follows the scroll position, switching halfway down the page */
@supports (animation-timeline: scroll()) {
  html { animation: canvas-tone linear both; animation-timeline: scroll(root block); }
}
@keyframes canvas-tone {
  0%, 50% { background-color: #fff; }
  50.01%, 100% { background-color: var(--ink); }
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  cursor: default;
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: #5c5c5c; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.dark { background: var(--ink); color: #fff; }
.dark :focus-visible { outline-color: #fff; }

.h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; }
.lead { font-size: 17px; line-height: 1.55; color: var(--text-2); }
.dark .lead { color: var(--on-ink-2); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }

/* The frame gets its size from aspect-ratio and the screenshot is laid over it: Safari doesn't resolve
   height: 100% against an aspect-ratio box, which stretched the screenshots on iPhone */
.phone { position: relative; aspect-ratio: 690 / 1495; border: 7px solid var(--ink); border-radius: 46px; overflow: hidden; background: var(--ink); }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Store button */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 24px 0 20px; border-radius: 13px;
  background: var(--ink); color: #fff;
  transition: background-color 0.15s ease;
}
.store:hover, .get-app:hover { color: #fff; background: #2a2a2a; }
.store svg { flex: none; width: 26px; height: 26px; margin-top: -3px; }
.store-text { display: flex; flex-direction: column; gap: 2px; }
.store-small { font-size: 11px; line-height: 1; font-weight: 500; letter-spacing: 0.2px; opacity: 0.8; }
.store-big { font-size: 23px; line-height: 1; font-weight: 600; letter-spacing: -0.6px; }
.store-light { background: #fff; color: var(--ink); }
.store-light:hover { color: var(--ink); background: #e8e8e8; }

/* QR code to the App Store */
.qr { display: flex; align-items: center; gap: 14px; }
.qr-code { flex: none; width: 64px; height: 64px; }
.qr-image { width: 100%; height: 100%; }
.qr p { font-size: 14px; line-height: 1.4; color: #5c5c5c; max-width: 9em; }
.qr-tile .qr-code { width: 60px; height: 60px; padding: 6px; background: #fff; border-radius: 13px; }
.qr-tile p { color: #a3a3a3; }

/* Header and hero, drawn over the room sketch */
.top { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.top > .wrap { width: 100%; }
.sketch { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.header, .hero { position: relative; }

.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 600; letter-spacing: -0.4px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 32px; font-size: 15px; }
.get-app { padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; transition: background-color 0.15s ease; }

.hero { flex: 1; display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 64px; padding-top: 56px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-3); }
.hero h1 { font-size: clamp(48px, 6.7vw, 86px); line-height: 0.98; font-weight: 600; letter-spacing: -0.045em; }
.hero-lead { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 30em; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; padding-top: 8px; }
.hero-note { font-size: 14px; color: var(--text-3); }
.hero-phones { flex: 1 1 440px; min-width: 0; display: flex; justify-content: flex-end; align-items: flex-start; gap: 20px; }
.phone-back { width: 46%; max-width: 250px; margin-top: 72px; border-radius: 42px; }
.phone-front { width: 50%; max-width: 280px; }

/* Sketch lines */
.sketch-line { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sketch-line.faint { stroke-opacity: 0.08; }
.sketch-line.light { stroke-opacity: 0.15; }
.sketch-line.strong { stroke-opacity: 0.32; }
.sketch-dot { fill: var(--ink); fill-opacity: 0.55; }
.sketch-label { font: 500 11px "Instrument Sans", system-ui, sans-serif; letter-spacing: 1.3px; text-transform: uppercase; fill: #767676; }

/* Facts */
.facts { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.facts .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 24px 20px; border-left: 1px solid var(--hairline); }
.fact:nth-child(odd) { padding-left: 0; border-left: 0; }
.fact:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
.fact strong { font-size: clamp(22px, 5vw, 28px); font-weight: 600; letter-spacing: -0.8px; }
.fact span { font-size: 14px; color: #5c5c5c; }

/* How it works */
.how { display: flex; flex-direction: column; gap: 64px; padding-top: 120px; padding-bottom: 40px; }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 28px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; border-top: 1px solid var(--ink); }
.step-num { font-size: 13px; color: var(--text-3); letter-spacing: 1px; }
.step h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.5px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.step .phone { width: 100%; max-width: 250px; margin-top: 12px; border-width: 6px; border-radius: 38px; }

/* Just text your ideas */
.talk { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 120px; padding-bottom: 120px; }
.talk-media { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; align-items: center; padding: 48px 24px; background: #d9d2c7 url("assets/img/talk-room.jpg") center / cover; border-radius: 24px; }
.talk-media .phone { width: 100%; max-width: 300px; }
.talk-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.talk-copy .lead { max-width: 32em; }

/* A conversation drawn like the app's chat: the user's messages on the right, the designer's steps and reply on the left, the input below */
.chat { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; padding: 28px; border: 1px solid var(--hairline); border-radius: 24px; }
.messages { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.message-user { align-self: flex-end; max-width: 85%; padding: 12px 18px; border-radius: 18px 18px 4px 18px; background: var(--ink); color: #fff; font-size: 16px; line-height: 1.4; }
.message-steps { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-3); }
.message-steps span::before { content: ""; display: inline-block; width: 10px; height: 5px; margin: 0 12px 3px 2px; border-left: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(-45deg); }
.message-designer { max-width: 92%; font-size: 16px; line-height: 1.55; color: #2b2b2b; }
.message-typing { display: flex; gap: 5px; padding: 6px 0; }
.message-typing span { width: 6px; height: 6px; border-radius: 50%; background: #9a9a9a; animation: typing 1.2s ease-in-out infinite; }
.message-typing span:nth-child(2) { animation-delay: 0.15s; }
.message-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 50% { opacity: 0.3; } }
.composer { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 8px 0 20px; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 16px; color: #8f8f8f; font-size: 15px; }
.composer-send { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #b0b0b0; color: #fff; }

/* Messages slide in one by one as the chat scrolls into view, where the browser supports scroll-driven animation */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .messages > li { animation: message-in linear both; animation-timeline: view(); }
    .messages > li:nth-child(1) { animation-range: entry 0% entry 50%; }
    .messages > li:nth-child(2) { animation-range: entry 15% entry 65%; }
    .messages > li:nth-child(3) { animation-range: entry 30% entry 80%; }
    .messages > li:nth-child(4) { animation-range: entry 45% entry 95%; }
    .messages > li:nth-child(5) { animation-range: entry 60% cover 30%; }
  }
}
@keyframes message-in { from { opacity: 0; transform: translateY(12px); } }

/* Styles */
.styles .wrap { display: flex; flex-direction: column; gap: 48px; padding-top: 88px; padding-bottom: 120px; }
.styles .lead { max-width: 26em; margin-bottom: 8px; }
.style-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px 24px; }
.style-grid figure { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.style-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.style-grid figcaption { display: flex; flex-direction: column; gap: 12px; }
.style-name { font-size: 22px; font-weight: 600; letter-spacing: -0.4px; }
/* The style's colours, as the app shows them on its style screen */
.palette { display: flex; width: 160px; height: 6px; }
.palette span { flex: 1; }
.style-text { font-size: 15px; line-height: 1.55; color: var(--on-ink-2); }

/* Privacy and FAQ share one two-column layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 64px; }
.faq { padding-top: 120px; padding-bottom: 40px; }
.privacy { padding-top: 80px; padding-bottom: 120px; }
.rows { border-top: 1px solid var(--hairline); }
.row { display: flex; flex-direction: column; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.row h3 { font-size: 18px; font-weight: 600; }
.row p, .faq details p { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 300; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 36em; margin-bottom: 22px; }
/* Answers slide open and closed; browsers without ::details-content or height: auto transitions just open them */
.faq details::details-content { height: 0; overflow: clip; transition: height 0.3s ease, content-visibility 0.3s allow-discrete; }
.faq details[open]::details-content { height: auto; }

/* Final call to action and footer */
.cta .wrap { padding-top: 96px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 36px 48px; }
.cta h2 { flex: 1 1 480px; min-width: 0; font-size: clamp(40px, 5vw, 68px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; }
.cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 88px; padding: 24px 0 32px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: #8f8f8f; }
.footer nav { display: flex; gap: 28px; }
.footer a, .footer button { color: #c4c4c4; text-decoration: none; }
.footer a:hover, .footer button:hover { color: #fff; }

/* Layout steps: phones first, then tablets (560, 640, 900) and laptops (1024) */
@media (min-width: 560px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .facts .wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact { padding: 28px 24px; }
  .fact:nth-child(3) { padding-left: 24px; border-left: 1px solid var(--hairline); }
  .fact:nth-child(n + 3) { border-top: 0; }
  /* The whole section is one screen tall: the four steps share rows (subgrid), so their texts line up
     and the screenshots take the height the text leaves, up to 600px */
  .how { height: 100vh; height: 100svh; min-height: 720px; justify-content: center; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
  .steps { flex: 0 1 auto; min-height: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto auto minmax(0, 600px); row-gap: 16px; }
  .step { grid-row: span 4; display: grid; grid-template-rows: subgrid; gap: 16px; }
  /* On short screens the chat is taller than the phone, so the padding gives way first */
  .talk { min-height: 100vh; min-height: 100svh; margin-top: 80px; padding-top: clamp(40px, calc((100svh - 640px) / 2), 80px); padding-bottom: clamp(40px, calc((100svh - 640px) / 2), 80px); }
  .talk-media { align-self: stretch; }
  .talk-media .phone { width: auto; max-width: none; height: clamp(360px, calc(100svh - 256px), 720px); }
  .step .phone { justify-self: start; width: auto; height: 100%; max-width: none; margin-top: 8px; }
  .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .hero-phones { justify-content: center; }
}
/* A QR code is for a computer screen: on a phone or tablet the store button is right there */
@media (pointer: coarse) {
  .qr { display: none; }
}
@media (max-width: 720px) {
  .desk-only { display: none !important; }
  .sketch-line.strong, .sketch-dot, .sketch-label { display: none; }
  .hero { gap: 48px; padding-top: 32px; }
  .how, .talk, .faq { padding-top: 88px; }
  .privacy { padding-top: 48px; }
  .talk, .privacy { padding-bottom: 88px; }
  .styles .wrap { padding-bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq details::details-content { transition: none; }
  .message-typing span { animation: none; }
}
