* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f2f0e9;
  color: #16150f;
  font-family: "Space Grotesk", sans-serif;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

a {
  color: #16150f;
}

a:hover {
  color: #5a7a00;
}

input::placeholder {
  color: #a8a496;
}

@keyframes phIn {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.trial-label {
  display: block;
  margin-bottom: 8px;
  color: #6f6b5e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.phone-fields {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(180px, 1.1fr);
  gap: 12px;
}

.phone-field {
  min-width: 0;
}

.trial-country,
.trial-phone {
  width: 100%;
  margin-bottom: 8px;
  padding: 15px 16px;
  appearance: none;
  border: 1px solid #ddd9cc;
  border-radius: 14px;
  outline: none;
  background: #faf9f4;
  color: #16150f;
  font: 16px "Space Grotesk", sans-serif;
}

.trial-country {
  cursor: pointer;
}

.trial-country:focus,
.trial-phone:focus {
  border-color: #7a9a00;
  box-shadow: 0 0 0 3px rgba(181, 227, 38, 0.24);
}

.trial-phone[aria-invalid="true"] {
  border-color: #b52c1b;
}

.field-help,
.trial-status {
  margin: 0 0 24px;
  color: #6f6b5e;
  font-size: 13px;
  line-height: 1.5;
}

.trial-status {
  margin: 16px 0 0;
}

.trial-ready {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid #e6e3d8;
  border-radius: 28px;
  background: #fff;
  text-align: center;
}

.trial-ready h2 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.trial-ready > p {
  max-width: 430px;
  color: #5c594e;
  line-height: 1.6;
}

.trial-qr {
  width: min(100%, 260px);
  margin: 18px auto 4px;
}

.trial-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.trial-qr-help,
.trial-expiry {
  margin: 8px 0 16px;
  font-size: 13px;
}

.trial-open-button {
  display: block;
  width: min(100%, 330px);
  margin-top: 8px;
  padding: 16px 24px;
  border-radius: 999px;
  background: #16150f;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.trial-open-button:hover,
.trial-open-button:focus-visible {
  background: #303025;
  color: #fff;
}

.trial-install-title {
  margin: 24px 0 8px !important;
  font-size: 13px;
  font-weight: 600;
}

.trial-install-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 13px;
}

.trial-retry {
  margin-top: 8px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #5c594e;
  font: 600 13px "Space Grotesk", sans-serif;
  text-decoration: underline;
  text-decoration-color: #b5e326;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}

[data-trial-submit]:disabled {
  cursor: not-allowed !important;
  opacity: 0.42;
}

.payment-disclosure {
  max-width: 460px;
  margin: 0 0 26px;
  padding: 18px 20px;
  border: 1px solid #ddd9cc;
  border-radius: 16px;
  background: #f6f4ed;
  color: #5c594e;
  font-size: 13px;
  line-height: 1.6;
}

.payment-disclosure strong {
  color: #16150f;
}

.payment-disclosure p {
  margin: 8px 0 0;
}

.payment-disclosure a {
  font-weight: 600;
}

p[style*="color: rgb(168, 164, 150)"],
#pricing2 span[style*="color: rgb(168, 164, 150)"],
#pricing2es span[style*="color: rgb(168, 164, 150)"],
span[style*="font-size: 12px"][style*="color: rgb(168, 164, 150)"] {
  color: #5c594e !important;
}

[style*="color: rgb(143, 139, 124)"] {
  color: #5c594e !important;
}

#straight-talk > p:first-child,
#straight-talk-es > p:first-child {
  color: #5c594e !important;
}

@media (max-width: 760px) {
  .phone-fields {
    grid-template-columns: 1fr;
  }

  header nav a[href^="#how"],
  header nav a[href^="#pricing"] {
    display: none;
  }

  [data-language-toggle] {
    right: 16px !important;
    bottom: calc(20px + env(safe-area-inset-bottom)) !important;
  }

  .trial-qr,
  .trial-qr-help {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
