@font-face {
  font-family: "FiraGO Book";
  src: url("Magniti/SVG/New folder/FiraGO-Book.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Archi";
  src: url("archi_mt_test3-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --red: #de2127;
  --ink: #231f20;
  --muted: #848689;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background: #fff;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "FiraGO Book", "FiraGO", sans-serif;
}

button,
input {
  font: inherit;
}

.page-shell {
  position: relative;
  width: min(100%, 480px);
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
}

.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(165px, 45.8vw, 205px);
}

.hero-crop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: -22%;
  left: -7.5%;
  display: block;
  width: 115%;
  max-width: none;
  height: auto;
}

.brand {
  position: absolute;
  z-index: 2;
  top: 72%;
  left: 7%;
  display: block;
  width: 47%;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.signup-panel {
  position: relative;
  width: 100%;
  padding: clamp(76px, 20vw, 96px) clamp(20px, 6.2vw, 30px) clamp(28px, 7vw, 38px);
  background: #fff;
}

.form-wrap,
#signup-form {
  position: relative;
  width: 100%;
}

.website-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.phone-field {
  width: 100%;
  height: clamp(44px, 11.7vw, 50px);
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #e7e7e7;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.phone-field:focus-within {
  border-color: #a9a9a9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(222, 33, 39, 0.13);
}

input[type="tel"] {
  width: 100%;
  height: 100%;
  padding: 0 14px;
  border: 0;
  outline: 0;
  color: #5f6062;
  background: transparent;
  font-family: "FiraGO Book", "FiraGO", sans-serif;
  font-size: clamp(14px, 3.8vw, 17px);
  line-height: 1;
  letter-spacing: 0.01em;
}

input::placeholder {
  color: #c7c9cb;
  opacity: 1;
}

.field-error {
  margin: 7px 2px 0;
  color: var(--red);
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.3;
}

.field-error:empty {
  display: none;
}

.submit-button {
  width: 100%;
  height: clamp(48px, 13vw, 56px);
  margin: 12px 0 0;
  padding: 1px 20px 0;
  border: 0;
  border-radius: 12px;
  outline: 0;
  color: #fff;
  background: var(--red);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
  font-family: "Archi", "FiraGO", sans-serif;
  font-size: clamp(17px, 4.7vw, 21px);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.submit-button:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red);
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.consent-copy {
  width: 100%;
  margin-top: clamp(46px, 12.5vw, 60px);
}

.consent-copy h2 {
  margin: 0 0 clamp(16px, 4.5vw, 21px);
  font-family: "Archi", "FiraGO", sans-serif;
  font-size: clamp(12px, 3.25vw, 14px);
  font-weight: 700;
  line-height: 1.4;
}

.consent-copy h2 span {
  color: var(--red);
}

.consent-copy p {
  margin: 0 0 clamp(22px, 6vw, 28px);
  color: var(--muted);
  font-size: clamp(12.5px, 3.42vw, 14.5px);
  line-height: 1.48;
  text-align: justify;
  text-justify: inter-word;
}

.consent-copy p:last-child {
  margin-bottom: 0;
}

.success-state {
  width: 100%;
  padding: 10px 0 34px;
  color: var(--ink);
  text-align: center;
}

.success-state[hidden],
#signup-form[hidden] {
  display: none;
}

.success-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-family: sans-serif;
  font-size: 28px;
}

.success-state h2 {
  margin: 0 0 10px;
  font-family: "Archi", "FiraGO", sans-serif;
  font-size: 26px;
}

.success-state p {
  max-width: 330px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.reset-button {
  margin-top: 22px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--red);
  font-family: "Archi", "FiraGO", sans-serif;
  cursor: pointer;
}

footer {
  display: none;
}

@media (max-width: 340px) {
  .signup-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .consent-copy h2 {
    font-size: 11.5px;
  }

  .consent-copy p {
    font-size: 12.2px;
  }
}

@media (min-width: 520px) {
  html,
  body {
    background: #ededed;
  }

  body {
    padding: 24px 0;
  }

  .page-shell {
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
  }
}

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