.advisor-page, .advisor-home, .advisor-dialog { --ad-ink:#071b40; --ad-deep:#102d46; --ad-blue:#075485; --ad-muted:#425b72; --ad-border:#d4e0eb; --ad-paper:#f3f7fb; color:var(--ad-ink); }
section.advisor-home, .advisor-page .advisor-hero { background:var(--ad-deep); color:white; }
.advisor-home-grid, .advisor-hero-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:clamp(1.5rem,5vw,5rem); align-items:center; padding-block:clamp(2.75rem,7vw,6rem); }
.advisor-home h2, .advisor-hero h1 { color:white; margin:.45rem 0 .9rem; font-size:clamp(2rem,5.4vw,4.2rem); line-height:1.03; letter-spacing:-.045em; }
.advisor-home p, .advisor-hero p { color:#dce9f6; max-width:55ch; }
.advisor-home small { display:block; margin-top:.75rem; color:#dce9f6; }
.advisor-kicker { font-size:.85rem; letter-spacing:.1em; text-transform:uppercase; font-weight:750; margin:0; }
.advisor-home .advisor-kicker, .advisor-hero .advisor-kicker { color:#c3ed9b; }
.advisor-action { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:.6rem .95rem; border:1px solid transparent; border-radius:.45rem; font:inherit; font-weight:700; cursor:pointer; background:var(--ad-blue); color:white; text-decoration:none; max-width:100%; overflow-wrap:anywhere; }
.advisor-action:hover { background:#063d64; color:white; }
.advisor-home .advisor-action, .advisor-hero .advisor-action { background:#d1efac; color:#102d29; }
.advisor-home .advisor-action:hover, .advisor-hero .advisor-action:hover { background:white; }
.advisor-workflow, .advisor-hero-aside { border-left:1px solid #688397; padding-left:clamp(1rem,3vw,2.25rem); }
.advisor-workflow ul { list-style:none; padding:0; margin:.65rem 0 0; }
.advisor-workflow a { display:block; color:white; min-height:44px; padding:.55rem 0; text-underline-offset:.24em; }
.advisor-workflow li+li { border-top:1px solid #526d83; }
.advisor-lead { font-size:clamp(1.05rem,2vw,1.3rem); margin:0 0 1rem; }
.advisor-section { padding-block:clamp(1.8rem,4vw,4rem); }
.advisor-section > p { max-width:68ch; }
.advisor-section h2 { color:var(--ad-ink); margin-top:0; }
.advisor-panel, .advisor-page .advisor-demo { border:1px solid var(--ad-border); background:white; border-radius:.6rem; padding:clamp(.85rem,3vw,1.65rem); }
.advisor-panel { margin-top:1.15rem; }
.advisor-page .advisor-demos { background:var(--ad-paper); padding:0; }
.advisor-demo { margin-top:1.25rem; scroll-margin-top:6rem; }
.advisor-demo h3, .advisor-demo h4, .advisor-panel h3 { margin-top:0; }
.advisor-demo h4 { font-size:1.1rem; }
.advisor-page #discover { scroll-margin-top:5.5rem; }
.advisor-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; }
.advisor-page :is(input,textarea,select), .advisor-dialog :is(input,textarea,select) { display:block; width:100%; padding:.5rem .7rem; min-height:44px; color:var(--ad-ink); background:white; border:1px solid #8196ab; border-radius:.35rem; font:inherit; }
.advisor-field { display:block; margin-bottom:.75rem; font-weight:650; min-width:0; }
.advisor-field > :is(input,textarea,select) { margin-top:.3rem; font-weight:400; }
.advisor-controls, .advisor-demo-links, .advisor-languages, .advisor-starters { display:flex; flex-wrap:wrap; gap:.5rem; align-items:start; }
.advisor-demo-links { margin-block:1rem; }
.advisor-starters { margin:.65rem 0 1rem; }
.advisor-secondary, .advisor-languages button, .advisor-demo-links a { display:inline-flex; align-items:center; min-height:44px; padding:.4rem .75rem; border:1px solid #a6b9cc; border-radius:.35rem; background:white; color:var(--ad-deep); font:inherit; font-weight:650; cursor:pointer; max-width:100%; overflow-wrap:anywhere; }
.advisor-secondary:hover, .advisor-demo-links a:hover { background:#e5f0fa; }
.advisor-languages button[aria-pressed="true"] { background:#d1efac; color:#102d29; border-color:#d1efac; }
.advisor-muted { color:var(--ad-muted); font-size:.94rem; }
.advisor-output { min-height:2rem; margin-block:.85rem 0; overflow-wrap:anywhere; }
.advisor-output:not(:empty), .advisor-sample { background:var(--ad-paper); border-left:3px solid #398069; padding:.8rem; overflow-wrap:anywhere; }
.advisor-output :first-child, .advisor-sample :first-child { margin-top:0; }
.advisor-output :last-child, .advisor-sample :last-child { margin-bottom:0; }
.advisor-sample + .advisor-sample { margin-top:1rem; }
.advisor-sample canvas { display:block; width:100%; height:auto; margin-block:.5rem; }
.advisor-appointments { padding-left:1.25rem; }
.advisor-appointments li { margin-bottom:.75rem; }
.advisor-launcher { position:fixed; right:max(.65rem,env(safe-area-inset-right)); bottom:max(.65rem,env(safe-area-inset-bottom)); z-index:20; display:inline-flex; align-items:center; justify-content:center; min-height:44px; max-width:calc(100% - 1.3rem); overflow-wrap:anywhere; border-radius:.5rem; padding:.45rem .75rem; background:#102d46; border:1px solid #8cb0ce; color:white; text-decoration:none; font-weight:700; box-shadow:0 4px 14px #071b4026; }
.advisor-launcher:hover { color:white; background:#075485; }
.advisor-launcher[hidden], body:has(.advisor-dialog[open]) .advisor-launcher { display:none; }
.footer { padding-bottom:max(4rem,calc(env(safe-area-inset-bottom) + 3rem)); }
.advisor-dialog { background:white; margin:auto max(.65rem,env(safe-area-inset-right)) max(.65rem,env(safe-area-inset-bottom)) auto; width:min(31rem,calc(100% - 1.3rem)); max-width:none; max-height:calc(100% - 1.3rem); max-height:calc(100dvh - 1.3rem); padding:clamp(.8rem,3vw,1.3rem); overflow:auto; border:1px solid var(--ad-border); border-radius:.65rem; box-shadow:0 14px 35px #071b4033; }
.advisor-dialog:not([open]) { display:none; }
.advisor-dialog::backdrop { background:#071b4066; }
.advisor-dialog-head { display:flex; gap:.5rem; justify-content:space-between; align-items:center; }
.advisor-dialog-head p { margin:0; font-size:1.2rem; font-weight:760; }
.advisor-dialog-head button { min-width:44px; min-height:44px; font:inherit; font-size:1.5rem; cursor:pointer; background:var(--ad-paper); border:1px solid var(--ad-border); border-radius:.35rem; color:var(--ad-deep); }
:is(.advisor-page,.advisor-home,.advisor-dialog) :focus-visible, .advisor-launcher:focus-visible { outline:3px solid #1481c4; outline-offset:3px; }
.advisor-hero :focus-visible, .advisor-home :focus-visible { outline-color:#c3ed9b; }
@media(max-width:700px) {
  .advisor-home-grid, .advisor-hero-grid, .advisor-grid { grid-template-columns:minmax(0,1fr); }
  .advisor-launcher { font-size:.82rem; }
}
@media(prefers-reduced-motion:no-preference) {
  .advisor-dialog[open] { animation:advisor-appear .16s ease-out both; }
  @keyframes advisor-appear { from { opacity:0; translate:0 .35rem; } to { opacity:1; translate:0 0; } }
}
.advisor-hero { padding:0; }
.advisor-field[hidden] { display:none; }
.advisor-starters button[aria-pressed="true"] { background:#dfecf7; border-color:#6486a5; }
.advisor-home { padding:0; }
.advisor-suggestions { margin-block:.65rem; }
.advisor-suggestions summary { min-height:44px; padding:.55rem 0; cursor:pointer; color:var(--ad-blue); font-weight:680; }
.advisor-page, .advisor-home, .advisor-dialog { overflow-wrap:anywhere; }
.advisor-hero-grid > *, .advisor-home-grid > *, .advisor-grid > *, .advisor-field :is(input,textarea,select) { min-inline-size:0; }
.advisor-field :is(input,textarea,select) { max-inline-size:100%; }
.advisor-profile { margin-block:1rem; padding-top:.9rem; border-top:1px solid var(--ad-border); }
.advisor-profile-head { margin-bottom:.2rem; }
.advisor-profile dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.85rem 1.5rem; margin:.75rem 0 0; }
.advisor-profile dt { font-size:.8rem; letter-spacing:.06em; text-transform:uppercase; font-weight:750; color:var(--ad-blue); }
.advisor-profile dd { margin:.2rem 0 0; }
.advisor-profile dd ul { margin:0; padding-left:1.1rem; }
.advisor-dialog .advisor-profile dl { grid-template-columns:minmax(0,1fr); }
@media(max-width:700px) { .advisor-profile dl { grid-template-columns:minmax(0,1fr); } }
/* --- Phase 2/3: conversation, studio, blueprint, website check, request form --- */
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.advisor-greeting { font-size:1.05rem; margin-top:0; }
.advisor-note { margin-top:0; }
.advisor-thread { display:flex; flex-direction:column; gap:.75rem; margin:1rem 0; }
.advisor-thread[hidden] { display:none; }
.advisor-message { max-width:min(46rem,100%); }
.advisor-message-body > :first-child { margin-top:0; }
.advisor-message-body > :last-child { margin-bottom:0; }
.advisor-user { align-self:flex-end; }
.advisor-user .advisor-message-body { background:var(--ad-deep); color:white; padding:.65rem .9rem; border-radius:.5rem .5rem .1rem .5rem; }
.advisor-user .advisor-message-body p { color:inherit; }
.advisor-assistant .advisor-message-body { background:var(--ad-paper); border-left:3px solid #398069; padding:.8rem .95rem; border-radius:0 .5rem .5rem 0; }
.advisor-assistant ul { padding-left:1.15rem; }
.advisor-mode { font-size:.75rem; letter-spacing:.08em; text-transform:uppercase; font-weight:750; color:var(--ad-muted); }
.advisor-actions { margin-top:.75rem; }
.advisor-typing { color:var(--ad-muted); font-style:italic; }
.advisor-typing[hidden] { display:none; }
.advisor-ask textarea { resize:vertical; min-height:3.2rem; }
.advisor-dialog .advisor-thread { max-height:none; }
.advisor-jump { display:grid; gap:.15rem; margin-top:1rem; }
.advisor-jump a { color:white; min-height:44px; display:flex; align-items:center; border-bottom:1px solid #526d83; text-underline-offset:.24em; }
.advisor-hero .advisor-jump a:hover { color:#c3ed9b; }
.advisor-call { margin-top:1.25rem; display:flex; flex-wrap:wrap; gap:.75rem; align-items:center; }
.advisor-check { display:flex; gap:.6rem; align-items:flex-start; margin:.6rem 0; font-weight:500; }
.advisor-check input { width:1.3rem; height:1.3rem; min-height:0; margin-top:.15rem; flex:none; accent-color:var(--ad-blue); }
.advisor-check[hidden] { display:none; }
.advisor-lead textarea { min-height:6rem; }
/* Demo studio */
.studio-tabs { display:flex; flex-wrap:wrap; gap:.4rem; margin:1.25rem 0; }
.studio-tab { min-height:44px; padding:.45rem .8rem; border:1px solid #a6b9cc; border-radius:.35rem; background:white; color:var(--ad-deep); font:inherit; font-weight:650; cursor:pointer; }
.studio-tab:hover { background:#e5f0fa; }
.studio-tab[aria-selected="true"] { background:var(--ad-deep); border-color:var(--ad-deep); color:white; }
.advisor-page .studio-panel { padding:clamp(.85rem,3vw,1.65rem); background:white; border:1px solid var(--ad-border); border-radius:.6rem; scroll-margin-top:6rem; }
.studio-panel[hidden] { display:none; }
.studio-panel h3 { margin-top:0; }
.studio-intro { font-size:1.05rem; max-width:62ch; }
.studio-discuss { margin-top:1.25rem; }
.advisor-sample h5, .studio-demo h5 { font-size:.95rem; margin:1rem 0 .35rem; color:var(--ad-deep); }
.demo-list { list-style:none; padding:0; margin:.25rem 0; }
.demo-list li { padding:.5rem 0; border-bottom:1px solid var(--ad-border); display:flex; flex-wrap:wrap; gap:.35rem; align-items:center; }
.demo-list li:last-child { border-bottom:0; }
.demo-steps { list-style:none; padding:0; display:flex; flex-wrap:wrap; gap:.35rem; }
.demo-steps li { padding:.3rem .55rem; border:1px solid var(--ad-border); border-radius:.3rem; font-size:.9rem; color:var(--ad-muted); background:white; }
.demo-steps li.done { color:#235d4a; border-color:#9ac7b6; }
.demo-steps li.done::before { content:"✓ "; }
.demo-steps li.current { background:var(--ad-deep); color:white; border-color:var(--ad-deep); font-weight:700; }
.demo-messages { list-style:none; padding:0; }
.demo-messages li { padding:.45rem .6rem; margin:.3rem 0; background:white; border:1px solid var(--ad-border); border-radius:.35rem; }
.demo-messages li.from-customer { border-left:3px solid var(--ad-blue); }
.demo-inline { display:flex; gap:.5rem; flex-wrap:wrap; margin-top:.75rem; }
.demo-inline input { flex:1 1 12rem; min-width:0; }
.demo-board { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
.demo-column { background:white; border:1px solid var(--ad-border); border-radius:.4rem; padding:.5rem; min-width:0; }
.demo-column h5 { margin:.1rem 0 .4rem; font-size:.85rem; text-transform:uppercase; letter-spacing:.05em; color:var(--ad-muted); }
.demo-card { display:block; width:100%; text-align:left; min-height:44px; margin:.25rem 0; padding:.4rem .55rem; border:1px solid #a6b9cc; border-radius:.35rem; background:white; color:var(--ad-deep); font:inherit; font-weight:650; cursor:pointer; overflow-wrap:anywhere; }
.demo-card.is-selected { border-color:var(--ad-blue); box-shadow:inset 3px 0 0 var(--ad-blue); }
.demo-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(8rem,1fr)); gap:.5rem; margin:.5rem 0 1rem; }
.demo-kpi { background:white; border:1px solid var(--ad-border); border-radius:.4rem; padding:.55rem .7rem; }
.demo-kpi span { display:block; font-size:.82rem; color:var(--ad-muted); }
.demo-kpi strong { font-size:1.15rem; color:var(--ad-ink); }
.demo-chart { width:100%; height:auto; max-height:16rem; display:block; background:white; border:1px solid var(--ad-border); border-radius:.4rem; }
.demo-chart text { font-size:3px; fill:#425b72; }
.bar-rev { fill:#075485; }
.bar-exp { fill:#8fb9a8; }
.demo-legend { display:flex; gap:1rem; font-size:.9rem; }
.demo-legend span::before { content:""; display:inline-block; width:.8rem; height:.8rem; margin-right:.35rem; vertical-align:-.05rem; }
.key-rev::before { background:#075485; }
.key-exp::before { background:#8fb9a8; }
.demo-bars { list-style:none; padding:0; }
.demo-bars li { display:grid; gap:.2rem; margin:.45rem 0; }
.demo-bars meter, .check-meters meter { width:100%; height:.7rem; }
.demo-timeline { padding-left:1.25rem; }
.demo-timeline li { margin:.4rem 0; }
.demo-receipt { display:grid; grid-template-columns:auto auto; justify-content:start; gap:.3rem 1.5rem; margin:1rem 0; }
.demo-receipt dd { margin:0; }
/* Blueprint */
.bp-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:clamp(1rem,3vw,2.5rem); align-items:start; margin-top:1.25rem; }
.bp-builder h3 { margin:0 0 .6rem; font-size:1.15rem; }
.bp-builder h3 + * { margin-bottom:1.5rem; }
.bp-foundations { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
.bp-option, .bp-feature { display:block; border:1px solid var(--ad-border); border-radius:.45rem; background:white; padding:.75rem .85rem; cursor:pointer; min-width:0; }
.bp-option { display:flex; gap:.6rem; align-items:flex-start; font-weight:400; }
.bp-option.is-selected, .bp-feature.is-selected { border-color:var(--ad-blue); box-shadow:inset 3px 0 0 var(--ad-blue); }
.bp-option input, .bp-feature input { width:1.2rem; height:1.2rem; min-height:0; margin-top:.2rem; flex:none; accent-color:var(--ad-blue); }
.bp-option-text { display:grid; gap:.15rem; min-width:0; }
.bp-price { color:#235d4a; font-weight:700; font-size:.95rem; }
.bp-group { border:0; padding:0; margin:0 0 1.25rem; min-width:0; }
.bp-group legend { font-weight:750; font-size:.8rem; letter-spacing:.08em; text-transform:uppercase; color:var(--ad-muted); margin-bottom:.5rem; padding:0; }
.bp-feature { margin-bottom:.5rem; cursor:default; }
.bp-feature-main { display:flex; gap:.6rem; align-items:flex-start; font-weight:400; cursor:pointer; margin:0; }
.bp-level { margin:.6rem 0 0 1.8rem; }
.bp-summary { position:sticky; top:6.5rem; background:var(--ad-paper); border:1px solid var(--ad-border); border-radius:.6rem; padding:clamp(.85rem,2.5vw,1.4rem); }
.bp-summary h3 { margin:0 0 .5rem; }
.bp-summary h4 { margin:1rem 0 .4rem; font-size:1rem; }
.bp-diagram { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:.5rem; align-items:center; margin-bottom:1rem; }
.bp-core { background:var(--ad-deep); color:white; padding:.6rem .8rem; border-radius:.45rem; text-align:center; display:grid; gap:.1rem; max-width:11rem; }
.bp-core .advisor-kicker { color:#c3ed9b; font-size:.7rem; }
.bp-node-list { list-style:none; padding:0; margin:0; display:grid; gap:.35rem; }
.bp-node { background:white; border:1px solid #a6b9cc; border-radius:.35rem; padding:.3rem .5rem; font-size:.85rem; position:relative; overflow-wrap:anywhere; }
.bp-left .bp-node::after, .bp-right .bp-node::before { content:""; position:absolute; top:50%; width:.5rem; border-top:2px solid #6486a5; }
.bp-left .bp-node::after { right:-.55rem; }
.bp-right .bp-node::before { left:-.55rem; }
.bp-totals { display:grid; gap:.5rem; }
.bp-total { display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; background:white; border:1px solid var(--ad-border); border-radius:.4rem; padding:.6rem .75rem; }
.bp-total strong { font-size:1.2rem; color:var(--ad-ink); }
.bp-lines { list-style:none; padding:0; margin:.75rem 0; font-size:.9rem; }
.bp-lines li { display:flex; justify-content:space-between; gap:.75rem; padding:.3rem 0; border-bottom:1px dashed var(--ad-border); flex-wrap:wrap; }
.bp-benefits { padding-left:1.1rem; font-size:.94rem; }
.bp-suggestion { display:flex; gap:.6rem; align-items:center; justify-content:space-between; flex-wrap:wrap; background:white; border:1px solid var(--ad-border); border-radius:.4rem; padding:.5rem .65rem; margin-bottom:.4rem; }
.bp-suggestion p { margin:0; flex:1 1 12rem; font-size:.92rem; }
.bp-disclaimers { font-size:.84rem; color:var(--ad-muted); padding-left:1.1rem; }
.bp-actions { margin-top:1rem; }
/* Website check */
.check-form { max-width:36rem; }
.check-results h4 { margin:1.1rem 0 .4rem; }
.check-meters { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(9rem,1fr)); gap:.6rem; }
.check-meters li { background:var(--ad-paper); border:1px solid var(--ad-border); border-radius:.4rem; padding:.6rem; display:grid; gap:.2rem; }
.check-score { font-size:1.5rem; font-weight:800; color:var(--ad-ink); }
.check-findings { list-style:none; padding:0; }
.check-findings li { display:grid; grid-template-columns:auto auto minmax(0,1fr); gap:.5rem; align-items:baseline; padding:.55rem 0; border-bottom:1px solid var(--ad-border); }
.check-level { font-size:.75rem; font-weight:750; text-transform:uppercase; letter-spacing:.05em; padding:.15rem .4rem; border-radius:.25rem; border:1px solid currentColor; white-space:nowrap; }
.check-issue .check-level { color:#9b2c1f; }
.check-attention .check-level { color:#7a5200; }
.check-good .check-level { color:#235d4a; }
.check-cat { font-size:.85rem; color:var(--ad-muted); white-space:nowrap; }
@media(max-width:900px) {
  .bp-layout { grid-template-columns:minmax(0,1fr); }
  .bp-summary { position:static; }
}
@media(max-width:560px) {
  .bp-foundations, .demo-board { grid-template-columns:minmax(0,1fr); }
  .bp-diagram { grid-template-columns:minmax(0,1fr); }
  .bp-core { max-width:none; order:-1; }
  .bp-left .bp-node::after, .bp-right .bp-node::before { display:none; }
  .check-findings li { grid-template-columns:minmax(0,1fr); }
  .advisor-message { max-width:100%; }
}
@media print {
  .site-header, .footer, .advisor-launcher, .advisor-hero, #discover, #demos, #website-check, #consultation, .bp-builder, .bp-actions, .top { display:none !important; }
  .bp-layout { grid-template-columns:1fr; }
  .bp-summary { position:static; border:0; background:white; }
  #blueprint::before { content:"TransCanada Digital · Preliminary project blueprint · (780) 807-5710"; display:block; font-weight:700; margin-bottom:1rem; }
}
@media(prefers-reduced-motion:reduce) { .advisor-page * { scroll-behavior:auto !important; } }
/* WebKit sizes <select> to its longest option; keep long level labels inside the card. */
.bp-level select, .advisor-page select, .advisor-dialog select { min-inline-size:0; max-inline-size:100%; overflow:hidden; text-overflow:ellipsis; }
.bp-level { min-width:0; overflow:hidden; }
@media(max-width:560px) { .bp-level { margin-left:0; } }
/* WebKit reports a select's internal label as layout overflow at large text sizes.
   Clip it at the field, keeping a 3px gutter so focus outlines remain fully visible. */
.advisor-field { overflow:hidden; padding:3px; margin-inline:-3px; }
.advisor-field :focus-visible { outline-offset:0; }

/* Compact launcher: a round icon that opens to its label on hover or keyboard focus,
   so it no longer covers cards and buttons while people read. */
.advisor-launcher { justify-content:flex-start; gap:.55rem; width:auto; max-width:52px; height:52px; min-height:52px; padding:0; border-radius:999px; overflow:hidden; white-space:nowrap; overflow-wrap:normal; transition:max-width .25s ease, background .2s; }
.advisor-launcher svg { flex:none; width:22px; height:22px; margin-left:14px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; }
.advisor-launcher-text { padding-right:1.1rem; font-size:.9rem; opacity:0; transition:opacity .2s; }
.advisor-launcher:hover, .advisor-launcher:focus-visible { max-width:17rem; }
.advisor-launcher:hover .advisor-launcher-text, .advisor-launcher:focus-visible .advisor-launcher-text { opacity:1; }
@media (prefers-reduced-motion:reduce) { .advisor-launcher, .advisor-launcher-text { transition:none; } }
