/* Preview2 home composition. Only the home family loads this versioned sheet.
   Values and shared components come from site.css; no preview/global reset leaks into other pages. */
#main.home-preview { display: block; padding: 0; font: 400 17px/1.55 var(--sans); overflow-wrap: anywhere; }
#main.home-preview *, #main.home-preview *::before, #main.home-preview *::after { box-sizing: border-box; }
#main.home-preview :is(p, h1, h2, h3, figure, blockquote, ul, ol) { margin: 0; }
#main.home-preview :is(ul, ol) { list-style: none; padding: 0; }
#main.home-preview img { display: block; max-width: 100%; height: auto; }
#main.home-preview a { color: inherit; text-decoration: none; }
#main.home-preview svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#main.home-preview .lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--muted); max-width: 34em; text-wrap: pretty; }
#main.home-preview .head { display: grid; justify-items: center; text-align: center; gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); }
#main.home-preview .head .lede { margin-top: -4px; }
#main.home-preview .center { text-align: center; }
#main.home-preview .small { font-size: 16px; color: var(--muted); }
#main.home-preview .small a, #main.home-preview .paper-mail a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
#main.home-preview .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
#main.home-preview .sec { padding-top: var(--sec); padding-bottom: 0; }
#main.home-preview .ps-more { color: var(--accent-text); }
#main.home-preview .btn-ink { color: var(--page); }
#main.home-preview .ps-steps { margin-top: clamp(56px, 7vw, 88px); }
#main.home-preview #screens .head { margin-bottom: clamp(40px, 5vw, 64px); }
#main.home-preview #privacy .center, #main.home-preview #faq .center { margin-top: 28px; }
#main.home-preview .ps-promises { margin: 0; }
/* Hero */
#main.home-preview .hero { padding-top: clamp(48px, 8vw, 104px) }
#main.home-preview .hero-copy { display: grid; justify-items: start; gap: 24px }
@media (min-width: 1100px) {  #main.home-preview .hero-copy { max-width: 1040px }  }
#main.home-preview .hero-pill { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 6px 18px 6px 6px; border-radius: var(--bolt-radius-pill); background: color-mix(in oklab, var(--tile) 55%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--lift-sm) }
#main.home-preview .hero-chip { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 5px 12px 5px 6px; border-radius: var(--bolt-radius-pill); background: var(--tile); box-shadow: 0 0 0 1px var(--rule); font-size: 13px; font-weight: 700; letter-spacing: -.01em }
#main.home-preview .hero-chip img { width: 22px; height: 22px; border-radius: 6px }
#main.home-preview .hero-pill-text { font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
#main.home-preview .hero h1 { max-width: none }
#main.home-preview .hero .lede { max-width: 30em }
#main.home-preview .hero .cta { margin-top: 4px }
@media (max-width: 520px) {  #main.home-preview .hero-pill-text { display: none } #main.home-preview .hero-pill { padding-right: 6px }  }

/* The fan: five real screens on an arc, cut off below by a fade, each with a small tab like a file label. */
#main.home-preview .fan { position: relative; height: clamp(380px, 46vw, 600px); margin-top: clamp(40px, 6vw, 72px); overflow: clip;
  -webkit-mask-image: linear-gradient(var(--bolt-shop-light-text) 70%, transparent 100%); mask-image: linear-gradient(var(--bolt-shop-light-text) 70%, transparent 100%) }
#main.home-preview .phone { --w: 230px; --x: 0px; --y: 0px; --r: 0deg; position: absolute; left: 50%; top: 22px; width: var(--w); padding: 0; border-radius: 0; background: none; box-shadow: none; transform: translateX(calc(-50% + var(--x))) translateY(var(--y)) rotate(var(--r)) }
#main.home-preview .phone img { width: 100%; filter: drop-shadow(0 30px 40px color-mix(in oklab, var(--shade) 22%, transparent)) }
#main.home-preview .phone.solo img { filter: none }
#main.home-preview .tab { position: absolute; z-index: 1; top: 0; left: 50%; translate: -50% -50%; padding: 5px 12px; border-radius: var(--bolt-radius-pill); background: var(--tile); border: 3px solid var(--page); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); white-space: nowrap }
#main.home-preview .fan .p3 { --w: 290px; z-index: 3 }
#main.home-preview .fan .p2 { --w: 252px; --x: -300px; --y: 46px; --r: -6deg; z-index: 2 }
#main.home-preview .fan .p4 { --w: 252px; --x: 300px; --y: 46px; --r: 6deg; z-index: 2 }
/* The outer pair stays inside the viewport: never more than half the width less its own half and its tilt. */
#main.home-preview .fan .p1 { --w: 220px; --x: calc(-1 * min(545px, 50vw - 170px)); --y: 128px; --r: -12deg; z-index: 1 }
#main.home-preview .fan .p5 { --w: 220px; --x: min(545px, 50vw - 170px); --y: 128px; --r: 12deg; z-index: 1 }
@media (max-width: 1180px) {
  #main.home-preview .fan .p1, #main.home-preview .fan .p5 { display: none }
  #main.home-preview .fan .p3 { --w: 230px } #main.home-preview .fan .p2, #main.home-preview .fan .p4 { --w: 200px }
  #main.home-preview .fan .p2 { --x: calc(-1 * min(232px, 50vw - 136px)); --y: 36px } #main.home-preview .fan .p4 { --x: min(232px, 50vw - 136px); --y: 36px }
 }
@media (max-width: 700px) {
  #main.home-preview .fan { height: 380px }
  #main.home-preview .fan .p3 { --w: 168px } #main.home-preview .fan .p2, #main.home-preview .fan .p4 { --w: 128px }
  #main.home-preview .fan .p2 { --x: calc(-1 * min(122px, 50vw - 84px)); --y: 34px } #main.home-preview .fan .p4 { --x: min(122px, 50vw - 84px); --y: 34px }
  #main.home-preview .tab { font-size: 10px; padding: 4px 9px; border-width: 2px }
 }
/* Below 440px the centre phone covers most of the side phones' tabs, so only its own tab shows. */
@media (max-width: 439px) {  #main.home-preview .fan .p2 .tab, #main.home-preview .fan .p4 .tab { display: none }  }
@media (prefers-reduced-motion: no-preference) {
  #main.home-preview .fan .phone { animation: fan-open 1100ms var(--bolt-ease-out) both }
  @keyframes fan-open {  from { opacity: 0; transform: translateX(-50%) translateY(90px) rotate(0deg) }  }
 }

/* Counts, where the reference keeps its logo wall. */
#main.home-preview .counts { display: grid; justify-items: center; gap: 28px; padding-block: clamp(56px, 7vw, 96px) 0 }
#main.home-preview .count-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 1040px; border-top: 1px solid var(--rule) }
#main.home-preview .count-row li { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 28px 8px; text-align: center; border-bottom: 1px solid var(--rule) }
#main.home-preview .count-row li:nth-child(odd) { border-right: 1px solid var(--rule) }
#main.home-preview .count-row b { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 7vw, 92px); line-height: .9; letter-spacing: -.01em; font-variant-numeric: tabular-nums }
#main.home-preview .count-row li:last-child b { color: var(--accent-text) }
#main.home-preview .count-row span { font-size: 15px; font-weight: 500; color: var(--muted) }
@media (min-width: 860px) {
  #main.home-preview .count-row { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule) }
  #main.home-preview .count-row li { border-bottom: 0; border-right: 1px solid var(--rule) }
  #main.home-preview .count-row li:last-child { border-right: 0 }
 }

/* Sections */
#main.home-preview .sec { padding-top: var(--sec) }

/* How it works: one screen, notes pinned around it, the step pill sitting on its lower edge. */
#main.home-preview .stage { position: relative; display: grid; justify-items: center; max-width: 1000px; margin-inline: auto; min-height: 0; padding: 0 }
#main.home-preview .phone.solo { position: relative; left: auto; top: auto; transform: none; --w: 360px; padding: 0 30px; height: 470px; overflow: hidden;
  -webkit-mask-image: linear-gradient(var(--bolt-shop-light-text) 76%, transparent 100%); mask-image: linear-gradient(var(--bolt-shop-light-text) 76%, transparent 100%) }
#main.home-preview .note { position: relative; width: min(100%, 320px); padding: 16px 18px 18px; border-radius: 20px; background: var(--tile); box-shadow: var(--lift); text-align: left }
#main.home-preview .note-k { display: inline-block; padding: 3px 10px; margin-bottom: 8px; border-radius: var(--bolt-radius-pill); background: var(--wash); color: var(--accent-text); font-size: 13px; font-weight: 700 }
#main.home-preview .note p { font-size: 15.5px; line-height: 1.4; font-weight: 500 }
#main.home-preview .steps-pill { position: relative; z-index: 2; display: inline-flex; margin-top: -26px; padding: 4px; border-radius: var(--bolt-radius-pill); background: var(--ink); color: var(--page); box-shadow: 0 16px 34px -14px color-mix(in oklab, var(--shade) 45%, transparent); white-space: nowrap }
#main.home-preview .steps-pill li { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--bolt-radius-pill); font-size: 14px; font-weight: 600; color: color-mix(in oklab, var(--page) 84%, var(--ink)) }
#main.home-preview .steps-pill li span { font-family: var(--mono); font-size: 12px }
#main.home-preview .steps-pill li.on { background: var(--page); color: var(--ink) }
@media (max-width: 859px) {
  #main.home-preview .phone.solo { --w: 280px; height: 360px }
  #main.home-preview .stage .note { margin-top: 14px }
  #main.home-preview .stage .n1 { order: 3; rotate: -1.5deg } #main.home-preview .stage .n2 { order: 4; rotate: 1.2deg } #main.home-preview .stage .n3 { order: 5; rotate: -1deg }
  #main.home-preview .steps-pill { order: 2 }
  #main.home-preview .steps-pill li { padding: 8px 11px; font-size: 12.5px; gap: 5px }
  #main.home-preview .stage { gap: 0; grid-template-columns: minmax(0, 1fr) } #main.home-preview .steps-pill { margin-bottom: 18px }
 }
@media (max-width: 379px) {  #main.home-preview .steps-pill li { padding: 8px 8px; font-size: 12px; gap: 4px } #main.home-preview .steps-pill li span { font-size: 11px }  }
@media (min-width: 860px) {
  #main.home-preview .note { position: absolute; width: 290px }
  #main.home-preview .n1 { left: 0; top: 70px; rotate: -3deg }
  #main.home-preview .n2 { right: 0; top: 30px; rotate: 2.5deg }
  #main.home-preview .n3 { left: 40px; top: 280px; rotate: 2deg }
 }
/* Bento */
#main.home-preview .bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px }
#main.home-preview .card-text > p { color: var(--muted) }
#main.home-preview .chips { display: flex; flex-wrap: wrap; gap: 8px }
#main.home-preview .chips li { padding: 7px 14px; border-radius: var(--bolt-radius-pill); background: var(--well); font-size: 14px; font-weight: 600; color: var(--ink) }
#main.home-preview .bleed { margin: 8px auto -30px; width: min(100%, 340px); padding: 0 20px; height: 400px; overflow: hidden; flex: none }
#main.home-preview .c-food { padding-bottom: 0 }
#main.home-preview .c-food .bleed { margin-top: auto; margin-bottom: 0; height: 430px }
#main.home-preview .c-progress { flex-direction: row; gap: 20px; padding-bottom: 0 }
#main.home-preview .c-progress .card-text { display: flex; flex-direction: column; gap: 14px; padding-bottom: 30px; flex: 1 }
#main.home-preview .bleed.side { margin: 4px -26px 0 0; width: 230px; height: 300px; align-self: flex-end }
#main.home-preview .rows { display: grid; margin-top: 4px }
#main.home-preview .rows li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--rule-2); font-weight: 600 }
#main.home-preview .rows li:first-child { border-top: 1px dashed var(--rule-2) }
#main.home-preview .rows svg { width: 22px; height: 22px; color: var(--accent-text); flex: none }
#main.home-preview .rows span { margin-left: auto; padding: 3px 10px; border-radius: var(--bolt-radius-pill); background: var(--wash); color: var(--accent-text); font-size: 13px; font-weight: 650; white-space: nowrap }
#main.home-preview .files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-block: 6px }
#main.home-preview .files li { display: grid; justify-items: start; align-content: space-between; gap: 18px; padding: 14px 12px 12px; border-radius: var(--bolt-radius-control); background: var(--page); box-shadow: 0 0 0 1px var(--rule); font-size: 14.5px; font-weight: 650; min-height: 112px }
#main.home-preview .files svg { width: 22px; height: 22px; color: var(--muted) }
#main.home-preview .files span { display: block; margin-top: 4px; width: max-content; padding: 2px 8px; border-radius: 6px; background: var(--wash); color: var(--accent-text); font-size: 11.5px; font-weight: 700; letter-spacing: .06em }
#main.home-preview .c-coach .ps-more { margin-top: auto }
@media (max-width: 379px) {  #main.home-preview .ps-card { padding-inline: 20px } #main.home-preview .bleed.side { margin-inline: 0 }  }
/* The progress card stacks its screen under the text wherever the card is narrow: phones and the two-column tablet. */
@media (max-width: 520px), (760px <= width < 1080px) {
  #main.home-preview .c-progress { flex-direction: column } #main.home-preview .c-progress .card-text { padding-bottom: 0 }
  #main.home-preview .bleed.side { align-self: center; width: 260px; height: 260px; margin: 0 }
 }
@media (min-width: 760px) {
  #main.home-preview .bento { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  #main.home-preview .c-food { grid-row: span 2 }
  #main.home-preview .c-coach { grid-column: 1 / -1 }
 }
@media (min-width: 1080px) {
  #main.home-preview .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px }
  #main.home-preview .ps-card { padding: 36px 36px 34px }
  #main.home-preview .c-food { grid-column: 1 / span 3; grid-row: 1 / span 2; padding-bottom: 0 }
  #main.home-preview .c-progress { grid-column: 4 / span 3; padding-bottom: 0 }
  #main.home-preview .c-watch { grid-column: 4 / span 3 }
  #main.home-preview .c-import, #main.home-preview .c-health, #main.home-preview .c-coach { grid-column: span 2 }
  #main.home-preview .c-food .bleed { height: 470px; width: 360px }
 }


/* About: a note on lined paper with a strip of tape. */
#main.home-preview .paper { position: relative; max-width: 620px; margin-inline: auto; padding: 44px clamp(22px, 5vw, 48px) 36px; border-radius: 10px; background: var(--tile); box-shadow: var(--lift); rotate: -1.2deg }
@media (max-width: 520px) {  #main.home-preview .paper { rotate: -.6deg }  }
#main.home-preview .tape { position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; translate: -50% 0; rotate: 2deg; background: color-mix(in oklab, var(--bolt-shop-paper-2) 80%, transparent); box-shadow: 0 0 0 1px var(--rule) }
#main.home-preview .paper-line { padding: 12px 0; border-block: 1px solid var(--rule); text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted) }
#main.home-preview .paper-k { margin-top: 22px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted) }
#main.home-preview .paper-name { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; margin-top: 10px; text-transform: uppercase }
#main.home-preview .paper blockquote { margin-top: 12px; font-size: 18px; line-height: 1.55 }
#main.home-preview .paper-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px }
#main.home-preview .paper-cols li { padding: 9px 0; border-bottom: 1px dashed var(--rule-2); font-size: 15.5px; font-weight: 550 }
#main.home-preview .paper-mail { margin-top: 26px; font-weight: 600 }


/* Close */
#main.home-preview .close { padding-block: var(--sec) clamp(88px, 10vw, 140px) }
#main.home-preview .close .ps-wrap { display: grid; justify-items: center; text-align: center; gap: 22px }
#main.home-preview .close h2 { font-size: clamp(44px, 7.4vw, 104px) }
#main.home-preview .close .cta { justify-content: center }


/* The pinned notes and the taped note settle in as they scroll into view (opacity and translate only), where the
   browser can tie that to scroll. The rest of the page stays still: the hero fan is the page's one big moment. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    #main.home-preview .note, #main.home-preview .paper {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35% }
    @keyframes rise {  from { opacity: 0; translate: 0 var(--bolt-entrance-rise) }  }
   }
 }


/* Long translated labels wrap in their own cells rather than stretching a track. */
#main.home-preview .ps-card, #main.home-preview .card-text { min-inline-size: 0; }
#main.home-preview .steps-pill { max-width: 100%; white-space: normal; }
#main.home-preview .steps-pill li { min-inline-size: 0; }
#main.home-preview .ps-btn { white-space: normal; text-align: center; }
#main.home-preview .arrow { flex: none; }
#main.home-preview .rows li { flex-wrap: wrap; }
#main.home-preview .ps-rail a:focus-visible { outline-offset: -3px; }
#main.home-preview:lang(ja) h1, #main.home-preview:lang(ko) h1, #main.home-preview:lang(zh-Hans) h1 { max-width: none; }
@media (max-width: 759px) {
  #main.home-preview:lang(ja) h1 { font-size: clamp(30px, 8.8vw, 42px); }
  #main.home-preview:lang(ko) h1 { font-size: clamp(28px, 7.5vw, 42px); }
}
@media (prefers-reduced-motion: reduce) {
  #main.home-preview *, #main.home-preview *::before, #main.home-preview *::after { animation: none !important; transition: none !important; }
}

@media (hover: hover) and (pointer: fine) {
  #main.home-preview .btn-ink:hover { color: var(--on-accent); }
}

/* Keep the authored line break meaningful with longer localized headlines. */
@media (max-width: 759px) {
  #main.home-preview:lang(de) h1 { font-size: clamp(32px, 9.2vw, 42px); }
  #main.home-preview:lang(fr) h1 { font-size: clamp(32px, 9.2vw, 42px); }
}
#main.home-preview:lang(de) .close h2, #main.home-preview:lang(fr) .close h2, #main.home-preview:lang(ja) .close h2 { font-size: clamp(36px, 6.8vw, 98px); }
