/* Biz Smart public website. Brand: pine green, Poppins, the speech-bubble mark.
   The home page is one conversation: the big green bubble speaks first, visitors'
   questions sit on the right, answers on the left. */

@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f4f6f5;
  --surface: #ffffff;
  --ink: #1c2321;
  --muted: #55605c;
  --line: #dfe4e2;
  --line-strong: #c5cdc9;
  --pine: #1e6b52;
  --pine-dark: #17543f;
  --pine-deep: #0f2f25;
  --pine-soft: #e3efea;
  --pine-mist: #cfe3da; /* quiet text on pine */
  --on-pine: #ffffff;
  --rust: #a3271f;
  --rust-soft: #fbeceb;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --column: 72rem;
  --mint: #9fe3c5; /* the accent on pine, as in the dashboard's dark theme */
  --header-h: 4rem;
  --dock-h: 0px; /* set by site.js once the dock is on screen */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: 1.25rem;
  scroll-padding-bottom: calc(var(--dock-h) + 1rem);
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  caret-color: var(--pine);
}

::selection {
  background: var(--pine);
  color: var(--on-pine);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--pine);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--pine-dark);
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
  border-radius: 4px;
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: calc(var(--column) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.625rem 1.375rem;
  border: 1px solid var(--pine);
  border-radius: 999px;
  background: var(--pine);
  color: var(--on-pine);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s var(--ease);
}
.btn:hover {
  background: var(--pine-dark);
  border-color: var(--pine-dark);
  color: var(--on-pine);
}
.btn:active {
  transform: scale(0.97);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.btn-small {
  min-height: 2.5rem;
  padding: 0.375rem 1rem;
  font-size: 0.9375rem;
}
.btn-light {
  background: var(--on-pine);
  border-color: var(--on-pine);
  color: var(--pine-dark);
}
.btn-light:hover {
  background: var(--pine-soft);
  border-color: var(--pine-soft);
  color: var(--pine-deep);
}
.btn-quiet {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-quiet:hover {
  background: var(--surface);
  border-color: var(--pine);
  color: var(--pine-dark);
}

/* ---------- Header ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo:hover {
  color: var(--ink);
}
.logo svg {
  width: 1.875rem;
  height: 1.875rem;
}
.mark-bubble {
  fill: var(--pine);
}
.mark-bars {
  fill: var(--on-pine);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.5rem);
}
.site-nav a:not(.btn) {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:not(.btn):hover {
  color: var(--pine);
}

/* ---------- The opening bubble ---------- */

.hello {
  padding-bottom: 2.5rem;
}
.hello-bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Fills what's left of the first screen, between the header and the question bar. */
  min-height: max(24rem, calc(100svh - var(--header-h) - var(--dock-h) - 3.25rem));
  padding: clamp(1.75rem, 6vw, 5rem);
  border-radius: clamp(1.75rem, 4vw, 3rem);
  background: var(--pine);
  color: var(--on-pine);
}
/* The tail, bottom left, as on the logo mark. */
.hello-bubble::after {
  content: "";
  position: absolute;
  left: clamp(1.75rem, 6vw, 5rem);
  bottom: -1.375rem;
  width: 2.25rem;
  height: 1.5rem;
  background: var(--pine);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.hello h1 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 8.2vw, 5.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hello-text {
  max-width: 34rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  color: var(--pine-mist);
  font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.3125rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.hello-text strong {
  color: var(--on-pine);
  font-weight: 500;
}
.hello-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}
.hello-actions .link {
  color: var(--on-pine);
  font-weight: 500;
}
.hello-fact {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.125rem;
  border-top: 1px solid rgb(255 255 255 / 0.22);
  color: var(--pine-mist);
  font-size: 0.9375rem;
}
.hello-bubble ::selection {
  background: var(--on-pine);
  color: var(--pine-dark);
}
.hello-bubble :focus-visible {
  outline-color: var(--on-pine);
}

/* ---------- The conversation ---------- */

.thread {
  display: flex;
  flex-direction: column;
}
.exchange {
  padding-block: clamp(2.25rem, 6vw, 4rem) clamp(1.25rem, 3vw, 2rem);
  scroll-margin-top: 0.5rem;
}
.exchange:focus {
  outline: none;
}

/* A visitor's question: right side, like a sent message. */
.ask {
  width: fit-content;
  max-width: min(100%, 30rem);
  margin-left: auto;
  padding: 0.75rem 1.25rem;
  border-radius: 1.375rem 1.375rem 0.375rem 1.375rem;
  background: var(--ink);
  color: var(--canvas);
  font-size: clamp(1.125rem, 1vw + 0.9rem, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

/* The answer: left side, open on the page (no box), with the mark as the speaker. */
.answer {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
}
.speaker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.speaker svg {
  width: 1.375rem;
  height: 1.375rem;
}
.answer-body > * + * {
  margin-top: 1.125rem;
}
.answer-body p,
.answer-body li,
.answer-body dd {
  max-width: 62ch;
  text-wrap: pretty;
}
.lead {
  max-width: 24ch !important;
  font-size: clamp(1.5rem, 2.6vw + 0.85rem, 2.5rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.028em;
  text-wrap: balance !important;
}
.lead-wide {
  max-width: 30ch !important;
}
.answer-body .lead + * {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
}
.note {
  color: var(--muted);
  font-size: 0.9375rem;
}
.answer-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}
.followups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: clamp(1.5rem, 3vw, 2rem) !important;
}

@media (max-width: 40rem) {
  .answer {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }
  .speaker {
    width: 2.125rem;
    height: 2.125rem;
  }
}

/* Chips: questions a visitor can tap. */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.375rem 1.0625rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background-color 0.18s, transform 0.18s var(--ease);
}
.chip:hover {
  border-color: var(--pine);
  color: var(--pine-dark);
}
.chip:active {
  transform: scale(0.96);
}
.chip-go {
  border-color: var(--pine);
  background: var(--pine);
  color: var(--on-pine);
}
.chip-go:hover {
  background: var(--pine-dark);
  border-color: var(--pine-dark);
  color: var(--on-pine);
}

/* "Typing": three dots while an answer is on its way. */
.typing {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  height: 2.5rem;
}
.typing i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--pine);
  animation: typing 1s infinite ease-in-out;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-0.25rem);
  }
}

/* A message arriving. Content is visible by default; this only plays when site.js adds it. */
.arrive {
  animation: arrive 0.5s var(--ease) both;
}
.arrive-ask {
  transform-origin: 100% 100%;
  animation: arrive-ask 0.42s var(--ease) both;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(0.875rem);
    filter: blur(4px);
  }
}
@keyframes arrive-ask {
  from {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.9);
  }
}

/* ---------- Inside the answers ---------- */

/* The example chat: a lodge's own assistant, in the lodge's colour, not ours. */
.example {
  display: grid;
  grid-template-columns: minmax(0, 23rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.phone {
  --brand: #b4532a;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: 0 1.5rem 3rem -1.75rem rgb(15 47 37 / 0.45), 0 0.25rem 0.75rem -0.375rem rgb(15 47 37 / 0.14);
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.phone-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--line);
}
.phone-top b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}
.phone-top strong {
  display: block;
  font-weight: 600;
  line-height: 1.25;
}
.phone-top span {
  color: var(--muted);
  font-size: 0.8125rem;
}
.phone-chat {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.125rem;
}
.phone-chat p {
  max-width: 88%;
  padding: 0.5625rem 0.875rem;
  border-radius: 1.125rem;
}
.phone-chat .them {
  align-self: flex-end;
  border-bottom-right-radius: 0.3125rem;
  background: var(--brand);
  color: #fff;
}
.phone-chat .us {
  align-self: flex-start;
  border-bottom-left-radius: 0.3125rem;
  background: var(--canvas);
}
.phone-chat time {
  align-self: center;
  color: var(--muted);
  font-size: 0.75rem;
}
.example-points > * + * {
  margin-top: 1.5rem;
}
.example-points h3 + p {
  margin-top: 0.25rem;
  color: var(--muted);
}
.lead-card {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1rem 1.125rem;
  border-radius: 1rem;
  background: var(--pine-soft);
}
.lead-card svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.125rem;
  color: var(--pine);
}
.lead-card strong {
  display: block;
  font-weight: 600;
}
.lead-card span {
  display: block;
  color: #3d4a45;
  font-size: 0.9375rem;
}
@media (max-width: 52rem) {
  .example {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Video */
.film {
  position: relative;
  max-width: 52rem;
  border-radius: 1.25rem;
  background: var(--pine-deep);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.film video,
.film img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 0;
  background: linear-gradient(to top, rgb(15 47 37 / 0.72), rgb(15 47 37 / 0) 55%);
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.film-play span {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}
.film-play i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #fff;
  color: var(--pine-dark);
  transition: transform 0.25s var(--ease);
}
.film-play:hover i {
  transform: scale(1.08);
}
.film-play svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.1875rem;
}
.film-play small {
  display: block;
  color: var(--pine-mist);
  font-size: 0.8125rem;
  font-weight: 400;
}

/* Where answers come from */
.sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.sources > div {
  padding: 1.25rem 1.5rem 0.5rem 0;
}
.sources > div + div {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}
.sources h3 + p {
  margin-top: 0.375rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (max-width: 52rem) {
  .sources {
    grid-template-columns: minmax(0, 1fr);
  }
  .sources > div,
  .sources > div + div {
    padding: 1.125rem 0;
    border-left: 0;
  }
  .sources > div + div {
    border-top: 1px solid var(--line);
  }
}
.sheet {
  width: 100%;
  max-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.sheet caption {
  padding-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: left;
}
.sheet th,
.sheet td {
  padding: 0.5625rem 0.75rem 0.5625rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.sheet thead th {
  border-bottom-color: var(--line-strong);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}
.sheet th[scope="row"] {
  font-weight: 500;
}
.sheet .num {
  padding-right: 0;
  text-align: right;
}

/* Who is answering: assistant -> a person -> assistant */
.relay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.relay li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: none;
  padding: 0.4375rem 0.875rem;
  border-radius: 999px;
  background: var(--pine-soft);
  color: var(--pine-deep);
}
.relay .person {
  background: #fbf0e1;
  color: #6e3f04;
}
.relay li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}
.relay .then {
  padding: 0;
  background: none;
  color: #8b9692;
}
.relay .then::before {
  content: none;
}
.relay svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Plans, read from the server */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.625rem 0;
}
.plan + .plan {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}
.plan h3 {
  font-size: 1rem;
  font-weight: 600;
}
.plan-price {
  margin-top: 0.5rem;
  font-size: clamp(1.875rem, 2vw + 1.2rem, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.plan-price small {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
}
.plan ul {
  margin-top: 1rem;
  font-size: 0.9375rem;
}
.plan li {
  padding-block: 0.4375rem;
  border-top: 1px solid var(--line);
}
.plan li b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.plan-about {
  margin-top: 0.875rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (max-width: 34rem) {
  .plan,
  .plan + .plan {
    padding: 1.375rem 0;
    border-left: 0;
  }
  .plan + .plan {
    border-top: 1px solid var(--line);
  }
}
.plans-wait {
  display: grid;
  gap: 0.75rem;
  max-width: 34rem;
  padding-block: 1.5rem;
  border-block: 1px solid var(--line-strong);
}
.plans-wait i {
  height: 0.875rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, var(--line) 25%, #eef1f0 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: wait 1.4s linear infinite;
}
.plans-wait i:nth-child(1) {
  width: 40%;
}
.plans-wait i:nth-child(2) {
  width: 70%;
}
.plans-wait i:nth-child(3) {
  width: 55%;
}
@keyframes wait {
  to {
    background-position: -200% 0;
  }
}

/* The Get started form */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  max-width: 40rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.field-wide,
.form-foot,
.form-error {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.9375rem;
  font-weight: 500;
}
.field label span {
  color: var(--muted);
  font-weight: 400;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  background: var(--surface);
  font-size: 1rem; /* 16px: keeps iPhones from zooming in */
  line-height: 1.5;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field textarea {
  min-height: 6.5rem;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #6b7672;
}
.field input:hover,
.field textarea:hover {
  border-color: var(--pine);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 0;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgb(30 107 82 / 0.2);
}
.trap {
  position: absolute;
  left: -200vw;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.form-error {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--rust-soft);
  color: var(--rust);
  font-size: 0.9375rem;
}
@media (max-width: 34rem) {
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A live reply from the real assistant */
.live p + p {
  margin-top: 0.75rem;
}
.live ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.live-error {
  color: var(--rust);
}

/* ---------- The question bar, fixed to the bottom like a chat composer ---------- */

.dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  padding: 0.625rem 0 max(0.625rem, env(safe-area-inset-bottom));
  background: rgb(244 246 245 / 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
}
.dock-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.125rem var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  scroll-padding-inline: var(--gutter);
}
.dock-chips::-webkit-scrollbar {
  display: none;
}
.dock-chips .chip {
  flex: none;
}
.dock-type {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.dock-type input {
  flex: 1;
  min-width: 0;
  min-height: 3rem;
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 1rem;
}
.dock-type input:focus-visible {
  outline: 0;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgb(30 107 82 / 0.2);
}
.dock-type button {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--pine);
  color: var(--on-pine);
  cursor: pointer;
  transition: background-color 0.18s, transform 0.18s var(--ease);
}
.dock-type button:hover {
  background: var(--pine-dark);
}
.dock-type button:active {
  transform: scale(0.94);
}
.dock-type button[disabled] {
  opacity: 0.5;
  cursor: default;
}
.dock-type svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* With site.js running, questions wait in the bar until someone asks them. Without it,
   the whole conversation is simply on the page. */
.js .exchange:not(.asked) {
  display: none;
}
html:not(.js) .dock,
html:not(.js) .js-only {
  display: none;
}
.js .no-js-only {
  display: none;
}

/* ---------- The close and the footer ---------- */

.site-footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-block: clamp(3rem, 8vw, 5.5rem) calc(2rem + var(--dock-h));
  background: var(--pine-deep);
  color: var(--pine-mist);
}
.site-footer ::selection {
  background: var(--on-pine);
  color: var(--pine-deep);
}
.site-footer :focus-visible {
  outline-color: var(--on-pine);
}
.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.closing h2 {
  max-width: 16ch;
  color: var(--on-pine);
  font-size: clamp(2rem, 4.5vw + 0.9rem, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.16);
  font-size: 0.9375rem;
}
.foot .logo {
  color: var(--on-pine);
}
.foot .mark-bubble {
  fill: var(--on-pine);
}
.foot .mark-bars {
  fill: var(--pine-deep);
}
.foot p {
  margin-top: 0.75rem;
  max-width: 26rem;
}
.foot ul {
  display: grid;
  gap: 0.5rem;
}
.foot a {
  color: var(--on-pine);
}
.foot-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem clamp(2rem, 6vw, 4.5rem);
}
.foot h3 {
  margin-bottom: 0.625rem;
  color: var(--pine-mist);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ---------- Reading pages: privacy, terms, not found ---------- */

.page {
  padding-block: clamp(2rem, 6vw, 4rem) 1rem;
}
.page-head {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line-strong);
}
.page-head h1 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 4.5vw + 1rem, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.page-head p {
  margin-top: 1rem;
  max-width: 60ch;
  color: var(--muted);
}
.prose {
  max-width: 68ch;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}
.prose h2 {
  margin-top: 2.75rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose ul {
  margin-top: 0.875rem;
}
.prose ul {
  padding-left: 1.25rem;
  list-style: disc;
}
.prose li + li {
  margin-top: 0.375rem;
}
.prose li::marker {
  color: var(--pine);
}
.lost {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: clamp(3rem, 12vh, 7rem);
}

/* ---------- The opening bubble: copy on the left, a chat playing on the right ---------- */

.hello-bubble {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21.5rem);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  padding: clamp(1.75rem, 5vw, 4.5rem);
  background:
    radial-gradient(120% 90% at 100% 0%, #2a7f63 0%, rgb(42 127 99 / 0) 55%),
    var(--pine);
}
/* The tail can't live on a clipped box, so it moves to the section. */
.hello-bubble::after {
  content: none;
}
.hello {
  position: relative;
}
.hello::after {
  content: "";
  position: absolute;
  left: calc(var(--gutter) + clamp(1.75rem, 5vw, 4.5rem));
  bottom: 1.125rem;
  width: 2.25rem;
  height: 1.5rem;
  background: var(--pine);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
/* The three rising bars from the mark, at the scale of the page. */
.hello-bars {
  position: absolute;
  right: -2%;
  bottom: -6%;
  width: min(62%, 44rem);
  height: 92%;
  fill: rgb(255 255 255 / 0.055);
  pointer-events: none;
}
.hello-bars rect {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: rise 1.1s var(--ease) both;
}
.hello-bars rect:nth-child(2) {
  animation-delay: 0.12s;
}
.hello-bars rect:nth-child(3) {
  animation-delay: 0.24s;
}
@keyframes rise {
  from {
    transform: scaleY(0.2);
    opacity: 0;
  }
}
.hello-copy,
.stage {
  position: relative;
}
.hello h1 {
  max-width: none;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-wrap: wrap;
}
.hello h1 em {
  display: block;
  color: var(--mint);
  font-style: normal;
}
.hello-copy h1 {
  max-width: 9.5em;
}
.hello-fact {
  max-width: 34rem;
}

.stage-phone {
  position: relative;
  transform: rotate(2.5deg);
  transition: transform 0.6s var(--ease);
}
.stage-phone:hover {
  transform: rotate(0deg);
}
.stage .phone {
  border: 0;
  border-radius: 1.75rem;
  box-shadow: 0 2.5rem 4rem -1.5rem rgb(6 24 18 / 0.6), 0 0 0 0.5rem rgb(255 255 255 / 0.1);
  color: var(--ink);
  transition: opacity 0.35s;
}
.stage .phone-top b,
.stage .phone-chat .them {
  transition: background-color 0.4s;
}
.stage .phone-chat {
  height: 22rem;
  justify-content: flex-start;
}
.online {
  display: inline-block;
  width: 0.4375rem;
  height: 0.4375rem;
  margin-right: 0.375rem;
  border-radius: 50%;
  background: #2f9e6e;
  vertical-align: 0.05em;
}
.phone-chat .dots {
  align-self: flex-start;
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.75rem 0.875rem;
  border-radius: 1.125rem;
  border-bottom-left-radius: 0.3125rem;
  background: var(--canvas);
}
.phone-chat .dots i {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #8b9692;
  animation: typing 1s infinite ease-in-out;
}
.phone-chat .dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.phone-chat .dots i:nth-child(3) {
  animation-delay: 0.3s;
}
.pop {
  animation: pop 0.4s var(--ease) both;
}
.pop.them {
  transform-origin: 100% 100%;
}
.pop.us,
.pop.dots {
  transform-origin: 0 100%;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.92);
  }
}
.toast {
  position: absolute;
  left: -1.75rem;
  bottom: -1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.125rem 0.75rem 0.875rem;
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 1.25rem 2.5rem -0.75rem rgb(6 24 18 / 0.55);
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.35;
  transition: opacity 0.35s, transform 0.5s var(--ease);
}
.toast.away {
  opacity: 0;
  transform: translateY(0.75rem) scale(0.94);
}
.toast svg {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--pine-soft);
  color: var(--pine);
}
.toast strong {
  display: block;
  font-weight: 600;
}
.toast span {
  color: var(--muted);
}
.stage-note {
  margin-top: 3rem;
  color: var(--pine-mist);
  font-size: 0.8125rem;
  text-align: center;
}

@media (max-width: 58rem) {
  .hello-bubble {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage {
    max-width: 22rem;
    padding-left: 0.75rem;
  }
  .stage-phone {
    transform: none;
  }
  .toast {
    left: -0.75rem;
    bottom: -3rem;
  }
  .stage .phone-chat {
    height: 27rem;
  }
  .stage-note {
    margin-top: 4.25rem;
  }
  .hello-bars {
    width: 90%;
    height: 50%;
  }
}

/* ---------- Answers with a picture beside them ---------- */

.beside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.beside > div > * + * {
  margin-top: 1.125rem;
}
.beside figcaption {
  margin-top: 0.875rem;
}
@media (max-width: 52rem) {
  .beside {
    grid-template-columns: minmax(0, 1fr);
  }
  .beside figure {
    max-width: 22rem;
  }
}

/* WhatsApp, the way a customer sees it */
.wa {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem -1.75rem rgb(15 47 37 / 0.5), 0 0.25rem 0.75rem -0.375rem rgb(15 47 37 / 0.14);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.wa-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  background: #075e54;
  color: #fff;
}
.wa-top b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #b4532a;
  font-weight: 600;
}
.wa-top strong {
  display: block;
  font-weight: 500;
  line-height: 1.25;
}
.wa-top span {
  color: #cfe6e1;
  font-size: 0.8125rem;
}
.wa-chat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.125rem 0.875rem 1.25rem;
  background: #efe7dd;
}
.wa-chat p {
  max-width: 86%;
  padding: 0.4375rem 0.625rem 0.3125rem 0.75rem;
  border-radius: 0.625rem;
  box-shadow: 0 1px 0.5px rgb(11 20 26 / 0.13);
  color: #111b21;
}
.wa-chat .out {
  align-self: flex-end;
  border-top-right-radius: 0;
  background: #d9fdd3;
}
.wa-chat .in {
  align-self: flex-start;
  border-top-left-radius: 0;
  background: #fff;
}
.wa-chat small {
  display: block;
  color: #4f5f68;
  font-size: 0.6875rem;
  text-align: right;
}

/* A conversation in the owner's Inbox */
.inbox {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: 0 1.5rem 3rem -1.75rem rgb(15 47 37 / 0.45), 0 0.25rem 0.75rem -0.375rem rgb(15 47 37 / 0.14);
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.inbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--line);
}
.inbox-top strong {
  display: block;
  font-weight: 600;
  line-height: 1.25;
}
.inbox-top span {
  color: var(--muted);
  font-size: 0.8125rem;
}
.inbox-top em {
  flex: none;
  padding: 0.1875rem 0.625rem;
  border-radius: 999px;
  background: #fbf0e1;
  color: #6e3f04;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 500;
}
.inbox-chat {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.125rem;
}
.inbox-chat p {
  max-width: 88%;
  padding: 0.5625rem 0.875rem;
  border-radius: 1.125rem;
}
.inbox-chat .cust {
  align-self: flex-start;
  border-bottom-left-radius: 0.3125rem;
  background: var(--canvas);
}
.inbox-chat .mine {
  align-self: flex-end;
  border-bottom-right-radius: 0.3125rem;
  background: var(--pine);
  color: var(--on-pine);
}
.inbox-chat .sys {
  align-self: center;
  max-width: none;
  padding: 0;
  color: #6e3f04;
  font-size: 0.75rem;
  font-weight: 500;
}
.inbox-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem 0.75rem 1.125rem;
  border-top: 1px solid var(--line);
  color: #6b7672;
}
.inbox-foot b {
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ---------- "How does it know": a dark band across the page ---------- */

.band {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.75rem, 7vw, 5rem);
  background: var(--pine-deep);
  box-shadow: 0 0 0 100vmax var(--pine-deep);
  clip-path: inset(0 -100vmax);
  color: var(--pine-mist);
}
.band .ask {
  background: var(--on-pine);
  color: var(--pine-deep);
}
.band .lead,
.band h3 {
  color: var(--on-pine);
}
.band .speaker {
  box-shadow: none;
}
.band .sources {
  border-top-color: rgb(255 255 255 / 0.28);
}
.band .sources > div + div {
  border-color: rgb(255 255 255 / 0.14);
}
.band .sources h3 + p {
  color: var(--pine-mist);
}
.band ::selection {
  background: var(--on-pine);
  color: var(--pine-deep);
}
.band :focus-visible {
  outline-color: var(--on-pine);
}
.band .chip {
  border-color: transparent;
}
.paper {
  max-width: 36rem;
  padding: 1.25rem 1.5rem 0.75rem;
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 2rem 3.5rem -2rem rgb(0 0 0 / 0.6);
  color: var(--ink);
  transform: rotate(-0.6deg);
}
.paper .sheet {
  max-width: none;
}
.paper .sheet tbody tr:last-child > * {
  border-bottom: 0;
}
.sheet .used > * {
  background: var(--pine-soft);
}
.sheet .used th {
  box-shadow: inset 3px 0 0 var(--pine);
  padding-left: 0.75rem;
}
.sheet .used .num {
  padding-right: 0.75rem;
  color: var(--pine-dark);
  font-weight: 600;
}

/* ---------- Plans and the form sit on white ---------- */

.plans {
  padding-inline: clamp(1.25rem, 3vw, 2rem);
  border: 0;
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: 0 1.5rem 3rem -2rem rgb(15 47 37 / 0.35), 0 0 0 1px var(--line);
}
.plans:has(.plan:only-child) {
  max-width: 26rem;
}
.plan-price {
  color: var(--pine-dark);
}
.plan-price small {
  color: var(--muted);
}
.form {
  max-width: 44rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: 0 1.5rem 3rem -2rem rgb(15 47 37 / 0.35), 0 0 0 1px var(--line);
}
.film {
  max-width: none;
  box-shadow: 0 2rem 4rem -2.25rem rgb(15 47 37 / 0.6);
}

/* ---------- The close ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
}
.closing {
  position: relative;
}
.closing-mark {
  position: absolute;
  right: -3rem;
  top: 50%;
  width: clamp(14rem, 34vw, 26rem);
  height: auto;
  transform: translateY(-58%) rotate(-8deg);
  opacity: 0.07;
  pointer-events: none;
}
.closing-mark .mark-bubble {
  fill: var(--on-pine);
}
.closing-mark .mark-bars {
  fill: var(--pine-deep);
}
.closing .btn {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
