@font-face {
  font-family: "Outfit";
  src: url("/assets/outfit-variable-339084bb.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Homepage styles stay scoped so the docs, showcase, and sign-in keep their layout. */
.public-home {
  color: var(--public-text);
  font-family: "Outfit", "Geist", ui-sans-serif, system-ui, sans-serif;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}
.public-home .public-section { padding-block: 128px; }
.public-home h2 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; }
.public-home .public-button { border-radius: var(--mir-radius); padding: 14px 24px; min-height: 52px; font-size: 15px; }
.public-home .public-button svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 200ms ease; }
.public-home .public-button:hover svg { transform: translate(2px, -2px); }
.home-hero { padding-block: 88px 0; text-align: center; }
.home-hero-copy { position: relative; z-index: 1; }
.public-home .home-hero h1 { max-width: 1120px; margin: 0 auto; font-size: clamp(31px, 6.5vw, 80px); font-weight: 500; letter-spacing: -.055em; line-height: 1.02; }
.home-hero h1 > span { display: block; color: var(--public-accent); }
.home-hero-description { margin: 28px auto 0; max-width: 650px; color: var(--public-muted); font-size: 20px; line-height: 1.6; }
.home-hero-supporting { margin: 22px auto 0; font-size: 17px; }
.home-hero-note { margin: 18px auto 0; max-width: 550px; color: var(--public-muted); font-size: 14px; }
.home-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.home-preview-stage { position: relative; max-width: 1000px; margin: 72px auto 0; padding: 16px; border-radius: 20px; background: var(--mir-accent-soft); }
.home-preview-stage--1 { max-width: 480px; }
.home-preview-stage--2 { max-width: 760px; }
.home-workspace { display: block; overflow: hidden; border: 1px solid var(--public-border); border-radius: var(--mir-radius-lg); background: var(--public-surface); color: var(--public-text); text-align: left; box-shadow: var(--mir-shadow-popover); transition: border-color 500ms ease; }
.home-workspace:hover { border-color: var(--public-accent); }
.home-workspace-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--public-border); }
.home-window-controls { display: flex; gap: 5px; width: 48px; }
.home-window-controls i { width: 6px; height: 6px; border-radius: 50%; background: var(--public-border); }
.home-workspace-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; }
.home-workspace-brand img { width: 18px; height: 18px; }
.home-workspace-bar > svg { width: 16px; height: 16px; color: var(--public-muted); }
.home-workspace-content { padding: 28px; }
.home-workspace-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 20px; font-weight: 500; letter-spacing: -.025em; }
.home-workspace-add { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--mir-radius-sm); background: var(--public-subtle); color: var(--public-muted); }
.home-workspace-add svg { width: 14px; height: 14px; }
.home-preview-grid { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-preview-grid--1 { grid-template-columns: 1fr; }
.home-preview-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-preview-card { min-width: 0; overflow: hidden; border: 1px solid var(--public-border); border-radius: var(--mir-radius-sm); }
.home-preview-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--public-subtle); }
.home-preview-image > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 700ms ease; }
.home-workspace:hover .home-preview-image > img { transform: scale(1.04); }
.home-preview-caption { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--public-border); }
.home-preview-caption > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.home-preview-caption svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--public-muted); }
.home-section-heading { max-width: 860px; margin-bottom: 48px; }
#how-it-works { scroll-margin-top: 32px; }
.home-feature-grid { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--public-border); border-radius: var(--mir-radius-lg); background: var(--public-surface); overflow: hidden; transition: grid-template-columns 500ms ease; }
.home-feature { min-width: 0; padding: 36px 32px; }
.home-feature + .home-feature { border-left: 1px solid var(--public-border); }
.home-feature h3 { font-size: 23px; font-weight: 500; letter-spacing: -.035em; margin-bottom: 12px; }
.home-feature p { max-width: 290px; color: var(--public-muted); font-size: 16px; line-height: 1.65; }
.home-feature-art { display: flex; align-items: center; gap: 9px; height: 88px; margin-bottom: 36px; color: var(--public-accent); }
.home-feature-art--overview > span { position: relative; width: 52px; height: 56px; border: 1px solid color-mix(in srgb, var(--public-accent) 24%, var(--public-border)); border-radius: var(--mir-radius-sm); background: color-mix(in srgb, var(--public-accent) 7%, var(--public-surface)); box-shadow: 0 6px 12px -10px var(--public-accent); transition: transform 500ms ease; }
.home-feature-art--overview > span::before { content: ""; position: absolute; inset: 7px 7px 23px; border-radius: 2px; background: color-mix(in srgb, var(--public-accent) 16%, var(--public-surface)); }
.home-feature-art--overview > span::after { content: ""; position: absolute; left: 7px; bottom: 11px; width: 22px; height: 3px; background: color-mix(in srgb, var(--public-accent) 25%, var(--public-surface)); }
.home-feature-art--overview > span:nth-child(2) { transform: translateY(-8px); }
.home-feature:hover .home-feature-art--overview > span { transform: translateY(-8px); }
.home-feature-art--changes { gap: 12px; }
.home-feature-art--changes > span { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--public-border); border-radius: 50%; background: var(--public-subtle); }
.home-feature-art--changes > span:last-child { color: var(--public-accent); border-color: color-mix(in srgb, var(--public-accent) 25%, var(--public-border)); background: color-mix(in srgb, var(--public-accent) 8%, var(--public-surface)); }
.home-feature-art--changes svg { width: 21px; height: 21px; }
.home-feature-art--changes > i { width: 34px; height: 1px; background: var(--public-border); }
.home-feature-art--grow > span { display: grid; place-items: center; width: 52px; height: 56px; border-radius: var(--mir-radius-sm); border: 1px solid var(--public-border); background: var(--public-subtle); }
.home-feature-art--grow > span:nth-child(2) { margin-left: -34px; transform: rotate(8deg); background: var(--public-surface); }
.home-feature-art--grow > span:last-child { margin-left: 8px; border-style: dashed; border-color: var(--public-accent); background: color-mix(in srgb, var(--public-accent) 5%, var(--public-surface)); }
.home-feature-art--grow svg { width: 20px; height: 20px; transition: transform 500ms ease; }
.home-feature:hover .home-feature-art--grow svg { transform: rotate(90deg); }

.home-showcase-callout { border-block: 1px solid var(--public-border); background: var(--public-surface); text-align: center; }
.home-showcase-inner { display: flex; align-items: center; flex-direction: column; }
.public-home .home-showcase-inner h2 { max-width: 960px; font-size: clamp(38px, 5.5vw, 72px); }
.home-showcase-inner > .public-button { margin-top: 28px; }
.home-showcase-inner > p { margin-top: 24px; font-size: 18px; color: var(--public-muted); }
.home-showcase-mark { display: flex; margin-bottom: 36px; padding-inline: 8px; }
.home-showcase-mark > span { width: 56px; height: 42px; border: 3px solid var(--public-surface); border-radius: var(--mir-radius-sm); transform: rotate(-10deg); background: #6b846b; box-shadow: inset 0 14px #c9d2b6, inset 0 -10px #355445; }
.home-showcase-mark > span + span { margin-left: -10px; transform: rotate(0); background: #6e9289; box-shadow: inset 0 14px #a4bdb7, inset 0 -10px #33484a; }
.home-showcase-mark > span:last-child { transform: rotate(10deg); background: #d7a68b; box-shadow: inset 0 14px #f0dfd1, inset 0 -10px #925441; }
/* Native disclosure controls keep the FAQ usable without JavaScript. */
.home-pilot { background: var(--mir-accent-soft); border-bottom: 1px solid var(--public-border); text-align: center; }
.home-pilot-inner { display: flex; flex-direction: column; align-items: center; }
.home-pilot-inner > h2 { max-width: 920px; }
.home-pilot-inner > p { max-width: 660px; margin-top: 28px; font-size: 19px; line-height: 1.7; color: var(--public-muted); }
.home-pilot-inner > .public-button { margin-top: 32px; }
.home-faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.public-home .home-faq h2 { font-size: clamp(32px, 3.5vw, 46px); }
.home-faq-list { min-width: 0; border-top: 1px solid var(--public-border); }
.home-faq details { border-bottom: 1px solid var(--public-border); }
.home-faq summary { padding: 24px 24px 24px 0; cursor: pointer; font-size: 19px; font-weight: 500; line-height: 1.4; }
.home-faq summary::marker { color: var(--public-accent); font-size: .75em; }
.home-faq details[open] summary { padding-bottom: 16px; }
.home-faq details p { margin: 0; padding: 0 24px 24px 0; max-width: 600px; color: var(--public-muted); line-height: 1.7; }

@media (hover: hover) and (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
  .home-feature-grid:has(.home-feature:nth-child(1):hover) { grid-template-columns: 1.12fr .94fr .94fr; }
  .home-feature-grid:has(.home-feature:nth-child(2):hover) { grid-template-columns: .94fr 1.12fr .94fr; }
  .home-feature-grid:has(.home-feature:nth-child(3):hover) { grid-template-columns: .94fr .94fr 1.12fr; }
}
@media (max-width: 1000px) {
  .public-home .public-section { padding-block: 96px; }
  .home-feature { padding: 28px 24px; }
  .home-feature h3 { font-size: 20px; }
  .home-feature-art { gap: 6px; }
  .home-feature-art--overview > span { width: 40px; }
  .home-feature-art--changes > i { width: 16px; }
  .home-feature-art--changes > span { width: 44px; height: 44px; }
  .home-faq-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .public-home .public-section { padding-block: 72px; }
  .home-hero { padding-top: 56px; }
  .home-hero-description { font-size: 17px; margin-top: 24px; }
  .home-hero-supporting { font-size: 15px; }
  .home-hero-note { font-size: 13px; }
  .home-pilot-inner > p { font-size: 17px; }
  .home-actions { gap: 10px; margin-top: 28px; }
  .public-home .public-button { padding: 12px 16px; min-height: 48px; font-size: 14px; }
  .home-preview-stage { padding: 8px; border-radius: var(--mir-radius-lg); margin-top: 48px; }
  .home-workspace-bar { padding: 12px; }
  .home-window-controls { width: 30px; gap: 3px; }
  .home-window-controls i { width: 4px; height: 4px; }
  .home-workspace-brand { font-size: 10px; gap: 5px; }
  .home-workspace-brand img { width: 14px; height: 14px; }
  .home-workspace-content { padding: 16px 12px; }
  .home-workspace-heading { font-size: 15px; margin-bottom: 12px; }
  .home-workspace-add { height: 22px; width: 22px; }
  .home-preview-grid { gap: 8px; }
  .home-preview-caption { min-height: 26px; padding: 6px; gap: 3px; }
  .home-preview-caption > span { font-size: 8px; }
  .home-preview-caption svg { width: 9px; height: 9px; }
  .home-section-heading { margin-bottom: 32px; }
  .home-feature-grid { grid-template-columns: 1fr; }
  .home-feature { padding: 28px; }
  .home-feature + .home-feature { border-left: 0; border-top: 1px solid var(--public-border); }
  .home-feature h3 { font-size: 23px; }
  .home-feature p { max-width: 100%; }
  .home-feature-art { height: 64px; margin-bottom: 24px; }
  .home-showcase-inner > p { font-size: 16px; }
}

@media (max-width: 380px) {
  .home-actions { flex-direction: column; }
  .home-actions .public-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .public-home *, .public-home *::before, .public-home *::after { transition: none !important; animation: none !important; }
}
