/* The society is the hero. Each highlight corresponds to one real product. */
.hero {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 24px;
}
.hero h1 {
  font-size: clamp(48px, 4.6vw, 66px);
}
.hero-support {
  max-width: 37ch;
}
.society-explorer {
  min-width: 0;
  width: 100%;
  position: relative;
}
.explorer-stage {
  position: relative;
  aspect-ratio: 1.35;
}
.society-model {
  position: absolute;
  width: 82%;
  left: -2%;
  top: 0;
  aspect-ratio: 640 / 560;
}
.society-art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.block-name {
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  fill: #426551;
}
.home-accent {
  transition: fill 200ms ease;
}
.home-outline,
.society-outline {
  opacity: 0;
  transition: opacity 200ms ease;
}
.connection-route {
  opacity: 0;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: opacity 180ms;
  pointer-events: none;
}
.society-explorer[data-selected="home"] .home-accent {
  fill: #d8ef87;
}
.society-explorer[data-selected="home"] .home-outline {
  opacity: 1;
}
.society-explorer[data-selected="desk"] .society-outline {
  opacity: 0.85;
}
.society-explorer[data-selected="gate"] .connection-route {
  opacity: 1;
}
.society-explorer[data-emphasis="home"] .home-outline,
.society-explorer[data-emphasis="desk"] .society-outline {
  opacity: 1;
}
.society-explorer[data-emphasis="gate"] .gate-cabin {
  filter: drop-shadow(0 0 4px #9aba65);
}
.society-hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  padding: 0 12px 0 0;
  min-height: 44px;
  gap: 7px;
  border: 1px solid #c7d4c0;
  border-radius: 24px;
  background: #fffef8;
  box-shadow: 0 3px 10px #173e3514;
  color: var(--forest);
  font-size: 11px;
  white-space: nowrap;
  transition:
    background 180ms,
    border-color 180ms,
    box-shadow 180ms,
    translate 180ms;
}
.hotspot-home {
  left: 18%;
  top: 44%;
}
.hotspot-gate {
  left: 25%;
  top: 79%;
}
.hotspot-desk {
  left: 68%;
  top: 25%;
}
.hotspot-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-left: 2px;
}
.society-hotspot svg,
.explorer-options svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.society-hotspot[aria-pressed="true"] {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
  box-shadow: 0 4px 14px #173e3526;
}
.society-hotspot[aria-pressed="true"] .hotspot-symbol {
  color: var(--citrus);
}
.society-hotspot:focus-visible,
.explorer-options button:focus-visible,
.preview-launch:focus-visible,
.mobile-preview-open:focus-visible,
.society-dialog button:focus-visible {
  outline: 3px solid #648640;
  outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .society-hotspot:hover {
    translate: 0 -3px;
    border-color: #557950;
    box-shadow: 0 6px 16px #173e3526;
  }
  .explorer-options button:hover {
    background: #e8ecdf;
  }
  .preview-launch:hover .preview-enlarge {
    color: var(--forest);
    text-decoration: underline;
  }
}
.explorer-preview {
  position: absolute;
  right: 0;
  top: 0;
  width: 30%;
  height: calc(100% - 145px);
  display: grid;
  align-content: center;
  z-index: 2;
}
.preview-launch {
  display: block;
  width: 100%;
  text-decoration: none;
  color: var(--forest);
  border-radius: 20px;
}
.explorer-screen {
  border: 3px solid #284f3f;
  background: white;
  border-radius: 21px;
  overflow: hidden;
  box-shadow:
    5px 9px 0 #d0dcc3,
    0 12px 30px #173e350a;
}
.explorer-screen .capture-brand {
  font-size: 10px;
  gap: 3px;
  padding: 10px 6px;
}
.explorer-screen .capture-brand img {
  width: 13px;
  height: 13px;
}
.explorer-screen .capture-brand span {
  font-size: 8px;
  margin-left: 2px;
  padding-left: 5px;
}
.explorer-crop {
  overflow: hidden;
}
.explorer-crop > img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: -13.846%;
}
.screen-gate .explorer-crop > img {
  margin-top: -14%;
}
.preview-enlarge {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  font-size: 10px;
  color: var(--muted);
  min-height: 30px;
}
.explorer-preview:has(.screen-desk) {
  width: 33%;
  right: 0;
}
.screen-desk {
  border-radius: 8px;
  border-width: 1px;
  box-shadow: 5px 8px 0 #d0dcc3;
}
.screen-desk .explorer-crop > img {
  margin-top: 0;
}
.screen-desk .capture-brand {
  padding: 9px 7px;
  border-bottom: 1px solid #d7dfd0;
}
.explorer-controls {
  position: relative;
  z-index: 3;
}
.explorer-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 5px;
  gap: 3px;
  border: 1px solid #d9dfd0;
  border-radius: 14px;
  background: #eeefe5;
}
.explorer-options button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: transparent;
  color: var(--forest);
  padding: 9px 8px;
  border: 0;
  border-radius: 10px;
  text-align: left;
  min-height: 54px;
  font-size: 13px;
  font-weight: 550;
  transition:
    background 180ms,
    box-shadow 180ms;
}
.explorer-options button[aria-pressed="true"] {
  background: #fffef8;
  box-shadow: 0 1px 4px #173e3512;
}
.explorer-options small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 1px;
}
.explorer-hint {
  position: absolute;
  top: -30px;
  left: 0;
  font-size: 10px;
  color: var(--muted);
}
.explorer-summary {
  min-height: 78px;
  padding: 17px 5px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.explorer-summary > p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.explorer-summary > p strong {
  display: block;
  font-weight: 600;
}
.explorer-summary > p span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  max-width: 53ch;
}
.mobile-preview-open {
  display: none;
}
/* A real modal on every device; it becomes a bottom sheet on touch-sized views. */
.society-dialog {
  padding: 0;
  width: min(900px, calc(100% - 64px));
  max-width: none;
  max-height: calc(100dvh - 64px);
  margin: auto;
  border: 1px solid #d7dece;
  border-radius: 22px;
  color: var(--forest);
  background: #f8f8f1;
  box-shadow: 0 20px 80px #102b3a33;
  overflow: hidden;
}
.society-dialog::backdrop {
  background: #102d25a8;
  backdrop-filter: blur(4px);
}
.society-dialog[open] {
  display: flex;
  flex-direction: column;
}
.society-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #dce2d4;
  flex: 0 0 auto;
}
.society-dialog-header h2 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.society-dialog-header p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.society-dialog-close {
  display: grid;
  place-items: center;
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #d6decd;
  background: #fffef9;
  color: var(--forest);
  flex: 0 0 auto;
}
.society-dialog-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
.society-dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 30px;
  padding: 26px 32px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
.dialog-app-image {
  width: 100%;
  max-width: 270px;
  margin-inline: auto;
}
.dialog-app-image .capture-brand {
  font-size: 14px;
  padding: 13px 10px;
}
.dialog-app-image .capture-brand img {
  width: 18px;
  height: 18px;
}
.dialog-app-image .capture-brand span {
  font-size: 11px;
}
.dialog-app-copy {
  font-size: 15px;
  line-height: 1.6;
}
.dialog-features {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}
.dialog-features li {
  padding: 10px 0;
  border-top: 1px solid #d7dfcf;
  font-size: 13px;
  color: var(--muted);
}
.dialog-full-size {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 500;
}
.society-dialog[data-product="desk"] {
  width: min(1100px, calc(100% - 64px));
}
.society-dialog[data-product="desk"] .society-dialog-body {
  grid-template-columns: 1fr;
  gap: 24px;
}
.society-dialog[data-product="desk"] .dialog-app-image {
  max-width: none;
}
.society-dialog[data-product="desk"] .dialog-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-block: 14px;
}
.society-preview-open {
  overflow: hidden;
}
@media (max-width: 1150px) and (min-width: 901px) {
  .hero {
    grid-template-columns: 0.82fr 1.18fr;
    gap: 14px;
  }
  .hero h1 {
    font-size: 53px;
  }
  .explorer-stage {
    aspect-ratio: 1.18;
  }
  .society-model {
    width: 84%;
    left: -2%;
    top: 30px;
  }
  .explorer-preview {
    height: calc(100% - 145px);
    width: 30%;
  }
  .hotspot-label {
    font-size: 10px;
  }
  .hotspot-symbol {
    width: 32px;
  }
  .society-hotspot {
    gap: 3px;
    padding-right: 9px;
  }
  .explorer-options button {
    gap: 6px;
    padding-inline: 5px;
  }
}
@media (min-width: 601px) and (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-copy {
    max-width: 620px;
  }
  .hero h1 {
    font-size: 62px;
  }
  .society-explorer {
    max-width: 650px;
    justify-self: center;
  }
  .explorer-stage {
    aspect-ratio: 1.35;
  }
  .explorer-summary {
    min-height: 78px;
  }
}
@media (max-width: 600px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 32px 35px;
  }
  .hero h1 {
    font-size: clamp(41px, 10.8vw, 58px);
    max-width: none;
  }
  .hero .intro {
    margin-bottom: 18px;
    font-size: 10px;
  }
  .hero .lead {
    font-size: 17px;
    line-height: 1.5;
    margin-top: 20px;
  }
  .hero-support {
    font-size: 13px;
    max-width: 40ch;
    margin-top: 14px;
  }
  .hero-actions {
    margin-top: 22px;
    gap: 22px;
  }
  .hero-rate {
    margin-top: 20px;
  }
  .society-explorer {
    max-width: 490px;
    margin-inline: auto;
  }
  .explorer-stage {
    height: auto;
    aspect-ratio: 640 / 560;
    padding-top: 0;
  }
  .society-model {
    width: 100%;
    left: 0;
    top: 0;
  }
  .society-hotspot {
    min-height: 44px;
    font-size: 10px;
    padding-right: 9px;
    gap: 2px;
  }
  .hotspot-symbol {
    width: 30px;
    height: 30px;
  }
  .hotspot-home {
    left: 11%;
    top: 43%;
  }
  .hotspot-gate {
    left: 19%;
    top: 77%;
  }
  .hotspot-desk {
    left: 70%;
    top: 24%;
  }
  .society-hotspot svg {
    width: 16px;
    height: 16px;
  }
  .explorer-controls {
    margin-top: 30px;
  }
  .explorer-options {
    border-radius: 12px;
    padding: 4px;
  }
  .explorer-options button {
    padding: 8px 4px;
    gap: 7px;
    min-height: 53px;
    font-size: 12px;
  }
  .explorer-options svg {
    width: 17px;
    height: 17px;
  }
  .explorer-options small {
    font-size: 8px;
  }
  .explorer-hint {
    top: -25px;
    font-size: 10px;
  }
  .explorer-summary {
    position: relative;
    padding: 17px 0 0 85px;
    min-height: 165px;
    flex-direction: column;
    gap: 6px;
  }
  .explorer-summary > p {
    font-size: 11px;
  }
  .explorer-summary > p span {
    margin-top: 3px;
  }
  .explorer-preview {
    height: auto;
    width: 66px;
    left: 0;
    right: auto;
    top: 17px;
    bottom: auto;
    align-content: start;
  }
  .explorer-screen {
    border-radius: 9px;
    border-width: 2px;
    box-shadow: 3px 4px 0 #d0dcc3;
  }
  .explorer-screen .capture-brand {
    font-size: 4px;
    gap: 1px;
    padding: 4px 2px;
  }
  .explorer-screen .capture-brand img {
    width: 6px;
    height: 6px;
  }
  .explorer-screen .capture-brand span {
    font-size: 3px;
    padding-left: 2px;
    margin-left: 0;
  }
  .preview-enlarge {
    display: none;
  }
  .explorer-preview:has(.screen-desk) {
    width: 76px;
    left: 0;
    right: auto;
    align-content: start;
    padding-top: 16px;
  }
  .screen-desk {
    border-width: 1px;
    border-radius: 4px;
  }
  .mobile-preview-open:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    background: none;
    border: 0;
    padding: 0;
    font-size: 11px;
    color: var(--forest);
    font-weight: 600;
  }
  .mobile-preview-open span {
    display: inline;
    color: inherit;
    margin: 0;
  }
  .society-dialog,
  .society-dialog[data-product="desk"] {
    width: 100%;
    max-height: min(92dvh, 900px);
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    border-width: 1px 0 0;
  }
  .society-dialog-header {
    padding: 16px 20px 14px;
  }
  .society-dialog-header h2 {
    font-size: 20px;
  }
  .society-dialog-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 22px 20px max(26px, env(safe-area-inset-bottom));
    gap: 24px;
  }
  .dialog-app-image {
    max-width: 242px;
  }
  .dialog-app-image .explorer-screen {
    border-width: 3px;
    border-radius: 20px;
  }
  .dialog-app-image .screen-desk {
    border-width: 1px;
    border-radius: 7px;
  }
  .dialog-app-image .capture-brand {
    font-size: 13px;
    padding: 12px 8px;
  }
  .dialog-app-image .capture-brand img {
    width: 16px;
    height: 16px;
  }
  .dialog-app-image .capture-brand span {
    font-size: 10px;
    padding-left: 5px;
    margin-left: 3px;
  }
  .dialog-app-copy {
    font-size: 14px;
  }
  .society-dialog[data-product="desk"] .dialog-features {
    display: block;
    margin-block: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .society-explorer *,
  .society-dialog * {
    transition: none !important;
    animation: none !important;
  }
  .society-hotspot:hover {
    translate: none;
  }
  .society-dialog::backdrop {
    backdrop-filter: none;
  }
}
