/* Brand colours mirror apps/customer-mobile/lib/mobile_palette.dart. */
:root {
  color-scheme: light dark;
  --canvas: #fcfcfb;
  --surface: #ffffff;
  --ink: #18181b;
  --muted: #626862;
  --border: #e9e9e7;
  --primary: #28705a;
  --on-primary: #ffffff;
  --tint: #e0eee8;
  --bubble: #efefed;
  --deal: #865400;
  --deal-tint: #fcf0d6;
  --shadow: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #151718;
    --surface: #202425;
    --ink: #f0f2ef;
    --muted: #b6beba;
    --border: #414946;
    --primary: #93d5b9;
    --on-primary: #102c22;
    --tint: #243c32;
    --bubble: #2b3030;
    --deal: #f2c26b;
    --deal-tint: #3d3220;
    --shadow: rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Rubik, system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.55;
}

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

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.bar {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
}

/* The app mark is white on the brand green in both themes, as on the
   launcher icon. */
.mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #28705a;
  display: grid;
  place-items: center;
  flex: none;
}

.mark img {
  width: 38px;
  height: 38px;
}

.hero h1 {
  text-align: center;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.2;
  margin: 18px 0 8px;
}

.sub {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  margin: 0 auto 8px;
  max-width: 560px;
}

.coverage {
  text-align: center;
  font-size: 15px;
  margin: 0 auto 28px;
}

.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.door {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.door.android {
  border: 2px solid var(--primary);
}

.door h2 {
  margin: 0;
  font-size: 22px;
}

.door ul {
  margin: 0;
  padding-inline-start: 18px;
  color: var(--muted);
  font-size: 15px;
}

.door .btn,
.door .play {
  align-self: flex-start;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  padding: 12px 18px;
  font:
    500 16px Rubik,
    system-ui,
    sans-serif;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--ink);
  background: var(--surface);
}

.btn.soon {
  background: var(--bubble);
  color: var(--muted);
  cursor: default;
}

/* Google's badge artwork has transparent padding; the negative margin lines
   its visible edge up with the text, as Google's guidelines allow. */
.play {
  display: inline-block;
  line-height: 0;
  margin-inline-start: -10px;
}

.play img {
  height: 64px;
  width: auto;
}

.plan {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin: 20px 0 0;
}

.note {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.chat {
  max-width: 560px;
  margin: 56px auto 0;
  padding: 0 16px;
}

.chat-title {
  text-align: center;
  font-size: 22px;
  margin: 0 0 12px;
}

.msg {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 18px;
  margin: 10px 0;
  font-size: 16px;
}

.me {
  background: var(--primary);
  color: var(--on-primary);
  margin-inline-start: auto;
  border-end-end-radius: 4px;
}

.bot {
  background: var(--bubble);
  border-end-start-radius: 4px;
}

.cmp {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 8px;
  overflow: hidden;
}

.cmp div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  font-size: 15px;
}

.cmp div:first-child {
  border-top: 0;
  background: var(--tint);
  font-weight: 500;
}

.tag {
  display: inline-block;
  background: var(--deal-tint);
  color: var(--deal);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 13px;
  font-weight: 500;
}

.aside {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 24px;
}

.composer {
  position: sticky;
  bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 6px 24px var(--shadow);
}

.composer p {
  margin: 0 0 10px;
  font-weight: 500;
}

.composer .note {
  margin: 10px 0 0;
  font-weight: 400;
}

.composer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.composer .play img {
  height: 56px;
}

.chains {
  text-align: center;
  margin-top: 40px;
  color: var(--muted);
  font-size: 15px;
}

.chains p {
  margin: 0;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 20px;
  padding-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.legal {
  font-size: 12px;
  margin: 14px 0 0;
}

.legal bdi {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .doors {
    grid-template-columns: 1fr;
  }
}
