/* Homepage only: the shared product and legal pages keep style.css. */
/* Keep the homepage fonts discoverable without a blocking Google Fonts stylesheet. */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmmono/v16/aFTU7PB1QTsUX8KYthSQBK6PYK3EXw.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: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/dmmono/v16/aFTU7PB1QTsUX8KYthqQBK6PYK0.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: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/instrumentsans/v4/pxiTypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr0She1ZuWi3hKpA.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: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/instrumentsans/v4/pxiTypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr0SZe1ZuWi3g.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: "Instrument Serif";
  src: url("/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
.home {
  --home-header-height: 92px;
  /* Leave room for the 44px heading link and a glimpse of space beneath it. */
  --products-peek: 60px;
  --hero-height: calc(100svh - var(--home-header-height) - var(--products-peek));
  --accent: #7351c4;
  --page: #fbf7e9;
  --chrome: #fffdf6;
  --hover: #eee5fb;
  --line: #d9d1bd;
  --ink: #29251f;
  --muted: #6d665a;
  --gutter: max(24px, calc((100vw - var(--column)) / 2));
  background: var(--page);
}
.home .site-header {
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  min-height: var(--home-header-height);
  margin-inline: var(--gutter);
  padding: 20px 0;
  border-bottom: 1px solid var(--ink);
}
.home .header-link { display: inline-flex; align-items: center; min-height: 44px; border-radius: 999px; }
.home .product-nav a { min-width: 44px; }
.home main { flex: none; }
.home .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  /* Fill the first screen, but not so much on tall screens that the copy floats in space. */
  min-height: min(var(--hero-height), var(--hero-max, 880px));
  max-width: none;
  margin: 0;
  padding: 46px 0 40px;
}
/* The picture only chooses the file; the image itself is the grid item. */
.hero-picture { display: contents; }
.home .hero-copy { grid-area: 1 / 1; position: relative; z-index: 1; max-width: 620px; }
.home h1 {
  max-width: none;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(58px, 6vw, 86px);
  font-weight: 400;
  letter-spacing: -.027em;
  line-height: 1.02;
  text-wrap: initial;
}
.home .hero-first-line { display: block; }
.home h1 em { color: var(--accent); font-weight: 400; white-space: nowrap; }
.home .lede { margin-top: 24px; font-size: 18px; }
.home .hero-actions { gap: 14px; margin-top: 24px; }
.home .demo-link {
  border: 1px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
}
.home .demo-link:hover { background: #6543b3; }
.home .contact-link { text-decoration: underline; text-underline-offset: 5px; }
.home .install { margin-top: 32px; }
.home .prompt-box { border-radius: 12px; }
.home .copy-button { min-height: 44px; border-radius: 999px; }
.home .hero-art {
  grid-area: 1 / 1;
  place-self: start end;
  margin-top: -32px;
  width: min(40%, 460px);
  height: auto;
  aspect-ratio: 550 / 367;
  mix-blend-mode: multiply;
  filter: contrast(1.15) brightness(1.13);
  mask-image: radial-gradient(ellipse at center, #000 65%, transparent 100%);
  pointer-events: none;
}
.home .platform {
  max-width: none;
  margin: 0;
  padding: 0 0 32px;
}
.home .platform > h2 { padding: 0; border: 0; font-size: 22px; }
.products-cue { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.products-cue:hover, .products-cue:focus-visible, .products-cue span { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .products-cue span { animation: products-float 2.4s ease-in-out 2; }
}
@keyframes products-float { 50% { transform: translateY(4px); } }
.home .platform-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.home .platform-item h3 { margin-bottom: 4px; }
.home .platform-link { flex-wrap: wrap; align-content: center; gap: 6px; line-height: 1.4; }
.home .platform-text { font-size: 14px; line-height: 1.5; }
.home .view-demo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  color: var(--accent);
  text-underline-offset: 4px;
}

/* The real, enlarged Bloom chat occupies the lower-right 640px on desktop. */
@media (min-width: 1100px) {
  .home .hero-copy {
    width: min(620px, calc(100vw - var(--gutter) - 660px));
  }
}
/* Large monitors: a wider column and larger type, so the page doesn't sit small in the middle. */
@media (min-width: 1800px) {
  .home { --column: 1360px; --hero-max: 1000px; }
  .home .hero-copy { width: min(720px, calc(100vw - var(--gutter) - 660px)); }
  .home h1 { font-size: clamp(86px, 4.8vw, 112px); }
  .home .lede { margin-top: 28px; font-size: 20px; }
  .home .hero-actions { margin-top: 32px; }
  .home .install { margin-top: 44px; }
  .home .install-prompt { font-size: 13px; }
  .home .hero-art { width: min(42%, 580px); margin-top: 0; place-self: center end; }
  .home .platform-item h3 { font-size: 22px; }
  .home .platform-text { font-size: 16px; }
}
@media (min-width: 1600px) {
  /* Override the embed's inline horizontal position only while docked on the right.
     Its drag, page-action and vertical positioning still belong to the widget. */
  .home > bloom-widget:not(.left, .dragging, .acting) {
    inset-inline: auto var(--gutter) !important;
  }
  .home .site-footer { padding-inline-end: calc(var(--gutter) + 160px); }
}
@media (min-width: 761px) and (max-width: 1099px) {
  .home { --hero-max: 680px; }
  .home .hero-copy { width: 56%; }
  .home h1 { font-size: clamp(48px, 5.9vw, 64px); }
  .home .lede { font-size: 16px; }
  .home .hero-art { width: 42%; margin-top: -20px; }
  .home .hero-actions { gap: 6px; }
  .home .demo-link, .home .contact-link { padding-inline: 14px; font-size: 13px; }
  .home .prompt-box { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
  .home { --home-header-height: 109px; }
  .home .site-header {
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
    padding: 16px 0 0;
  }
  .home .product-nav { grid-column: 1 / -1; grid-row: 2; gap: 28px; }
  .home .header-link { grid-column: 2; grid-row: 1; }
  .home .hero {
    align-content: start;
    min-height: 0;
    padding: 28px 0 48px;
  }
  .home h1 { font-size: clamp(36px, 11.4vw, 66px); }
  .home .lede { margin-top: 22px; font-size: 17px; }
  .home .hero-actions { gap: 4px; margin-top: 22px; }
  .home .demo-link, .home .contact-link { padding-inline: 12px; font-size: 14px; }
  .home .install { margin-top: 28px; }
  .home .prompt-box { align-items: flex-start; flex-direction: column; }
  /* The illustration crowds the products heading on a phone, so phones go without it. */
  .home .hero-art { display: none; }
  .home .platform { padding-bottom: 40px; }
  .home .platform-list { grid-template-columns: 1fr; gap: 12px; }
  .home .site-footer { padding-bottom: 108px; }
}
