/* ==========================================================================
   zabaningo.ir — launch page
   Mirrors the Figma "Website · getzabaningo.ir" frame (desktop + mobile).
   ========================================================================== */

:root {
  --bg: #f8f7f1;
  --surface: #fffdf8;
  --brand: #35654d;
  --ink: #293d32;
  --muted: #667268;
  --placeholder: #7b847c;
  --border: #d9dfd3;
  --soft: #eff2e9;
  --danger: #b3261e;

  --font-fa: 'Arad', system-ui, 'Segoe UI', sans-serif;
  --font-en: 'Inter', system-ui, 'Segoe UI', sans-serif;

  --radius-card: 24px;
  --radius-field: 12px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-fa);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.skip-link {
  position: absolute;
  right: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 var(--radius-field) 0;
  text-decoration: none;
  z-index: 10;
}

.skip-link:focus {
  right: 0;
}

/* ---------------------------------------------------------------- layout */

.page {
  position: relative;
  isolation: isolate;
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 100px 30px;
  display: flex;
  flex-direction: column;
  gap: 56px;
  overflow: hidden;
}

/* "Soft daylight" glow behind the announcement (Figma ellipse 710×650 @ 715,105). */
.page::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 105px;
  left: 715px;
  width: 710px;
  height: 650px;
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    rgba(229, 236, 221, 1) 0%,
    rgba(248, 247, 241, 0) 100%
  );
  pointer-events: none;
}

/* -------------------------------------------------------------- masthead */

.masthead {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 36px;
}

.wordmark {
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.0684em;
  color: var(--brand);
  text-decoration: none;
}

/* ------------------------------------------------------------------ hero */

.hero {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 110px;
  align-items: center;
  padding: 12px 52px;
}

/* ----------------------------------------------------------- announcement */

.announcement {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 28px;
  text-align: right;
}

.announcement__mark {
  width: 86px;
  height: 70px;
}

.announcement__kicker {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.8em;
  color: var(--brand);
}

.announcement__title {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.5em;
  color: var(--ink);
}

.announcement__lede {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.9em;
  color: var(--muted);
}

/* --------------------------------------------------------------- signup */

.signup {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 440px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.card__intro {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.7em;
  color: var(--ink);
}

.card__subtitle {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9em;
  color: var(--muted);
}

.gift {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: var(--soft);
  border-radius: var(--radius-field);
}

.gift__line {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9em;
  color: var(--brand);
}

.gift__line strong {
  font-weight: 700;
}

/* ---------------------------------------------------------------- fields */

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

.field__label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8em;
  color: var(--ink);
}

.field__input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-field);
  font-family: var(--font-en);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field__input::placeholder {
  color: var(--placeholder);
}

.field__input:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(53, 101, 77, 0.15);
}

.field__input[aria-invalid='true'] {
  border-color: var(--danger);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------- buttons */

.btn {
  height: 54px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-field);
  font-family: var(--font-fa);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8em;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn--primary {
  width: 100%;
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  background: #2b5340;
}

.btn--ghost {
  min-width: 145px;
  background: var(--soft);
  border-color: var(--border);
  color: var(--brand);
  font-size: 13px;
}

.btn--ghost:hover:not(:disabled) {
  border-color: var(--brand);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn--ghost:focus-visible {
  outline-color: var(--brand);
}

/* -------------------------------------------------------------- status */

.form-status {
  margin: 0;
  font-size: 13px;
  line-height: 1.9em;
  color: var(--brand);
}

/* No reserved space: the card keeps the Figma height until a message exists. */
.form-status:empty {
  display: none;
}

.form-status--error {
  color: var(--danger);
}

.form-status--pending {
  color: var(--muted);
}

/* ------------------------------------------------------------ newsletter */

.newsletter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 8px;
}

.newsletter__label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8em;
  color: var(--muted);
}

.newsletter__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.newsletter__row .form-status {
  grid-column: 1 / -1;
}

/* ---------------------------------------------------------------- footer */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.footer__note {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8em;
  color: var(--muted);
}

.footer__domain {
  margin: 0;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--muted);
}

/* -------------------------------------------------------------- tablet */

@media (max-width: 1180px) {
  .page {
    padding: 40px 48px 30px;
  }

  .hero {
    gap: 56px;
    padding: 12px 24px;
  }

  .announcement__title {
    font-size: 52px;
  }
}

/* -------------------------------------------------------------- mobile */

@media (max-width: 860px) {
  .page {
    padding: 26px 24px;
    gap: 28px;
  }

  .page::before {
    top: 60px;
    left: 55px;
    width: 450px;
    height: 400px;
  }

  .masthead {
    height: 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0;
  }

  .announcement {
    gap: 14px;
    padding-bottom: 0;
  }

  .announcement__mark {
    width: 57px;
    height: 47px;
  }

  .announcement__kicker {
    font-size: 15px;
  }

  .announcement__title {
    font-size: 39px;
  }

  .announcement__lede {
    font-size: 15px;
  }

  .signup {
    width: auto;
  }

  .card {
    padding: 20px;
  }

  .newsletter {
    padding: 0;
  }

  .footer__note,
  .footer__domain {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
