:root {
  --acc: #3358FF;          /* Luminous cobalt */
  --acc-l: #C9D3FF;        /* hover tint */
  --on-acc: #FFFFFF;       /* text on accent */
  --glow: rgba(51, 88, 255, 0.45);
  --bg: #0A0A0B;
  --fg: #F7F2EA;
  --mut: #AAB3C4;
  --mut2: #868F9F;
  --field: #10141B;
  --line: #252B36;
  --pad-x: clamp(20px, 4.5vw, 72px);
}

html, body { margin: 0; background: var(--bg); }
body {
  font-family: 'Figtree', system-ui, sans-serif;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}

.cs {
  position: relative;
  height: clamp(640px, 100vh, 980px);
  background: var(--bg);
  overflow: hidden;
}
.cs-grid { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

.cs-header {
  position: absolute; z-index: 3; left: 0; right: 0; top: 0;
  padding: 28px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.cs-logo {
  display: block;
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cs-logo:hover { transform: scale(1.06); }
.cs-logo img { width: 112px; height: auto; display: block; }

.cs-content {
  position: absolute; z-index: 2; inset: 0;
  padding: 0 var(--pad-x);
  display: flex; align-items: center;
  pointer-events: none;
}
.cs-copy {
  max-width: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vh, 36px);
  pointer-events: auto;
}
.cs-h1 {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(42px, 5.8vw, 90px);
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}
.cs-acc { color: var(--acc); }
.cs-lead {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--mut);
  margin: 0;
  max-width: 40ch;
  text-wrap: pretty;
}
.cs-lead strong { color: var(--fg); font-weight: 700; }

.cs-form {
  display: flex; align-items: center; gap: 8px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  max-width: 460px;
  box-sizing: border-box;
}
.cs-input {
  flex: 1; min-width: 0; width: 0;
  background: transparent; border: 0; outline: none;
  color: var(--fg);
  font: inherit; font-size: 16px;
  padding: 10px 0;
}
.cs-input::placeholder { color: var(--mut2); }
.cs-btn {
  all: unset;
  cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  background: var(--acc);
  color: var(--on-acc);
  box-shadow: 0 0 28px var(--glow);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  font-size: 16px; font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
}
.cs-btn:hover { background: var(--acc-l); color: #0A0A0B; }
.cs-btn-arrow {
  width: 38px; height: 38px; border-radius: 50%;
  background: #0A0A0B; color: var(--acc);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}

.cs-success {
  display: flex; align-items: center; gap: 14px;
  background: var(--field);
  border: 1px solid var(--acc);
  border-radius: 999px;
  padding: 10px 22px 10px 10px;
  max-width: 460px; box-sizing: border-box;
  font-size: 16px; color: var(--fg);
}
.cs-success[hidden], .cs-form[hidden] { display: none; }
.cs-success-check {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--acc); color: var(--on-acc);
  box-shadow: 0 0 28px var(--glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
}
.cs-note { font-size: 13px; color: var(--mut2); margin-top: -12px; }

/* Mobile: header on top, clickable plots in the free band, copy anchored to the bottom */
@media (max-width: 899px) {
  .cs { height: 100vh; height: 100svh; min-height: 560px; max-height: none; }
  .cs-header { padding: max(20px, env(safe-area-inset-top)) 20px 0; }
  .cs-logo img { width: 96px; }
  .cs-content {
    align-items: flex-end;
    padding: 0 20px max(24px, env(safe-area-inset-bottom));
  }
  .cs-copy { gap: 20px; max-width: 520px; width: 100%; }
  .cs-h1 { font-size: clamp(32px, 10vw, 44px); line-height: 1.02; letter-spacing: -0.04em; }
  .cs-lead { font-size: 16px; max-width: none; }
  .cs-form { max-width: none; padding: 4px 4px 4px 18px; gap: 8px; }
  .cs-input { font-size: 16px; padding: 9px 0; } /* 16px prevents iOS zoom */
  .cs-btn { font-size: 15px; gap: 8px; padding: 4px 4px 4px 16px; }
  .cs-btn-arrow { width: 36px; height: 36px; font-size: 16px; }
  .cs-success { max-width: none; padding: 8px 18px 8px 8px; font-size: 15px; }
  .cs-note { margin-top: -10px; }
}
/* Small phones (320–359 px wide or ≤ 600 px tall) */
@media (max-width: 359px), (max-width: 899px) and (max-height: 600px) {
  .cs-copy { gap: 16px; }
  .cs-h1 { font-size: 32px; }
  .cs-lead { font-size: 15px; line-height: 1.45; }
  .cs-btn { font-size: 14px; padding-left: 14px; }
  .cs-btn-arrow { width: 34px; height: 34px; }
  .cs-note { margin-top: -8px; font-size: 12px; }
}
/* Very narrow (<360): stack input and button so the e-mail field stays readable */
@media (max-width: 359px) {
  .cs-form { flex-direction: column; align-items: stretch; border-radius: 26px; padding: 4px; gap: 4px; }
  .cs-input { width: auto; padding: 10px 14px; }
  .cs-btn { justify-content: space-between; }
}
