/* Listo marketing page. Deep teal and pale mint, Lora + Inter.
   Mobile first: base rules are the phone layout; media queries only widen it. */

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(fonts/lora-latin-wght-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2");
}

:root {
  --page: #F0F7F6;
  --paper: #FFFFFF;
  --chat-background: #E3F1EE;
  --button-background: #D5EBE6;
  --line: #C5DCD7;
  --ink: #183633;
  --soft: #486460;
  --accent: #17665E;
  --accent-deep: #104F49;

  /* Type */
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Space and shape */
  --gutter: 20px;
  --max: 1120px;
  --radius: 14px;
  --radius-button: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

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

/* Wordmark: upright capitalized serif with a teal full stop. */
.wordmark {
  font: 600 30px/1 var(--serif);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark span { color: var(--accent); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.site-sign-in {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--accent-deep); font-size: 15px; font-weight: 600;
  text-underline-offset: 4px;
}

/* Hero */
.hero { padding-top: 24px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
h1 {
  margin-top: 12px;
  font: 500 clamp(40px, 11vw, 64px)/1.04 var(--serif);
  letter-spacing: -0.015em;
}
.lede { margin-top: 16px; color: var(--soft); max-width: 34em; }

.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius-button);
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.works { margin-top: 14px; font-size: 14px; color: var(--soft); text-align: center; }

/* Chat mockup: a phone-style conversation with the Listo bot. */
.chat {
  margin-top: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(24, 54, 51, 0.35);
}
.chat-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.chat-bar strong { display: block; font-size: 15px; line-height: 1.2; }
.chat-bar small {
  display: block; margin-top: 2px;
  font-size: 12.5px; line-height: 1.2; color: var(--soft);
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font: 600 18px/1 var(--serif);
  letter-spacing: -0.02em;
}
.avatar span { color: #9FE0D4; } /* matches the favicon's full stop */
.chat-body { padding: 16px 14px 14px; background: var(--chat-background); }
.chat-who { font-size: 12.5px; color: var(--soft); text-align: center; margin: 4px 0 10px; }
.chat-who + .bubble { margin-top: 0; }
.buttons + .chat-who, .bubble + .chat-who { margin-top: 18px; }
.bubble {
  padding: 12px 14px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px; line-height: 1.45;
}
.bubble strong { display: block; font: 600 17px/1.3 var(--serif); margin-bottom: 2px; }
.buttons { display: flex; gap: 6px; margin-top: 6px; }
.buttons span {
  flex: 1; text-align: center; padding: 9px; border-radius: var(--radius-button);
  background: var(--button-background); font-size: 14.5px; font-weight: 600; color: var(--ink);
}

/* Animation: only when JS marks the chat (motion allowed, observer available). */
.chat.is-waiting .step { opacity: 0; }
.chat.is-playing .step { opacity: 0; animation: rise 0.5s ease forwards; }
.chat.is-playing .step:nth-child(1) { animation-delay: 0s; }
.chat.is-playing .step:nth-child(2) { animation-delay: 0.3s; }
.chat.is-playing .step:nth-child(3) { animation-delay: 0.9s; }
.chat.is-playing .step:nth-child(4) { animation-delay: 2.2s; }
.chat.is-playing .step:nth-child(5) { animation-delay: 2.5s; }
.chat.is-playing .tap { animation: tap 0.45s ease 1.7s forwards; }
.chat:not(.is-waiting):not(.is-playing) .tap { background: var(--accent); color: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tap {
  0%, 100% { transform: scale(1); background: var(--accent); color: #fff; }
  40% { transform: scale(0.94); background: var(--accent); color: #fff; }
}

/* Features */
.features { padding-top: 64px; }
h2 {
  font: 500 clamp(30px, 8vw, 40px)/1.1 var(--serif);
  letter-spacing: -0.02em;
}
.feature-list { margin-top: 12px; }
.feature-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.feature-list h3 { font: 500 22px/1.25 var(--serif); letter-spacing: -0.01em; }
.feature-list p { margin-top: 6px; color: var(--soft); font-size: 16px; }

/* Closing CTA */
.closing { padding-top: 64px; padding-bottom: 64px; text-align: center; }
.closing p { margin: 12px auto 24px; color: var(--soft); max-width: 30em; }
.closing .btn { width: 100%; }

/* Footer */
.footer {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--soft); text-align: center;
  /* The rule spans the content column, not the gutters. */
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); padding-inline: 0;
}
.footer a { display: inline-flex; align-items: center; gap: 5px; padding-block: 12px; color: var(--ink); font-weight: 500; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .wordmark { font-size: 24px; }
.fine { font-size: 12.5px; }

/* Wider phones and small tablets */
@media (min-width: 560px) {
  :root { --gutter: 32px; }
  .actions { flex-flow: row wrap; }
  .actions .btn { padding-inline: 22px; }
  .works { text-align: left; }
  .closing .btn { width: auto; }
}

/* Desktop: copy beside the chat, features in a grid. */
@media (min-width: 960px) {
  .hero {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
    padding-top: 48px;
  }
  .chat { margin-top: 0; max-width: 400px; justify-self: end; width: 100%; }
  .features { padding-top: 112px; }
  .feature-list {
    display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; margin-top: 24px;
  }
  .feature-list li { padding: 28px 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .closing { padding-top: 112px; padding-bottom: 112px; }
  .footer { flex-direction: row; justify-content: space-between; }
  .footer .fine { order: 3; }
}

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