/* GNX /ai page (variant B). Source: design/ai-concepts/d-combined.html */
  :root {
    --bg:     #FAFBFC;
    --panel:  #FFFFFF;
    --ink:    #14181D;
    --muted:  #5D6670;
    --faint:  #8E96A0;
    --line:   #D3D8DF;
    --cobalt: #2B47F5;
    --tint:   #E9EDFF;
    --mark:   #D6DEFF;
    --amber:  #E9A21B;
    --brick:  #C8432B;
    --font: "Schibsted Grotesk", system-ui, sans-serif;
    --log:  "IBM Plex Mono", ui-monospace, monospace;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.55; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
  .wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

  /* header + target mark */
  .bar { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
  .brand svg { width: 22px; height: 22px; flex: none; }
  .bar nav { display: flex; gap: 28px; align-items: center; font-size: 16px; }
  .bar nav a { text-decoration: none; color: var(--muted); }
  .bar nav a.book { color: #fff; background: var(--ink); padding: 10px 18px; border-radius: 8px; font-weight: 600; }
  @media (max-width: 760px) { .bar nav a:not(.book) { display: none; } .bar nav a.book { padding: 9px 14px; font-size: 15px; } }

  /* intro */
  .intro { padding: 64px 0 40px; display: grid; gap: 28px; }
  @media (min-width: 980px) { .intro { grid-template-columns: 1.2fr 1fr; align-items: end; padding-top: 88px; } }
  h1 { font-size: clamp(42px, 5.6vw, 80px); font-weight: 800; line-height: .95; letter-spacing: -.045em; margin: 0; }
  .intro p { margin: 0; font-size: 20px; max-width: 30em; color: var(--muted); }
  .intro p strong { color: var(--ink); font-weight: 600; }
  .actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 24px; }
  .btn { display: inline-block; background: var(--cobalt); color: #fff; text-decoration: none; padding: 16px 26px; border-radius: 10px; font-weight: 600; font-size: 17px; }
  .btn:hover { background: #1F38D6; }
  .actions span { font-size: 15px; color: var(--muted); }

  /* desktop: org chart · mobile: night log */
  .org { padding: 40px 0 104px; }
  .log { display: none; }
  @media (max-width: 899px) {
    .org { display: none; }
    .log { display: block; margin: 8px 0 72px; }
  }

  .org__top { display: flex; justify-content: center; }
  .node { border: 1.5px solid var(--ink); border-radius: 10px; padding: 10px 18px; background: #fff; font-weight: 600; font-size: 16px; }
  .org__stem { width: 1.5px; height: 32px; background: var(--ink); margin: 0 auto; transform-origin: top; }
  .org__row { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; padding-top: 32px; }
  .org__row::before { content: ""; position: absolute; top: 0; left: calc((100% - 72px) / 10); right: calc((100% - 72px) / 10); height: 1.5px; background: var(--ink); }
  .dept { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .dept::before { content: ""; position: absolute; top: -32px; left: 50%; width: 1.5px; height: 32px; background: var(--ink); transform-origin: top; }
  .people { display: flex; gap: 6px; margin: 14px 0 0; }
  .people i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
  .agent { margin-top: 16px; position: relative; padding-top: 26px; width: 100%; }
  .agent::before { content: ""; position: absolute; top: 0; left: 50%; height: 26px; border-left: 1.5px dashed var(--cobalt); }
  .agent div { background: var(--tint); border: 1.5px solid var(--cobalt); border-radius: 12px; padding: 12px 14px; text-align: left; }
  .agent b { display: flex; align-items: center; gap: 8px; color: var(--cobalt); font-size: 15px; font-weight: 600; }
  .agent b::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 4px rgba(43,71,245,.18); }
  .agent p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.45; }
  .legend { display: flex; gap: 28px; justify-content: center; margin-top: 40px; font-size: 15px; color: var(--muted); flex-wrap: wrap; }
  .legend span { display: inline-flex; align-items: center; gap: 8px; }
  .legend i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
  .legend i.a { background: var(--cobalt); }

  .js .org__stem, .js .dept::before { transform: scaleY(0); }
  .js .org__row::before { transform: scaleX(0); }
  .js .agent { opacity: 0; transform: translateY(8px); }
  .org.on .org__stem { transform: scaleY(1); transition: transform .3s ease-out; }
  .org.on .org__row::before { transform: scaleX(1); transition: transform .5s ease-out .3s; }
  .org.on .dept::before { transform: scaleY(1); transition: transform .3s ease-out .8s; }
  .org.on .agent { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .5s ease-out; }
  .org.on .dept:nth-child(1) .agent { transition-delay: 1.2s; }
  .org.on .dept:nth-child(2) .agent { transition-delay: 1.45s; }
  .org.on .dept:nth-child(3) .agent { transition-delay: 1.7s; }
  .org.on .dept:nth-child(4) .agent { transition-delay: 1.95s; }
  .org.on .dept:nth-child(5) .agent { transition-delay: 2.2s; }

  .sheet { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px -24px rgba(20,24,29,.35); font-family: var(--log); font-size: 13px; line-height: 1.5; }
  .sheet__head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-family: var(--font); font-size: 15px; }
  .sheet__head b { font-weight: 600; }
  .sheet__head span { color: var(--cobalt); font-weight: 600; }
  .sheet ol { list-style: none; margin: 0; padding: 6px 0; }
  .sheet li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 7px 16px; color: var(--muted); }
  .sheet li time { color: var(--faint); }
  .sheet li em { font-style: normal; color: var(--cobalt); display: block; font-family: var(--font); font-weight: 600; font-size: 13.5px; }
  .sheet li.hit { color: var(--ink); }
  .sheet li.hit p { background-image: linear-gradient(var(--mark), var(--mark)); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size .55s cubic-bezier(.3,.1,.2,1); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .sheet.on li.hit p { background-size: 100% 100%; }
  .sheet.on li.hit:nth-of-type(3) p { transition-delay: .55s; }
  .sheet.on li.hit:nth-of-type(5) p { transition-delay: 1.1s; }
  .sheet.on li.hit:nth-of-type(7) p { transition-delay: 1.65s; }
  .sheet li p { margin: 0; }
  .sheet__foot { padding: 12px 16px; border-top: 1px dashed var(--line); color: var(--faint); }


  .morning { padding: 0 0 104px; }
  .morning__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
  .morning h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 0 0 18px; max-width: 14ch; }
  .morning__in > div > p { color: var(--muted); margin: 0 0 14px; max-width: 30em; font-size: 19px; }
  @media (max-width: 899px) { .morning { display: none; } }

  /* the meter */
  .meter { padding: 104px 0; border-top: 1px solid var(--line); }
  .meter h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.0; letter-spacing: -.035em; font-weight: 800; margin: 0 0 18px; max-width: 16ch; }
  .meter__lede { color: var(--muted); max-width: 36em; margin: 0 0 48px; font-size: 19px; }
  .rig { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 3vw, 32px); display: grid; gap: 32px; }
  .rig { grid-template-areas: "ctrl" "chart" "readout"; }
  .ctrl { grid-area: ctrl; } .chart { grid-area: chart; } .readout { grid-area: readout; }
  @media (min-width: 1000px) {
    .rig { grid-template-columns: 340px 1fr; grid-template-areas: "ctrl chart" "readout chart"; gap: 8px 40px; align-items: start; }
  }

  .ctrl label { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: 12px; }
  .ctrl output { color: var(--cobalt); font-weight: 600; }
  input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #BFCBFF 0 40%, #14181D 40% calc(40% + 2px), #F0CFC7 calc(40% + 2px)); }
  input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--cobalt); box-shadow: 0 0 0 5px rgba(43,71,245,.15); cursor: grab; }
  input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--cobalt); cursor: grab; }
  .ctrl .ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--faint); margin-top: 8px; }

  .dial { margin: 22px 0 6px; }
  @media (max-width: 999px) { .dial { margin-top: 4px; } }
  .dial svg { width: 100%; height: auto; display: block; }
  .dial .tk { font: 500 12px var(--font); fill: var(--faint); text-anchor: middle; }
  .dial__val { font: 800 44px var(--font); letter-spacing: -.03em; fill: var(--ink); text-anchor: middle; }
  .dial__sub { font: 400 13px var(--font); fill: var(--muted); text-anchor: middle; }
  #needle { transition: transform .35s cubic-bezier(.3,1.3,.5,1); transform-origin: 160px 150px; }

  .parts { margin: 0; display: grid; gap: 10px; font-size: 15px; }
  .parts div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
  .parts dt { color: var(--muted); }
  .parts dd { margin: 0; font-weight: 600; text-align: right; max-width: 15em; }
  .parts dd small { display: block; font-weight: 400; color: var(--brick); font-size: 13px; }

  .chart__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; margin-bottom: 8px; }
  .chart__head b { font-weight: 600; }
  .chart__head span { color: var(--muted); }
  .chart svg { width: 100%; height: auto; display: block; }
  .chart .ax { stroke: var(--line); }
  .chart .axl { font: 400 12px var(--font); fill: var(--faint); }
  .chart .lbl { font: 600 13px var(--font); }
  .key { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); margin-top: 6px; }
  .key span { display: inline-flex; align-items: center; gap: 8px; }
  .key i { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--ink); }
  .key .k-catch { border-color: var(--cobalt); }
  .key .k-same { border-top: 2px dashed var(--cobalt); }
  .key .k-gap { height: 12px; width: 18px; border: 0; background: rgba(43,71,245,.12); }
  .rig__cta { margin: 18px 0 0; }
  .key .k-them-d { border-top: 2px dashed var(--ink); }
  .key .k-you { border-color: var(--cobalt); }
  .key .k-line-loss { border-color: var(--brick); }
  .key .k-ref { border-top: 1px dashed var(--faint); }
  .key .k-loss { height: 12px; width: 18px; border: 0; background: rgba(200,67,43,.14); }
  .verdict { margin: 16px 0 0; font-size: 16px; min-height: 3em; }

  .assume { margin-top: 20px; font-size: 14px; color: var(--muted); }
  .assume summary { cursor: pointer; color: var(--ink); font-weight: 500; }
  .assume ul { margin: 10px 0 0; padding-left: 1.2em; max-width: 60em; }
  .assume li { margin: 4px 0; }

  .reasons { display: grid; gap: 32px; margin-top: 64px; }
  @media (min-width: 880px) { .reasons { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
  .reasons h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.01em; }
  .reasons p { margin: 0; color: var(--muted); font-size: 17px; }

  /* audit band */
  .band { background: var(--ink); color: #fff; padding: 96px 0; }
  .band__in { display: grid; gap: 48px; }
  @media (min-width: 940px) { .band__in { grid-template-columns: 1fr 1fr; gap: 80px; } }
  .band h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 20px; font-weight: 800; }
  .band p { color: #B7BEC8; margin: 0 0 16px; max-width: 32em; }
  .band ul { list-style: none; margin: 0; padding: 0; }
  .band li { padding: 16px 0; border-top: 1px solid #2B323B; display: grid; grid-template-columns: 9em 1fr; gap: 16px; }
  .band li b { font-weight: 600; }
  .band li span { color: #B7BEC8; }
  @media (max-width: 560px) { .band li { grid-template-columns: 1fr; gap: 4px; } }

  @media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; } .js .agent, .js .org__stem, .js .dept::before, .js .org__row::before { opacity: 1 !important; transform: none !important; } }

  /* phones & tablets: slider pinned, chart right under it, dial after */
  @media (max-width: 999px) {
    .rig { gap: 14px; }
    .ctrl { position: sticky; top: 0; z-index: 2; background: var(--panel); margin: -4px -4px 0; padding: 12px 4px 12px; border-bottom: 1px solid var(--line); }
    .ctrl label { margin-bottom: 8px; }
    .ctrl .ends { font-size: 12px; margin-top: 4px; }
    .chart__head { margin-bottom: 2px; }
    .chart__head span { display: none; }
    .key { display: grid; grid-template-columns: 1fr 1fr; font-size: 12.5px; gap: 6px 12px; }
    .key i { width: 16px; flex: none; }
    .verdict { font-size: 15px; min-height: 0; margin-top: 10px; }
    .readout { border-top: 1px solid var(--line); padding-top: 8px; }
    .dial { max-width: 240px; margin: 0 auto; }
    .dial p { font-size: 13px !important; }
  }

  /* ---------- request form ---------- */
  .apply { padding: 104px 0 120px; }
  .apply__in { display: grid; gap: 48px; }
  @media (min-width: 980px) { .apply__in { grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: start; } }
  .apply h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.0; letter-spacing: -.035em; font-weight: 800; margin: 0 0 18px; }
  .apply__lede { color: var(--muted); max-width: 30em; margin: 0 0 28px; font-size: 19px; }
  .apply ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
  .apply ol li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }
  .apply ol li::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--cobalt); font-weight: 600; font-size: 14px; display: grid; place-items: center; }
  .form { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; }
  .form__row { display: grid; gap: 18px; }
  @media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
  .field { display: grid; gap: 6px; }
  .field label { font-weight: 600; font-size: 15px; }
  .field label span { color: var(--muted); font-weight: 400; }
  .field input, .field select, .field textarea {
    font: inherit; font-size: 16px; color: var(--ink);
    background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
    padding: 12px 14px; width: 100%;
  }
  .field textarea { min-height: 120px; resize: vertical; }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(43,71,245,.15); }
  .form__foot { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; margin-top: 4px; }
  .form__foot p { margin: 0; font-size: 14px; color: var(--muted); max-width: 28em; }
  .form button { font: inherit; font-weight: 600; font-size: 17px; color: #fff; background: var(--cobalt); border: 0; border-radius: 10px; padding: 16px 28px; cursor: pointer; }
  .form button:hover { background: #1F38D6; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .notice { border-radius: 12px; padding: 16px 18px; font-size: 16px; }
  .notice--ok { background: var(--tint); border: 1.5px solid var(--cobalt); color: var(--ink); }
  .notice--err { background: #FBEDEA; border: 1.5px solid var(--brick); color: var(--ink); }

  /* ---------- footer ---------- */
  .foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 15px; color: var(--muted); }
  .foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
  .foot a { color: var(--ink); }

  /* WordPress admin bar pushes the page down for logged-in users only */
  body.admin-bar .ctrl { top: 32px; }
  @media (max-width: 782px) { body.admin-bar .ctrl { top: 46px; } }
