/* Homepage art direction. Keep marketing typography and surfaces separate
   from the native product geometry in notch-demo.css. */
.has-notch-demo {
  --font-display: "Instrument Sans", "Inter", system-ui, sans-serif;
  --font-ui: "Instrument Sans", "Inter", system-ui, sans-serif;
  --font-editorial: "Instrument Serif", Georgia, serif;
  --edge: #6b55831f;
  --r-card: 14px;
  --r-card-lg: 20px;
}
.nd-masthead { position: absolute; top: 25px; inset-inline: max(var(--gut), calc((100vw - var(--page-max)) / 2 + var(--gut))); z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nd-masthead .nav-mark { font-family: "Manrope", var(--font-display); font-size: 23px; font-weight: 700; line-height: 1.2; gap: 10px; color: #fff9ef; letter-spacing: -.055em; text-shadow: 0 1px 8px #47315c29; }
.nd-masthead .mark { width: 36px; height: 34px; flex-shrink: 0; }
.nd-masthead .nd-header-download { min-height: 40px; padding: 9px 15px; font-size: 13px; flex-shrink: 0; }
.nd-masthead .nd-header-download:focus-visible { outline-color: #fff9ef; }
.nd-demo-invite { position: absolute; top: 61px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 0; background: none; color: #fff7ed; font: 12px/1.5 var(--font-ui); cursor: pointer; white-space: nowrap; }
.nd-demo-invite[hidden] { display: none; }
.nd-demo-invite span { text-decoration: underline; text-decoration-color: #fff7ed66; text-underline-offset: 4px; }
.nd-demo-invite:hover span { text-decoration-color: currentColor; }
.nd-demo-invite svg { width: 17px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.nd-demo-invite:focus-visible { outline: 2px solid #fff7ed; outline-offset: 3px; border-radius: 5px; }

/* Type carries the hero: clean sans above a large, flowing italic. */
.hero.hero--notch { padding: 0; min-height: 840px; background: #918be1; }
.nd-hero-landscape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; pointer-events: none; z-index: 0; }
.hero--notch::before { height: 100%; z-index: 1; background: radial-gradient(ellipse 70% 78% at 50% 16%, #3a295578, transparent 94%); }
.hero--notch::after { z-index: 1; background: linear-gradient(180deg, transparent 79%, #d6d2f8); }
.hero--notch + .hero-tail { height: 50px; background: linear-gradient(#d6d2f8, var(--wash)); }
.hero--notch .hero-inner { z-index: 2; padding-top: clamp(139px, 15vh, 175px); padding-bottom: 126px; }
.nd-hero-copy { text-align: center; min-width: 0; }
.nd-hero-kicker { color: #fff7ed; font-size: 10px; letter-spacing: .18em; margin: 0 0 28px; font-weight: 500; }
.hero--notch .hero-line { display: flex; flex-direction: column; align-items: center; max-width: 100%; padding: 0 6px 12px; font-size: clamp(68px, 7vw, 100px); line-height: 1; letter-spacing: -.065em; font-weight: 500; margin: 0 auto 21px; text-align: center; color: #fffaf7; text-shadow: 0 3px 32px #3f356b12; }
.hero--notch .hero-line-main { display: block; font: inherit; color: inherit; }
.hero--notch .hero-line-accent { display: block; font-family: var(--font-editorial); font-style: italic; font-size: 1.28em; line-height: 1.02; font-weight: 400; letter-spacing: -.035em; padding: 0 .12em .03em 0; color: #fff4e7; text-shadow: 0 2px 0 #ffffff12, 0 6px 32px #46305b1c; }
.hero--notch .hero-sub { font-size: 17px; max-width: 530px; padding: 0; margin: 0 auto 28px; color: #302139; line-height: 1.65; text-align: center; text-wrap: pretty; }
.hero--notch .hero-cta { justify-content: center; gap: 12px; }

/* Shared button surfaces live in styles.css, including secondary pages. */
.has-notch-demo .nd-text-link { font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: #625077; cursor: pointer; }

/* A small dock gives the real marks a shared scale and a home in the scene. */
.nd-integrations { margin: 39px auto 0; }
.nd-integrations-label { color: #46354f; font-size: 11px; letter-spacing: .035em; margin: 0 0 13px; }
.nd-harnesses { display: inline-flex; align-items: center; justify-content: center; gap: 8px; list-style: none; padding: 9px; margin: 0; border: 1px solid #fffaf36b; border-radius: 21px; background: linear-gradient(155deg, #fffcf857, #f4ebff2e); box-shadow: 0 10px 30px -14px #4934614f, inset 0 1px 0 #fff8; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nd-harnesses a { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid #ffffff80; border-radius: 13px; background: #fff9f7b8; box-shadow: 0 2px 3px #55437108; transition: background .2s, transform .2s, box-shadow .2s; }
.nd-harnesses a:hover { background: #fffaf8; transform: translateY(-4px); box-shadow: 0 5px 10px #49375d1a; }
.nd-harnesses a:focus-visible { outline: 2px solid #fffaf3; outline-offset: 4px; }
.nd-harnesses .compat-mark { width: 24px; height: 24px; margin: 0; background-color: #584a69; opacity: .86; transition: opacity .2s, background-color .2s; }
.nd-harnesses a:hover .compat-mark { opacity: 1; }
.nd-harnesses a:hover .compat-claude { background-color: #bb7156; }
.nd-harnesses a:hover .compat-gemini { background: linear-gradient(30deg,#5794d5,#837ad6); }
.nd-harnesses a:hover .compat-qwen { background-color: #7967ca; }

/* A cross-app example replaces the terminal-only before/after. */
.has-notch-demo #why { padding-top: 54px; }
.has-notch-demo .wy-head { max-width: 700px; margin-bottom: 43px; }
.has-notch-demo .wy-head .eyebrow { margin-bottom: 20px; }
.has-notch-demo .wy-head .h-lg { font-size: clamp(32px, 3.7vw, 49px); letter-spacing: -.045em; line-height: 1.1; }
.has-notch-demo .wy-head em { font-family: var(--font-editorial); font-weight: 400; font-size: 1.16em; letter-spacing: -.02em; color: #6d5a7d; }
.has-notch-demo .wy-head .lede { font-size: 16px; line-height: 1.7; max-width: 600px; }
.nd-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1060px; margin: 0 auto; border-block: 1px solid #7661852b; }
.nd-overview-item { min-width: 0; padding: 30px 27px 32px; }
.nd-overview-item + .nd-overview-item { border-left: 1px solid #7661852b; }
.nd-overview-source { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }
.nd-overview-source > .compat-mark { width: 25px; height: 25px; margin: 0; flex-shrink: 0; }
.nd-overview-source small { display: block; font-size: 10px; line-height: 1.5; font-weight: 400; color: #756b7f; }
.nd-overview-state { font-size: 9px; line-height: 1.3; font-weight: 500; border-radius: 5px; background: #e6e3f0; color: #615675; padding: 4px 6px; margin-left: auto; white-space: nowrap; }
.nd-state-wait { background: #f4e5d5; color: #845825; }
.nd-state-done { background: #dfece4; color: #416450; }
.nd-overview-item h3 { font-size: 17px; font-weight: 500; letter-spacing: -.025em; margin: 23px 0 8px; }
.nd-overview-item > p { font-size: 14px; line-height: 1.6; margin: 0; color: #726b7c; max-width: 28ch; }

/* Landscape tint stays behind the product, with readable copy below it. */
.has-notch-demo .fx-card { --surface-from: #eee8fc70; --surface-to: #faf6ff26; --surface-hue: 0deg; }
.has-notch-demo .fx-card:nth-child(3n + 2) { --surface-from: #fff0e69c; --surface-to: #fce8e947; --surface-hue: 110deg; }
.has-notch-demo .fx-card:nth-child(3n) { --surface-from: #edf5ff80; --surface-to: #dff4f34d; --surface-hue: -45deg; }
.has-notch-demo .fx-box { border-color: #6b558323; border-radius: 18px; box-shadow: inset 0 1px 0 #ffffff9c, 0 9px 30px -24px #4c326b35; }
.has-notch-demo .fx-box::before { inset: 0; background: url('assets/hero-landscape-v2.webp') center 76% / auto 145% no-repeat; filter: saturate(.6) hue-rotate(var(--surface-hue)); opacity: .72; }
.has-notch-demo .fx-card:nth-child(even) .fx-box::before { background-position: 75% bottom; }
.has-notch-demo .fx-box::after { background: linear-gradient(145deg, var(--surface-from), var(--surface-to)); }
.has-notch-demo .fx-copy { font-size: 14px; line-height: 1.65; color: #706878; }
.has-notch-demo .fx-copy b { display: block; color: #302838; font-size: 16px; line-height: 1.35; font-weight: 600; margin-bottom: 8px; letter-spacing: -.025em; }
.has-notch-demo .fx-more-item p { font-size: 14px; line-height: 1.65; }
.has-notch-demo .h-md { letter-spacing: -.04em; text-wrap: balance; }

/* Desktop support comes before the detailed integration roster. */
.has-notch-demo #works-with .block-head .lede { max-width: 620px; margin: 17px auto 0; font-size: 16px; }
.nd-desktop-hosts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; gap: 16px; margin: 0 auto 42px; text-align: left; }
.nd-host-card { display: flex; align-items: center; gap: 18px; padding: 25px; border: 1px solid #7b668523; border-radius: 16px; background: linear-gradient(125deg, #fffcf8e6, #efe7f7bf); color: #3a2e47; text-decoration: none; transition: background .2s, border-color .2s; }
.nd-host-card:nth-child(2) { background: linear-gradient(125deg, #fffcf8e6, #e7eaf5bf); }
.nd-host-card:hover { border-color: #7b668566; background: #fffdfb; }
.nd-host-card .compat-mark { width: 33px; height: 33px; flex: none; margin: 0; }
.nd-host-card div { flex: 1; min-width: 0; }
.nd-host-card h3 { font-size: 19px; font-weight: 500; letter-spacing: -.035em; margin: 0 0 5px; }
.nd-host-card p { font-size: 13px; line-height: 1.5; color: #74687f; margin: 0; }
.nd-host-card > span { color: #93839e; font-size: 18px; }
.has-notch-demo .compat-note { max-width: 610px; margin-inline: auto; line-height: 1.65; }

/* Price and purchase on the left; a clean reading surface on the right. */
.has-notch-demo .price-card { display: grid; grid-template-columns: .94fr 1.06fr; max-width: 820px; padding: 0; border: 1px solid #7c638530; border-radius: 20px; background: #fffcfa; box-shadow: 0 16px 48px -30px #57396440; overflow: hidden; }
.nd-price-summary { padding: 34px; background: linear-gradient(165deg, #fff9f0ef 0%, #f7eef3db 32%, #eee8f7a6 68%, #e4dcf3b3 100%), url('assets/hero-landscape-v2.webp') 44% bottom / auto 100% no-repeat, #e8e0f2; }
.has-notch-demo .price-head { gap: 10px; margin-bottom: 9px; }
.has-notch-demo .price-name { font-size: 22px; color: #3e314a; font-weight: 600; }
.has-notch-demo .price-tag { background: #fffcf894; color: #6b507b; padding: 5px 8px; font-size: 9px; letter-spacing: .07em; border-color: #8d739521; border-radius: 5px; }
.has-notch-demo .price-blurb { font-size: 14px; color: #685671; margin: 0 0 29px; }
.has-notch-demo .price { align-items: baseline; margin: 0 0 10px; gap: 1px; color: #3e314a; }
.has-notch-demo .price .cur { font-size: 31px; padding: 0; color: inherit; }
.has-notch-demo .price .amt { font-size: 76px; font-weight: 500; letter-spacing: -.06em; }
.has-notch-demo .price .was { font-size: 19px; color: #8b7892; padding: 0; margin-left: 14px; }
.has-notch-demo .price .was s { text-decoration-color: #9e849e; text-decoration-thickness: 1px; }
.has-notch-demo .price-sub { font-size: 12px; color: #665271; border: 0; padding: 0; margin: 0 0 29px; }
.has-notch-demo .price-card .btn-block .btn { min-height: 48px; border-radius: 11px; font-size: 14px; padding: 12px 18px; box-shadow: 0 3px 8px #4030470f; justify-content: space-between; }
.has-notch-demo .price-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 16px; font-size: 11px; text-align: center; margin: 15px 0 0; }
.price-alt button, .price-alt a { background: none; border: 0; padding: 2px 0; font: inherit; color: #6c5879; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #ab96b675; }
.price-alt button:hover, .price-alt a:hover { color: #41324e; text-decoration-color: currentColor; }
.nd-price-included { display: flex; flex-direction: column; justify-content: center; padding: 36px; }
.has-notch-demo .price-incl { font-size: 17px; font-weight: 500; color: #493854; letter-spacing: -.02em; margin: 0 0 20px; }
.has-notch-demo .price-list { margin: 0; }
.has-notch-demo .price-list li { font-size: 14px; line-height: 1.45; color: #685d70; padding: 7px 0; gap: 10px; }
.has-notch-demo .price-list li::before { content: ''; display: block; flex: 0 0 6px; width: 6px; height: 6px; border: 1px solid #937a9d; border-radius: 50%; }
.nd-purchase-note { text-align: center; font-size: 11px; color: #87798f; margin: 19px 0 0; }
.nd-purchase-note a { color: inherit; text-underline-offset: 3px; }
.has-notch-demo .compare-link { border-radius: 14px; background: linear-gradient(125deg, #ffffffed, #f1ebffc9); }
.has-notch-demo .compare-link:nth-child(even) { background: linear-gradient(125deg, #ffffffed, #fff0e7c9); }
.has-notch-demo .compare-link:hover { border-color: #8d6fde80; }
.has-notch-demo .compare-link-t { font-weight: 500; }
.has-notch-demo .faq summary { font-size: 17px; font-weight: 500; }
.has-notch-demo .faq details p { font-size: 14px; line-height: 1.75; }
.has-notch-demo .closer { background: #bcb4d9; }
.has-notch-demo .closer-line { font-family: var(--font-editorial); font-style: italic; font-size: clamp(45px, 5.2vw, 72px); font-weight: 400; line-height: 1.05; letter-spacing: -.035em; color: #fff5ec; }
.has-notch-demo .closer-sub { max-width: 450px; color: #fffaf1; }
.has-notch-demo .closer-fine { color: #fff8ece6; }

@media (max-width: 1000px) {
  .nd-overview-item { padding: 26px 18px; }
  .nd-overview-source { flex-wrap: wrap; }
  .nd-overview-state { margin: 8px 0 0; }
  .nd-overview-source > span:not(.nd-overview-state) { flex: 1; }
}
@media (max-width: 900px) {
  .nd-masthead { top: 109px; inset-inline: var(--gut); }
  .hero--notch .hero-inner { padding-top: 178px; }
}
@media (max-width: 760px) {
  .hero.hero--notch { min-height: 805px; }
  .hero--notch .hero-inner { padding-bottom: 135px; }
  .hero--notch .hero-line { font-size: clamp(56px, 11vw, 80px); margin-bottom: 22px; }
  .hero--notch .hero-line-accent { font-size: 1.16em; }
  .hero--notch .hero-sub { font-size: 15px; max-width: 420px; line-height: 1.65; }
  .nd-hero-kicker { font-size: 9px; letter-spacing: .13em; margin-bottom: 24px; }
  .nd-hero-landscape { object-position: 47% bottom; }
  .nd-integrations { margin-top: 30px; }
  .nd-integrations-label { font-size: 10px; }
  .nd-harnesses { gap: 6px; padding: 7px; border-radius: 17px; }
  .nd-harnesses a { width: 37px; height: 41px; border-radius: 10px; }
  .nd-harnesses .compat-mark { width: 22px; height: 22px; }
  .has-notch-demo .hero-cta .btn { min-height: 47px; }
  .nd-overview { grid-template-columns: 1fr; max-width: 500px; }
  .nd-overview-item { padding: 25px 8px; }
  .nd-overview-item + .nd-overview-item { border-left: 0; border-top: 1px solid #7661852b; }
  .nd-overview-state { margin: 0 0 0 auto; }
  .nd-overview-item h3 { margin-top: 17px; }
  .nd-overview-item > p { max-width: 100%; }
  .nd-desktop-hosts { grid-template-columns: 1fr; max-width: 500px; gap: 12px; }
  .nd-host-card { padding: 22px; }
  .has-notch-demo .price-card { grid-template-columns: 1fr; max-width: 460px; }
  .nd-price-summary { padding: 28px; }
  .nd-price-included { padding: 30px 28px; }
  .has-notch-demo .price-blurb { margin-bottom: 24px; }
  .has-notch-demo .price-alt { font-size: 12px; }
  .has-notch-demo .price .amt { font-size: 72px; }
  .has-notch-demo .closer-line { max-width: 400px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .nd-download-platform { display: none; }
  .nd-masthead .nav-mark { font-size: 20px; gap: 8px; }
  .nd-masthead .mark { width: 32px; height: 30px; }
  .nd-masthead .nd-header-download { padding-inline: 12px; }
}
@media (max-width: 360px) {
  .hero--notch .hero-line { font-size: 49px; }
}
@media (prefers-reduced-motion: reduce) {
  .nd-harnesses a, .nd-harnesses .compat-mark, .nd-host-card { transition: none; }
  .nd-harnesses a:hover { transform: none; }
}
