:root {
  color-scheme: light;
  --forest: #2f6f3c;
  --forest-dark: #173f27;
  --leaf: #dff0df;
  --berry: #b73d45;
  --sun: #f2c14e;
  --ink: #1b1d24;
  --muted: #5e6472;
  --line: #d9ded8;
  --paper: #fbfaf6;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(21, 40, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid rgba(217, 222, 216, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest-dark);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a,
.inline-link {
  text-decoration: none;
}

.nav-links a:hover,
.inline-link:hover {
  color: var(--forest);
}

.language-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-button {
  width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--forest-dark);
  cursor: pointer;
  font-weight: 800;
}

.lang-button.active {
  background: var(--forest);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 140px clamp(22px, 5vw, 80px) 90px;
  background:
    radial-gradient(circle at 76% 46%, rgba(223, 240, 223, 0.28), rgba(223, 240, 223, 0) 28%),
    linear-gradient(115deg, var(--forest-dark) 0%, #245532 52%, #6ea34a 100%);
  overflow: hidden;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  top: 54%;
  right: clamp(28px, 8vw, 150px);
  z-index: -1;
  width: min(37.8vw, 468px);
  aspect-ratio: 1;
  border-radius: 26%;
  background: url("./assets/brand/mushberryspot_play_icon_512.png") center / contain no-repeat;
  opacity: 0.32;
  filter: drop-shadow(0 34px 70px rgba(8, 31, 17, 0.32));
  transform: translateY(-50%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 180px;
  background: linear-gradient(180deg, rgba(251, 250, 246, 0), var(--paper));
}

.hero-content {
  max-width: min(720px, 58vw);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sun);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 630px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.primary-action {
  background: var(--white);
  color: var(--forest-dark);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.intro-band,
.section,
.screens-section,
.contact-section,
.site-footer {
  padding-right: clamp(22px, 5vw, 80px);
  padding-left: clamp(22px, 5vw, 80px);
}

.auth-action-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 18%, rgba(223, 240, 223, 0.9), rgba(223, 240, 223, 0) 34%),
    linear-gradient(135deg, #173f27 0%, #2f6f3c 48%, #fbfaf6 48.2%, #fbfaf6 100%);
}

.auth-action-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-action-card {
  width: min(100%, 520px);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid rgba(217, 222, 216, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-action-logo {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(21, 40, 28, 0.16);
}

.auth-action-card .eyebrow {
  color: var(--berry);
}

.auth-action-card h1 {
  margin: 0;
  color: var(--forest-dark);
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.08;
}

.auth-action-card p:not(.eyebrow) {
  margin: 18px auto 0;
  max-width: 390px;
  color: var(--muted);
  font-size: 17px;
}

.auth-action-status {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 14px;
  margin-top: 24px;
}

.auth-action-status span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.auth-action-status.loading span {
  animation: authPulse 1s ease-in-out infinite;
}

.auth-action-status.loading span:nth-child(2) {
  animation-delay: 0.12s;
}

.auth-action-status.loading span:nth-child(3) {
  animation-delay: 0.24s;
}

.auth-action-status.success span {
  background: var(--forest);
}

.auth-action-status.error span {
  background: var(--berry);
}

.auth-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.auth-action-card .secondary-action {
  border-color: var(--line);
  color: var(--forest-dark);
}

@keyframes authPulse {
  0%,
  100% {
    opacity: 0.38;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1180px;
  margin: 34px auto 0;
  position: relative;
  z-index: 1;
}

.intro-grid article,
.feature-item,
.phone-card,
.mail-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.intro-grid article {
  min-height: 120px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.intro-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--forest-dark);
  font-size: 22px;
}

.intro-grid span,
.feature-item p,
.text-columns p,
.contact-section p,
.site-footer {
  color: var(--muted);
}

.section,
.screens-section,
.contact-section {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 96px;
}

.section-heading {
  max-width: 780px;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading .eyebrow,
.contact-section .eyebrow,
.split-band .eyebrow {
  color: var(--berry);
}

.feature-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.feature-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  padding: 26px;
}

.feature-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--leaf);
  color: var(--forest);
  border-radius: 8px;
  font-weight: 900;
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.feature-item p {
  margin: 0;
}

.app-preview {
  margin: 0;
  margin-top: 36px;
  padding: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-preview img {
  width: 100%;
  border-radius: 8px;
}

.app-preview figcaption {
  padding: 16px 10px 6px;
  color: var(--forest-dark);
  text-align: center;
  font-weight: 800;
}

.split-band {
  border-top: 1px solid var(--line);
}

.text-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 26px;
  max-width: 980px;
}

.inline-link {
  display: inline-flex;
  margin-top: 18px;
  margin-right: 22px;
  color: var(--forest);
  font-weight: 900;
}

.inline-link.secondary-link {
  color: var(--berry);
}

.document-page {
  background:
    linear-gradient(180deg, rgba(223, 240, 223, 0.58), rgba(251, 250, 246, 0) 340px),
    var(--paper);
}

.document-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 132px clamp(22px, 5vw, 64px) 84px;
}

.document-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 54px);
  box-shadow: var(--shadow);
}

.document-card h1 {
  margin: 0 0 10px;
  color: var(--forest-dark);
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.document-card h2 {
  margin: 34px 0 10px;
  color: var(--forest-dark);
  font-size: 24px;
}

.document-card p,
.document-card li {
  color: var(--muted);
}

.document-card ul {
  padding-left: 22px;
}

.document-meta {
  margin: 0 0 26px;
  color: var(--muted);
  font-weight: 800;
}

.document-card a {
  color: var(--forest);
  font-weight: 900;
}

.localized-document[hidden] {
  display: none;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 420px);
  gap: 36px;
  align-items: center;
  padding-bottom: 84px;
}

.contact-section p {
  max-width: 680px;
}

.mail-card {
  display: grid;
  gap: 8px;
  padding: 28px;
  color: var(--forest-dark);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.mail-card span {
  color: var(--muted);
}

.mail-card strong {
  overflow-wrap: anywhere;
  font-size: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .intro-grid,
  .text-columns,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    margin-top: 28px;
  }

  .hero {
    min-height: 82vh;
    padding-top: 120px;
  }

  .hero-backdrop {
    top: 62%;
    right: -54px;
    width: min(70.2vw, 378px);
    opacity: 0.18;
  }

  .hero-content {
    max-width: 720px;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: 34px;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand span {
    display: none;
  }

  .hero-copy {
    font-size: 18px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .feature-item {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
