@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600;700&display=swap');

.home-body {
  background: var(--bg);
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.public-header .header-inner {
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 24px;
  background: var(--accent);
  color: #fff;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0;
}

.brand-mark img {
  height: 16px;
  width: auto;
  display: block;
}

.brand-text {
  font-size: 16px;
}

.public-nav {
  display: flex;
  gap: 16px;
  font-weight: 600;
}

.nav-link {
  color: var(--muted);
}

.auth-actions {
  display: flex;
  gap: 8px;
}

.file-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.file-help {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle:hover {
  background: var(--surface-alt);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.12);
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(15, 74, 127, 0.35);
  outline-offset: 2px;
}

.theme-toggle .icon-sun {
  display: inline;
}

.theme-toggle .icon-moon {
  display: none;
}

body.theme-dark .theme-toggle {
  background: #1b2734;
  border-color: #2a3846;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

body.theme-dark .theme-toggle:hover {
  background: #223244;
}

body.theme-dark .theme-toggle:focus-visible {
  outline-color: rgba(91, 141, 184, 0.5);
}

body.theme-dark .theme-toggle .icon-sun {
  display: none;
}

body.theme-dark .theme-toggle .icon-moon {
  display: inline;
}

body.theme-dark .contact-hero,
body.theme-dark .contact-form,
body.theme-dark .info-card {
  background: #15202c;
  border-color: #2a3846;
}

@media (max-width: 900px) {
  .public-nav {
    display: none;
  }
}

.contact-public {
  padding: 40px 28px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--panel-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-pill {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 6px 14px;
  color: var(--muted);
  font-weight: 600;
}

.contact-content {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--panel-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--panel-shadow);
}

.footer {
  background: #101826;
  color: #d4dbe4;
  padding: 40px 28px;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer a {
  color: #c6d2e3;
  display: block;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}
