:root {
  color-scheme: light;
  --bg: #fff;
  --text: #212322;
  --brand-text: #00776F;
  --brand-text-hover: #00635C;
  --brand: #00A89D;
  --brand-hover: #0A9B89;
  --cta: #00857D;
  --cta-hover: #007870;
  --line: #e6e6e6;
  --muted: #55615e;
  --focus: #212322;
  --popover: var(--bg);
  --popover-border: #6f8b86;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--brand-text);
}

a:hover {
  color: var(--brand-text-hover);
}

.brand,
.brand:hover {
  color: var(--text);
  line-height: 0;
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin-left: -0.85rem;
  padding: 1rem 0.85rem;
}

.brand-logo {
  display: block;
  width: 165px;
  height: 48px;
}

.top,
main {
  margin-left: auto;
  margin-right: auto;
}

.top {
  width: min(1140px, calc(100% - 2rem));
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0;
}

main {
  width: min(800px, calc(100% - 2rem));
}

.tools {
  display: flex;
  align-items: center;
  margin-right: -0.45rem;
}

.lang {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 2rem;
  margin: 0;
  padding: 0 0.7rem;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}

.lang:hover,
.theme-toggle:hover,
.info-toggle:hover,
.info-toggle[aria-expanded="true"] {
  color: var(--brand-text);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 2rem;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  line-height: 1;
  cursor: pointer;
}

.info-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 2rem;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.info-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  /* The dot sits above the stem; this lines the stem up with the language caps. */
  position: relative;
  top: -0.11rem;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
  color: inherit;
  font-family: "Palatino Linotype", Palatino, Georgia, "Times New Roman", Times, serif;
  font-size: 1.25rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  anchor-name: --company-info;
}

.brand:focus,
.lang:focus,
.theme-toggle:focus,
.info-toggle:focus {
  outline: none;
}

.brand:focus-visible,
.lang:focus-visible,
.theme-toggle:focus-visible,
.info-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Grow down and left from the info letter, not the stretched header button. */
.company-popover[popover] {
  position: fixed;
  position-anchor: --company-info;
  box-sizing: border-box;
  width: max-content;
  max-width: min(42rem, calc(100vw - 2.75rem));
  margin: 0;
  inset: auto;
  top: calc(anchor(bottom) + 4px);
  right: anchor(left);
  bottom: auto;
  left: auto;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--popover-border);
  border-radius: 8px;
  background: var(--popover);
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.45;
  outline: none;
  box-shadow: none;
}

.company-popover p {
  margin: 0;
}

.company-popover .company-ids,
.company-popover .company-register {
  margin-top: 1rem;
}

.company-name {
  font-weight: 700;
}

.company-register {
  color: var(--muted);
}

.theme-icon {
  display: none;
  width: 1.15rem;
  height: 1.15rem;
}

:root:not([data-theme="dark"]) .theme-icon-moon {
  display: block;
}

:root[data-theme="dark"] .theme-icon-sun {
  display: block;
}

h1 {
  margin: 0 auto;
  max-width: 40rem;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.015em;
  text-align: center;
  text-wrap: balance;
}

.subhead {
  margin: 0.4rem auto 0;
  max-width: 44rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: center;
  text-wrap: balance;
  color: var(--muted);
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: clamp(180px, 42vh, 420px);
  margin: 1rem 0 2rem;
}

.hero-frame {
  position: relative;
  width: min(100%, calc(clamp(180px, 42vh, 420px) * 800 / 510));
  aspect-ratio: 800 / 510;
  max-height: 100%;
}

.fundus {
  position: absolute;
  left: 18.853%;
  top: 2.351%;
  width: 62.544%;
  height: 95.299%;
}

#hero-lottie {
  position: absolute;
  inset: 0;
}

#hero-lottie svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.cta {
  /* Fixed hit target. Top padding equals the hover lift; the negative
     margin keeps the pill in place so the raised face stays inside.
     This wrapper is not a control and never takes focus. */
  display: flex;
  flex-direction: column;
  margin-top: -2px;
  padding-top: 2px;
  color: #fff;
}

.cta:focus,
.cta:focus-visible {
  outline: none;
}

.cta-face {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  text-align: center;
  text-decoration: none;
  line-height: 1.25;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.cta-label {
  font-size: 1.05rem;
  font-weight: 700;
}

.cta-meta {
  font-size: 0.78rem;
  font-weight: 400;
}

.cta:hover .cta-face {
  background: var(--cta-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 168, 157, 0.28);
}

.cta:active .cta-face {
  transform: scale(0.98);
}

.cta-face:focus {
  outline: none;
}

.cta-face:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .hero {
    margin: 0.25rem 0;
  }

  .cols {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 760px) {
  h1 {
    margin-top: 0;
  }

  .subhead {
    margin-top: 0.2rem;
  }

  .cols {
    margin: 0.45rem 0 0.7rem;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121413;
  --text: #E7E9E7;
  --brand-text: #4ED4C8;
  --brand-text-hover: #7BE7DE;
  --line: #2C302E;
  --muted: #9aa6a2;
  --focus: #E7E9E7;
  --popover-border: #5c7a76;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121413;
    --text: #E7E9E7;
    --brand-text: #4ED4C8;
    --brand-text-hover: #7BE7DE;
    --line: #2C302E;
    --muted: #9aa6a2;
    --focus: #E7E9E7;
    --popover-border: #5c7a76;
  }

  :root:not([data-theme]) .theme-icon-moon {
    display: none;
  }

  :root:not([data-theme]) .theme-icon-sun {
    display: block;
  }
}

@media print {
  .info-toggle {
    display: none;
  }

  .company-popover[popover]:not(:popover-open) {
    display: block;
    position: static;
    width: min(800px, calc(100% - 2rem));
    max-width: none;
    margin: 1.25rem auto 0;
    inset: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #000;
    translate: none;
    box-shadow: none;
  }

  .company-register {
    color: #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-face {
    transition: none;
  }

  .cta:hover .cta-face,
  .cta:active .cta-face {
    transform: none;
  }
}
