:root {
  --teal: #1f6f64;
  --teal-deep: #145048;
  --ink: #1a2422;
  --muted: #5a6b67;
  --paper: #f3f7f5;
  --line: rgba(31, 111, 100, 0.18);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Source Serif 4", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--teal-deep);
}

/* —— Landing —— */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  color: #f7fbf9;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(165deg, rgba(12, 42, 38, 0.55) 0%, rgba(20, 80, 72, 0.35) 42%, rgba(15, 48, 44, 0.72) 100%),
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(90, 170, 150, 0.35), transparent 55%),
    linear-gradient(180deg, #0e3d37 0%, #1f6f64 48%, #0a2a26 100%);
  animation: heroShift 18s ease-in-out infinite alternate;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='%23ffffff' fill-opacity='0.35' d='M0 60h120M60 0v120'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 85%);
}

@keyframes heroShift {
  from {
    filter: saturate(1) brightness(1);
  }
  to {
    filter: saturate(1.08) brightness(1.06);
  }
}

.hero__inner {
  max-width: 40rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 28rem;
}

.hero p {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-size: 1.02rem;
  color: rgba(247, 251, 249, 0.88);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 0.35rem;
  background: #f7fbf9;
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta:hover {
  background: #fff;
  color: var(--teal-deep);
  transform: translateY(-2px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta--ghost {
  background: transparent;
  color: #f7fbf9;
  border: 1px solid rgba(247, 251, 249, 0.45);
}

.cta--ghost:hover {
  background: rgba(247, 251, 249, 0.12);
  color: #fff;
}

.docs {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  animation: rise 1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.docs__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.docs h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--teal-deep);
}

.docs > .docs__inner > p {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 32rem;
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.doc-list li {
  border-bottom: 1px solid var(--line);
}

.doc-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.15rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  transition: color 0.15s ease, padding-left 0.2s ease;
}

.doc-list a:hover {
  color: var(--teal);
  padding-left: 0.35rem;
}

.doc-list span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.support {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(31, 111, 100, 0.08), transparent 55%),
    var(--paper);
  border-top: 1px solid var(--line);
}

.support__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.support h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--teal-deep);
}

.support > .support__inner > p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.support-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.field .opt {
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 111, 100, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.support-form button {
  font: inherit;
  font-weight: 700;
  border: none;
  border-radius: 0.45rem;
  padding: 0.85rem 1.4rem;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.support-form button:hover:not(:disabled) {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

.support-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.support-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.support-status--ok {
  color: var(--teal-deep);
  font-weight: 600;
}

.support-status--err {
  color: #8a2f2f;
  font-weight: 600;
}

@media (max-width: 640px) {
  .support-form {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  margin-top: auto;
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem) 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__dev {
  margin: 0;
}

.site-footer a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer strong {
  color: var(--ink);
  font-weight: 600;
}

/* —— Legal page —— */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 40% at 10% 0%, rgba(31, 111, 100, 0.08), transparent 50%),
    var(--paper);
}

.legal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 247, 245, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 2;
}

.legal-bar a {
  font-weight: 600;
  text-decoration: none;
}

.legal-bar .brand-mini {
  font-family: var(--display);
  font-weight: 700;
  color: var(--teal-deep);
  text-decoration: none;
}

.legal-main {
  flex: 1;
  width: min(44rem, 100%);
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 3.5rem;
  animation: rise 0.55s ease both;
}

.legal-main h1 {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1.25;
}

.legal-body {
  white-space: pre-wrap;
  font-size: 0.95rem;
  color: var(--ink);
}

.legal-error {
  color: #8a2f2f;
}
