/* Central theme for plugin.earth.
   Matches business.plugin.earth: white, black, #00B33E, and the
   green-500 → green-600 CTA gradient.
   Keep in sync with opencode deploy/local/theme.ts. */
:root {
  color-scheme: light;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --white: #ffffff;
  --black: #242424;
  --ink: #242424;
  --text: #333333;
  --muted: #7c7c7c;
  --green: #00b33e;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-soft: #eaf3e5;
  --bg: #f6f6f6;
  --panel: #ffffff;
  --line: #e5e5e5;
  --chip: #f3f6f4;
  --hover: #eaf3e5;
  --accent: #00b33e;
  --header: #ffffff;
  --cta: linear-gradient(to right, #22c55e 0%, #16a34a 100%);
  --cta-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --danger: #b42318;
  --mark: #333333;
  --copy: clamp(1rem, 2.8vw, 1.15rem);
  /* 158/512 is the wordmark ink height in plugin-logo.png */
  --logo: calc(var(--copy) * 512 / 158);
}

html,
body {
  font-family: var(--font-sans);
}

html {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, [role="button"], summary, input[type="button"], input[type="submit"], input[type="reset"]) {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, [role="button"], summary, input[type="button"], input[type="submit"], input[type="reset"]):focus:not(:focus-visible) {
  outline: none;
}

/* Trademark wordmark. Change font-size on the parent; colors live here. */
.mark {
  color: var(--mark);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.mark .in {
  color: var(--green);
}

.logo {
  display: block;
  width: var(--logo);
  height: auto;
}

[data-color-scheme="dark"] {
  --mark: #ffffff;
}

a {
  color: var(--green);
}

.cta,
a.button,
button.primary {
  background-image: var(--cta);
  background-color: var(--green-600);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--cta-shadow);
}

.cta:hover,
a.button:hover,
button.primary:hover {
  opacity: 0.9;
}

.site-footer {
  background: #111;
  color: #fff;
  padding: 28px 20px 32px;
  text-align: center;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  margin: 0;
}
.site-footer a {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer .site-copyright {
  margin: 14px 0 0;
  padding: 0;
  text-align: center;
  color: #d4d4d4;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.plugin-wait {
  container-type: size;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: max(7.5rem, 18svh);
}

.plugin-wait[hidden] {
  display: none;
}

.plugin-wait[data-surface="page"] {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: auto;
  height: auto;
  background: rgb(255 255 255 / 0.55);
}

.plugin-loader {
  --plugin-loader-size: clamp(2rem, 10cqmin, 6rem);
  width: var(--plugin-loader-size);
  height: var(--plugin-loader-size);
  box-sizing: border-box;
  border-radius: 999px;
  border: max(2px, calc(var(--plugin-loader-size) * 0.07)) solid rgb(0 179 62 / 0.16);
  border-top-color: var(--green);
  animation: plugin-spin 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes plugin-spin {
  to {
    transform: rotate(1turn);
  }
}
