/* Qantara landing page. Figma file FmcjuBGBepzAXNNTM8AdxF: desktop frame "Desktop - 2" (1:241,
   1440 wide), phone frame "Mobile" (1:86, 519 wide). The hero scales with the window width (1440 or
   519 = 100vw); text below it keeps the design's pixel sizes. */

@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kumbh Sans";
  src: url("../fonts/kumbh-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AR One Sans";
  src: url("../fonts/ar-one-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --mint: #c3efde;
  --green: #38df9f;
  --forest: #1a3e2e;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--mint);
  color: var(--forest);
  font-family: "Karla", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Hero: the picture band, rounded at the bottom ---------- */
.hero {
  position: relative;
  z-index: 2;
  height: 40.278vw;                 /* 580 / 1440 */
  overflow: hidden;
  border-radius: 0 0 20px 20px;
  background: #06130c url("../img/hero-desktop.webp") center / cover no-repeat;
}
.hero-title {
  position: absolute;
  left: 50%;
  top: 4.131vw;                     /* 59.5 / 1440 */
  transform: translateX(-50%);
  margin: 0;
  width: max-content;
  font-family: "Kumbh Sans", "Karla", sans-serif;
  font-weight: 500;
  font-variation-settings: "YOPQ" 300;
  font-size: 2.708vw;               /* 39 / 1440 */
  line-height: 1.1026;              /* 43 / 39 */
  text-align: center;
  color: var(--green);
}
.wordmark {
  position: absolute;
  left: 3.774vw;                    /* 54.34 / 1440 */
  top: 16.391vw;                    /* 236.02 / 1440 */
  width: 92.452vw;                  /* 1331.31 / 1440 */
  height: auto;
  display: block;
  overflow: visible;
}

/* ---------- "Coming Soon..." band: tucked 22px under the hero ---------- */
.band {
  position: relative;
  z-index: 1;
  margin-top: -22px;
  height: 69.75px;
  padding-top: 33px;                /* text at 591 in the design, hero ends at 580 */
  border-radius: 0 0 20px 20px;
  background: var(--green);
  text-align: center;
}
.roll {
  position: relative;
  height: 23px;
  overflow: hidden;
  font-size: 20px;
  line-height: 23px;
  letter-spacing: -0.04em;
  color: #000;
}
.roll-line {
  position: absolute;
  inset: 0;
  white-space: nowrap;
}
.roll-line.in  { animation: roll-in  0.6s cubic-bezier(.65, 0, .35, 1) both; }
.roll-line.out { animation: roll-out 0.6s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes roll-in  { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes roll-out { from { transform: none; opacity: 1; } to { transform: translateY(-100%); opacity: 0; } }

/* ---------- Line and button ---------- */
.intro-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 16px 0;             /* text at 692, band ends at 628 */
}
.lead {
  max-width: 340px;
  font-size: 20px;
  line-height: 23px;
  letter-spacing: -0.04em;
  text-align: center;
}
.register {
  margin-top: 44px;
  height: 42px;
  padding: 6px 23px;
  border: 0;
  border-radius: 100px;
  background: var(--forest);
  color: var(--green);
  font: inherit;
  font-size: 20px;
  line-height: 23px;
  letter-spacing: -0.04em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.register:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

/* ---------- Footer ---------- */
.footer {
  margin: 77px 51.6px 0;
  padding: 19px 0 59px;
  border-top: 1px solid var(--forest);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 40px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.03em;
}
.copyright { font-family: "AR One Sans", "Karla", sans-serif; }
.copyright strong { font-weight: 700; }
.footer-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 7px;
}
.phone { letter-spacing: 0; }

/* ---------- Phone: frame "Mobile", 519 wide ---------- */
@media (max-width: 700px) {
  .hero {
    height: 91.522vw;               /* 475 / 519 */
    background-image: url("../img/hero-phone.webp");
  }
  .hero-title {
    top: 8.103vw;                   /* 42.05 / 519 */
    font-size: 6.511vw;             /* 33.79 / 519 */
  }
  .wordmark {
    left: 5.124vw;                  /* 26.59 / 519 */
    top: 62.288vw;                  /* 323.27 / 519 */
    width: 89.752vw;                /* 465.81 / 519 */
  }
  .band {
    margin-top: -16px;
    height: 72.24px;
    padding-top: 34px;
  }
  .intro-text { padding-top: 55px; }
  .register { margin-top: 37px; }
  .footer {
    margin: 66px 30px 0;
    padding: 31px 0 38px;
    flex-direction: column-reverse;
    align-items: center;
    gap: 34px;
    text-align: center;
  }
  .footer-contact { flex-direction: column; gap: 0; }
  .email, .phone { line-height: 16px; }
  .phone { order: 1; }
  .email { order: 2; }
}

/* ---------- Register your Interest form (Claude's design: the page has no comp for it) ---------- */
.signup {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--mint);
  color: var(--forest);
  box-shadow: 0 24px 80px rgba(6, 19, 12, 0.35);
}
.signup::backdrop { background: rgba(26, 62, 46, 0.72); }
.signup-form {
  display: grid;
  gap: 16px;
  padding: 32px clamp(20px, 5vw, 36px);
}
.signup [hidden] { display: none; }
.signup-title {
  margin: 0 0 4px;
  font-family: "Kumbh Sans", "Karla", sans-serif;
  font-weight: 500;
  font-variation-settings: "YOPQ" 300;
  font-size: 30px;
  line-height: 1.1;
  color: var(--forest);
}
.signup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; font-size: 16px; letter-spacing: -0.02em; }
.field span { font-weight: 600; }
.field input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--forest);
  border-radius: 12px;
  background: #e8f9f1;
  color: var(--forest);
  font: inherit;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.field input::placeholder { color: #6f8d80; }
.field input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field-error { font-style: normal; font-size: 14px; color: #b3261e; }
.field-error:empty { display: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup-message { font-size: 16px; color: #b3261e; }
.signup-message:empty { display: none; }
.signup-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.signup-actions .register { margin-top: 0; width: 128px; }
.register-outline {
  background: transparent;
  color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--forest);
}
.register:disabled { opacity: 0.6; cursor: progress; }
/* Hover, on devices with a mouse: the dark buttons turn bright green with dark text (the dot in
   Send follows the text colour); the outlined one fills with a light green tint. */
@media (hover: hover) {
  .register:hover { background: var(--green); color: var(--forest); }
  .register-outline:hover { background: rgba(26, 62, 46, 0.1); color: var(--forest); }
}

/* The dot inside Send, as its full stop like in the logo, in the text's green: its middle sits on the
   text baseline, so the half dot rests on the baseline and the full dot reaches below it. */
.send-dot { display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.1em; vertical-align: -0.25em; fill: currentColor; }
.signup-actions .send.is-done { width: auto; }
.signup-actions .send.is-done ~ .signup-close { display: none; }
.signup-saved { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 480px) {
  .signup-row { grid-template-columns: 1fr; }
}

/* ---------- Intro ---------- */
.intro-screen { display: none; }
html.intro { overflow: hidden; }
html.intro .intro-screen {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 10;
}
.intro-bg {
  position: absolute;
  inset: 0;
  background: var(--forest);
}
.intro-layer {
  position: fixed;
  left: 0;
  top: 0;
  overflow: visible;
  transform-origin: 0 0;
  visibility: hidden;               /* placed by the script before it shows */
}
.intro-dot-grow {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

/* The page parts that arrive after the wordmark lands. */
html.intro .hero-title,
html.intro .wordmark,
html.intro .band,
html.intro .intro-text,
html.intro .footer { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .roll-line.in, .roll-line.out { animation-duration: 0.01s; }
}
