/* AI Lead Intake Diagnostic cluster. Sits on top of site.css and site-chrome.css (shared header, footer, Osi accent).
   One product bar, one Osi figure, legal prose, plan cards. No painted art, no scroll effects. */

/* product bar under the site header */
.alid-bar { border-bottom: 1px solid var(--line); background: #fff; }
.alid-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding-top: 8px; padding-bottom: 8px; }
.alid-bar .name { font-weight: 700; font-size: var(--fs-1); color: var(--ink); text-decoration: none; margin-right: 12px; white-space: nowrap; }
.alid-bar a.l { font-size: var(--fs-1); font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: var(--r-sm); white-space: nowrap; }
.alid-bar a.l:hover, .alid-bar a.l[aria-current=page] { color: var(--ink); background: var(--bg-2); }
.alid-bar a.l[aria-current=page] { font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.alid-bar .sep { width: 1px; height: 16px; background: var(--line); margin: 0 6px; }
@media (max-width: 700px) { .alid-bar .name { width: 100%; margin: 0 0 2px; } .alid-bar .sep { display: none; } }

/* Osi: the mascot on every page of the cluster (still of the web model; swap the file for a skin) */
.alid-osi { margin: 0; display: flex; justify-content: center; align-items: flex-end; }
.alid-osi img { display: block; width: min(100%, 380px); height: auto; transform-origin: 50% 100%; animation: alid-breathe 6s ease-in-out infinite; }
.alid-osi.sm img { width: 100%; max-width: 190px; }
@keyframes alid-breathe { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-4px) scale(1.012, .988); } }
@media (prefers-reduced-motion: reduce) { .alid-osi img { animation: none; } }
.hero-grid.has-osi { grid-template-columns: minmax(0, 1fr) 190px; align-items: center; gap: 40px; }
.hero-grid.has-osi.big { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
@media (max-width: 900px) {
  .hero-grid.has-osi, .hero-grid.has-osi.big { grid-template-columns: 1fr; }
  .alid-osi.sm { order: -1; justify-content: flex-start; }
  .alid-osi.sm img { width: 104px; }
  .alid-osi.big img { width: min(70%, 260px); }
}
.hero h1 { max-width: 20ch; }
.hero .hero-link { display: inline-block; margin-left: 4px; font-weight: 600; font-size: var(--fs-2); }

/* home */
.step-n { font-size: var(--fs-1); font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.fact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fact-list li { margin: 0; padding-left: 26px; position: relative; color: var(--ink-2); }
.fact-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.cta-band .alid-fine { margin-top: 10px; font-size: var(--fs-1); color: #B9C4D0; }

/* legal prose: wording untouched, only the shell is on brand */
.legal { max-width: 760px; min-width: 0; overflow-wrap: break-word; }
.legal pre { max-width: 100%; }
.legal h2 { font-size: 1.375rem; margin: 2.1em 0 .55em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 1.5em 0 .4em; }
.legal p, .legal li { color: var(--ink-2); }
.legal a { color: var(--accent); }
.legal a:hover { color: var(--accent-hover); }
.legal ul { padding-left: 1.3em; }
.legal .ver { color: var(--ink); }
.legal code { overflow-wrap: anywhere; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .88em; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }
.alid-code, .legal pre { background: var(--ink); color: #F5F5F7; border-radius: var(--r); padding: 16px 18px; overflow-x: auto; font-size: .85rem; line-height: 1.55; margin: 0 0 1.4em; }
.alid-code code, .legal pre code { background: none; padding: 0; color: inherit; }
.legal figure { margin: 0 0 1em; }
.legal figcaption { font-weight: 600; font-size: var(--fs-1); color: var(--muted); margin-bottom: 6px; }

/* pricing */
.period { display: inline-flex; border: 1px solid var(--line); border-radius: 40px; padding: 4px; background: #fff; gap: 2px; }
.period button { font: inherit; font-size: var(--fs-1); font-weight: 600; border: 0; background: none; padding: 8px 16px; border-radius: 40px; cursor: pointer; color: var(--ink-2); }
.period button[aria-pressed=true] { background: var(--accent); color: #fff; }
.plans[data-period=annual] .p-m, .plans[data-period=monthly] .p-a { display: none; }
.plan { gap: 14px; }
.plan .checks { margin: 0; }
.tier { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0 0; border-top: 1px solid var(--line); }
.tier .t-name { margin: 0 0 2px; font-size: var(--fs-1); font-weight: 600; color: var(--muted); }
.tier .price { font-size: var(--fs-3); }
.tier .btn { margin-top: 0; }
.free-card { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin: 0 0 24px; }
.free-card h2 { font-size: var(--fs-3); margin: 0 0 4px; }
.free-card p { margin: 0; }
.free-card .btn { margin: 0; }
.mini-grid { margin-top: 28px; }
/* billing toggle: centred directly above the plan row and Osi (13 Nov 21:18) */
.period-row { display: flex; justify-content: center; margin: 28px 0 0; }
.period-row .period { box-shadow: 0 6px 18px -12px rgba(11,53,88,.35); }
.period-row .period button { padding: 10px 20px; }

/* Osi's pick (pricing): full-body Osi stands on the top edge of the Growth card, with a soft contact shadow,
   next to a speech-bubble tag. Space is reserved above the card row (no overlap with text, prices or CTAs,
   no layout shift: fixed-size stills, motion is transform/opacity only). He drops in once and lands with a
   squash; hover/focus on the card = surprised hop. Reduced motion: static. */
.plans { padding-top: 140px; }
.plan.is-pick { position: relative; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 22px 44px -28px rgba(196,75,50,.55); }
.pick-osi { position: absolute; z-index: 2; right: 24px; bottom: calc(100% - 3px); width: 120px; height: 109px; pointer-events: none; }
.pick-body { position: absolute; inset: 0; transform-origin: 50% 100%; }
.pick-body img { position: absolute; left: 0; bottom: 0; width: 120px; height: 109px; display: block; }
.pick-body .pick-b { opacity: 0; }
.pick-shadow { position: absolute; left: 12%; right: 12%; bottom: -5px; height: 12px; border-radius: 50%; transform-origin: 50% 50%;
  background: radial-gradient(closest-side, rgba(11,53,88,.34), rgba(11,53,88,.14) 60%, rgba(11,53,88,0) 100%); }
.pick-tag { position: absolute; right: 152px; bottom: calc(100% + 58px); margin: 0; padding: 7px 14px; border-radius: 14px 14px 4px 14px; background: var(--accent); color: #fff !important; font-weight: 700; font-size: var(--fs-1); line-height: 1.2; white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(196,75,50,.8); }
.pick-tag::after { content: ""; position: absolute; right: -7px; bottom: 6px; border: 7px solid transparent; border-left-color: var(--accent); border-right: 0; }
/* motion (only once alid-pricing.js marks the row; without JS he simply stands there) */
.plans.pick-js .pick-body { opacity: 0; }
.plans.pick-js .pick-shadow { opacity: 0; transform: scale(.4); }
.plans.pick-js .pick-tag { opacity: 0; transform: translateY(6px) scale(.9); transform-origin: 100% 100%; transition: opacity .3s ease .7s, transform .45s cubic-bezier(.2,.9,.3,1.4) .7s; }
.plans.pick-js.pick-in .pick-body { opacity: 1; }
.plans.pick-js.pick-in:not(.pick-done) .pick-body { animation: pick-drop .75s cubic-bezier(.3,.7,.4,1) both; }
.plans.pick-js.pick-in .pick-shadow { opacity: 1; transform: none; }
.plans.pick-js.pick-in:not(.pick-done) .pick-shadow { animation: pick-shadow-in .75s cubic-bezier(.3,.7,.4,1) both; }
.plans.pick-js.pick-in .pick-tag { opacity: 1; transform: none; }
@keyframes pick-drop { 0% { opacity: 0; transform: translateY(-22px) scale(.96, 1.04); } 45% { opacity: 1; transform: translateY(0) scale(1.09, .9); } 70% { transform: translateY(-6px) scale(.98, 1.02); } 100% { opacity: 1; transform: none; } }
@keyframes pick-shadow-in { 0% { opacity: 0; transform: scale(.4); } 45% { opacity: 1; transform: scale(1.1); } 70% { transform: scale(.85); } 100% { opacity: 1; transform: none; } }
.plans.pick-in .pick-a { animation: pick-breathe 5s ease-in-out 1s infinite; transform-origin: 50% 100%; }
@keyframes pick-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.02, .98); } }
.plans.pick-in .plan.is-pick:hover .pick-a, .plans.pick-in .plan.is-pick:focus-within .pick-a { opacity: 0; }
.plans.pick-in .plan.is-pick:hover .pick-b, .plans.pick-in .plan.is-pick:focus-within .pick-b { opacity: 1; }
.plans.pick-in .plan.is-pick:hover .pick-body, .plans.pick-in .plan.is-pick:focus-within .pick-body { animation: pick-hop .6s cubic-bezier(.3,.7,.4,1); }
.plans.pick-in .plan.is-pick:hover .pick-shadow, .plans.pick-in .plan.is-pick:focus-within .pick-shadow { animation: pick-shadow-hop .6s cubic-bezier(.3,.7,.4,1); }
.plans.pick-in .plan.is-pick:hover .pick-tag, .plans.pick-in .plan.is-pick:focus-within .pick-tag { animation: pick-wiggle .5s ease; }
@keyframes pick-hop { 0% { transform: none; } 18% { transform: translateY(0) scale(1.07, .92); } 50% { transform: translateY(-16px) scale(.97, 1.03); } 80% { transform: translateY(0) scale(1.06, .94); } 100% { transform: none; } }
@keyframes pick-shadow-hop { 0%, 100% { transform: none; opacity: 1; } 50% { transform: scale(.6); opacity: .55; } }
@keyframes pick-wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-4deg); } 65% { transform: rotate(3deg); } }
@media (max-width: 700px) {
  .period-row { margin-top: 20px; }
  .plans { padding-top: 24px; }
  .plan.is-pick { margin-top: 118px; }
  .pick-osi { right: 16px; width: 104px; height: 95px; }
  .pick-body img { width: 104px; height: 95px; }
  .pick-tag { right: 132px; bottom: calc(100% + 50px); }
}
@media (prefers-reduced-motion: reduce) {
  .pick-body, .pick-body img, .pick-shadow, .pick-tag { animation: none !important; transition: none !important; opacity: 1; transform: none !important; }
  .pick-body .pick-b { opacity: 0 !important; }
}
/* compare the plans (13 Nov 21:24): card table, sticky header on desktop, Growth column = Osi's pick,
   Ultra price rows on a soft Osi gradient with an 'Ultra' badge, check/cross icons (text kept for screen readers). */
.cmp-head { text-align: center; margin-left: auto; margin-right: auto; }
.cmp-head h2 { margin-left: auto; margin-right: auto; }
.cmp-head p { margin-left: auto; margin-right: auto; }
.cmp-wrap { border-radius: 20px; border-color: #E6DFD6; box-shadow: 0 1px 2px rgba(11,53,88,.05), 0 30px 60px -36px rgba(11,53,88,.35); }
.cmp { font-size: var(--fs-2); font-variant-numeric: tabular-nums; }
.cmp .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmp th, .cmp td { padding: 14px 20px; vertical-align: middle; border-bottom: 1px solid #EFEAE3; }
.cmp thead th { background: #fff; color: var(--ink); font: 500 1.15rem/1.2 var(--font); text-align: center; padding: 22px 20px 18px; border-bottom: 1px solid #E6DFD6; }
.cmp thead th:first-child { text-align: left; color: var(--muted); font: 600 var(--fs-1)/1.2 var(--font); text-transform: uppercase; letter-spacing: .06em; }
.cmp thead th, .cmp tbody th[scope=row] { font-family: var(--font); text-transform: none; letter-spacing: 0; }
.cmp tbody th[scope=row] { background: none; color: var(--ink-2); font-size: var(--fs-2); font-weight: 500; }
.cmp td.num { text-align: center; font-weight: 600; color: var(--ink); }
.cmp td.yes, .cmp td.no { text-align: center; }
.cmp .ic { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; vertical-align: middle; position: relative; }
.cmp td.yes .ic { background: #E3F1EA; }
.cmp td.yes .ic::after { content: ""; width: 10px; height: 5px; margin-top: -3px; border-left: 2px solid #0B6B43; border-bottom: 2px solid #0B6B43; transform: rotate(-45deg); }
.cmp td.no .ic { background: #F2EFEA; }
.cmp td.no .ic::before, .cmp td.no .ic::after { content: ""; position: absolute; width: 10px; height: 2px; border-radius: 2px; background: #8A8580; transform: rotate(45deg); }
.cmp td.no .ic::after { transform: rotate(-45deg); }
.cmp tr.grp th { font-family: var(--font); background: #FAF8F5; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 10px 20px; text-align: left; border-bottom: 1px solid #EFEAE3; }
.cmp tr.grp.ultra th { background: linear-gradient(90deg, #FBE6DE, #FDF5F2); color: #8E3522; text-transform: none; letter-spacing: 0; font-size: var(--fs-1); }
.cmp .grp-note { font-weight: 500; margin-left: 6px; color: #7A3A2C; }
.cmp .u-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; background: linear-gradient(135deg, #C44B32, #E0704F); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 4px 10px -6px rgba(196,75,50,.9); vertical-align: 1px; }
.cmp tr.ultra th[scope=row], .cmp tr.ultra td { background: #FDF5F2; }
.cmp tr.ultra td.num { color: #8E3522; }
/* Osi's pick column */
.cmp .c-pick { background: rgba(196,75,50,.045); }
.cmp thead th.c-pick { background: linear-gradient(180deg, #FBEDE8, #fff); color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.cmp tr.ultra td.c-pick { background: #FBEAE4; }
.cmp .cmp-pick { display: block; margin-top: 4px; font: 700 .7rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #A63D27; }
.cmp tbody tr:not(.grp):hover th[scope=row], .cmp tbody tr:not(.grp):hover td { background-color: #FCFAF7; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
@media (min-width: 701px) {
  .cmp-wrap { overflow: visible; }               /* lets the header row stick under the site nav */
  .cmp thead th { position: sticky; top: var(--nav-height, 82px); z-index: 2; }
  .cmp thead th:first-child { border-top-left-radius: 20px; }
  .cmp thead th:last-child { border-top-right-radius: 20px; }
}
@media (max-width: 700px) {
  .cmp { font-size: .9rem; }
  .cmp th, .cmp td { padding: 11px 5px; }
  .cmp td.num { font-size: .86rem; }
  .cmp tbody th[scope=row] { font-size: .84rem; padding-left: 12px; padding-right: 4px; }
  .cmp thead th { font-size: .95rem; padding: 16px 4px 12px; }
  .cmp tbody th[scope=row] { width: 34%; }
  .cmp thead th:first-child { padding-left: 12px; font-size: .7rem; }
  .cmp tr.grp th { padding: 8px 12px; }
  .cmp .grp-note { display: block; margin: 4px 0 0; }
  .cmp .cmp-pick { font-size: .6rem; }
  .cmp .ic { width: 24px; height: 24px; }
  /* if it ever overflows: scroll shadows as the affordance */
  .cmp-wrap { background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)) left / 24px 100% no-repeat local, linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)) right / 24px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(11,53,88,.18), transparent) left / 10px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(11,53,88,.18), transparent) right / 10px 100% no-repeat scroll, #fff; }
}

/* period toggle: sliding pill + price change animation (13 Nov 21:24). Without JS the pressed button keeps its own fill. */
.period.has-pill { position: relative; isolation: isolate; }
.period.has-pill .period-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 40px; background: var(--accent); box-shadow: 0 6px 14px -8px rgba(196,75,50,.9); transition: transform .38s cubic-bezier(.3,.8,.3,1), width .38s cubic-bezier(.3,.8,.3,1); }
.period.has-pill .period-pill.no-anim { transition: none; }
.period.has-pill button { position: relative; z-index: 1; transition: color .25s ease; }
.period.has-pill button[aria-pressed=true] { background: transparent; color: #fff; }
.plans.pf-ready .price > span { display: inline-block; animation: price-in .42s cubic-bezier(.2,.8,.3,1) both; }
.plans[data-period=annual] .p-m, .plans[data-period=monthly] .p-a { display: none !important; }
@keyframes price-in { 0% { opacity: 0; transform: translateY(8px); filter: blur(2px); } 100% { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) {
  .period.has-pill .period-pill { transition: none; }
  .plans.pf-ready .price > span { animation: none; }
}
.legal a.btn { color: #fff; text-decoration: none; }
