/* Homepage-only refinements; keep the app demos and shared guide styles intact. */
.home-page {
  --home-green: #107460;
  --home-mist: #eaf3ee;
  --home-border: #d8e0da;
}

.home-page .skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.home-page .skip-link:focus { transform: none; }
.home-page :is(section[id], article[id], main[id]) { scroll-margin-top: 112px; }
.home-page a:focus-visible,
.home-page button:focus-visible,
.home-page summary:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 4px;
}

.home-page .hero { padding: 72px 0 28px; }
.home-starters { background:#f1f6f2; }
.home-starter-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.home-starter-grid>a { display:flex; flex-direction:column; padding:20px 16px; border:1px solid var(--home-border); border-radius:14px; background:#fff; color:var(--ink); text-decoration:none; }
.home-starter-grid>a:hover { border-color:var(--home-green); background:#fafffc; }
.home-starter-grid>a>span { color:var(--home-green); font-size:12px; margin-bottom:10px; }
.home-starter-grid strong { font-size:16px; line-height:1.6; }
.home-starter-grid p { font-size:13px; line-height:1.8; color:var(--muted); margin:10px 0 18px; }
.home-starter-grid small { margin-top:auto; color:var(--home-green); font-size:12px; }
.home-starter-note { font-size:12px; line-height:1.8; color:var(--muted); margin-top:18px; }
@media(max-width:900px) { .home-starter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) { .home-starter-grid { grid-template-columns:1fr; } }
.home-page .hero-grid { gap: 44px; grid-template-columns: 1fr 1.12fr; }
.home-page .hero .eyebrow { color: var(--home-green); font-size: 11px; letter-spacing: .15em; }
.home-page .hero h1 { font-size: clamp(36px, 4.1vw, 58px); line-height: 1.28; letter-spacing: -.055em; margin: 22px 0; }
.home-page .hero h1 em { color: var(--home-green); font-style: normal; }
.home-page .hero .hero-lead { color: var(--ink); font-size: 17px; line-height: 1.9; margin-bottom: 12px; }
.home-page .hero .hero-description { font-size: 14px; line-height: 1.9; max-width: 35em; }
.home-page .hero-actions { gap: 10px; margin-top: 24px; }
.home-page .hero-actions .btn { min-height: 48px; padding: 13px 19px; }
.home-page .hero-actions .primary { background: var(--home-green); border-color: var(--home-green); color: white; box-shadow: 0 7px 18px #10746020; }
.home-page .hero .hero-assurance { font-size: 12px; margin: 12px 0 0; color: var(--muted); }
.home-page .hero-meta { gap: 8px; margin-top: 24px; }
.home-page .hero-meta .pill { padding: 9px 11px; border-color: var(--home-border); background: #ffffff70; box-shadow: none; }
.home-page .hero-meta span { font-size: 11px; }
.home-page .hero-product-shot { transform: none; border-radius: 20px; background: #fff; border-color: #cbd9d4; box-shadow: 0 24px 64px #1b53491b, 0 2px 6px #1b534910; }
.home-page .product-shot-bar { background: #eef3f0; color: var(--ink); border-bottom: 1px solid var(--home-border); }
.home-page .hero-product-shot img { object-fit: contain; background: #f5f7f6; }
.home-page .product-demo-media::after { box-shadow: none; }
.home-page .product-demo-status { position: static; width: auto; margin: 0; padding: 15px 18px; border: 0; border-top: 1px solid var(--home-border); border-radius: 0; background: #f8faf8; color: var(--ink); box-shadow: none; backdrop-filter: none; }
.home-page .product-demo-status small { color: var(--muted); }
.home-page .product-demo-status > span { color: var(--home-green); background: #e0eee6; }
.home-page .product-demo-steps { background: #fff; border-top: 1px solid var(--home-border); }
.home-page .product-demo-steps button { min-height: 44px; color: var(--muted); background: transparent; }
.home-page .product-demo-steps button.is-active { color: var(--home-green); background: var(--home-mist); border-color: #a3c9b9; }
.home-page .product-demo-steps button span { color: inherit; }
.home-page .hero-product-shot figcaption { color: var(--muted); background: white; font-size: 11px; padding: 0 18px 14px; }

.home-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--home-border); border-bottom: 1px solid var(--home-border); }
.home-shortcuts > a { display: flex; align-items: center; gap: 14px; padding: 22px 18px; min-width: 0; transition: background .2s; }
.home-shortcuts > a + a { border-left: 1px solid var(--home-border); }
.home-shortcuts > a:hover { background: #e7f0e880; }
.home-shortcuts .home-shortcut-mark { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; border: 1px solid #b8cfc1; font: 600 13px "Sora", sans-serif; color: var(--home-green); }
.home-shortcuts > a > div { display: grid; gap: 5px; min-width: 0; }
.home-shortcuts strong { font-size: 14px; }
.home-shortcuts div > span { color: var(--muted); font-size: 11px; line-height: 1.6; }
.home-shortcuts > a > span:last-child { margin-left: auto; color: var(--home-green); }

.home-page .home-section { padding: 64px 0; }
.home-page .home-section--features { padding-top: 40px; }
.home-demo-label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; background: var(--home-mist); color: var(--home-green); font-size: 12px; font-weight: 600; white-space: nowrap; }
.home-demo-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.home-page .feature-switcher { border-color: var(--home-border); box-shadow: 0 14px 38px #193e3110; }
.home-page .feature-tabs { background: #eef2ed; }
.home-page .feature-tab { font-size: 12px; overflow-wrap: anywhere; }
.home-page .feature-tab.is-active { background: var(--home-green); box-shadow: none; transform: none; }
.home-page .feature-panel { gap: 32px; padding: 32px; grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr); }
.home-page .feature-panel-copy h3 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.5; }
.home-page .feature-panel-copy p { font-size: 14px; }
.home-page .feature-panel-copy .checklist { font-size: 13px; }
.home-page .lj-app-frame .home-demo-disclosure { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 14px 0 0; }
.home-page .lj-app-frame button:disabled { opacity: .4; cursor: default; }
.home-page .lj-app-frame button:disabled:hover { transform: none; }
.home-page .lj-demo-body,
.home-page .feature-panel-copy,
.home-page .scene-copy { min-width: 0; }
.home-page .feature-panel :is(textarea, input, button, a) { max-width: 100%; }
.home-page .lj-memo-toolbar { overflow-x: auto; }
.home-page .lj-app-frame .lj-demo-status,
.home-page .feature-search-demo .search-demo-message,
.home-page .lj-app-dialog-head p,
.home-page .lj-memo-footer > span { font-size: 11px; line-height: 1.7; }
.home-page .feature-search-demo .lj-demo-search > textarea { height: 44px; font-size: 14px; overflow-y: auto; }
.home-page .feature-search-demo .search-demo-buttons strong { font-size: 14px; }
.home-page .feature-search-demo .search-demo-buttons :is(small, em) { font-size: 10px; }
.home-page .feature-search-demo .search-demo-presets button { min-height: 32px; font-size: 11px; }
.home-page .lj-app-frame .lj-demo-primary { min-height: 36px; font-size: 12px; }
.home-page .lj-memo-editor { font-size: 13px; }
.home-page .lj-demo-availability { margin: 0; padding: 10px 14px; border-top: 1px solid var(--demo-line); color: var(--muted); background: #f8faf9; font-size: 11px; line-height: 1.7; }
.home-page .lj-demo-resume { display: grid; justify-items: start; align-content: center; gap: 16px; min-height: 280px; padding: 24px; }
.home-page .lj-demo-resume p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.home-page .lj-memo-picker { display: grid; gap: 10px; padding: 12px; border: 1px solid #b7d5c8; border-radius: 12px; background: #f3f9f6; }
.home-page .lj-memo-picker > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.home-page .lj-memo-picker [data-memo-picker-close] { padding: 8px; border: 1px solid var(--demo-line); border-radius: 8px; background: white; font-size: 11px; }
.home-page .lj-memo-mode [aria-pressed="true"] { border-color: var(--demo-accent); background: #edf8f2; }
.home-page .lj-memo-editor[aria-readonly="true"] { background: #f8faf9; }
.home-page .lj-memo-editor:focus-visible { outline: 2px solid var(--home-green); outline-offset: 2px; }
.home-page [data-demo-static]:disabled { opacity: .45; cursor: default; }
.home-page [hidden] { display: none !important; }
.home-page .scene-tabs { background: #eef2ed; }
.home-page .scene-panel { gap: 32px; }
.home-page .scene-copy h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.5; }
.home-page .download-stage { border-radius: 24px; }
.home-page .download-start-steps { gap: 10px; }
.home-page .download-actions { gap: 10px; }
.home-page .download-actions .btn { white-space: normal; text-align: center; }
.home-preview-release { margin-top: 24px; padding-top: 18px; border-top: 1px solid #ffffff30; font-size: 13px; }
.home-preview-release summary { cursor: pointer; line-height: 1.7; }
.home-preview-release p { font-size: 12px; line-height: 1.9; color: #d0dbd5; }
.home-preview-release .text-link { color: #a8e2ce; font-size: 12px; }
.home-page .faq details { border-color: var(--home-border); box-shadow: none; }
.home-page .faq summary { padding-right: 32px; line-height: 1.7; }
.home-contact-copy { flex: 1 1 320px; min-width: 0; }
.home-contact-actions { display: grid; gap: 12px; flex: 1 1 320px; min-width: 0; max-width: 420px; }
.home-contact-actions .btn { white-space: normal; text-align: center; }
.home-contact-actions .btn.ghost { color: var(--ink); }
.home-contact-note { font-size: 13px; }

@media (max-width: 980px) {
  .home-page .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-page .hero h1 { font-size: clamp(36px, 6vw, 54px); }
  .home-page .hero-product-shot { width: min(100%, 700px); justify-self: center; }
  .home-page .feature-tabs { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); overflow: visible; }
  .home-page .feature-panel { grid-template-columns: 1fr; }
  .home-page .feature-panel-copy { gap: 12px; }
  .home-shortcuts > a { padding: 18px 12px; gap: 10px; }
  .home-shortcuts .home-shortcut-mark { display: none; }
}

@media (max-width: 640px) {
  .home-page .header-inner { gap: 10px; padding: 13px 0; }
  .home-page .hero { padding: 36px 0 0; }
  .home-page .hero h1 { margin: 16px 0; font-size: clamp(30px, 8.6vw, 44px); }
  .home-page .hero .hero-lead { font-size: 15px; }
  .home-page .hero .hero-description { font-size: 13px; }
  .home-page .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .home-page .hero-actions .btn { font-size: 12px; padding: 12px 7px; white-space: normal; text-align: center; }
  .home-page .hero .hero-assurance { font-size: 11px; }
  .home-page .hero-meta { margin-top: 18px; }
  .home-page .hero-meta strong { font-size: 10px; }
  .home-page .hero-meta span { font-size: 10px; }
  .home-page .product-demo-status { padding: 12px; }
  .home-page .product-demo-status small { display: block; font-size: 10px; line-height: 1.6; }
  .home-page .product-demo-steps button { min-height: 44px; }
  .home-shortcuts { margin-top: 28px; }
  .home-shortcuts > a { padding: 18px 6px; justify-content: center; text-align: center; }
  .home-shortcuts strong { font-size: 12px; }
  .home-shortcuts div > span,
  .home-shortcuts > a > span:last-child { display: none; }
  .home-page .home-section { padding: 44px 0; }
  .home-page .home-section--features { padding-top: 36px; }
  .home-page .section-title h2 { font-size: clamp(24px, 6.7vw, 32px); line-height: 1.5; }
  .home-demo-label { justify-self: start; margin-top: 10px; font-size: 11px; }
  .home-page .feature-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 8px; }
  .home-page .feature-tab { display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 8px; min-height: 44px; border-radius: 8px; }
  .home-page .feature-tab span { width: 23px; height: 23px; font-size: 10px; flex-shrink: 0; border-radius: 6px; }
  .home-page .feature-panel { padding: 22px 14px 16px; gap: 22px; }
  .home-page .feature-panel-copy { padding: 0 5px; }
  .home-page .feature-panel-copy h3 { font-size: 23px; }
  .home-page .feature-panel-copy .checklist { display: none; }
  .home-page .feature-search-demo .lj-demo-search { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-page .feature-search-demo .lj-demo-search > textarea { grid-column: 1 / -1; font-size: 16px; height: 56px; }
  .home-page .feature-search-demo .lj-demo-search > button { width: 100%; min-height: 40px; }
  .home-page .feature-search-demo .search-demo-presets button { min-height: 40px; }
  .home-page .lj-app-frame .lj-demo-primary { min-height: 44px; }
  .home-page .lj-app-field textarea,
  .home-page .lj-share-result input { font-size: 16px; }
  .home-page .lj-transfer-result { grid-template-columns: 1fr; }
  .home-page .lj-memo-mode button,
  .home-page .lj-memo-picker [data-memo-picker-close] { min-height: 40px; }
  .home-page .lj-memo-toolbar { flex-wrap: wrap; overflow: visible; }
  .home-page .lj-memo-toolbar button { min-height: 36px; height: auto; }
  .home-page .lj-memo-editor { font-size: 16px; }
  .home-page .scene-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .home-page .scene-tab { min-width: 0; padding: 12px 8px; font-size: 12px; }
  .home-page .scene-tab span { font-size: 10px; }
  .home-page .scene-panel { padding: 22px 16px; gap: 24px; }
  .home-page .download-main { padding: 24px 20px; }
  .home-page .download-actions { display: grid; grid-template-columns: 1fr; }
  .home-page .download-actions .btn { min-height: 48px; }
  .home-page .home-preview-release { text-align: left; }
  .home-page .faq summary { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.home-page) { scroll-behavior: auto; }
  .home-shortcuts > a { transition: none; }
}

/* Start with the product, then let visitors explore the demos. */
.home-page .home-start-hero { padding: 44px 0 26px; }
.home-page .home-start-hero h1 { margin: 12px 0; font-size: clamp(32px, 4.2vw, 48px); }
.home-page .home-start-hero .hero-lead { margin: 0; max-width: 54em; font-size: 16px; line-height: 1.8; }
.home-page .home-start-hint { color: var(--home-green); font-size: 13px; margin: 16px 0 0; }
.home-start-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.home-start-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--home-border); border-radius: 16px; background: #fff; }
.home-start-card--web { background: #edf7f1; border: 2px solid var(--home-green); padding: 23px; }
.home-start-tag { font-size: 12px; color: var(--home-green); font-weight: 600; }
.home-start-card h2 { font-size: 25px; margin: 10px 0 8px; letter-spacing: -.02em; }
.home-page .home-start-card p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 20px; }
.home-start-actions { display: grid; gap: 10px; margin-top: auto; }
.home-start-actions .btn { display: flex; justify-content: space-between; gap: 8px; min-height: 46px; padding: 12px 14px; font-size: 13px; text-align: left; white-space: normal; }
.home-start-actions .primary { background: var(--home-green); border-color: var(--home-green); color: #fff; }
.home-start-actions .ghost { border-color: #bdcec5; background: #fff; color: var(--ink); }
.home-start-actions small, .home-start-secondary { font-size: 11px; line-height: 1.7; }
.home-start-secondary { color: var(--home-green); text-decoration: underline; text-underline-offset: 3px; }
.home-page .home-start-help { margin: 20px 0 0; font-size: 13px; }
.home-start-help a { text-decoration: underline; text-underline-offset: 4px; }
.home-starter-grid .home-starter-project { border-color: var(--home-green); }
.home-screen-tour { margin-top: 26px; border-top: 1px solid var(--home-border); padding-top: 18px; }
.home-screen-tour > summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.home-screen-tour .hero-product-shot { width: min(100%, 760px); margin: 24px auto 0; }
.home-page #features .home-shortcuts { margin: 0 0 24px; }
@media (max-width: 1100px) {
  .home-start-card { padding: 20px; }
  .home-start-card--web { padding: 19px; }
  .home-starter-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .home-page .home-start-hero { padding: 24px 0; }
  .home-page .home-start-hero h1 { font-size: clamp(29px, 6vw, 40px); }
  .home-page .home-start-hero .hero-lead { font-size: 13px; }
  .home-page .home-start-hint { font-size: 12px; margin-top: 10px; }
  .home-start-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
  .home-start-card--web { grid-column: 1 / -1; }
  .home-start-card { padding: 16px; }
  .home-start-card--web { padding: 15px; }
  .home-start-card h2 { font-size: 21px; margin: 6px 0; }
  .home-page .home-start-card p { font-size: 12px; margin-bottom: 14px; }
  .home-start-actions .btn { font-size: 12px; padding: 10px; }
  .home-start-tag { font-size: 11px; }
  .home-start-card--web .home-start-actions { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; }
  .home-starter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 420px) {
  .home-start-card { padding: 13px; }
  .home-start-card--web { padding: 12px; }
  .home-start-actions .btn { font-size: 11px; padding: 10px 8px; }
  .home-start-card--web .btn { font-size: 13px; }
  .home-start-card--web .home-start-actions { grid-template-columns: 1fr; gap: 6px; }
  .home-starter-grid { grid-template-columns: 1fr; }
}

.home-page .home-start-hero h1 em { display: inline-block; }
.home-start-actions .btn { text-wrap: balance; }

/* Plain-language feature directory. */
.home-capabilities { border-top: 1px solid var(--home-border); background: #f4f7f2; }
.home-capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-capability-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--home-border); border-radius: 14px; background: #fff; min-width: 0; color: inherit; }
.home-capability-card:hover { border-color: var(--home-green); background: #fafff9; }
.home-capability-card:focus-visible { outline: 3px solid var(--home-green); outline-offset: 3px; }
.home-capability-card h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.5; }
.home-capability-card p { margin: 0 0 14px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.home-capability-card small { margin-top: auto; font-size: 11px; line-height: 1.6; color: var(--home-green); }
.home-capability-more { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 22px 0 0; font-size: 13px; }
.home-capability-more a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .home-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .home-capability-grid { grid-template-columns: 1fr; } .home-capability-card { padding: 18px; } }
