@import url("tokens.css");

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

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(ellipse 90% 42% at 50% -8%, var(--mint-deep) 0%, rgba(215, 239, 232, 0) 68%),
    linear-gradient(180deg, #e9f6f2 0%, #f4faf8 32%, #f7f8f8 58%, #f5f6f6 100%);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 5;
  background: var(--white);
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  padding: 28px 0 8px;
}

main {
  flex: 1;
}

.header-bar,
.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand--light,
.brand--light .logo-plus {
  color: var(--white);
}

.brand--light .logo-plus {
  stroke: currentColor;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(30, 27, 69, 0.06);
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--teal);
  color: var(--white);
}

.lang button:focus-visible,
.notify button:focus-visible,
.site-footer a:focus-visible,
.brand:focus-visible,
.text-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.fold {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero {
  text-align: center;
  padding: 64px 0 28px;
}

.home .hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  padding: 24px 0 32px;
}

.home .features {
  margin-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--badge);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 0 rgba(30, 27, 69, 0.45);
  animation: live-pulse 1.6s ease-out infinite;
}

@keyframes live-pulse {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(30, 27, 69, 0.5);
  }

  70% {
    opacity: 0.35;
    box-shadow: 0 0 0 7px rgba(30, 27, 69, 0);
  }

  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(30, 27, 69, 0);
  }
}

.hero h1 {
  margin: 28px auto 0;
  max-width: 100%;
  font-size: clamp(2.6rem, 5.4vw, 4.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero h1 span {
  display: block;
}

.accent {
  color: var(--teal);
}

.subhead {
  max-width: 38rem;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.55;
}

.notify {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(570px, 75%);
  max-width: 570px;
  margin: 36px auto 0;
  padding: 8px 8px 8px 20px;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(17, 106, 98, 0.05);
}

.notify-icon {
  width: 20px;
  height: 20px;
  color: #8b9494;
  flex: none;
}

.notify input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 12px 4px;
}

.notify input::placeholder {
  color: #9aa2a3;
}

.notify input:focus {
  outline: none;
}

.notify button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  padding: 14px 22px;
  cursor: pointer;
  white-space: nowrap;
}

.notify button:hover {
  background: var(--teal-dark);
}

.notify button svg {
  width: 16px;
  height: 16px;
}

.hp,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.trust,
.form-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
  flex: none;
}

.form-status {
  min-height: 0;
  font-weight: 600;
}

.form-status:empty {
  margin: 0;
}

.form-status.is-error {
  color: #9b3b32;
}

.form-status.is-ok {
  color: var(--teal);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 72px auto 96px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 28px rgba(30, 27, 69, 0.04);
  padding: 28px 26px 32px;
}

.icon-bubble {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--teal);
}

.icon-bubble svg {
  width: 22px;
  height: 22px;
}

.card h2 {
  margin: 16px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.site-footer {
  background: var(--teal);
  color: var(--white);
  padding: 36px 0 28px;
}

.footer-top nav {
  display: flex;
  gap: 28px;
}

.footer-top a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-top a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-rule {
  height: 1px;
  margin: 22px 0 18px;
  background: rgba(255, 255, 255, 0.28);
}

.footer-bottom {
  align-items: flex-start;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  line-height: 1.45;
}

.footer-bottom p:last-child {
  flex: none;
  text-align: right;
}

.page-main {
  padding: 48px 0 96px;
}

.page-card {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 48px);
}

.kicker {
  margin: 0;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-card h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.lede,
.page-card p,
.page-card li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.page-card h2 {
  margin: 28px 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.stack {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.stack .form-status {
  justify-content: flex-start;
  margin: 0;
}

.field {
  display: grid;
  gap: 8px;
  text-align: left;
}

.field span {
  font-weight: 650;
  color: var(--navy);
  font-size: 0.92rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #e3e8e7;
  background: #fbfcfc;
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--ink);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--teal);
  border-color: transparent;
}

.send {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  padding: 14px 22px;
  cursor: pointer;
}

.send:hover {
  background: var(--teal-dark);
}

.contact .site-header {
  padding: 20px 0 0;
}

.contact .page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  min-height: 0;
  padding: 16px 0;
}

.contact .page-card {
  width: min(640px, calc(100% - 48px));
  display: flex;
  flex-direction: column;
  padding: 28px 32px 24px;
}

.contact .page-card h1 {
  margin: 6px 0 6px;
  font-size: clamp(1.65rem, 3vw, 2.05rem);
}

.contact .lede {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.contact .stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.contact .stack .form-status:empty {
  display: none;
}

.contact .field {
  gap: 4px;
}

.contact .field span {
  font-size: 0.84rem;
}

.contact .field input,
.contact .field textarea {
  padding: 10px 14px;
  border-radius: 12px;
}

.contact .field textarea {
  height: 188px;
  min-height: 0;
  resize: vertical;
}

.contact .send {
  align-self: flex-end;
  width: auto;
  padding: 12px 22px;
}

.text-link {
  color: var(--teal);
  font-weight: 650;
}

@media (max-width: 860px) {
  .features {
    grid-template-columns: 1fr;
    margin-bottom: 64px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .footer-bottom p:last-child {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.75rem);
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(var(--shell), calc(100% - 32px));
  }

  .header-bar {
    gap: 8px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand img {
    height: 28px;
  }

  .lang button {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .hero h1,
  .subhead,
  .trust,
  .form-status {
    overflow-wrap: break-word;
  }

  .hero {
    padding-top: 36px;
  }

  .notify {
    flex-wrap: wrap;
    border-radius: 28px;
    padding: 12px;
  }

  .notify input {
    flex-basis: calc(100% - 36px);
  }

  .notify button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .badge-dot {
    animation: none;
  }
}
