.askjary-page {
  --aj-ink: #17161b;
  --aj-muted: #686268;
  --aj-line: #ddd6cc;
  --aj-surface: #fffdf9;
  --aj-blue: #1f5e75;
  --aj-green: #27624d;
  --aj-amber: #a65320;
  letter-spacing: 0;
}

.askjary-page h1,
.askjary-page h2,
.askjary-page h3,
.askjary-page h4,
.askjary-page .brand-word,
.askjary-page .btn { letter-spacing: 0; }

.aj-hero { padding: clamp(64px, 8vw, 104px) 0 72px; overflow: hidden; }
.aj-hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr); gap: clamp(44px, 7vw, 92px); align-items: center; }
.aj-product-mark { display: inline-flex; align-items: center; gap: 13px; margin-bottom: 24px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; color: var(--aj-muted); }
.aj-product-mark img { width: 38px; height: 30px; object-fit: contain; }
.aj-product-mark b { color: var(--aj-ink); font-size: 14px; }
.aj-hero h1 { max-width: 12ch; font-size: clamp(3rem, 5.8vw, 5.4rem); line-height: .98; }
.aj-hero h1 span { color: var(--accent); }
.aj-hero-copy > p { max-width: 57ch; margin-top: 26px; color: var(--aj-muted); font-size: clamp(1.08rem, 1.45vw, 1.27rem); line-height: 1.55; }
.aj-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.aj-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--aj-muted); font-size: 13px; }
.aj-proof span { display: inline-flex; align-items: center; gap: 7px; }
.aj-proof svg { width: 16px; height: 16px; color: var(--aj-green); }

.aj-workspace { min-height: 510px; border: 1px solid #d9d3cb; border-radius: 8px; background: #f7f8f6; box-shadow: 0 26px 70px -44px rgba(30, 27, 32, .5); overflow: hidden; }
.aj-workspace-bar { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #dedad3; background: #fff; }
.aj-workspace-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.aj-workspace-brand img { width: 25px; height: 21px; object-fit: contain; }
.aj-live { display: flex; align-items: center; gap: 7px; color: var(--aj-green); font-size: 12px; font-weight: 700; }
.aj-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #35a56f; box-shadow: 0 0 0 5px rgba(53, 165, 111, .12); }
.aj-workspace-body { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: 458px; }
.aj-side { padding: 18px 12px; border-right: 1px solid #dedad3; background: #f2f0ec; }
.aj-side-label { margin: 0 8px 12px; font-family: var(--font-mono); color: #8a8381; font-size: 9px; text-transform: uppercase; }
.aj-side button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 10px; border: 0; border-radius: 6px; background: transparent; color: #777170; font: inherit; font-size: 12px; text-align: left; }
.aj-side button:first-of-type { background: #fff; color: var(--aj-ink); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.aj-side svg { width: 15px; height: 15px; }
.aj-chat { position: relative; display: flex; flex-direction: column; padding: 24px; min-width: 0; }
.aj-chat-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid #e4e0da; }
.aj-chat-title strong { font-size: 14px; }
.aj-chat-title span { color: #807a78; font-size: 11px; }
.aj-turns { flex: 1; display: flex; flex-direction: column; gap: 15px; padding: 22px 0 12px; }
.aj-turn { max-width: 85%; padding: 12px 14px; border-radius: 8px; background: #fff; border: 1px solid #e2ddd6; font-size: 13px; line-height: 1.45; opacity: .22; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease, border-color .35s ease; }
.aj-turn.is-active { opacity: 1; transform: none; border-color: #c6b9ea; }
.aj-turn.is-complete { opacity: .72; transform: none; }
.aj-turn-user { align-self: flex-end; background: #241f2d; color: #fff; border-color: #241f2d; }
.aj-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 100%; padding: 12px; }
.aj-flow-step { min-width: 0; padding: 9px 6px; border-radius: 6px; background: #f4f1ec; color: #7c7672; text-align: center; }
.aj-flow-step svg { width: 17px; height: 17px; margin: 0 auto 5px; }
.aj-flow-step span { display: block; font-size: 10px; font-weight: 700; }
.aj-flow-step.is-active { background: #ece5fb; color: #4e29b4; }
.aj-flow-step.is-done { background: #e6f1eb; color: var(--aj-green); }
.aj-result { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.aj-result svg { width: 19px; height: 19px; color: var(--aj-green); margin-top: 2px; }
.aj-composer { height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px 0 15px; border: 1px solid #d9d3cb; border-radius: 7px; background: #fff; color: #928b87; font-size: 12px; }
.aj-composer svg { width: 28px; height: 28px; padding: 7px; border-radius: 6px; background: var(--accent); color: #fff; }

.aj-section { padding: clamp(68px, 8vw, 104px) 0; border-top: 1px solid var(--aj-line); }
.aj-section.is-white { background: var(--aj-surface); }
.aj-section-head { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: end; margin-bottom: 42px; }
.aj-section-head h2 { margin-top: 12px; max-width: 13ch; font-size: clamp(2.2rem, 4vw, 4rem); }
.aj-section-head > p { max-width: 56ch; color: var(--aj-muted); font-size: 18px; }

.aj-outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--aj-line); border-bottom: 1px solid var(--aj-line); }
.aj-outcome { padding: 30px 28px 32px; border-left: 1px solid var(--aj-line); }
.aj-outcome:first-child { border-left: 0; }
.aj-outcome svg { width: 25px; height: 25px; margin-bottom: 36px; color: var(--aj-blue); }
.aj-outcome:nth-child(2) svg { color: var(--aj-amber); }
.aj-outcome:nth-child(3) svg { color: var(--aj-green); }
.aj-outcome h3 { font-size: 21px; }
.aj-outcome p { margin-top: 12px; color: var(--aj-muted); font-size: 15px; }

.aj-plan-switch { display: flex; gap: 5px; width: max-content; margin-bottom: 28px; padding: 4px; border: 1px solid var(--aj-line); border-radius: 8px; background: #f1ede7; }
.aj-plan-switch button { min-width: 132px; padding: 10px 16px; border: 0; border-radius: 5px; background: transparent; color: var(--aj-muted); font: inherit; font-weight: 700; cursor: pointer; }
.aj-plan-switch button[aria-selected="true"] { background: #fff; color: var(--aj-ink); box-shadow: 0 1px 4px rgba(35, 30, 34, .09); }
.aj-plan-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--aj-line); border-radius: 8px; background: #fff; overflow: hidden; }
.aj-plan { display: grid; grid-template-rows: auto auto auto 1fr auto; padding: 34px; }
.aj-plan + .aj-plan { border-left: 1px solid var(--aj-line); background: #f7f3ff; }
.aj-plan-label { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.aj-plan-label h3 { font-size: 28px; }
.aj-plan-label span { padding: 5px 9px; border-radius: 999px; background: #e8f1ec; color: var(--aj-green); font-size: 11px; font-weight: 700; }
.aj-price { margin-top: 28px; font-family: var(--font-display); font-size: 38px; font-weight: 800; line-height: 1; }
.aj-price small { display: block; margin-top: 9px; color: var(--aj-muted); font-family: var(--font-text); font-size: 13px; font-weight: 500; }
.aj-plan > p { margin-top: 24px; color: var(--aj-muted); }
.aj-feature-list { list-style: none; padding: 0; margin: 24px 0 30px; }
.aj-feature-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(120,112,110,.14); font-size: 14px; }
.aj-feature-list svg { width: 16px; height: 16px; color: var(--aj-green); margin-top: 3px; }
.aj-plan .btn { width: max-content; }

.aj-knowledge-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: center; }
.aj-knowledge-copy h2 { margin: 14px 0 22px; max-width: 11ch; font-size: clamp(2.25rem, 4vw, 4rem); }
.aj-knowledge-copy > p { max-width: 48ch; color: var(--aj-muted); font-size: 18px; }
.aj-knowledge-map { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; position: relative; }
.aj-knowledge-node { min-height: 146px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid var(--aj-line); border-radius: 8px; background: #fff; }
.aj-knowledge-node svg { width: 23px; height: 23px; color: var(--aj-blue); }
.aj-knowledge-node h3 { margin-top: 26px; font-size: 18px; }
.aj-knowledge-node p { margin-top: 7px; color: var(--aj-muted); font-size: 13px; }
.aj-knowledge-node.is-hippo { grid-column: 1 / -1; min-height: 170px; color: #fff; background: #1c1a21; border-color: #1c1a21; }
.aj-knowledge-node.is-hippo svg { color: #dfcfff; }
.aj-knowledge-node.is-hippo p { color: rgba(255,255,255,.7); }

.aj-connectors { display: grid; grid-template-columns: 190px 1fr; gap: 34px; align-items: start; }
.aj-connector-status { border-right: 1px solid var(--aj-line); padding-right: 28px; }
.aj-connector-status h3 { font-size: 17px; }
.aj-connector-status p { margin-top: 9px; color: var(--aj-muted); font-size: 13px; }
.aj-logo-cloud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--aj-line); border: 1px solid var(--aj-line); }
.aj-logo { min-height: 104px; display: flex; align-items: center; justify-content: center; gap: 11px; padding: 18px 12px; background: var(--aj-surface); }
.aj-logo img { width: 30px; height: 30px; object-fit: contain; }
.aj-logo span { font-size: 13px; font-weight: 700; }
.aj-status-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 18px; color: var(--aj-muted); font-size: 13px; }
.aj-status-row b { color: var(--aj-ink); }

.aj-case-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.aj-case-link { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; min-height: 180px; padding: 24px; border: 1px solid var(--aj-line); border-radius: 8px; background: #fff; transition: transform .2s ease, border-color .2s ease; }
.aj-case-link:hover { transform: translateY(-3px); border-color: #aaa0bc; }
.aj-case-link small { color: var(--aj-muted); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.aj-case-link h3 { margin-top: 34px; font-size: 20px; }
.aj-case-link svg { width: 20px; height: 20px; color: var(--accent); }

.aj-cta { padding: 80px 0; background: #1b1920; color: #fff; }
.aj-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.aj-cta h2 { max-width: 14ch; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.aj-cta p { max-width: 48ch; margin-top: 16px; color: rgba(255,255,255,.68); }
.aj-cta .btn-ghost { color: #fff; border-color: #706b78; }

@media (max-width: 1020px) {
  .aj-hero-grid, .aj-knowledge-layout { grid-template-columns: 1fr; }
  .aj-workspace { max-width: 720px; }
  .aj-section-head { grid-template-columns: 1fr; gap: 20px; }
  .aj-section-head h2 { max-width: 16ch; }
}

@media (max-width: 1080px) {
  .askjary-page .nav-links { display: none; }
  .askjary-page .nav-toggle { display: inline-flex; }
  .askjary-page .nav-links.open {
    display: flex; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    max-height: calc(100vh - 70px); overflow-y: auto;
    padding: 16px var(--gutter) 22px; background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .askjary-page .nav-links.open > a,
  .askjary-page .nav-links.open .mega-trigger { width: 100%; padding: 10px 0; font-size: 17px; }
  .askjary-page .nav-item { width: 100%; }
  .askjary-page .academy-mega-toggle,
  .askjary-page .academy-mega-panel { display: none; }
}

@media (max-width: 760px) {
  .aj-hero { padding-top: 48px; }
  .aj-hero h1 { font-size: clamp(2.7rem, 13vw, 4.15rem); }
  .aj-actions { flex-direction: column; align-items: stretch; }
  .aj-actions .btn { width: 100%; }
  .aj-workspace { min-height: 438px; }
  .aj-workspace-body { grid-template-columns: 1fr; min-height: 386px; }
  .aj-side { display: none; }
  .aj-chat { padding: 18px; }
  .aj-outcome-grid, .aj-plan-grid, .aj-case-links { grid-template-columns: 1fr; }
  .aj-outcome { border-left: 0; border-top: 1px solid var(--aj-line); }
  .aj-outcome:first-child { border-top: 0; }
  .aj-plan + .aj-plan { border-left: 0; border-top: 1px solid var(--aj-line); }
  .aj-connectors { grid-template-columns: 1fr; }
  .aj-connector-status { border-right: 0; border-bottom: 1px solid var(--aj-line); padding: 0 0 20px; }
  .aj-logo-cloud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aj-cta .wrap { align-items: stretch; flex-direction: column; }
  .aj-cta .btn { width: 100%; }
}

@media (max-width: 430px) {
  .aj-workspace { min-height: 460px; }
  .aj-chat { padding: 14px; }
  .aj-turn { max-width: 92%; }
  .aj-flow { gap: 5px; padding: 9px; }
  .aj-flow-step { padding-inline: 3px; }
  .aj-plan { padding: 26px 20px; }
  .aj-knowledge-map { grid-template-columns: 1fr; }
  .aj-knowledge-node.is-hippo { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .aj-turn, .aj-case-link { transition: none; }
}
