html, body { margin: 0; padding: 0; background: #FAFAFB; overflow: hidden; }
* { box-sizing: border-box; }
a { color: #0000FF; text-decoration: none; }
a:hover { color: #000000; }
input::placeholder { color: #5f6682; }
[hidden] { display: none !important; }

body {
  font-family: 'Figtree', sans-serif;
  color: #000000;
}

.accent { color: #0000FF; }

.dot {
  border-radius: 50%;
  background: #0000FF;
  flex: none;
}

/* ---------- Desktop (≥ 760px) ---------- */

.desktop {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #FAFAFB url('assets/scene-marble.png') center / cover no-repeat;
}

/* One design unit: 1% of a 3:2 frame that fits inside the window, scaled down a touch. */
.scene {
  --u: calc(min(1vw, 1.5vh) * 0.95);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.d-logo {
  width: calc(16.2 * var(--u));
  height: auto;
  display: block;
  margin-bottom: calc(3.1 * var(--u));
}

.d-headline {
  margin: 0 0 calc(1.5 * var(--u));
  font-size: calc(5.2 * var(--u));
  line-height: 0.93;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.d-lede {
  margin: 0 0 calc(3 * var(--u));
  font-size: calc(1.45 * var(--u));
  line-height: 1.45;
  font-weight: 500;
  color: #4a5170;
}

.d-form-slot {
  width: calc(43.4 * var(--u));
  height: calc(4.35 * var(--u));
  text-align: left;
}

/* Pill form */
.d-form {
  display: flex;
  width: 100%;
  height: 100%;
  padding: calc(0.35 * var(--u));
  gap: calc(0.4 * var(--u));
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #E1E4F0;
  border-radius: 999px;
  box-shadow: 0 calc(1 * var(--u)) calc(2.6 * var(--u)) rgba(0,0,90,0.07);
}

.d-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: calc(1 * var(--u));
  padding: 0 calc(1.4 * var(--u));
  min-width: 0;
}

.d-mail {
  width: calc(1.7 * var(--u));
  height: calc(1.7 * var(--u));
  flex: none;
}

.d-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: calc(1.25 * var(--u));
  font-weight: 500;
  color: #000000;
}

.d-btn {
  flex: none;
  display: flex;
  align-items: center;
  gap: calc(0.9 * var(--u));
  padding: 0 calc(0.45 * var(--u)) 0 calc(1.8 * var(--u));
  border: none;
  border-radius: 999px;
  background: #0000FF;
  color: #FFFFFF;
  font-family: inherit;
  font-size: calc(1.35 * var(--u));
  font-weight: 600;
  cursor: pointer;
}
.d-btn:hover { background: #000000; }

.d-btn-circle {
  width: calc(2.9 * var(--u));
  height: calc(2.9 * var(--u));
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.d-btn-circle svg { width: calc(1.4 * var(--u)); height: calc(1.4 * var(--u)); flex: none; }

.d-thanks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(1 * var(--u));
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(241,242,250,0.38));
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: calc(0.9 * var(--u));
  box-shadow: 0 calc(1.2 * var(--u)) calc(3 * var(--u)) rgba(0,0,90,0.08), inset 0 1px 0 rgba(255,255,255,0.95);
  font-size: calc(1.35 * var(--u));
  font-weight: 600;
}
.d-thanks .dot { width: calc(0.7 * var(--u)); height: calc(0.7 * var(--u)); }

.wa {
  position: relative;
  margin: 0;
  font-weight: 500;
  color: #3a3a4a;
}
.wa a {
  display: inline-flex;
  align-items: center;
  color: #0000FF;
  font-weight: 700;
  border-bottom: 2px solid #0000FF;
}
.wa a:hover { color: #000000; border-color: #000000; }

.d-wa {
  margin-top: calc(3 * var(--u));
  font-size: calc(1.3 * var(--u));
}
.d-wa a {
  margin-left: calc(0.4 * var(--u));
  gap: calc(0.5 * var(--u));
  padding-bottom: calc(0.15 * var(--u));
}
.d-wa svg { width: calc(1.3 * var(--u)); height: calc(1.3 * var(--u)); }

/* ---------- Mobile (< 760px) ---------- */

.mobile {
  display: none;
  position: relative;
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: calc(24px + env(safe-area-inset-top)) 22px calc(16vh + env(safe-area-inset-bottom));
  background:
    linear-gradient(to bottom, #F1F2F4 0, rgba(241,242,244,0) 70px),
    linear-gradient(to top, #F1F2F4 0, rgba(241,242,244,0.6) 40px, rgba(241,242,244,0) 140px),
    #F1F2F4 url('assets/scene-mobile.jpg') center / cover no-repeat;
  overflow: hidden;
  text-align: center;
}

.m-logo {
  position: relative;
  height: 32px;
  width: auto;
  display: block;
}

.m-headline {
  position: relative;
  margin: 0;
  font-size: clamp(36px, 10.5vw, 52px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.m-lede {
  position: relative;
  margin: 0;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  color: #4a5170;
  text-wrap: pretty;
}

.m-form {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 6px;
  width: 100%;
  max-width: 420px;
  padding: 5px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid #E1E4F0;
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(0,0,90,0.07);
}

.m-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 4px 0 16px;
}
.m-field svg { width: 20px; height: 20px; flex: none; }
.m-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #000000;
}

.m-btn {
  flex: none;
  height: 50px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  background: #0000FF;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 8px 20px rgba(0,0,255,0.25);
}
.m-btn svg { width: 18px; height: 18px; flex: none; }

.m-thanks {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  max-width: 420px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}
.m-thanks .dot { width: 10px; height: 10px; }

.m-wa { font-size: 14px; }
.m-wa a { margin-left: 4px; gap: 6px; padding-bottom: 2px; white-space: nowrap; }
.m-wa svg { width: 14px; height: 14px; }

@media (max-width: 759px) {
  .desktop { display: none; }
  .mobile { display: flex; }

  /* Safari paints its status-bar and toolbar strips with the page background
     colour, so use the marble tone there and fade the image into it. */
  html, body { background: #F1F2F4; }
}

@media (max-width: 374px) {
  .m-field { padding-left: 12px; gap: 8px; }
  .m-field svg { width: 18px; height: 18px; }
  .m-field input::placeholder { font-size: 15px; }
  .m-btn { padding: 0 14px; font-size: 15px; gap: 6px; }
}
