/* Pronto site. Self-hosted fonts, no third-party requests. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2-variations"), url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4.woff2") format("woff2-variations"), url("fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-italic.woff2") format("woff2-variations"), url("fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #eef1f6;
  --ink: #1b1f3b;
  --muted: #585e7a;
  --line: #d5dae5;
  --bubble: #ffffff;
  --cobalt: #2f4bff;
  --cobalt-deep: #1e32c8;
  --cobalt-tint: #dde3ff;
  --signal: #ffd23f;

  --sans: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --page: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  font-optical-sizing: auto;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--cobalt-deep); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--cobalt); }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
}
.skip:focus { left: 0.5rem; }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------------- header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand svg { width: 2rem; height: 2rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 1rem;
}
.site-nav a:not(.button) { color: var(--ink); text-decoration: none; }
.site-nav a:not(.button):hover { text-decoration: underline; }

@media (max-width: 34rem) {
  .site-nav .nav-text { display: none; }
}

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background: var(--cobalt);
  color: #fff;
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 120ms ease;
}
.button:hover { background: var(--cobalt-deep); color: #fff; }
.button svg { width: 1.2rem; height: 1.2rem; }
.button.small { padding: 0.5rem 0.9rem; font-size: 0.95rem; }

/* ---------------------------------------------------------------- hero chat */

.hero { padding: clamp(1.5rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 4.5rem); }

.chat {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.msg { max-width: 36rem; }
.msg.me { align-self: flex-end; }
.msg.bot { align-self: flex-start; }

.bubble {
  position: relative;
  padding: 0.85rem 1.1rem;
  border-radius: 1.4rem;
  background: var(--bubble);
  box-shadow: 0 1px 0 var(--line);
}
.msg.me .bubble {
  background: var(--cobalt);
  color: #fff;
  border-bottom-right-radius: 0.4rem;
}
.msg.bot .bubble { border-bottom-left-radius: 0.4rem; }

.sender {
  display: block;
  margin: 0 0 0.3rem 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* The opening request is the poster: huge, heavy, slightly condensed. */
.msg.opening { max-width: min(100%, 60rem); }
.msg.opening .bubble {
  padding: clamp(1rem, 2.5vw, 1.6rem) clamp(1.25rem, 3vw, 2.2rem);
  border-radius: clamp(1.6rem, 4vw, 3rem);
  border-bottom-right-radius: 0.6rem;
  font-size: clamp(2.1rem, 6.4vw, 5.2rem);
  line-height: 1.02;
  font-weight: 760;
  font-stretch: 82%;
  letter-spacing: -0.035em;
}

.day-break {
  align-self: center;
  margin: 0.6rem 0;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--line);
  font-size: 0.85rem;
  color: var(--ink);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.choice {
  padding: 0.5rem 0.9rem;
  border-radius: 0.8rem;
  border: 1.5px solid var(--cobalt);
  color: var(--cobalt-deep);
  font-weight: 600;
  font-size: 1rem;
  background: #fff;
}
.choice.picked { background: var(--cobalt); color: #fff; }

.file {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.7rem;
  background: var(--paper);
  font-size: 0.95rem;
  font-weight: 600;
}
.file svg { width: 1.1rem; height: 1.1rem; }

.done-mark {
  position: absolute;
  top: -0.7rem;
  right: -0.7rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--signal);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px var(--paper);
}
.done-mark svg { width: 1.05rem; height: 1.05rem; }

/* Playback (added by app.js; without JS, or with reduced motion, everything is simply shown) */
.chat.playing > li { opacity: 0; transform: translateY(0.5rem); }
.chat.playing > li.shown {
  opacity: 1;
  transform: none;
  transition: opacity 260ms ease, transform 260ms ease;
}
.dots { display: none; gap: 0.3rem; padding: 0.35rem 0.1rem; }
.dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1s infinite ease-in-out;
}
.dots span:nth-child(2) { animation-delay: 150ms; }
.dots span:nth-child(3) { animation-delay: 300ms; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.chat.playing > li.typing .dots { display: flex; }
.chat.playing > li.typing .bubble > :not(.dots) { display: none; }

.replay {
  margin-top: 1rem;
  background: none;
  border: 0;
  padding: 0.25rem 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.replay[hidden] { display: none; }

/* ---------------------------------------------------------------- intro */

.intro {
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.intro h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.intro p { margin: 0; color: var(--muted); max-width: 38rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.cta-note { font-size: 0.95rem; color: var(--muted); }

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.section h2 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.1;
  font-weight: 720;
  letter-spacing: -0.02em;
}
.section .lede { margin: -0.75rem 0 2rem; color: var(--muted); max-width: 40rem; }

/* Example requests: they are things you'd type, so they look like your messages. */
.asks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.asks li {
  padding: 0.7rem 1rem;
  border-radius: 1.2rem;
  border-bottom-right-radius: 0.35rem;
  background: var(--cobalt-tint);
  color: var(--ink);
  font-size: 1.05rem;
  max-width: 100%;
}

/* How a task runs: a real sequence, so it is numbered. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 800;
  font-stretch: 75%;
  color: var(--cobalt);
}
.steps h3 { margin: 0 0 0.35rem; font-size: 1.2rem; font-weight: 680; }
.steps p { margin: 0; color: var(--muted); }

/* What it won't do: the ink band. */
.section.never {
  background: var(--ink);
  color: var(--paper);
  border-top: 0;
}
.never .lede { color: #b9bfd6; }
.never-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}
.never-list li {
  padding-left: 1.9rem;
  position: relative;
  color: #d6daea;
}
.never-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 1rem;
  height: 3px;
  border-radius: 2px;
  background: var(--signal);
}
.never-list strong { color: #fff; font-weight: 680; }

/* Ghost button: secondary action next to the primary CTA. */
.button.ghost {
  background: transparent;
  color: var(--cobalt);
  box-shadow: inset 0 0 0 2px var(--cobalt);
}
.button.ghost:hover { background: var(--cobalt); color: #fff; }

/* Demo: a real errand, captured on a phone, so it is framed like one. */
.demo-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem clamp(2rem, 6vw, 5rem);
}
@media (max-width: 50rem) {
  .demo-wrap { grid-template-columns: 1fr; }
}
.demo-copy .lede { margin-bottom: 1rem; }
.demo-note { margin: 0; color: var(--muted); font-size: 0.95rem; }
.demo-frame {
  justify-self: center;
  width: min(20rem, 100%);
  padding: 0.55rem;
  border-radius: 2rem;
  background: var(--ink);
  box-shadow: 0 1.5rem 3rem rgba(27, 31, 59, 0.18);
}
.demo-frame video {
  display: block;
  width: 100%;
  border-radius: 1.5rem;
  background: #000;
}

.access { display: grid; gap: 1rem; max-width: 40rem; }
.access p { margin: 0; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: var(--ink); }

/* ---------------------------------------------------------------- legal pages */

.legal {
  max-width: 44rem;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 4rem;
}
.legal h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
  font-weight: 760;
  font-stretch: 85%;
  letter-spacing: -0.03em;
}
.legal .updated { margin: 0 0 2.5rem; color: var(--muted); font-size: 1rem; }
.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 700;
}
.legal .prose {
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.7;
}
.legal .prose p, .legal .prose ul { margin: 0 0 1rem; }
.legal .prose li { margin-bottom: 0.4rem; }
.legal .summary {
  font-family: var(--sans);
  background: var(--bubble);
  border-radius: 1.2rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.55;
}
.legal .summary p { margin: 0 0 0.5rem; }
.legal .summary ul { margin: 0; padding-left: 1.2rem; }
.legal table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 1rem; margin: 0 0 1.25rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 650; }
.table-scroll { overflow-x: auto; }

/* ---------------------------------------------------------------- motion preferences */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
