/* Product-first homepage; no changes to billing or shared application pages. */
.home-page { --home-heading: var(--font-sans); }
.home-main { overflow-x: clip; }
.home-container { width: 100%; max-width: 1256px; padding-inline: 32px; margin-inline: auto; }
.home-skip { position: fixed; top: -80px; left: 20px; z-index: 120; padding: 12px 18px; border-radius: 9px; color: white; background: var(--accent); }
.home-skip:focus { top: 10px; }
.home-scroll-progress { position: fixed; inset: 0 auto auto 0; z-index: 110; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.home-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-page .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; height: auto; padding: 10px 16px; font-size: 12px; line-height: 1.5; }
.home-page .topbar .btn { min-height: 34px; padding: 6px 13px; }
/* The first screen is a single composition, led by the model search. */
.home-hero { position: relative; color: #f9fbff; background: #03070d; }
.home-hero::before { content: ''; position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse at 7% 120%, #009cc6 0, #009cc600 62%), radial-gradient(ellipse at 94% 125%, #2855ec 0, #2855ec00 64%); pointer-events: none; }
.home-hero-inner { position: relative; z-index: 2; padding-top: 58px; padding-bottom: 68px; text-align: center; }
.home-eyebrow { display: block; margin-bottom: 19px; color: #99b1d5; font-size: 10px; font-weight: 500; letter-spacing: .16em; }
.home-hero h1 { margin: 0; color: white; font: 500 clamp(42px, 5.1vw, 70px)/1.08 var(--home-heading); letter-spacing: -.055em; }
.home-hero h1 > span { color: #8cbdff; }
.home-intro { max-width: 710px; margin: 22px auto 0; color: #becbdf; font-size: 15px; line-height: 1.8; }
.home-search-wrap { position: relative; max-width: 730px; margin: 29px auto 0; text-align: left; z-index: 5; }
.home-hero-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 23px; margin-top: 21px; font-size: 11px; color: #b3c7e6; }
.home-hero-links > a { color: white; }
.home-hero-links > a span { margin-left: 7px; }
.home-hero-links > span::before { content: '·'; margin-right: 23px; color: #80a5d3; }
.home-search { display: flex; align-items: center; gap: 15px; padding: 8px 8px 8px 23px; border: 1px solid #dfe6f4; border-radius: 20px; background: #fff; box-shadow: 0 0 0 7px #b4d7ff1a, 0 18px 45px #0000001c; }
.home-search:focus-within { box-shadow: 0 0 0 7px #b4d7ff30, 0 18px 45px #0000001c; }
.home-search > svg { width: 21px; height: 21px; flex: 0 0 21px; color: #7b8798; }
.home-search input { width: 100%; min-width: 0; height: 50px; padding: 0; border: 0; outline: 0; border-radius: 0; background: transparent; box-shadow: none; color: #111927; font: 15px var(--font-sans); }
.home-search input:focus-visible { outline: 0; }
.home-search input::placeholder { color: #929baa; }
.home-search button { display: inline-flex; align-items: center; justify-content: center; gap: 23px; flex: 0 0 128px; min-height: 50px; padding: 12px 18px; border: 0; border-radius: 13px; background: #326bff; color: white; font: 500 14px var(--font-sans); cursor: pointer; transition: background .2s; }
.home-search button:hover { background: #1b57ee; }
.home-search-results { position: absolute; top: calc(100% + 13px); left: 0; right: 0; border: 1px solid #dfe6f4; border-radius: 17px; background: #fff; color: #182335; overflow: hidden; box-shadow: 0 22px 60px #0005; }
.home-search-results[hidden], #homeSearchEmpty[hidden] { display: none; }
.home-search-results ul { list-style: none; margin: 0; padding: 7px; max-height: 350px; overflow-y: auto; }
.home-search-results li { border-radius: 10px; }
.home-search-results li[aria-selected='true'], .home-search-results li:hover { background: #edf3ff; }
.home-search-results li a { display: flex; align-items: center; gap: 13px; min-height: 64px; padding: 10px 14px; color: #182335; }
.home-search-logo { display: grid; place-items: center; flex: 0 0 33px; width: 33px; height: 33px; border-radius: 9px; background: #111827; color: white; font-size: 11px; }
.home-search-logo img { width: 23px; height: 23px; object-fit: contain; }
.home-search-name { display: grid; gap: 4px; min-width: 0; font-size: 14px; line-height: 1.4; }
.home-search-name small { color: #6d7788; font-size: 11px; }
.home-search-results li a > span:last-child { margin-left: auto; color: #326bff; font-size: 17px; }
#homeSearchEmpty { padding: 20px; font-size: 13px; line-height: 1.7; }
.home-search-results > a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 21px; border-top: 1px solid #e4e9f2; color: #326bff; font-size: 12px; }
.home-families { position: relative; margin-top: 40px; }
.home-families h2 { margin: 0; }
.home-families-viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.home-families-track { display: flex; width: max-content; animation: home-family-scroll 42s linear infinite; }
.home-families-group { display: flex; align-items: center; flex-shrink: 0; gap: 55px; padding-right: 55px; }
.home-families-group a { display: inline-flex; align-items: center; gap: 10px; color: white; font-size: 26px; font-weight: 400; letter-spacing: -.04em; line-height: 1.4; white-space: nowrap; }
.home-families-group img { width: 32px; height: 32px; object-fit: contain; filter: brightness(0) invert(1); }
:root[data-theme='light'] .home-families-group img { filter: brightness(0) invert(1); }
.home-families-group .home-provider-claude { font: 32px/1.2 Georgia, serif; }
.home-families:hover .home-families-track, .home-families:focus-within .home-families-track, .home-families.is-offscreen .home-families-track, .home-tab-hidden .home-families-track { animation-play-state: paused; }
@keyframes home-family-scroll { to { transform: translateX(-50%); } }
/* Each following section explains an actual path through the product. */
.home-workspace { position: relative; z-index: 1; margin-top: -26px; border-radius: 30px 30px 0 0; background: var(--bg); }
.home-section { padding-block: 68px; border-bottom: 1px solid var(--line); }
.home-section-heading { max-width: 800px; margin: 0 auto 34px; text-align: center; }
.home-section h2 { color: var(--text); font: 500 clamp(27px, 2.9vw, 40px)/1.3 var(--home-heading); letter-spacing: -.035em; }
.home-section-heading > p { margin-top: 17px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.home-kicker { display: block; color: var(--link); font-size: 10px; font-weight: 500; letter-spacing: .1em; margin-bottom: 13px; }
/* Open typographic composition: the benefit is the visual, without pricing cards. */
.home-value-poster { width: 100%; }
.home-value-topline { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 32px; }
.home-value-topline > span { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .13em; }
.home-value-topline > a { display: inline-flex; align-items: center; gap: 23px; color: var(--text-soft); font-size: 12px; }
.home-section #homeValueTitle { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: clamp(66px, 8.9vw, 112px); font-weight: 500; line-height: 1.06; letter-spacing: -.065em; }
.home-value-line { display: flex; align-items: center; gap: .18em; white-space: nowrap; }
.home-value-line-blue { margin-left: 8.3%; color: var(--link); }
.home-value-symbol { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 .84em; width: .84em; height: .84em; margin-top: .05em; }
.home-value-symbol img { display: block; width: 84%; height: 84%; object-fit: contain; filter: brightness(0) invert(1); }
:root[data-theme="light"] .home-value-symbol img { filter: brightness(0); }
.home-value-drop { display: grid; place-items: center; flex: 0 0 .78em; width: .78em; height: .78em; margin-left: .09em; margin-top: .1em; border-radius: 50%; background: #326bff; color: white; }
.home-value-drop svg { width: 78%; height: 78%; }
.home-value-poster.is-visible .home-value-drop svg { animation: home-value-fall .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes home-value-fall { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
.home-value-lower { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-top: 32px; padding-left: 8.3%; }
.home-value-message { display: flex; align-items: center; gap: 37px; }
.home-value-crossout { position: relative; display: block; flex-shrink: 0; color: var(--muted); font-size: 14px; line-height: 1.8; white-space: nowrap; }
.home-value-crossout svg { position: absolute; inset: 0 -7px; width: calc(100% + 14px); height: 100%; color: var(--link); overflow: visible; }
.home-value-crossout path { stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset .9s cubic-bezier(.2,.8,.2,1); }
.home-value-poster.is-visible .home-value-crossout path { stroke-dashoffset: 0; }
.home-value-message p { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.9; }
.home-value-cta { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 28px; min-height: 54px; padding: 7px 8px 7px 22px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 500; transition: transform .2s; }
.home-value-cta > span:last-child { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: #326bff; color: white; font-size: 23px; font-weight: 400; }
.home-value-cta:hover { transform: translateY(-3px); }
.home-value-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 39px; border-bottom: 1px solid var(--line); }
.home-value-choice { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 62px; margin-bottom: -1px; padding: 13px 5px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font: 400 17px var(--font-sans); cursor: pointer; transition: color .2s, border-color .2s; }
.home-value-choice img { width: 23px; height: 23px; object-fit: contain; }
.home-value-choice:hover { color: var(--text); }
.home-value-choice[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--accent); }
.home-value-prices { margin-top: 29px; }
.home-price-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.home-price-heading h3 { margin: 0; font: 500 18px/1.5 var(--font-sans); letter-spacing: -.025em; color: var(--text); }
.home-price-heading p { margin: 0; font-size: 11px; color: var(--muted); }
.home-price-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.home-price-table thead th { padding: 11px 0 14px 20px; font-size: 11px; font-weight: 400; color: var(--muted); }
.home-price-table th:first-child { width: 46%; text-align: left; padding-left: 0; }
.home-price-table tbody th, .home-price-table td { padding: 17px 0 17px 20px; border-top: 1px solid var(--line); font-weight: 400; color: var(--text-soft); }
.home-price-table tbody th { text-align: left; padding-left: 0; }
.home-price-table tbody th a { display: inline-flex; align-items: baseline; gap: 16px; color: var(--text); overflow-wrap: anywhere; }
.home-price-table tbody th a > span { color: var(--dim); font-size: 12px; }
.home-price-table tbody th a:hover, .home-price-table tbody th a:hover > span { color: var(--link); }
.home-price-table td { white-space: nowrap; }
.home-price-table .home-price-empty td { padding: 25px 0; text-align: left; white-space: normal; font-size: 13px; color: var(--muted); }
.home-price-empty a, .home-price-note a { color: var(--link); }
.home-price-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.85; }
.home-price-note a { display: inline-block; margin-left: 8px; }
.home-price-table:has(.home-price-pair) th:first-child { width: 34%; }
.home-price-pair { display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 4px 11px; }
.home-price-official { color: var(--muted); font-size: 11px; line-height: 1.7; text-decoration-thickness: 1px; text-decoration-color: var(--muted); white-space: normal; }
.home-price-official sup { font-size: 9px; margin-left: 2px; }
.home-price-ours { color: var(--success, #18d68c); font-size: 14px; font-weight: 500; white-space: nowrap; }
.home-price-legend { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 10px; line-height: 1.7; }
.home-price-legend b { color: var(--success, #18d68c); font-weight: 500; }
.home-price-source { font-size: 11px; color: var(--muted); margin: 10px 0 18px; line-height: 1.8; }
.home-price-source summary { cursor: pointer; width: fit-content; }
.home-price-source p { max-width: 850px; margin-top: 10px; }
.home-price-source a { color: var(--link); }
@media (max-width: 700px) {
  .home-value-prices { margin-top: 23px; }
  .home-price-heading h3 { font-size: 16px; }
  .home-price-heading p { font-size: 10px; }
  .home-price-table, .home-price-table tbody { display: block; width: 100%; }
  .home-price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .home-price-table tbody tr { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px 10px; padding: 19px 0; border-top: 1px solid var(--line); }
  .home-price-table tbody th, .home-price-table th:first-child, .home-price-table:has(.home-price-pair) th:first-child { grid-column: 1/-1; width: auto; padding: 0; border: 0; font-size: 14px; }
  .home-price-table td { padding: 0; border: 0; text-align: left; font-size: 14px; }
  .home-price-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; line-height: 1.5; margin-bottom: 5px; }
  .home-price-table .home-price-empty td { grid-column: 1/-1; padding: 0; }
  .home-price-note { font-size: 10px; }
  .home-price-note a { display: block; margin: 5px 0 0; }
  .home-price-pair { align-items: flex-start; justify-content: flex-start; gap: 3px; flex-direction: column; }
  .home-price-official { font-size: 10px; }
  .home-price-legend { font-size: 9px; }
  .home-price-source { font-size: 10px; }
}
@media (max-width: 960px) {
  .home-value-lower { padding-left: 0; gap: 22px; }
  .home-value-message { gap: 24px; }
  .home-value-crossout { font-size: 12px; }
  .home-value-message p { font-size: 12px; }
  .home-value-cta { padding-left: 17px; gap: 20px; }
  .home-value-choice { font-size: 15px; }
}
@media (max-width: 700px) {
  .home-value-topline { margin-bottom: 29px; gap: 12px; }
  .home-value-topline > span { font-size: 8px; letter-spacing: .08em; }
  .home-value-topline > a { font-size: 10px; gap: 8px; }
  .home-section #homeValueTitle { font-size: clamp(36px, 10.7vw, 66px); gap: 10px; }
  .home-value-line-blue { margin-left: 0; }
  .home-value-drop { flex-basis: .85em; width: .85em; height: .85em; margin-left: 0; }
  .home-value-lower { flex-direction: column; align-items: flex-start; gap: 25px; margin-top: 27px; }
  .home-value-message { flex-direction: column; align-items: flex-start; gap: 15px; }
  .home-value-crossout { font-size: 13px; }
  .home-value-message p { font-size: 13px; }
  .home-value-message p br { display: none; }
  .home-value-cta { min-height: 49px; gap: 30px; }
  .home-value-cta > span:last-child { width: 34px; height: 34px; font-size: 21px; }
  .home-value-choices { gap: 8px; margin-top: 27px; }
  .home-value-choice { font-size: 11px; gap: 6px; min-height: 51px; padding-inline: 0; }
  .home-value-choice img { width: 18px; height: 18px; }
}

.home-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-entry-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 19px; overflow: hidden; background: var(--panel); }
.home-entry-art { flex-shrink: 0; height: 257px; padding: 27px 32px 0; overflow: hidden; background: #0b1e3b; color: #ecf3ff; }
.home-chat-art { background: linear-gradient(130deg, #092a43, #12387a); }
.home-docs-art { background: linear-gradient(130deg, #132138, #182c56); }
.home-mini-chat, .home-mini-docs { max-width: 470px; margin: auto; border: 1px solid #ffffff26; border-radius: 13px 13px 0 0; background: #090d15; box-shadow: 0 14px 40px #0003; }
.home-mini-header { display: flex; align-items: center; gap: 16px; padding: 14px 17px; border-bottom: 1px solid #ffffff18; color: #a2adc1; font-size: 10px; }
.home-mini-header > span:first-child { color: white; font-size: 17px; letter-spacing: -.055em; }
.home-mini-header > span:last-child { margin-left: auto; }
.home-mini-models { display: flex; align-items: center; gap: 8px; padding: 13px 16px; }
.home-mini-models > span { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #ffffff15; border-radius: 7px; color: #a1aec3; font-size: 9px; }
.home-mini-models > span.is-active { border-color: #326bff; color: #edf3ff; background: #326bff16; }
.home-mini-models img { width: 14px; height: 14px; }
.home-mini-prompt { width: fit-content; max-width: calc(100% - 40px); margin: 6px 16px 17px auto; padding: 12px 14px; border-radius: 11px 11px 3px 11px; background: #172c55; color: #d9e5fb; font-size: 10px; line-height: 1.6; }
.home-mini-composer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 15px 14px; padding: 11px 12px; border: 1px solid #ffffff1c; border-radius: 10px; color: #8290a9; font-size: 10px; }
.home-mini-composer > span:last-child { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #326bff; color: white; font-size: 14px; }
.home-mini-header > button { margin-left: auto; padding: 4px 7px; border: 1px solid #ffffff30; border-radius: 5px; background: transparent; color: #c1d5ff; font-size: 9px; cursor: pointer; }
.home-api-example { margin: 0; padding: 15px 17px 20px; overflow: auto; max-height: 177px; color: #c4dcff; text-align: left; font: 10px/1.8 var(--font-mono, monospace); tab-size: 4; }
.home-api-example code { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; }
.home-entry-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 27px; }
.home-entry-copy h3 { margin: 0; color: var(--text); font-size: 22px; font-weight: 500; letter-spacing: -.035em; }
.home-entry-copy > p { max-width: 430px; margin: 12px 0 21px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.home-entry-copy > a { margin-top: auto; }
.home-entry-copy small { display: block; margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.home-faq-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; border-bottom: 0; }
.home-faq-section > div > a { display: inline-block; margin-top: 22px; color: var(--link); font-size: 12px; }
.home-faq details { padding-block: 19px; border-bottom: 1px solid var(--line); }
.home-faq details:first-child { padding-top: 0; }
.home-faq details:last-child { padding-bottom: 0; border: 0; }
.home-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--text-soft); list-style: none; font-size: 14px; cursor: pointer; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary > span { color: var(--muted); font-size: 21px; }
.home-faq details[open] summary > span { transform: rotate(45deg); }
.home-faq p { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.home-faq p a { color: var(--link); }
@media (max-width: 960px) {
  .home-hero-inner { padding-top: 68px; }
  .home-hero h1 { font-size: 47px; }
  .home-intro { font-size: 15px; }
  .home-entry-art { padding-inline: 20px; }
  .home-entry-copy { padding: 23px; }
  .home-entry-copy h3 { font-size: 20px; }
  .home-faq-section { gap: 40px; }
}
@media (max-width: 700px) {
  .home-container { padding-inline: 24px; }
  .home-hero-inner { padding-top: 49px; padding-bottom: 64px; }
  .home-hero h1 { max-width: 550px; margin: auto; font-size: 40px; line-height: 1.2; }
  .home-intro { font-size: 14px; margin-top: 19px; }
  .home-intro br { display: none; }
  .home-search-wrap { margin-top: 30px; }
  .home-search { gap: 11px; padding: 7px 7px 7px 15px; border-radius: 16px; }
  .home-search input { height: 46px; font-size: 13px; }
  .home-search button { min-height: 46px; flex-basis: 104px; padding-inline: 13px; font-size: 13px; gap: 17px; border-radius: 10px; }
  .home-families { margin-top: 45px; }
  .home-families-group { gap: 34px; padding-right: 34px; }
  .home-families-group a { font-size: 23px; }
  .home-families-group img { width: 28px; height: 28px; }
  .home-families-group .home-provider-claude { font-size: 29px; }
  .home-section { padding-block: 45px; }
  .home-section-heading > p { font-size: 13px; }
  .home-entry-grid, .home-faq-section { grid-template-columns: 1fr; }
  .home-entry-art { height: 257px; padding: 25px 28px 0; }
  .home-entry-copy > p { min-height: 0; }
  .home-faq-section { gap: 29px; }
  .home-faq-section h2 > br { display: none; }
}
@media (max-width: 600px) {
  .home-page .topbar-actions .btn-compact { display: none; }
}
@media (max-width: 430px) {
  .home-container { padding-inline: 20px; }
  .home-hero h1 { font-size: clamp(30px, 8.4vw, 36px); }
  .home-intro { font-size: 13px; }
  .home-search { gap: 9px; padding-left: 12px; box-shadow: 0 0 0 5px #b4d7ff1a; }
  .home-search > svg { width: 18px; height: 18px; flex-basis: 18px; }
  .home-search input { font-size: 12px; }
  .home-search button { flex-basis: 80px; gap: 10px; font-size: 12px; padding-inline: 11px; }
  .home-search-results li a { gap: 10px; padding-inline: 10px; }
  .home-search-name { font-size: 12px; }
  .home-search-logo { width: 29px; height: 29px; flex-basis: 29px; }
  .home-entry-art { height: 235px; padding: 21px 17px 0; }
  .home-entry-copy { padding: 21px; }
  .home-mini-models { gap: 6px; padding-inline: 12px; }
  .home-mini-models > span { font-size: 8px; gap: 4px; padding: 6px; }
  .home-mini-models img { width: 12px; height: 12px; }
  .home-mini-prompt { font-size: 9px; }
  .home-workspace { border-radius: 23px 23px 0 0; }
  .home-eyebrow { font-size: 8px; letter-spacing: .1em; }
  .home-hero-links { gap: 12px; font-size: 10px; }
  .home-hero-links > span::before { margin-right: 12px; }
  .home-kicker { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .home-families-track { width: 100%; }
  .home-families-group { width: 100%; padding: 0; flex-wrap: wrap; justify-content: center; gap: 22px 30px; }
  .home-families-group[aria-hidden='true'] { display: none; }
  .home-families-viewport { mask-image: none; }
}
