/* Main landing page: shared theme controls, canvas, and companion styling. */
.choro-landing .mob-privacy {
  max-width: 65ch;
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.6;
}

.choro-landing .mob-privacy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.choro-landing .mob-privacy a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.choro-landing[data-theme="dark"] body {
  background-color: var(--bg);
}

/* Choro's surface hierarchy: canvas, content, then active detail. Keep the
 * lavender on actions and selection rather than washing the whole page. */
.choro-landing :is(.hero-statement .grad, .sec-h .grad) {
  color: var(--fg);
}

.choro-landing .hero-action.primary {
  background: var(--primary);
  color: var(--on-primary);
}

.choro-landing .feat .fopt {
  background: var(--surface);
  border-color: var(--border);
}

.choro-landing .feat .fopt:hover {
  background: var(--surface-2);
}

.choro-landing .feat .fopt.on {
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--acc) 25%, var(--border));
}

.choro-landing .feat .fopt::after {
  background: linear-gradient(90deg, var(--acc), color-mix(in srgb, var(--acc) 18%, transparent));
}

.choro-landing .feat .fchip {
  background: var(--surface);
  border-color: var(--border);
}

.choro-landing .feat .fchip i {
  color: var(--acc);
}

.choro-landing .feat .fopt.on .fchip {
  border-color: color-mix(in srgb, var(--acc) 34%, var(--border));
}

.choro-landing .feat .fopt.on .fchip i {
  color: var(--acc);
}

.choro-landing .feat .fopt .ftx {
  color: var(--fg-muted);
}

/* Center the coding-tool compatibility strip on mobile. */
@media (max-width: 760px) {
  .choro-landing .provider-strip {
    align-items: center;
    text-align: center;
  }

  .choro-landing .provider-strip ul {
    justify-content: center;
  }
}

/* Mobile feature navigation: four equal targets, icon above the label. */
@media (max-width: 860px) {
  .choro-landing .feat .feat-opts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .choro-landing .feat .fopt {
    width: 100%;
    min-width: 0;
    min-height: 60px;
    padding: 8px 4px;
    align-items: center;
    justify-content: center;
  }

  .choro-landing .feat .fopt:hover {
    transform: none;
  }

  .choro-landing .feat .fopt .fchip {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: clamp(10px, 2.6vw, 12px);
    line-height: 1.3;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .choro-landing .feat .fchip i {
    font-size: 18px;
    flex-shrink: 0;
  }
}

.choro-landing .feat .vwin {
  background: var(--bg);
  border-color: var(--border);
  box-shadow: 0 32px 72px color-mix(in srgb, var(--shadow) 45%, transparent);
}

.choro-landing .hub-win {
  background: var(--bg);
  border-color: var(--border);
  box-shadow: 0 30px 64px color-mix(in srgb, var(--shadow) 45%, transparent);
}

.choro-landing .feat .feat-vis::after,
.choro-landing .phones::before,
.choro-landing .rm-stage::before {
  background-image: none;
  background-color: transparent;
}

/* Keep the broad preview shadow from forming a clipped, floating dark patch. */
.choro-landing .hero .ide {
  box-shadow: 0 2px 0 color-mix(in srgb, var(--fg) 5%, transparent) inset;
}

.choro-landing .hero .hero-ide-img {
  box-shadow: none;
}

/* Keep the continuous canvas free of the partial-width divider fade. */
.choro-landing .hero + .manifesto::before {
  display: none;
}

/* Match the current desktop Choro Light surface roles. The remaining light
 * text, accent, sidebar and status tokens are already defined in index.html. */
html.choro-landing[data-theme="light"] {
  color-scheme: light;
  --bg-deep: #E9E2E2;
  --surface: #FCF8F6;
  --surface-2: #ECE6EA;
  --surface-3: #FFF9F7;
}

.choro-landing[data-theme="light"] body {
  background-color: var(--bg);
}

/* A darker lavender for lettering on pale surfaces; filled controls retain
 * the theme's original lavender and on-primary color. */
.choro-landing[data-theme="light"] .man-sign b {
  color: #685581;
}

.choro-landing[data-theme="light"] .future-picnic-logo {
  filter: brightness(0);
}

.choro-landing .appearance-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg-deep);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.choro-landing .appearance-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.choro-landing .appearance-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Larger companion, inset from the desktop's bottom-right corner. */
.choro-landing .landing-companion {
  position: fixed;
  bottom: 24px;
  right: 48px;
  width: 176px;
  height: 176px;
  z-index: 45;
  pointer-events: auto;
}

.choro-landing .landing-companion[hidden] {
  display: none;
}

.choro-landing .landing-companion img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.choro-landing .landing-companion img[hidden] {
  display: none;
}

/* Same rounded notification treatment as the app's companion bubbles. */
.choro-landing .companion-bubble {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: 270px;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  border-radius: 24px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--surface-3) 94%, transparent),
    color-mix(in srgb, var(--surface-3) 86%, transparent));
  box-shadow: 0 3px 8px -2px rgb(0 0 0 / 20%);
  color: var(--fg);
  font: 500 13px/1.45 'Instrument Sans', sans-serif;
  pointer-events: none;
}

.choro-landing .companion-bubble[hidden] {
  display: none;
}

.choro-landing .companion-dismiss {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--surface);
  color: var(--fg-muted);
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.choro-landing .landing-companion:hover .companion-dismiss,
.choro-landing .landing-companion:focus-within .companion-dismiss {
  opacity: 1;
  pointer-events: auto;
}

.choro-landing .companion-dismiss:hover {
  background: var(--surface-2);
  color: var(--fg);
}

.choro-landing .companion-dismiss:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 1439px), (hover: none), (pointer: coarse) {
  .choro-landing .landing-companion {
    display: none;
  }
}
