:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #173953;
  background: #f4f8fc;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --navy: #103858;
  --blue: #287bb2;
  --muted: #536778;
  --border: #dbe5ed;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
html.dialog-open { overflow: hidden; }

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 20px;
  place-items: center;
  padding: 16px 32px;
  background: radial-gradient(ellipse at 50% 0, #e8f2fa 0, transparent 64%);
}

.landing { width: min(100%, 1120px); }
.intro { text-align: center; }

.brands {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 27px;
  margin-bottom: 18px;
}

.plover-brand { display: flex; align-items: center; gap: 10px; }
.plover-mark { width: 68px; height: 68px; object-fit: contain; }
.plover-wordmark { display: flex; flex-direction: column; text-align: left; }
.plover-name { color: #0e3760; font-size: 35px; line-height: 1.05; font-weight: 750; letter-spacing: -1.8px; }
.plover-subtitle { margin-top: 5px; font-size: 9px; font-weight: 550; text-transform: uppercase; letter-spacing: 2.2px; }
.brand-divider { height: 38px; width: 1px; background: #c9d8e5; }
.xkova-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.powered-by { color: var(--muted); font-size: 12px; letter-spacing: .2px; }
.xkova-brand img { display: block; width: 126px; height: auto; }

h1 { margin: 0; color: var(--navy); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 650; line-height: 1.14; letter-spacing: -1.8px; }
h1 span { color: var(--blue); }
.intro-copy { margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

.experiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.experience {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px -10px #163b5b1a;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.experience-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #d7e8f4; border-radius: 12px; color: #21689b; background: #edf6fc; }
.experience-icon svg { width: 26px; height: 26px; }
.experience-number { color: #8da2b2; font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.demo-badge { padding: 5px 10px; border: 1px solid #d7e8f4; border-radius: 100px; color: #21689b; background: #edf6fc; font-size: 14px; font-weight: 600; line-height: 1.4; }
.eyebrow { margin: 0 0 6px; color: #587184; font-size: 14px; font-weight: 500; line-height: 1.5; }
h2 { margin: 0; color: var(--navy); font-size: 23px; font-weight: 650; line-height: 1.3; letter-spacing: -.55px; }
.description { margin: 12px 0 24px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.card-bottom { margin-top: auto; }
.network-note { margin: 0 0 12px; color: var(--navy); font-size: 14px; font-weight: 600; line-height: 1.5; }
.experience-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 12px 15px; border: 1px solid #d2e0eb; border-radius: 7px; background: #f4f8fc; color: #153e5d; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.45; text-align: left; text-decoration: none; transition: background 180ms ease, border-color 180ms ease; }
.experience--standalone .experience-link { background: var(--navy); border-color: var(--navy); color: #fff; }
button.experience-link { cursor: pointer; }
button.experience-link:disabled { opacity: .6; cursor: not-allowed; }
.external-icon { width: 19px; height: 19px; flex-shrink: 0; }
.experience-link:focus-visible, .legal-links a:focus-visible { outline: 3px solid #298bc9; outline-offset: 4px; }

.page-footer { width: min(100%, 1120px); padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.copyright { margin: 0; font-size: 12px; line-height: 1.6; }
.legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.legal-links a { color: var(--muted); font-size: 14px; line-height: 1.6; text-decoration: none; text-underline-offset: 4px; }
.legal-links a:hover { color: var(--navy); text-decoration: underline; }
.page-footer .demo-note { margin: 8px 0 0; color: #6b7f8f; font-size: 12px; line-height: 1.6; }
.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; }
.script-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.demo-dialog { width: min(38rem, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #fff; color: var(--navy); box-shadow: 0 24px 80px #0b284b40; }
.demo-dialog[open] { display: flex; }
.demo-dialog::backdrop { background: #0d253ab3; backdrop-filter: blur(4px); }
.dialog-form { display: flex; flex-direction: column; width: 100%; min-height: 0; max-height: inherit; }
.dialog-content { min-height: 0; padding: 28px; overflow-y: auto; overscroll-behavior: contain; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dialog-header h2 { margin: 5px 0 0; font-size: 25px; line-height: 1.3; }
.dialog-header h2:focus { outline: none; }
.dialog-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; margin: -4px -8px 0 0; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.dialog-close svg { width: 22px; height: 22px; }
.dialog-close:hover { background: #edf6fc; color: var(--navy); }
.dialog-copy { color: var(--muted); font-size: 16px; line-height: 1.65; }
.dialog-copy p { margin: 0 0 16px; }
.dialog-email-note { margin-top: 20px; padding: 0 0 0 14px; border-left: 3px solid #bdd9ec; }
.dialog-email-note h3 { margin: 0 0 6px; color: var(--navy); font-size: 16px; font-weight: 600; line-height: 1.5; }
.dialog-email-note p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.dialog-acknowledgment { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; padding: 16px; border: 1px solid #d7e8f4; border-radius: 10px; background: #f0f7fc; color: var(--navy); font-size: 15px; font-weight: 550; line-height: 1.55; cursor: pointer; }
.dialog-acknowledgment input { flex-shrink: 0; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); cursor: pointer; }
.dialog-actions { display: flex; flex-shrink: 0; justify-content: flex-end; gap: 12px; padding: 20px 28px; border-top: 1px solid var(--border); background: #f8fbfd; }
.dialog-button { min-height: 48px; padding: 12px 18px; border: 1px solid var(--border); border-radius: 7px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.dialog-button--secondary { background: #fff; color: var(--navy); }
.dialog-button--primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.dialog-button--secondary:hover { background: #edf6fc; }
.dialog-button--primary:hover:not(:disabled) { background: #1c5076; border-color: #1c5076; }
.dialog-button:disabled { background: #e5ebf0; border-color: #dce4eb; color: #647786; cursor: not-allowed; }
.dialog-close:focus-visible, .dialog-button:focus-visible, .dialog-acknowledgment input:focus-visible { outline: 3px solid #298bc9; outline-offset: 3px; }

@media (max-width: 480px) {
  .demo-dialog { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .dialog-content { padding: 22px 20px; }
  .dialog-header { gap: 8px; }
  .dialog-header h2 { font-size: 23px; }
  .dialog-acknowledgment { padding: 14px; }
  .dialog-actions { flex-direction: column; gap: 10px; padding: 16px 20px; }
  .dialog-button { width: 100%; }
}

@media (hover: hover) {
  .experience:hover { transform: translateY(-3px); border-color: #aac7dc; box-shadow: 0 12px 28px -15px #163b5b38; }
  .experience-link:hover { background: #e7f1f9; border-color: #aac7dc; }
  .experience--standalone .experience-link:hover { background: #1c5076; border-color: #1c5076; }
}

@media (max-width: 960px) and (min-width: 761px) {
  body { padding-inline: 24px; }
  .experiences { gap: 14px; }
  .experience { padding: 22px 20px; }
  h2 { font-size: 20px; }
  .experience-link { padding-inline: 12px; }
}

@media (max-width: 760px) {
  body { padding: 38px 20px; }
  .landing { max-width: 480px; }
  .brands { gap: 20px; margin-bottom: 30px; }
  .plover-mark { width: 58px; height: 58px; }
  .plover-name { font-size: 30px; }
  .plover-subtitle { font-size: 8px; letter-spacing: 1.7px; }
  .xkova-brand img { width: 106px; }
  h1 { font-size: clamp(1.85rem, 5.8vw, 2.55rem); line-height: 1.2; letter-spacing: -1px; }
  .intro-copy { max-width: 330px; margin: 15px auto 0; font-size: 16px; }
  .experiences { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
  .experience { padding: 26px; }
  .card-top { margin-bottom: 23px; }
  h2 { font-size: 24px; }
  .description { margin-bottom: 24px; }
  .page-footer { max-width: 480px; margin-top: 7px; padding-top: 20px; text-align: center; }
  .footer-row { flex-direction: column; gap: 10px; }
  .legal-links { justify-content: center; gap: 8px 18px; }
  .page-footer .demo-note { margin-top: 12px; }
}

@media (max-width: 359px) {
  body { padding-inline: 16px; }
  .brands { gap: 13px; }
  .plover-brand { gap: 5px; }
  .plover-mark { width: 48px; height: 48px; }
  .plover-name { font-size: 27px; }
  .xkova-brand img { width: 88px; }
  .experience { padding: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
