/* v32 landing layer: hero entrance, typed search box, dashboard overview cards, section motion.
   Loaded last on the home page only. Motion is skipped under prefers-reduced-motion. */
:root {
  --gdl-ease: cubic-bezier(.16, 1, .3, 1);
  --gdl-indigo: #464ac0;
  --gdl-indigo-deep: #33389d;
  --gdl-ink: #171b29;
  --gdl-text: #4d5568;
  --gdl-line: #e3e6ef;
  --gdl-wash: #f5f6fc;
}

/* The skip link used to sit below the sticky header (z-index 45). */
.skip:focus { z-index: 60; border-radius: 6px; box-shadow: 0 2px 10px #1b1e2b26; }

/* ───── Notice line above the header ───── */
.gdl-notice {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 36px; padding: 7px 16px;
  background: #1b1e2b; color: #d5d9e8; text-decoration: none;
  font-size: 13px; line-height: 1.35; letter-spacing: -.02em; word-break: keep-all;
}
.gdl-notice b { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 650; white-space: nowrap; }
.gdl-notice i { font-style: normal; transition: transform .2s ease; }
.gdl-notice:hover b { text-decoration: underline; text-underline-offset: 3px; }
.gdl-notice:hover i { transform: translateX(3px); }
.gdl-notice:focus-visible { outline: 2px solid #b9bdf5; outline-offset: -3px; }
@media (max-width: 560px) { .gdl-notice { min-height: 32px; font-size: 12px; } .gdl-notice span { display: none; } }

/* ───── Hero ───── */
.halo-intro { padding-top: clamp(38px, 4.3vw, 70px); padding-bottom: clamp(28px, 3vw, 46px); }
.halo-intro .gd-sampler { width: min(576px, 100%); margin-top: clamp(20px, 2.3vw, 32px); }
.halo-intro .gd-sampler summary { padding: 15px 18px; border-color: #dfe3ee; border-radius: 14px; box-shadow: 0 1px 2px #1f25400a, 0 8px 24px -14px #2c35702e; transition: border-color .2s ease, box-shadow .2s ease; }
.halo-intro .gd-sampler summary:hover { border-color: #c4c9e4; box-shadow: 0 1px 2px #1f25400a, 0 10px 28px -14px #2c357044; }
.gd-sampler summary .gdl-ask { flex: 1; min-width: 0; margin-left: 0; overflow: hidden; color: #20263b; font-size: inherit; font-weight: 640; text-overflow: ellipsis; white-space: nowrap; }
.gd-sampler summary .gdl-ask[data-gdl-live] { font-weight: 480; color: #2c3244; }
.gd-sampler summary .gdl-ask > span { margin: 0; color: inherit; font-size: inherit; font-weight: inherit; white-space: inherit; }
.gd-sampler summary .gdl-ask > .gdl-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.18em; background: currentColor; opacity: .6; }
.halo-intro .halo-cta { margin-top: 20px; padding: 14px 22px; border-radius: 10px; }

@media (prefers-reduced-motion: no-preference) {
  .halo-intro h1 { animation: none; }
  .halo-intro h1 span, .halo-intro h1 strong { animation: gdl-line 1.05s var(--gdl-ease) both; }
  .halo-intro h1 strong { animation-delay: .12s; }
  .halo-intro p { animation: gdl-fade .7s var(--gdl-ease) .3s both; }
  .halo-intro .gd-sampler { animation: gdl-fade .7s var(--gdl-ease) .42s both; }
  .halo-intro .halo-cta { animation: gdl-fade .7s var(--gdl-ease) .52s both; }
  .halo-stage { animation: gdl-stage .9s var(--gdl-ease) .6s both; }
  .gdl-caret { animation: gdl-blink 1s steps(1, end) infinite; }
  @keyframes gdl-line { from { opacity: 0; transform: translateY(34px) scale(.985); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
  @keyframes gdl-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes gdl-stage { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes gdl-blink { 50% { opacity: 0; } }
}

/* ───── Dashboard window ───── */
.halo-stage > .hdb { border-color: #dfe3ee; border-radius: 18px; box-shadow: 0 40px 90px -40px #2a307a4d, 0 2px 8px #2a307a0d; }
.hdb .hdb-titlebar { position: relative; min-height: 46px; background: #f7f8fc; border-bottom-color: var(--gdl-line); }
.gsx-appname { color: #59627a; }
.gsx-appname span { color: #b6bccb; }
.hdb .gsx-opendata { color: #3f45a8; }
.gdl-url {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: min(320px, 36%); padding: 5px 14px;
  border: 1px solid #e2e5ef; border-radius: 8px; background: #fff; color: #5d6579;
  font: 500 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0; white-space: nowrap;
}
.gdl-url svg { flex: none; color: #8a91a6; }
.gsx-rail { background: #fafbfe; border-right-color: #e6e9f2; }
.hdb .gsx-reflinks a { color: #4f586e; transition: color .15s ease; }
.hdb .gsx-reflinks a:hover { background: #f0f2fb; }

.hdb .hdb-views {
  display: grid;
  gap: 0;
  border: 1px solid #cfd4d9;
  border-radius: 7px;
  background: #fff;
}
.hdb .hdb-views a {
  --indicator: transparent;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: #59616a;
}
.hdb .hdb-views a + a::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: #e1e4e7;
  pointer-events: none;
}
.hdb .hdb-views a span { position: relative; }
.hdb .hdb-views a span::before {
  content: "";
  position: absolute;
  inset-inline-end: calc(100% + 5px);
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indicator);
}
.hdb .hdb-views a[aria-current=page],
.hdb:not([data-hdb-views-ready]):has(#gd-scenarios:target) #hdb-scenarios-tab {
  --indicator: currentColor;
  background: transparent;
  box-shadow: none;
  color: #222d35;
  font-weight: 680;
}
.hdb:not([data-hdb-views-ready]):has(#gd-scenarios:target) #hdb-measured-tab {
  --indicator: transparent;
  background: transparent;
  color: #59616a;
  font-weight: 500;
}
.hdb .hdb-views a:hover { color: #20282e; background: transparent; }
.hdb .hdb-views a:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; border-radius: 5px; }
.gsx-reflinks { border-top-color: var(--gdl-line); }
.hdb .hdb-mobile-date { display: block; margin-top: 4px; color: #5d6579; font-size: 13px; letter-spacing: -.02em; }

/* Overview: score gauge + staged forecast + four measured figures */
.gdl-gauge { display: contents; }
.gdl-gauge svg { display: none; }
.gdl-cardhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 28px; }
.gdl-cardhead b { color: #252639; font-size: 14px; font-weight: 660; letter-spacing: -.035em; }
.gdl-cardhead span { color: #6a7286; font-size: 11px; font-weight: 500; word-break: keep-all; text-align: right; }
.md-kpis dd.gdl-viz { display: block; margin: 0; padding-top: 10px; }
.gdl-viz svg { display: block; width: 100%; height: 34px; overflow: visible; }
.gdl-viz small { display: block; margin-top: 6px; color: #6a7286; font-size: 11px; line-height: 1.35; font-weight: 500; letter-spacing: -.02em; word-break: keep-all; }
.gdl-viz-area { fill: #5b60d6; fill-opacity: .1; }
.gdl-viz-line { fill: none; stroke: #4d52c8; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.gdl-viz-area--flat { fill: #8f96ad; fill-opacity: .12; }
.gdl-viz-line--flat { stroke: #8f96ad; stroke-dasharray: 3 4; }
.gdl-viz-bars rect { fill: #8d92e0; }
.gdl-viz-bars rect:nth-child(8) { fill: #4d52c8; }
.gdl-seg { display: flex; gap: 3px; height: 8px; margin-top: 13px; margin-bottom: 13px; }
.gdl-seg i { flex: var(--w) 1 0; border-radius: 3px; background: #4d52c8; }
.gdl-seg i:nth-child(2) { background: #8d92e0; }
.gdl-seg i:nth-child(3) { background: #cdd0f3; }

#gd-measured .md-kpis { gap: 12px; margin-top: 14px; border: 0; background: none; }
#gd-measured .md-kpis > div { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--gdl-line); border-radius: 14px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
#gd-measured .md-kpis > div:hover { border-color: #cfd4ea; box-shadow: 0 10px 24px -18px #2a307a40; }
#gd-measured .md-kpis > div + div::before { display: none; }
#gd-measured .md-kpis dt { font-size: 13px; font-weight: 600; color: #2b3146; }
#gd-measured .md-kpis dd.gdl-viz { margin-top: auto; }
#gd-measured .md-kpis strong { font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; }

@media (min-width: 761px) {
  #gd-measured .gsc { display: grid; grid-template-columns: minmax(236px, .3fr) minmax(0, 1fr); column-gap: 12px; margin-top: 18px; border: 0; border-radius: 0; background: none; }
  #gd-measured .gsc-layout { display: contents; }
  #gd-measured .gsc-summary { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; padding: 16px 16px 18px; border: 1px solid var(--gdl-line); border-radius: 14px; background: #fff; text-align: center; }
  #gd-measured .gsc-summary h3 { align-self: flex-start; font-size: 14px; }
  .gdl-gauge { display: block; position: relative; width: min(214px, 100%); margin: 6px auto 0; }
  .gdl-gauge svg { display: block; width: 100%; height: auto; }
  .gdl-gauge path { fill: none; stroke-width: 13; stroke-linecap: round; }
  .gdl-gauge-track { stroke: #eceef6; }
  .gdl-gauge-forecast { stroke: #cfd2f6; stroke-dasharray: 69 100; }
  .gdl-gauge-value { stroke: var(--gdl-indigo); stroke-dasharray: 43 100; }
  #gd-measured .gdl-gauge .gsc-score { position: absolute; left: 0; right: 0; top: 43%; justify-content: center; margin: 0; }
  #gd-measured .gdl-gauge .gsc-score strong { font-size: clamp(44px, 4vw, 56px); font-weight: 720; }
  #gd-measured .gsc-forecast { justify-content: center; margin-top: 2px; font-size: 13px; }
  #gd-measured .gsc-graph { grid-column: 2; grid-row: 1; padding: 16px 30px 26px 44px; border: 1px solid var(--gdl-line); border-bottom: 0; border-radius: 14px 14px 0 0; background: #fff; }
  #gd-measured .gsc-graph .gdl-cardhead { margin-left: -28px; margin-right: -14px; }
  #gd-measured .gsc-chart { height: 118px; }
  #gd-measured .gsc-step .gsc-number { background: #fff; }
  #gd-measured .gsc-foot { grid-column: 2; grid-row: 2; padding: 12px 16px; border: 1px solid var(--gdl-line); border-radius: 0 0 14px 14px; background: #fbfbfe; }
}
@media (max-width: 760px) {
  .gdl-cardhead { margin-bottom: 14px; }
  .gdl-cardhead span { display: none; }
  .gdl-url { display: none; }
}
@media (max-width: 940px) {
  .gsx-rail { border-bottom-color: #e6e9f2; }
  .hdb .hdb-views {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(224px, 100%);
    align-self: center;
  }
  .hdb .hdb-views a + a::after { inset: 0 auto 0 0; width: 1px; height: auto; }
}
@media (max-width: 600px) {
  .hdb .gsx-rail { justify-content: center; }
}
@media (max-width: 540px) {
  #gd-measured .md-kpis { gap: 8px; }
  #gd-measured .md-kpis > div { padding: 11px 12px 10px; border-radius: 12px; }
  #gd-measured .md-kpis > div:nth-child(n+3) { border-top: 1px solid var(--gdl-line); }
  .gdl-viz svg { height: 26px; }
  .gdl-seg { margin: 9px 0; }
}

/* Floating notes at the dashboard corners (decorative; never intercept clicks) */
.gdl-float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border: 1px solid #e4e7f2; border-radius: 16px;
  background: rgb(255 255 255 / .97); box-shadow: 0 22px 44px -22px #2d357a59, 0 2px 6px #2d357a0f;
  color: var(--gdl-text); font-size: 12px; line-height: 1.45; letter-spacing: -.02em; white-space: nowrap; pointer-events: none;
}
.gdl-float-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #eceefd; color: var(--gdl-indigo); }
.gdl-float-text { display: block; }
.gdl-float b { display: block; color: var(--gdl-ink); font-size: 14px; font-weight: 680; letter-spacing: -.035em; }
.gdl-float em { font-style: normal; font-weight: 700; color: #3f45b0; }
.gdl-float-area { fill: #5b60d6; fill-opacity: .12; }
.gdl-float-line { fill: none; stroke: #5b60d6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gdl-float--a { left: -34px; top: -52px; }
.gdl-float--b { right: -30px; bottom: -32px; }
@media (max-width: 1239px) { .gdl-float { display: none; } }

/* First-load entrance of the overview cards. `gdl-settled` is set by the script afterwards
   so switching dashboard tabs does not replay it. */
@media (prefers-reduced-motion: no-preference) {
  .hdb:not(.gdl-settled) #gd-measured .gsc-summary,
  .hdb:not(.gdl-settled) #gd-measured .gsc-graph,
  .hdb:not(.gdl-settled) #gd-measured .gsc-foot,
  .hdb:not(.gdl-settled) #gd-measured .md-kpis > div { animation: gdl-card .55s var(--gdl-ease) both; animation-delay: calc(.95s + var(--gdl-i, 0) * 70ms); }
  .hdb:not(.gdl-settled) #gd-measured .gsc-graph, .hdb:not(.gdl-settled) #gd-measured .gsc-foot { --gdl-i: 1; }
  .hdb:not(.gdl-settled) #gd-measured .md-kpis > div:nth-child(1) { --gdl-i: 2; }
  .hdb:not(.gdl-settled) #gd-measured .md-kpis > div:nth-child(2) { --gdl-i: 3; }
  .hdb:not(.gdl-settled) #gd-measured .md-kpis > div:nth-child(3) { --gdl-i: 4; }
  .hdb:not(.gdl-settled) #gd-measured .md-kpis > div:nth-child(4) { --gdl-i: 5; }
  .hdb:not(.gdl-settled) .gdl-gauge-value { animation: gdl-arc-value 1.25s var(--gdl-ease) 1.05s both; }
  .hdb:not(.gdl-settled) .gdl-gauge-forecast { animation: gdl-arc-forecast 1.25s var(--gdl-ease) 1.2s both; }
  .hdb:not(.gdl-settled) .gdl-viz-line { stroke-dasharray: 400; animation: gdl-draw 1.2s var(--gdl-ease) 1.35s both; }
  .hdb:not(.gdl-settled) .gdl-viz-area, .hdb:not(.gdl-settled) .gdl-seg i { animation: gdl-soft .7s ease-out 1.5s both; }
  .hdb:not(.gdl-settled) .gdl-viz-bars rect { transform-box: fill-box; transform-origin: bottom; animation: gdl-grow .6s var(--gdl-ease) both; animation-delay: calc(1.35s + var(--b, 0) * 40ms); }
  .gdl-float { animation: gdl-fade .7s var(--gdl-ease) 1.35s both; }
  .gdl-float--b { animation-delay: 1.5s; }
  @keyframes gdl-card { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes gdl-arc-value { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 43 100; } }
  @keyframes gdl-arc-forecast { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 69 100; } }
  @keyframes gdl-draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
  @keyframes gdl-soft { from { opacity: 0; } to { opacity: 1; } }
  @keyframes gdl-grow { from { transform: scaleY(0); } to { transform: none; } }
}

/* ───── One page grid: every section starts and ends on the same lines ───── */
:root {
  --gdl-gutter: clamp(16px, 3.75vw, 48px);
  --gdl-page: min(1184px, calc(100% - 2 * var(--gdl-gutter)));
  --gdl-section-y: clamp(64px, 8vw, 120px);
  --gdl-head-gap: clamp(32px, 4.2vw, 60px);
  --gdl-card-pad: clamp(18px, 2.2vw, 28px);
  --gdl-panel-pad: clamp(18px, 2.5vw, 32px);
  --gdl-radius: 16px;
  --gdl-radius-panel: 18px;
}
.gdn-header .gdn-wrap,
.halo-stage,
.gdl-proof-inner,
.gdx-shell,
.gr-layout,
.gdm-shell,
.wb-wrap,
.gdl-head,
.gde-inner,
#results .cr-shell,
.gd-pricing .gp-wrap,
.hs-library .hs-shell { width: var(--gdl-page); max-width: none; margin-inline: auto; }
.gsx-research { padding-inline: max(var(--gdl-gutter), calc((100% - 1184px) / 2)); }

.gdx, .gdm, .wb, .gde, .gdl-cards, .gsx-research, .hs-library, #results { padding-block: var(--gdl-section-y); }
.gr-layout, .gd-pricing .gp-wrap { padding-block: var(--gdl-section-y); }

/* Section headings: centred title, one supporting line, same distance to the content below */
.gdx-head, .gdm-heading, .wb-head, .wb-head:has(.gdp-tour), .gp-head, .hs-library-inner > header, .gdl-head {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  margin: 0 auto var(--gdl-head-gap); padding: 0; text-align: center;
}
.gdx-head h2, .gdm-heading h2, .wb-head h2, .gp-head h2, .hs-library-inner > header h2, .gdl-head h2 {
  margin: 0; color: var(--gdl-ink); font-size: clamp(29px, 3.5vw, 48px); font-weight: 700; line-height: 1.2; letter-spacing: -.06em; text-wrap: balance; word-break: keep-all;
}
.gdx-head > p, .gdm-heading > p, .gp-head p, .gdl-head > p {
  margin: clamp(12px, 1.3vw, 18px) auto 0; max-width: 40em; color: var(--gdl-text); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.65; text-wrap: balance; word-break: keep-all;
}
.wb-head .gdp-tour { margin-top: 18px; justify-self: center; }
.gp-head > div:first-child { display: flex; flex-direction: column; align-items: center; }
.gp-head [role=tablist] { margin-top: 22px; }
.hs-library-inner { gap: 0; }
@media (max-width: 760px) {
  .gdx-head h2 br, .gdm-heading h2 br { display: none; }
}

/* ───── Question band under the hero ───── */
.gdl-proof { padding: clamp(26px, 3.2vw, 44px) 0 clamp(48px, 5.6vw, 84px); background: #fff; overflow: hidden; }
.gdl-marquee { position: relative; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.gdl-marquee::-webkit-scrollbar { display: none; }
.gdl-marquee[data-ready] { overflow: hidden; }
.gdl-track { display: flex; width: max-content; margin: 0; padding: 7px 0; list-style: none; }
.gdl-track > li { flex: none; margin-right: 12px; }
.gdl-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 14px;
  border: 1px solid var(--gdl-line); border-radius: 999px; background: #fff; box-shadow: 0 1px 2px #1f25400a;
  color: #2b3146; font-size: 14px; font-weight: 540; line-height: 1.3; letter-spacing: -.025em; text-decoration: none; white-space: nowrap;
  transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.gdl-chip img { flex: none; width: 15px; height: 15px; object-fit: contain; }
.gdl-chip small { padding: 2px 7px; border-radius: 6px; background: #f1f3fa; color: #5d6579; font-size: 11px; font-weight: 640; letter-spacing: -.01em; }
.gdl-chip:hover { border-color: #b9bdf0; color: var(--gdl-indigo-deep); box-shadow: 0 6px 16px -10px #2a307a66; }
.gdl-chip:focus-visible { outline: 2px solid var(--gdl-indigo); outline-offset: 2px; }
.gdl-marquee-toggle {
  display: flex; align-items: center; gap: 6px; margin: 10px var(--gdl-gutter) 0 auto; padding: 5px 9px;
  border: 1px solid var(--gdl-line); border-radius: 7px; background: #fff; color: #4d5568; font: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; cursor: pointer;
}
.gdl-marquee-toggle i { display: block; width: 7px; height: 8px; border: solid currentColor; border-width: 0 2px; }
.gdl-marquee-toggle[aria-pressed=true] i { width: 0; height: 0; border: solid transparent; border-width: 4px 0 4px 7px; border-left-color: currentColor; }
.gdl-marquee-toggle:hover { border-color: #c4c9e4; color: var(--gdl-indigo-deep); }
.gdl-marquee-toggle:focus-visible { outline: 2px solid var(--gdl-indigo); outline-offset: 2px; }
.gdl-proof-inner { margin-top: clamp(30px, 3.6vw, 52px); text-align: center; }
.gdl-proof-inner h2 { margin: 0; color: var(--gdl-text); font-size: clamp(15px, 1.35vw, 18px); font-weight: 560; line-height: 1.5; letter-spacing: -.03em; }
.gdl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(22px, 2.6vw, 36px) 0 0; padding: 0; }
.gdl-stats > div { display: flex; flex-direction: column; padding: 4px 12px; }
.gdl-stats > div + div { border-left: 1px solid var(--gdl-line); }
.gdl-stats dt { order: 2; margin-top: 8px; color: var(--gdl-text); font-size: clamp(13px, 1.15vw, 16px); font-weight: 520; }
.gdl-stats dd { margin: 0; color: var(--gdl-ink); font-size: clamp(17px, 1.6vw, 22px); font-weight: 640; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.gdl-stats dd b { margin-right: 2px; font-size: clamp(30px, 3.3vw, 46px); font-weight: 730; letter-spacing: -.06em; }
.gdl-engines { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px clamp(28px, 5.5vw, 76px); margin: clamp(26px, 3vw, 42px) 0 0; padding: 0; list-style: none; }
.gdl-engines li { display: inline-flex; align-items: center; gap: 9px; color: #1c2030; font-size: clamp(17px, 1.7vw, 23px); font-weight: 690; letter-spacing: -.045em; }
.gdl-engines img { width: 24px; height: 24px; object-fit: contain; }
.gdl-asof { margin: 16px 0 0; color: #6a7286; font-size: 12px; line-height: 1.6; word-break: keep-all; }
.gdl-asof a { color: #3f45a8; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c9ccea; }
@media (max-width: 640px) {
  .gdl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .gdl-stats > div:nth-child(3) { border-left: 0; }
  .gdl-chip { font-size: 13px; padding: 9px 13px 9px 12px; }
}

/* ───── Specialty question cards ───── */
.gdl-cards { background: #fff; overflow: hidden; }
.gdl-marquee--cards { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.gdl-marquee--cards .gdl-track { padding: 6px 0 26px; }
.gdl-marquee--cards .gdl-track > li { width: min(384px, 84vw); margin-right: 20px; }
.gdl-card article { display: flex; flex-direction: column; height: 100%; padding: var(--gdl-card-pad); border: 1px solid var(--gdl-line); border-radius: var(--gdl-radius); background: #fff; box-shadow: 0 16px 34px -28px #2a307a59; transition: border-color .25s ease, box-shadow .25s ease, translate .25s ease; }
.gdl-card article:hover { border-color: #cfd4ea; box-shadow: 0 22px 40px -26px #2a307a73; translate: 0 -2px; }
.gdl-card header { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #eceef4; }
.gdl-card-mark { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid var(--gdl-line); border-radius: 12px; background: var(--gdl-wash); color: #3f45a8; font-size: 16px; font-weight: 720; }
.gdl-card h3 { margin: 0; color: var(--gdl-ink); font-size: 17px; font-weight: 690; line-height: 1.3; letter-spacing: -.04em; }
.gdl-card header p { margin: 2px 0 0; color: #5d6579; font-size: 13px; line-height: 1.4; word-break: keep-all; }
.gdl-card-count { align-self: flex-start; margin-left: auto; padding: 3px 8px; border-radius: 6px; background: #eceefd; color: #3f45a8; font-size: 11px; font-weight: 660; white-space: nowrap; }
.gdl-card-label { margin: 16px 0 10px; color: #2b3146; font-size: 12px; font-weight: 680; }
.gdl-card-asks, .gdl-card-topics { margin: 0; padding: 0; list-style: none; }
.gdl-card-asks { display: grid; gap: 8px; }
.gdl-card-asks li { padding: 12px 16px; border-radius: 4px 16px 16px 16px; background: #eff2fb; color: #252b3f; font-size: 14px; font-weight: 540; line-height: 1.5; letter-spacing: -.025em; word-break: keep-all; }
.gdl-card-label + .gdl-card-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.gdl-card-topics li { padding: 4px 9px; border-radius: 7px; background: #f3f4f8; color: var(--gdl-text); font-size: 12px; font-weight: 540; }
.gdl-card-asks + .gdl-card-label { margin-top: auto; padding-top: 16px; }
.gdl-card-link { align-self: flex-start; margin-top: 18px; color: #3f45a8; font-size: 13px; font-weight: 640; text-decoration: none; }
.gdl-card-link span { display: inline-block; transition: translate .2s ease; }
.gdl-card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.gdl-card-link:hover span { translate: 3px 0; }
.gdl-card-link:focus-visible { outline: 2px solid var(--gdl-indigo); outline-offset: 3px; border-radius: 3px; }
.gdl-cards-cta { margin: clamp(14px, 2vw, 26px) 0 0; text-align: center; }
.gdl-cards-cta .halo-cta { margin-top: 0; gap: 10px; }
.gdl-free { padding: 2px 8px; border-radius: 6px; background: #fff; color: #1c202c; font-size: 12px; font-weight: 720; }

/* ───── Motion shared by the sections below the hero ───── */
@media (prefers-reduced-motion: no-preference) {
  .gdl-marquee[data-ready] .gdl-track { animation: gdl-marquee var(--gdl-loop, 60s) linear infinite; }
  .gdl-marquee--reverse[data-ready] .gdl-track { animation-direction: reverse; }
  .gdl-marquee[data-ready]:hover .gdl-track,
  .gdl-marquee[data-ready]:focus-within .gdl-track,
  .gdl-marquee[data-paused] .gdl-track,
  .gdl-marquee[data-offscreen] .gdl-track { animation-play-state: paused; }
  @keyframes gdl-marquee { to { transform: translate3d(-50%, 0, 0); } }

}

/* ───── First screen: keep the score in view on a 1280×800 laptop ───── */
.halo-intro { padding-top: clamp(30px, 3.4vw, 54px); padding-bottom: clamp(24px, 2.6vw, 38px); }
.halo-intro h1 { font-size: clamp(38px, 4.5vw, 68px); }
.halo-intro p { margin-top: clamp(12px, 1.3vw, 18px); }
.halo-intro .gd-sampler { margin-top: clamp(18px, 2vw, 26px); }
.halo-intro .halo-cta { margin-top: 16px; }
.hdb .hdb-main { padding: clamp(18px, 1.9vw, 24px) clamp(16px, 2.4vw, 30px) clamp(20px, 2.4vw, 30px); }
.gdl-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-width: 0; }
.hdb .gdl-title .hdb-mobile-date { margin: 0; }
.hdb .hdb-heading h2 { font-size: clamp(20px, 1.95vw, 26px); }
@media (min-width: 761px) {
  #gd-measured .gsc { margin-top: 16px; }
  #gd-measured .gsc-summary { padding: 16px 16px 16px; }
  .gdl-gauge { width: min(196px, 100%); margin-top: 2px; }
}

/* ───── Cards and rows: same padding, same radius, same edges ───── */
.gdx-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; border: 0; }
.gdx-stat, .gdx-stat:first-child, .gdx-stat:last-child { padding: var(--gdl-card-pad); border: 1px solid var(--gdl-line); border-radius: var(--gdl-radius); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.gdx-stat + .gdx-stat { border-left: 1px solid var(--gdl-line); }
.gdx-stat:hover { border-color: #cfd4ea; box-shadow: 0 14px 30px -22px #2a307a4d; }
.gdx-source { margin-top: 14px; }
.gdx-exhibit { margin-top: clamp(28px, 3.4vw, 48px); }
@media (max-width: 760px) {
  .gdx-metrics { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gdx-stat, .gdx-stat:first-child, .gdx-stat:last-child { padding: 16px 18px; }
}
.hs-resource-list .hs-resource-toggle > span:first-child { font-weight: 650; letter-spacing: -.035em; }
#consult > summary { max-width: none; }

/* Section backgrounds alternate between white and one indigo wash */
.gde, .gdm, .gd-reel, .gd-pricing { background: var(--gdl-wash); }
.gsx-research { background: #fff; border-top: 1px solid var(--gdl-line); }

/* Small-screen details */
.hdb .hdb-heading > a { flex: none; white-space: nowrap; }
@media (max-width: 760px) {
  .gdl-cardhead { display: none; }
  .gdx-stat, .gdx-stat:first-child, .gdx-stat:last-child { grid-template-columns: 78px minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .gdl-notice b::before { content: "홈페이지 구축·유지보수 "; font-weight: 520; color: #d5d9e8; }
}

/* ───── Closing band and disclosures ───── */
/* The home band has the same shell as .gds-band in gd-shared.css: a rounded panel on the page line.
   `overflow: clip` (not hidden): a hidden box can be scrolled by a link to #consult, which pushed the title out of the band. */
#apply {
  position: relative; overflow: hidden; overflow: clip; isolation: isolate;
  width: var(--gdl-page); margin: clamp(40px, 5vw, 64px) auto;
  padding: clamp(44px, 6vw, 80px) clamp(22px, 5vw, 64px) clamp(28px, 3.4vw, 44px);
  border-radius: var(--gdl-radius-panel);
}
#apply > .wrap { width: 100%; max-width: none; margin-inline: 0; }
#apply .apply-row { flex-direction: column; align-items: center; gap: clamp(22px, 2.6vw, 30px); text-align: center; }
#apply .apply-row > div > p { margin-inline: auto; }
#apply .apply-actions { justify-items: center; margin: 0; }
#apply .app-consult { margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 540px) { #apply { border-radius: var(--gdl-radius); } }
#apply::before {
  content: ""; position: absolute; z-index: -1; inset: -45% -12%; pointer-events: none;
  background: radial-gradient(38% 46% at 28% 42%, #5560d94d, transparent 72%), radial-gradient(34% 44% at 76% 58%, #3d6fc640, transparent 72%);
}
@media (prefers-reduced-motion: no-preference) {
  /* the light settles once when the band is first seen (keyframes in gd-shared.css); it no longer loops */
  #apply:has([data-gds-seen])::before { animation: gds-settle 4.8s var(--gdl-ease) backwards; }
  @supports (interpolate-size: allow-keywords) {
    /* Only leaf accordions animate. The large library sections hold link targets (#qbook-…),
       and a target inside a section that is still unfolding cannot be scrolled to. */
    .app-consult, .qbook-entry { interpolate-size: allow-keywords; }
    :is(.app-consult, .qbook-entry)::details-content { block-size: 0; overflow: clip; transition: block-size .38s var(--gdl-ease), content-visibility .38s allow-discrete; }
    :is(.app-consult, .qbook-entry)[open]::details-content { block-size: auto; }
  }
}

/* When a row is not drifting (reduced motion, or before the script runs) it starts on the page line */
.gdl-marquee:not([data-ready]) .gdl-track { padding-inline: max(var(--gdl-gutter), calc((100vw - 1184px) / 2)); }
.gdl-marquee:not([data-ready]) .gdl-track > li:last-child { margin-right: 0; }

/* ───── One set of corner radii and inner paddings ─────
   windows and large panels: 18px corners · cards: 16px · cards inside the dashboard window: 14px */
.gdx-exhibit, .gr-player, .gdm-artifact, .wb-window, .gde-desk, #results .pf-panel { border-radius: var(--gdl-radius-panel); }
.gdx-exhibit, .wb-window, #results .pf-panel { padding: var(--gdl-panel-pad); }
.gdx-stat, .gdx-stat:first-child, .gdx-stat:last-child, .gd-pricing .gp-card { padding: var(--gdl-card-pad); border-radius: var(--gdl-radius); }
.gdx-entry, #results .cr-card { border-radius: 12px; }

/* Dashboard: the answer analysis sits in one card with its tabs on top */
#gd-measured .md-tools:not([hidden]) { margin-top: 12px; padding: 14px 16px 0; border: 1px solid var(--gdl-line); border-bottom-color: #eceef4; border-radius: 14px 14px 0 0; background: #fff; }
#gd-measured .md-tabs button { padding-bottom: 12px; }
#gd-measured .md-measure + .hdb-data, #gd-measured .md-measure[data-md-ready] .md-sources { margin-top: 0; padding: 20px 16px; border: 1px solid var(--gdl-line); border-top: 0; border-radius: 0 0 14px 14px; background: #fff; }
#gd-measured .md-measure[data-md-ready] .md-source-ui { padding-top: 0; }
@media (max-width: 540px) {
  #gd-measured .md-tools:not([hidden]) { padding: 12px 12px 0; }
  #gd-measured .md-measure + .hdb-data, #gd-measured .md-measure[data-md-ready] .md-sources { padding: 16px 12px; }
}

/* Both dashboard views share the same inner padding; the corner notes belong to the measured view only */
#gd-scenarios .s31 { padding: clamp(18px, 1.9vw, 24px) clamp(16px, 2.4vw, 30px) clamp(20px, 2.4vw, 30px); }
.halo-stage:has(.hdb[data-hdb-view="gd-scenarios"]) .gdl-float { display: none; }
