/* Regnrbil V16.1.21 — minimalistisk forside med fast topp/bunn og rullende dybdeflate */

:root {
  --home-header-h: 88px;
  --home-footer-h: 96px;
  --home-blue: #0869d1;
  --home-blue-bright: #2389f3;
  --home-navy: #0a1b2e;
  --home-green: #13bd56;
  --home-surface: rgba(248, 252, 255, .84);
  --home-surface-strong: rgba(255, 255, 255, .94);
  --home-border: rgba(39, 73, 104, .18);
  --home-text: #0d1c31;
  --home-muted: #49647d;
  --home-depth: 0 30px 70px rgba(30, 67, 99, .18);
}

html[data-theme="dark"] {
  --home-surface: rgba(5, 15, 26, .84);
  --home-surface-strong: rgba(5, 15, 26, .96);
  --home-border: rgba(151, 188, 220, .18);
  --home-text: #f4f8fd;
  --home-muted: #aebfd0;
  --home-depth: 0 32px 76px rgba(0, 0, 0, .46);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reference-home {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--home-text);
  background: #dbe8f1;
  isolation: isolate;
}

.reference-home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 37%, rgba(255, 255, 255, .96) 0 9%, rgba(242, 248, 252, .72) 28%, transparent 56%),
    radial-gradient(ellipse at 13% 18%, rgba(255, 255, 255, .84), transparent 48%),
    radial-gradient(ellipse at 88% 78%, rgba(117, 163, 198, .42), transparent 54%),
    linear-gradient(133deg, #eef5f9 0%, #dbe8f1 43%, #caddea 70%, #edf4f8 100%);
}

.reference-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .36) 0 18%, rgba(255, 255, 255, .14) 42%, transparent 68%),
    radial-gradient(ellipse at 82% 62%, rgba(116, 157, 190, .13), transparent 58%),
    radial-gradient(circle at 50% 44%, transparent 0 22%, rgba(56, 96, 128, .06) 72%, rgba(31, 65, 91, .09) 100%);
  backdrop-filter: blur(22px) saturate(.82);
  -webkit-backdrop-filter: blur(22px) saturate(.82);
}

html[data-theme="dark"] .reference-home {
  background: #050d16;
}

html[data-theme="dark"] .reference-home::after {
  background:
    radial-gradient(circle at 50% 38%, rgba(31, 59, 84, .44), transparent 48%),
    radial-gradient(ellipse at 12% 20%, rgba(17, 44, 67, .62), transparent 52%),
    radial-gradient(ellipse at 86% 76%, rgba(20, 62, 94, .46), transparent 54%),
    linear-gradient(130deg, #020810 0%, #071522 48%, #0b2031 100%) !important;
}

html[data-theme="dark"] .reference-home::before {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(31, 69, 99, .16), transparent 58%),
    radial-gradient(ellipse at 82% 68%, rgba(21, 63, 95, .18), transparent 52%),
    radial-gradient(circle at 50% 44%, transparent 0 25%, rgba(0, 0, 0, .24) 100%) !important;
}

/* Fast toppbånd */
.reference-home .home-topbar {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--home-header-h);
  overflow: visible;
  color: var(--home-text);
  background: rgba(249, 252, 254, .86);
  border-bottom: 1px solid rgba(48, 79, 106, .12);
  box-shadow: 0 14px 36px rgba(26, 58, 84, .18);
  backdrop-filter: blur(24px) saturate(1.12);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
}

html[data-theme="dark"] .reference-home .home-topbar {
  background: rgba(2, 8, 15, .88);
  border-bottom-color: rgba(158, 192, 221, .12);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .42);
}

.reference-home .top-inner {
  width: min(calc(100% - 44px), 1540px);
  height: 100%;
}

.reference-home .top-main {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.reference-home .brand-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
}

.reference-home .brand-halo {
  position: absolute;
  inset: 18% 8% 10%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(33, 128, 229, .18);
  filter: blur(18px);
  opacity: .78;
}

.reference-home .brand-link .logo {
  width: clamp(178px, 15vw, 222px);
  max-width: none;
  filter: drop-shadow(0 8px 15px rgba(18, 56, 92, .18));
  transition: filter .2s ease, transform .2s ease;
}

.reference-home .brand-link:hover .logo {
  transform: translateY(-1px);
  filter: drop-shadow(0 11px 20px rgba(18, 83, 145, .24));
}

html[data-theme="dark"] .reference-home .brand-link .logo {
  filter: drop-shadow(0 0 18px rgba(94, 162, 239, .14));
}

.reference-home .top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(13px, 1.6vw, 24px);
}

.reference-home .api-status,
.reference-home .locale-button,
.reference-home .login-link,
.reference-home .menu-button {
  color: var(--home-text);
  font-size: 14px;
  font-weight: 540;
  white-space: nowrap;
}

.reference-home .api-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reference-home .api-status > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--home-green);
  box-shadow: 0 0 0 5px rgba(19, 189, 86, .08), 0 0 12px rgba(19, 189, 86, .58);
}

.reference-home .locale-button,
.reference-home .menu-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.reference-home .locale-button .ph {
  font-size: 13px;
}

.reference-home .theme-label {
  display: none;
}

.reference-home .theme-toggle {
  width: 46px !important;
  height: 26px !important;
  min-width: 46px;
  overflow: visible;
  border: 1px solid #c4d2de !important;
  background: #e8f0f6 !important;
  box-shadow: inset 0 1px 3px rgba(23, 51, 76, .10), 0 5px 13px rgba(25, 58, 86, .11) !important;
}

.reference-home .theme-toggle::after {
  top: 3px !important;
  left: 3px !important;
  width: 18px !important;
  height: 18px !important;
  background: #fff !important;
  box-shadow: 0 2px 5px rgba(12, 35, 56, .22);
  transform: none !important;
}

html[data-theme="light"] .reference-home .theme-toggle {
  border-color: #c4d2de !important;
  background: #e8f0f6 !important;
  box-shadow: inset 0 1px 3px rgba(23, 51, 76, .10), 0 5px 13px rgba(25, 58, 86, .11) !important;
}

html[data-theme="light"] .reference-home .theme-toggle::after {
  background: #fff !important;
  transform: none !important;
}

html[data-theme="dark"] .reference-home .theme-toggle {
  border-color: #30475c !important;
  background: #0c1a28 !important;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .42), 0 0 15px rgba(83, 142, 204, .10) !important;
}

html[data-theme="dark"] .reference-home .theme-toggle::after {
  background: #f5f8fb !important;
  transform: translateX(20px) !important;
}

.reference-home .theme-toggle .ph {
  position: absolute;
  top: 5px;
  z-index: 3;
  color: #60778a;
  font-size: 14px;
  pointer-events: none;
}

.reference-home .theme-icon-light {
  left: -22px;
}

.reference-home .theme-icon-dark {
  right: -18px;
}

html[data-theme="dark"] .reference-home .theme-icon-light {
  color: #d6e3ed;
}

html[data-theme="light"] .reference-home .theme-icon-dark {
  color: #405970;
}

.reference-home .login-link {
  padding: 9px 0;
}

.reference-home .login-link:hover,
.reference-home .footer-links a:hover,
.reference-home .footer-contact a:hover {
  color: var(--home-blue);
}

.reference-home .menu-button .ph {
  font-size: 28px;
}

.reference-home .menu-anchor {
  position: relative;
  display: flex;
  align-items: center;
}

.reference-home .menu-anchor .menu-panel {
  position: absolute !important;
  inset: calc(100% + 18px) 0 auto auto !important;
  width: 250px;
  padding: 9px;
  overflow: hidden;
  color: var(--home-text);
  background: var(--home-surface-strong);
  border: 1px solid var(--home-border);
  border-radius: 15px;
  box-shadow: var(--home-depth);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.reference-home .menu-anchor .menu-panel.open {
  display: grid;
}

.reference-home .menu-panel a {
  padding: 12px 13px;
  border-radius: 9px;
}

.reference-home .menu-panel a:hover {
  color: var(--home-blue);
  background: rgba(16, 111, 208, .10);
}

/* Innholdet ruller under de faste båndene */
.reference-home .home-scroll {
  position: fixed;
  z-index: 1;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 93, 132, .34) transparent;
  padding: var(--home-header-h) 0 var(--home-footer-h);
}

.reference-home .home-hero {
  position: relative;
  min-height: calc(100dvh - var(--home-header-h) - var(--home-footer-h));
  display: grid;
  place-items: center;
  padding: clamp(48px, 8vh, 94px) 0;
}

.reference-home .hero-shell {
  width: min(calc(100% - 32px), 760px);
}

.reference-home .hero-center {
  width: 100%;
  text-align: center;
  color: var(--home-text);
}

.reference-home .hero-kicker,
.reference-home .section-kicker {
  margin: 0 0 9px;
  color: var(--home-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.reference-home .hero-center h1 {
  margin: 0;
  color: var(--home-text);
  font-size: clamp(26px, 2.3vw, 36px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .72), 0 16px 36px rgba(36, 72, 101, .18);
}

html[data-theme="dark"] .reference-home .hero-center h1 {
  text-shadow: 0 0 22px rgba(255, 255, 255, .14), 0 18px 42px rgba(0, 0, 0, .60);
}

.reference-home .hero-intro {
  width: min(540px, 100%);
  margin: 12px auto 30px;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.55;
}

.reference-home .central-search {
  display: block;
}

.reference-home .hero-plate {
  position: relative;
  width: min(600px, calc(100vw - 34px));
  height: 118px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  overflow: hidden;
  background: #f9fbfd;
  border: 3px solid #101c2b;
  border-radius: 15px;
  box-shadow:
    0 3px 0 rgba(255, 255, 255, .98),
    0 18px 28px rgba(29, 62, 90, .24),
    0 42px 72px rgba(24, 63, 95, .25),
    0 76px 120px rgba(31, 74, 108, .13);
  transition: transform .2s ease, box-shadow .2s ease;
}

.reference-home .hero-plate:focus-within {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 4px rgba(24, 120, 230, .18),
    0 20px 34px rgba(29, 62, 90, .25),
    0 48px 82px rgba(24, 63, 95, .27);
}

html[data-theme="dark"] .reference-home .hero-plate {
  border-color: #26384b;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .22),
    0 18px 36px rgba(255, 255, 255, .07),
    0 52px 90px rgba(0, 0, 0, .68);
}

.reference-home .plate-side {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0c62c9;
}

.reference-home .plate-side img {
  display: block;
  width: 66px;
  height: 118px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 30, 76, .24));
}

.reference-home .plate-input {
  min-width: 0;
  height: 100%;
  padding: 0 20px;
  color: #070b11;
  background: #f9fbfd;
  border: 0;
  border-radius: 0;
  outline: 0;
  font-family: "DejaVu Sans", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 520;
  line-height: 1;
  letter-spacing: .10em;
  text-align: center;
  text-transform: uppercase;
}

.reference-home .plate-input::placeholder {
  color: #070b11;
  opacity: 1;
}

.reference-home .connection-status {
  width: min(580px, calc(100vw - 42px));
  margin: 30px auto 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--home-text);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.reference-home .connection-status span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--home-text);
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
}

.reference-home .connection-status .ph {
  color: var(--home-green);
  font-size: 24px;
  filter: drop-shadow(0 0 7px rgba(19, 189, 86, .45));
}

.reference-home .hero-center .search-btn {
  width: min(320px, calc(100vw - 52px));
  min-height: 62px;
  margin: 27px auto 0;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(180deg, var(--home-blue-bright), #0866ca);
  border: 1px solid rgba(0, 74, 153, .62);
  border-radius: 13px;
  font-size: 17px;
  font-weight: 760;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .42),
    0 16px 28px rgba(0, 76, 153, .34),
    0 36px 64px rgba(16, 66, 111, .25);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.reference-home .search-btn .ph {
  font-size: 28px;
}

.reference-home .search-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .48),
    0 20px 34px rgba(0, 76, 153, .38),
    0 42px 72px rgba(16, 66, 111, .28);
}

.reference-home .search-btn:active {
  transform: translateY(1px);
}

.reference-home :where(a, button, input):focus-visible {
  outline: 3px solid rgba(19, 119, 225, .38);
  outline-offset: 3px;
}

/* Lavmælt innhold under første skjerm */
.reference-home .report-teaser {
  position: relative;
  padding: 88px 0 110px;
  border-top: 1px solid rgba(66, 100, 128, .11);
}

.reference-home .report-teaser-inner {
  width: min(calc(100% - 40px), 1160px);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 62px;
  align-items: center;
  padding: clamp(32px, 5vw, 58px);
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 24px;
  box-shadow: var(--home-depth);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.reference-home .report-copy h2 {
  margin: 0;
  color: var(--home-text);
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.reference-home .report-copy > p:not(.section-kicker) {
  margin: 18px 0 24px;
  color: var(--home-muted);
  line-height: 1.7;
}

.reference-home .report-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--home-blue);
  font-weight: 760;
}

.reference-home .report-link .ph {
  font-size: 18px;
}

.reference-home .report-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.reference-home .report-steps article {
  min-height: 172px;
  padding: 21px 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--home-border);
  border-radius: 17px;
  background: rgba(255, 255, 255, .46);
  box-shadow: 0 15px 32px rgba(32, 69, 99, .09);
}

html[data-theme="dark"] .reference-home .report-steps article {
  background: rgba(11, 29, 45, .58);
}

.reference-home .report-steps article > span {
  color: var(--home-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.reference-home .report-steps strong {
  margin: auto 0 8px;
  color: var(--home-text);
  font-size: 15px;
}

.reference-home .report-steps small {
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.45;
}

/* Fast bunnbånd */
.reference-home .home-footer {
  position: fixed;
  z-index: 95;
  inset: auto 0 0;
  height: var(--home-footer-h);
  color: var(--home-text);
  background: rgba(250, 253, 255, .90);
  border-top: 1px solid rgba(48, 79, 106, .12);
  box-shadow: 0 -14px 38px rgba(26, 58, 84, .15);
  backdrop-filter: blur(24px) saturate(1.12);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
}

html[data-theme="dark"] .reference-home .home-footer {
  background: rgba(2, 8, 15, .90);
  border-top-color: rgba(158, 192, 221, .12);
  box-shadow: 0 -16px 44px rgba(0, 0, 0, .38);
}

.reference-home .home-footer .footer-inner {
  width: min(calc(100% - 44px), 1540px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.reference-home .footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(22px, 3vw, 44px);
  color: var(--home-muted);
  font-size: 12px;
}

.reference-home .footer-contact {
  display: grid;
  gap: 6px;
  color: var(--home-muted);
  font-size: 12px;
  text-align: right;
}

.reference-home .footer-contact > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.reference-home .footer-contact .version {
  margin: 0;
  color: var(--home-text);
  font-size: 11px;
}

/* AI-promptknapp og panel */
.reference-home .ai-guide-button {
  position: fixed;
  z-index: 120;
  right: 28px;
  bottom: calc(var(--home-footer-h) + 20px);
  width: 142px;
  height: 58px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  padding: 3px 12px 3px 3px;
  color: #fff;
  background: rgba(8, 40, 78, .96);
  border: 1px solid rgba(116, 183, 255, .72);
  border-radius: 999px;
  box-shadow:
    0 0 0 5px rgba(25, 123, 230, .13),
    0 0 30px rgba(34, 128, 239, .68),
    0 20px 42px rgba(0, 47, 104, .34);
  cursor: pointer;
  animation: aiPulse 2.8s ease-in-out infinite;
}

.reference-home .ai-guide-button::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 3px;
  width: 9px;
  height: 9px;
  background: #22d96b;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 12px #22d96b;
}

.reference-home .ai-orb-copy {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #2d8dfa, #0866cf);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .32), 0 8px 18px rgba(0, 36, 86, .30);
  font-size: 14px;
  font-weight: 900;
}

.reference-home .ai-launch-copy {
  display: grid;
  gap: 1px;
  text-align: left;
}

.reference-home .ai-launch-copy strong {
  font-size: 12px;
}

.reference-home .ai-launch-copy small {
  color: #add4ff;
  font-size: 8px;
}

@keyframes aiPulse {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
    box-shadow:
      0 0 0 7px rgba(25, 123, 230, .10),
      0 0 38px rgba(34, 128, 239, .74),
      0 22px 48px rgba(0, 47, 104, .37);
  }
}

.reference-home .home-ai-panel {
  right: 28px;
  bottom: calc(var(--home-footer-h) + 92px);
  width: min(390px, calc(100vw - 32px));
  height: min(590px, 58dvh);
  min-height: 430px;
  overflow: hidden;
  color: var(--home-text) !important;
  background: var(--home-surface-strong) !important;
  border: 1px solid var(--home-border) !important;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(15, 49, 80, .34) !important;
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

html[data-theme="dark"] .reference-home .home-ai-panel {
  box-shadow: 0 32px 84px rgba(0, 0, 0, .66), 0 0 42px rgba(31, 115, 218, .10) !important;
}

.reference-home .home-ai-panel.open {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.reference-home .ai-guide-head {
  min-height: 72px;
  padding: 13px 14px;
}

.reference-home .ai-guide-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reference-home .ai-guide-brand img {
  width: 112px;
}

.reference-home .ai-guide-brand > span {
  display: grid;
}

.reference-home .ai-guide-brand strong {
  font-size: 12px;
}

.reference-home .ai-guide-brand small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--home-muted);
  font-size: 9px;
}

.reference-home .ai-guide-brand small i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--home-green);
  box-shadow: 0 0 8px rgba(19, 189, 86, .68);
}

.reference-home .ai-guide-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reference-home .ai-guide-actions .ghost {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--home-muted);
}

.reference-home .ai-guide-actions .ghost .ph {
  font-size: 18px;
}

.reference-home .ai-guide-body {
  padding: 14px;
}

.reference-home .ai-guide-msg {
  padding: 13px;
  color: var(--home-text) !important;
  background: rgba(229, 240, 249, .66) !important;
  border-color: var(--home-border) !important;
  border-radius: 13px;
  font-size: 12px;
  line-height: 1.55;
}

html[data-theme="dark"] .reference-home .ai-guide-msg {
  background: rgba(12, 32, 50, .88) !important;
}

.reference-home .ai-guide-msg strong {
  display: block;
  margin-bottom: 2px;
}

.reference-home .ai-suggestions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.reference-home .ai-suggestions button {
  width: 100%;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  color: var(--home-text);
  background: rgba(244, 249, 253, .72);
  border: 1px solid var(--home-border);
  border-radius: 12px;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

html[data-theme="dark"] .reference-home .ai-suggestions button {
  color: #dbe8f5;
  background: rgba(11, 30, 47, .72);
}

.reference-home .ai-suggestions button:hover {
  color: var(--home-blue);
  border-color: rgba(25, 119, 220, .44);
}

.reference-home .ai-suggestions .ph {
  color: var(--home-blue);
  font-size: 15px;
}

.reference-home .ai-guide-form {
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  padding: 12px;
}

.reference-home .ai-guide-form input {
  min-width: 0;
  height: 42px;
}

.reference-home .ai-guide-form .primary {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
}

@media (max-width: 980px) {
  .reference-home .top-actions {
    gap: 15px;
  }

  .reference-home .locale-button,
  .reference-home .login-link,
  .reference-home .menu-button,
  .reference-home .api-status {
    font-size: 12px;
  }

  .reference-home .report-teaser-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (min-width: 701px) and (max-width: 1400px) {
  .reference-home .home-ai-panel {
    right: 16px;
    width: 370px;
  }
}

@media (max-width: 700px) {
  :root {
    --home-header-h: 120px;
    --home-footer-h: 116px;
  }

  .reference-home .home-topbar {
    height: var(--home-header-h);
  }

  .reference-home .top-inner {
    width: calc(100% - 22px);
  }

  .reference-home .top-main {
    position: relative;
    height: 100%;
    align-items: flex-start;
    border-bottom: 0;
  }

  .reference-home .brand-link {
    height: 64px;
  }

  .reference-home .brand-link .logo {
    width: min(164px, 43vw);
  }

  .reference-home .brand-halo {
    inset: 22% 6% 12%;
  }

  .reference-home .top-actions {
    height: 64px;
    gap: 15px;
  }

  .reference-home .api-status {
    font-size: 10px;
  }

  .reference-home .api-status > i {
    width: 8px;
    height: 8px;
  }

  .reference-home .theme-icon-light,
  .reference-home .theme-icon-dark,
  .reference-home .menu-button span {
    display: none;
  }

  .reference-home .theme-toggle {
    width: 42px !important;
    height: 24px !important;
    min-width: 42px;
  }

  .reference-home .theme-toggle::after {
    width: 16px !important;
    height: 16px !important;
  }

  html[data-theme="dark"] .reference-home .theme-toggle::after {
    transform: translateX(18px) !important;
  }

  .reference-home .menu-button {
    padding: 4px 0;
  }

  .reference-home .menu-button .ph {
    font-size: 29px;
  }

  .reference-home .locale-button,
  .reference-home .login-link {
    position: absolute;
    top: 64px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    font-size: 13px;
  }

  .reference-home .locale-button {
    left: 0;
  }

  .reference-home .login-link {
    right: 0;
  }

  .reference-home .top-main::after {
    content: "";
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(58, 88, 114, .11);
  }

  .reference-home .menu-anchor .menu-panel {
    position: fixed !important;
    inset: 70px 11px auto auto !important;
    width: min(250px, calc(100vw - 22px));
  }

  .reference-home .home-hero {
    min-height: calc(100dvh - var(--home-header-h) - var(--home-footer-h));
    padding: 64px 0 78px;
  }

  .reference-home .hero-shell {
    width: 100%;
    padding: 0 11px;
  }

  .reference-home .hero-center {
    transform: translateY(30px) !important;
  }

  .reference-home .hero-kicker {
    margin-bottom: 8px;
    font-size: 8px;
  }

  .reference-home .hero-center h1 {
    font-size: 24px;
  }

  .reference-home .hero-center > .hero-intro {
    max-width: 340px;
    margin: 11px auto 34px !important;
    font-size: 11px;
    line-height: 1.48;
  }

  .reference-home .hero-plate {
    width: min(390px, calc(100vw - 22px));
    height: 84px;
    grid-template-columns: 58px minmax(0, 1fr);
    border-width: 3px;
    border-radius: 12px;
    box-shadow:
      0 2px 0 rgba(255, 255, 255, .94),
      0 16px 26px rgba(27, 60, 88, .26),
      0 36px 58px rgba(26, 66, 99, .20);
  }

  .reference-home .plate-side img {
    width: 47px;
    height: 84px;
  }

  .reference-home .plate-input {
    padding: 0 8px;
    font-size: clamp(36px, 12.1vw, 47px);
    letter-spacing: .07em;
  }

  .reference-home .connection-status {
    width: min(290px, calc(100vw - 56px));
    margin-top: 26px;
    display: grid !important;
    gap: 0;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .reference-home .connection-status span {
    width: 100%;
    min-height: 42px;
    gap: 9px;
    justify-self: stretch;
    justify-content: flex-start;
    padding: 9px 4px !important;
    border-bottom: 1px solid rgba(70, 103, 131, .14) !important;
    font-size: 11px;
  }

  .reference-home .connection-status span:last-child {
    border-bottom: 0 !important;
  }

  .reference-home .connection-status .ph {
    font-size: 24px;
  }

  .reference-home .hero-center .search-btn {
    width: min(280px, calc(100vw - 50px));
    min-height: 56px;
    margin-top: 24px;
    font-size: 16px;
  }

  .reference-home .report-teaser {
    padding: 62px 0 82px;
  }

  .reference-home .report-teaser-inner {
    width: calc(100% - 22px);
    padding: 27px 20px;
    gap: 28px;
    border-radius: 20px;
  }

  .reference-home .report-copy h2 {
    font-size: 28px;
  }

  .reference-home .report-steps {
    grid-template-columns: 1fr;
  }

  .reference-home .report-steps article {
    min-height: 118px;
  }

  .reference-home .home-footer {
    height: var(--home-footer-h);
  }

  .reference-home .home-footer .footer-inner {
    width: calc(100% - 22px);
    display: grid;
    grid-template-rows: auto auto;
    justify-content: stretch;
    gap: 13px;
    padding: 17px 0 14px;
  }

  .reference-home .footer-links {
    justify-content: center;
    gap: clamp(15px, 5vw, 28px);
    font-size: 10px;
  }

  .reference-home .footer-contact {
    justify-items: start;
    gap: 6px;
    font-size: 10px;
    text-align: left;
  }

  .reference-home .footer-contact > span:first-child {
    justify-content: flex-start;
  }

  .reference-home .footer-contact .version {
    font-size: 10px;
  }

  .reference-home .ai-guide-button {
    right: 16px;
    bottom: calc(var(--home-footer-h) + 16px);
    width: 58px;
    height: 58px;
    display: grid;
    grid-template-columns: 1fr;
    padding: 3px;
  }

  .reference-home .ai-orb-copy {
    width: 50px;
    height: 50px;
  }

  .reference-home .ai-launch-copy {
    display: none;
  }

  .reference-home .home-ai-panel {
    right: 10px;
    bottom: calc(var(--home-footer-h) + 84px);
    width: calc(100vw - 20px);
    height: min(560px, calc(100dvh - var(--home-header-h) - 30px));
    min-height: 400px;
  }

  .reference-home .ai-guide-brand img {
    width: 100px;
  }
}

@media (max-width: 390px) {
  .reference-home .top-actions {
    gap: 11px;
  }

  .reference-home .api-status {
    font-size: 9px;
  }

  .reference-home .hero-plate {
    height: 82px;
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .reference-home .plate-side img {
    width: 46px;
    height: 82px;
  }

  .reference-home .plate-input {
    font-size: clamp(34px, 11.8vw, 44px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reference-home *,
  .reference-home *::before,
  .reference-home *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
