/* Email Assistant landing page. Layout, type, cards, FAQ, and footer come
 * from landing.css so the page reads as part of the homepage; this file adds
 * only the assistant's hero meta, the sample Gmail window, and the section
 * pieces the homepage has no equivalent for. */

.assistant-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-150%);
}

.assistant-skip:focus-visible {
  transform: none;
}

/* The hero text block is a skip-link target, not a control. */
.assistant-page .hero-text:focus {
  outline: none;
}

.assistant-page .hero-buttons {
  flex-wrap: wrap;
}

/* ------------------------------------------------------------ hero meta -- */

.assistant-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.assistant-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.assistant-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assistant-soon {
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
}

/* ------------------------------------------------------------ demo frame -- */

/* Same inset frame as the homepage product shot, but sized by its content so
 * the sample inbox never scrolls inside itself. */
.assistant-shot {
  width: 100%;
  padding: 16px 48px 32px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--glass);
}

.assistant-shot-bar {
  display: flex;
  align-items: center;
  gap: 16px 24px;
  max-width: 1180px;
  margin: 0 auto 16px;
}

.assistant-toggle {
  display: flex;
  flex: none;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.assistant-toggle button {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 120ms var(--ease-out);
}

.assistant-toggle button:hover {
  color: var(--white);
}

.assistant-toggle button:active {
  transform: scale(0.97);
}

.assistant-toggle button[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
}

.assistant-status {
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-wrap: pretty;
}

.assistant-shot-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  text-wrap: balance;
}

/* ---------------------------------------------------------- sample Gmail -- */

/* A faithful, static Gmail window (Material 3 web client) with sample mail.
 * Colours are Gmail's own, so they live here as local values rather than as
 * marketing tokens. Below 980px the sidebar collapses to Gmail's icon rail;
 * below 768px it becomes the Gmail mobile layout. */

.gm-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.gm {
  max-width: 1180px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 16px;
  background: #f6f8fc;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.6);
  color: #1f1f1f;
  font-family: "Google Sans Text", "Google Sans", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  text-align: left;
  pointer-events: none;
  user-select: none;
}

.gm [hidden] {
  display: none !important;
}

.gm svg {
  width: 24px;
  height: 24px;
  flex: none;
  fill: #444746;
}

.gm-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
}

.gm-btn.is-dim svg {
  opacity: 0.38;
}

/* Top bar */

.gm-top {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 8px 8px 8px 8px;
}

.gm-menu {
  margin-inline: 4px;
}

.gm-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 172px;
  flex: none;
  padding-left: 4px;
}

.gm .gm-m {
  width: 32px;
  height: 24px;
}

.gm-wordmark {
  font-family: "Product Sans", "Google Sans", Arial, sans-serif;
  font-size: 22px;
  line-height: 24px;
  color: #444746;
  letter-spacing: -0.01em;
}

.gm-search {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  max-width: 720px;
  height: 48px;
  padding-inline: 4px;
  border-radius: 24px;
  background: #eaf1fb;
}

.gm-search-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding-left: 4px;
  font-size: 16px;
  line-height: 24px;
  color: #444746;
  white-space: nowrap;
}

.gm-search-menu,
.gm .gm-me-inline {
  display: none;
}

.gm-top-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-left: 16px;
}

.gm-me {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  margin-inline: 8px 4px;
  border-radius: 50%;
  background: #0b57d0;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

/* Sidebar */

.gm-body {
  display: flex;
  padding: 0 16px 16px 0;
}

.gm-nav {
  display: flex;
  flex-direction: column;
  width: 232px;
  flex: none;
  padding-right: 16px;
}

.gm-compose {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  height: 56px;
  margin: 0 0 16px 8px;
  padding: 0 20px 0 16px;
  border-radius: 16px;
  background: #c2e7ff;
  color: #001d35;
  font-size: 14px;
  font-weight: 500;
}

.gm .gm-compose svg {
  fill: #001d35;
}

.gm-folder {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 32px;
  padding: 0 12px 0 26px;
  border-radius: 0 16px 16px 0;
  font-size: 14px;
}

.gm .gm-folder svg {
  width: 20px;
  height: 20px;
}

.gm-folder b {
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
}

.gm-folder.is-active {
  background: #d3e3fd;
  color: #001d35;
  font-weight: 700;
}

.gm-folder.is-active b {
  font-weight: 700;
}

.gm-labels-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  margin-top: 12px;
  padding: 0 4px 0 16px;
  font-size: 16px;
  font-weight: 500;
}

.gm .gm-labels-head svg {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

/* Gmail's own label palette: light background, dark text. */
.gm .gm-tag-respond { fill: #a4c2f4; }
.gm .gm-tag-fyi { fill: #b9e4d0; }
.gm .gm-tag-plain { fill: #c4c7c5; }

.gm-chip {
  display: inline-block;
  margin-right: 6px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  vertical-align: 1px;
}

.gm-chip-respond {
  background: #a4c2f4;
  color: #1c4587;
}

.gm-chip-fyi {
  background: #b9e4d0;
  color: #0b4f30;
}

.gm[data-assistant-inbox="before"] .gm-chip {
  display: none;
}

/* Message list */

.gm-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  border-radius: 16px;
  background: #fff;
}

.gm-toolbar {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 8px 0 4px;
}

.gm-toolbar .gm-btn svg {
  width: 20px;
  height: 20px;
}

.gm-select {
  display: flex;
  gap: 0;
  width: auto;
  padding-inline: 10px 4px;
  border-radius: 20px;
}

.gm .gm-select .gm-select-caret {
  width: 16px;
  height: 16px;
}

.gm-pager {
  display: flex;
  align-items: center;
  margin-left: auto;
  font-size: 12px;
  color: #444746;
}

.gm-pager > span:first-child {
  margin-right: 8px;
}

.gm-mobile-head {
  display: none;
}

.gm-list {
  /* Room for all eight sample rows plus the attachment chip, so switching
   * between Before and With Wingman never changes the window's height. */
  min-height: calc(8 * 40px + 40px);
  list-style: none;
}

.gm-row {
  display: grid;
  grid-template-columns: 20px 20px 168px minmax(0, 1fr) 72px;
  grid-template-rows: 40px;
  align-items: center;
  column-gap: 12px;
  padding-inline: 16px;
  background: #f2f6fc;
  box-shadow: inset 0 -1px 0 0 rgba(100, 121, 143, 0.122);
}

.gm-row.is-unread {
  background: #fff;
}

.gm .gm-row-check,
.gm .gm-row-star {
  width: 20px;
  height: 20px;
  fill: #444746;
  opacity: 0.45;
}

.gm-avatar {
  display: none;
}

.gm-from,
.gm-line {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gm-from {
  padding-left: 8px;
}

.gm-from small {
  font-size: 12px;
  font-weight: 400;
  color: #5f6368;
}

.gm-snippet {
  color: #5f6368;
}

.gm-snippet::before {
  content: " - ";
  white-space: pre;
}

.gm-row time {
  font-size: 12px;
  color: #5f6368;
  text-align: right;
}

.gm-row.is-unread .gm-from,
.gm-row.is-unread .gm-subject,
.gm-row.is-unread time {
  font-weight: 700;
  color: #1f1f1f;
}

.gm-attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  grid-column: 3 / -1;
  justify-self: start;
  max-width: 240px;
  height: 32px;
  margin: 0 0 8px 8px;
  padding: 0 12px 0 8px;
  border: 1px solid #c4c7c5;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  color: #444746;
  white-space: nowrap;
}

.gm-attachment span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gm-attachment i {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 2px;
  background: #ea4335;
  color: #fff;
  font-size: 6px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gm-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  margin-top: auto;
  padding: 16px 24px 20px;
  font-size: 12px;
  line-height: 16px;
  color: #5f6368;
  white-space: nowrap;
}

.gm-foot > span:last-child {
  text-align: right;
}

/* ------------------------------------------------------ benefit art -- */

.assistant-art {
  width: calc(100% - 48px);
  max-width: 340px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--sx-surface);
  font-size: 14px;
  line-height: 22px;
  text-align: left;
  pointer-events: none;
  user-select: none;
}

.assistant-art-caption {
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
}

.assistant-rule p,
.assistant-draft p {
  margin-block: 10px 14px;
  color: var(--ink);
}

.assistant-art-foot {
  display: block;
  padding-top: 12px;
  border-top: 1px solid var(--card);
  font-size: 13px;
  color: var(--secondary);
}

.assistant-art-foot > span {
  margin-right: 4px;
  font-weight: 600;
  color: var(--teal);
}

.assistant-label-example {
  display: flex;
  flex-direction: column;
  padding-block: 6px;
}

.assistant-label-example > span {
  display: flex;
  align-items: center;
  height: 44px;
  font-weight: 500;
}

.assistant-label-example > span + span {
  border-top: 1px solid var(--card);
}

.assistant-label-example .gm-chip {
  min-width: 64px;
  margin-right: 12px;
  text-align: center;
  font-family: "Google Sans Text", Roboto, Arial, sans-serif;
}

.assistant-run-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.assistant-run-log > span:not(:first-child) {
  display: flex;
  align-items: center;
  gap: 10px;
}

.assistant-run-log i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: rgba(84, 144, 112, 0.14);
  color: var(--teal);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.assistant-run-log small {
  margin-left: auto;
  font-size: 12px;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ----------------------------------------------------------- setup steps -- */

.assistant-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  list-style: none;
}

.assistant-steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.assistant-steps h3,
.assistant-control-list h3 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.assistant-steps p,
.assistant-control-list p {
  margin-top: -8px;
  max-width: 42ch;
  line-height: 24px;
  color: var(--secondary);
  text-wrap: pretty;
}

.assistant-setup-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding-top: 40px;
  border-top: 1px solid rgba(231, 231, 231, 0.9);
}

.assistant-setup-cta p {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: var(--secondary);
}

@media (min-width: 768px) {
  .assistant-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------- control -- */

.assistant-control {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.assistant-control-link {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 4px;
}

.assistant-control-link:hover {
  text-decoration-color: currentColor;
}

.assistant-control-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.assistant-control-list li {
  display: flex;
  gap: 20px;
}

.assistant-control-list .step-badge {
  background: var(--surface-dark);
  color: var(--muted);
}

.assistant-control-list h3 {
  margin-top: 2px;
  color: var(--white);
}

.assistant-control-list p {
  margin-top: 4px;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .assistant-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
  }
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1023px) {
  .assistant-shot {
    padding: 16px 24px 24px;
    border-radius: 24px;
  }
}

/* Gmail's collapsed sidebar: an icon rail with a square Compose button. */
@media (max-width: 979px) {
  .gm-logo {
    width: auto;
    margin-right: 24px;
  }

  .gm-nav {
    width: 72px;
    padding-right: 0;
  }

  .gm-compose {
    justify-content: center;
    width: 56px;
    padding: 0;
  }

  .gm-compose span,
  .gm-folder span,
  .gm-folder b,
  .gm-labels-head {
    display: none;
  }

  .gm-folder {
    justify-content: center;
    width: 56px;
    margin-left: 8px;
    padding: 0;
    border-radius: 16px;
  }

  /* The rail drops the "Labels" heading; a gap keeps labels apart. */
  .gm-folder:nth-child(7) {
    margin-bottom: 16px;
  }

  .gm-row {
    grid-template-columns: 20px 20px 136px minmax(0, 1fr) 64px;
  }

  .gm-foot > span:not(:nth-child(2)) {
    display: none;
  }

  .gm-foot {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 860px) {
  .gm-top-actions .gm-btn:not(:last-of-type) {
    display: none;
  }
}

/* Gmail's phone layout: one search pill, avatars, three-line rows. */
@media (max-width: 767px) {
  .assistant-hero-actions {
    gap: 20px;
  }

  .assistant-meta {
    gap: 8px 16px;
    font-size: 13px;
  }

  .assistant-shot {
    padding: 12px 8px 16px;
    border-radius: 20px;
  }

  .assistant-shot-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 12px;
  }

  .assistant-toggle {
    align-self: center;
  }

  .assistant-toggle button {
    min-height: 44px;
  }

  .assistant-status {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 13px;
    text-align: center;
  }

  .assistant-shot-note {
    margin-top: 12px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .gm {
    border-radius: 14px;
    background: #fff;
  }

  .gm-top {
    padding: 8px;
  }

  .gm-menu,
  .gm-logo,
  .gm-top-actions,
  .gm-search-icon,
  .gm-search-filter,
  .gm-nav,
  .gm-toolbar,
  .gm-foot {
    display: none;
  }

  .gm-search {
    max-width: none;
  }

  .gm-search-menu {
    display: grid;
  }

  .gm .gm-me-inline {
    display: grid;
    margin-inline: 8px 4px;
  }

  .gm-search-text {
    padding-left: 0;
  }

  .gm-body {
    padding: 0;
  }

  .gm-main {
    border-radius: 0;
  }

  .gm-mobile-head {
    display: block;
    padding: 4px 16px 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    color: #444746;
  }

  .gm-list {
    min-height: 0;
    padding-bottom: 8px;
  }

  .gm-row,
  .gm-row.is-unread {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: start;
    column-gap: 12px;
    padding: 8px 12px;
    background: #fff;
    box-shadow: none;
  }

  .gm-row-check {
    display: none;
  }

  .gm-avatar {
    display: grid;
    place-items: center;
    grid-row: 1 / span 2;
    grid-column: 1;
    width: 36px;
    height: 36px;
    margin-top: 2px;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
  }

  .gm-from {
    grid-column: 2;
    grid-row: 1;
    padding-left: 0;
    font-size: 15px;
    line-height: 20px;
  }

  .gm-row time {
    grid-column: 3;
    grid-row: 1;
    line-height: 20px;
  }

  .gm-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-column: 2;
    grid-row: 2;
    font-size: 13px;
    line-height: 18px;
  }

  .gm-line > span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gm-chip {
    grid-column: 1;
    align-self: center;
    font-size: 11px;
    line-height: 16px;
  }

  .gm-subject {
    grid-column: 2;
  }

  .gm-snippet {
    grid-column: 1 / -1;
  }

  .gm-snippet::before {
    content: none;
  }

  .gm .gm-row-star {
    grid-column: 3;
    grid-row: 2;
    align-self: end;
    justify-self: end;
  }

  .gm-attachment {
    grid-column: 2 / -1;
    grid-row: 3;
    max-width: 100%;
    height: 28px;
    margin: 8px 0 0;
    font-size: 12px;
  }

  .tone-1 { background: #c26401; }
  .tone-2 { background: #5e97f6; }
  .tone-3 { background: #9575cd; }
  .tone-4 { background: #4db6ac; }
  .tone-5 { background: #7986cb; }
  .tone-6 { background: #0b8043; }
  .tone-7 { background: #e67c73; }
  .tone-8 { background: #8d6e63; }
}

@media (max-width: 359px) {
  /* Same trick as the homepage illustrations: lay the art out at its phone
   * width and scale it, so the draft card keeps clear of the card edge. */
  .assistant-art {
    zoom: 0.88;
  }

  .gm-from {
    font-size: 14px;
  }

  .gm-row,
  .gm-row.is-unread {
    column-gap: 10px;
    padding-inline: 10px;
  }

  .assistant-toggle button {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-skip {
    transform: none;
  }

  .assistant-skip:not(:focus-visible) {
    visibility: hidden;
  }

  .assistant-toggle button:active {
    transform: none;
  }
}
