@font-face {
  font-family: "DM Sans";
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* The public home page. Palette and type as in css/app.css (the brand rules). */

:root {
  color-scheme: dark;
  --bg: #161a1d;
  --surface: #23292e;
  --text: #f3f5f4;
  --muted: #a9b4ba;
  --border: #39434b;
  --link: #5fd1b9;
  --teal: #148f77;
  --teal-deep: #1e7e6c;
  --amber: #f5a623;
  --ochre: #e08e1b;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f3f5f4;
    --surface: #fff;
    --text: #161a1d;
    --muted: #4f5a61;
    --border: #c8d0d4;
    --link: #1e7e6c;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  font-family: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.25rem);
}

h1 span {
  display: block;
  font-size: 0.6em;
  color: var(--muted);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

a {
  color: var(--link);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow {
  max-width: 46rem;
}

section {
  padding: 4rem 0;
  text-align: center;
}

.band {
  background: var(--surface);
}

.lead {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  font-size: 1.15rem;
}

.muted,
.legal,
.channels {
  color: var(--muted);
}

.legal {
  max-width: 34rem;
  margin: 0 auto;
  font-size: 0.75rem;
}

.top {
  border-bottom: 1px solid var(--border);
}

.top .wrap,
.top nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.top .wrap {
  padding-block: 0.9rem;
}

.top nav a:not(.button) {
  color: var(--text);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 11rem;
  height: auto;
}

.button {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--teal);
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: var(--amber);
  color: #161a1d;
  background: var(--amber);
}

.button.primary:hover {
  border-color: var(--ochre);
  background: var(--ochre);
}

/* Example inbox: radio buttons and checkboxes only, no script. It keeps the
   dark palette in both themes. */
.demo {
  max-width: 30rem;
  margin: 2.5rem auto 1rem;
  overflow: hidden;
  border: 1px solid #39434b;
  border-radius: 18px;
  text-align: left;
  color: #f3f5f4;
  background: #23292e;
}

.hidden-control {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.demo-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  color: #c8d0d4;
  background: #161a1d;
}

.demo-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #39434b;
}

.demo-tabs label {
  padding: 0.7rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.demo-tabs small {
  display: block;
  font-weight: 400;
  color: #c8d0d4;
}

.demo-chat {
  display: none;
  min-height: 16rem;
  padding: 1rem;
}

#demo-1:checked ~ .chat-1,
#demo-2:checked ~ .chat-2,
#demo-3:checked ~ .chat-3 {
  display: block;
}

#demo-1:checked ~ .demo-tabs label[for="demo-1"],
#demo-2:checked ~ .demo-tabs label[for="demo-2"],
#demo-3:checked ~ .demo-tabs label[for="demo-3"] {
  box-shadow: inset 0 -3px 0 var(--teal);
}

#demo-1:focus-visible ~ .demo-tabs label[for="demo-1"],
#demo-2:focus-visible ~ .demo-tabs label[for="demo-2"],
#demo-3:focus-visible ~ .demo-tabs label[for="demo-3"],
.demo-chat input:focus-visible ~ .button {
  outline: 3px solid var(--amber);
  outline-offset: -3px;
}

.bubble,
.reply {
  max-width: 88%;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
}

.bubble {
  margin: 0;
  background: #161a1d;
}

.reply {
  margin-left: auto;
  border: 1px dashed #c8d0d4;
}

.reply.sent,
.demo-chat input:checked ~ .reply {
  border-style: solid;
  border-color: var(--teal-deep);
  background: var(--teal-deep);
}

.tag {
  display: table;
  padding: 0.15rem 0.6rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #5fd1b9;
  background: #1f4a41;
}

.tag.handoff {
  color: #ffd48a;
  background: #3a2d12;
}

.demo-chat .button {
  color: #f3f5f4;
}

.demo-chat input:checked ~ .button {
  display: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.cards article {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
}

.plans article {
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.plans article.featured {
  border: 2px solid var(--teal);
}

.plans ul {
  flex: 1;
  padding: 0;
  list-style: none;
  text-align: left;
}

.plans li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.price strong {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 2rem;
}

.extras {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

.extras li {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 99px;
}

details {
  margin-bottom: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
  background: var(--bg);
}

summary {
  font-weight: 700;
  cursor: pointer;
}

/* The logos are white, so this strip is dark in both themes. */
.businesses {
  padding: 2.5rem 0;
  color: #f3f5f4;
  background: #23292e;
}

.businesses h2 {
  font-size: 1.4rem;
}

.businesses ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 0;
  list-style: none;
}

.businesses img {
  display: block;
  width: 11rem;
  height: auto;
}

footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer a {
  display: inline-block;
  margin: 0 0.5rem;
}

address {
  font-style: normal;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
