/* --- CSS Variables & Design System --- */
:root {
  --primary: #3698da;
  --primary-hover: #217db8;
  --primary-light: rgba(54, 152, 218, 0.08);
  
  --bg-main: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #334155;
  
  --font-display: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --transition: all 0.2s ease-in-out;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; height: 100dvh; overflow: hidden; }
body { font-family: var(--font-body); color: var(--text-main); background-color: var(--bg-main); line-height: 1.4; -webkit-font-smoothing: antialiased; }

/* --- Split Layout --- */
.split-layout {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  height: 100dvh;
}

/* --- Animated Background --- */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.15;
  animation: float 20s infinite alternate;
}
.shape-1 {
  width: 600px; height: 600px;
  background: #3698da;
  bottom: -200px; left: -200px;
}
.shape-2 {
  width: 500px; height: 500px;
  background: #7dd3fc;
  top: -150px; right: 45%; /* position it around the middle/left pane border */
  animation-delay: -5s;
}
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15vw, -15vh) scale(1.1); }
  100% { transform: translate(-10vw, 20vh) scale(0.9); }
}

/* --- Left Pane (Content & Form) --- */
.left-pane {
  position: relative;
  z-index: 10;
  flex: 0 0 55%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent; /* allow shapes to show */
  padding: 3rem;
}

.content-wrapper { max-width: 580px; width: 100%; }

.logo { display: inline-flex; align-items: center; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--text-main); margin-bottom: 2rem; }
.logo img { height: 32px; width: auto; }
.logo-fallback-wrapper { display: flex; align-items: center; gap: 0.5rem; }
.logo-icon-svg { width: 28px; height: 28px; fill: var(--primary); }
.logo-sub { color: var(--primary); font-size: 0.9rem; font-weight: 800; letter-spacing: 0.05em; margin-left: 0.35rem; }

h1 { font-family: var(--font-display); font-size: 3.25rem; font-weight: 900; line-height: 1.1; color: #0f172a; margin-bottom: 1rem; letter-spacing: -0.03em; }
.subtitle { font-size: 1.15rem; color: var(--text-muted); font-weight: 400; line-height: 1.4; margin-bottom: 1.5rem; }
.subtitle strong { color: var(--text-main); font-weight: 600; }

/* Premium Callout */
.premium-callout {
  background: var(--primary-light);
  color: var(--text-main);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}
.premium-callout strong {
  color: var(--primary);
  font-weight: 700;
}

/* Benefits List */
.benefits-container { margin-bottom: 1.5rem; }
.benefits-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.75rem; }
.benefits-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 0.5rem; }

.benefit-item { display: flex; align-items: center; gap: 0.5rem; }
.benefit-item.full-width { grid-column: 1 / -1; }
.benefit-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.benefit-icon svg { width: 12px; height: 12px; }
.benefit-text { font-size: 0.95rem; color: var(--text-main); line-height: 1.25; }
.benefit-text strong { font-weight: 600; }

/* --- Form Styles --- */
.form-container { width: 100%; }
.subscribe-form { display: flex; flex-direction: column; gap: 1rem; }
.form-inputs { display: flex; gap: 1rem; }
.form-inputs input { flex: 1; padding: 0.9rem 1rem; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 6px; font-family: var(--font-body); font-size: 1rem; color: var(--text-main); transition: var(--transition); outline: none; box-shadow: 0 1px 2px rgba(0,0,0,0.02) inset; }
.form-inputs input::placeholder { color: #94a3b8; }
.form-inputs input:focus { border-color: #0f172a; box-shadow: 0 0 0 1px #0f172a; }
.submit-btn { background: #111827; color: #fff; border: none; padding: 1.05rem; border-radius: 6px; font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; text-transform: uppercase; letter-spacing: 0.02em; }
.submit-btn:hover { background: #000000; }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.form-note { font-size: 0.85rem; color: #64748b; margin-top: 0.5rem; text-align: center; }
.form-note a { color: #64748b; text-decoration: underline; }

.social-proof {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
  margin-top: 1.25rem;
  text-align: center;
}

.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: #fff; animation: spin 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.success-state { text-align: left; padding: 1rem 0; animation: fadeIn 0.4s ease-out; }
.success-icon { width: 40px; height: 40px; background: #10b981; color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.success-icon svg { width: 20px; height: 20px; }
.success-state h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.25rem; }
.success-state p { color: var(--text-muted); font-size: 0.95rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Right Pane --- */
.right-pane {
  position: relative;
  z-index: 10;
  flex: 0 0 45%;
  height: 100%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- 2D Mockup Layout --- */
.composite-mockup {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ipad-frame {
  width: 90%;
  max-width: 650px;
  aspect-ratio: 4.3 / 3;
  background: #ffffff;
  border-radius: 24px;
  border: 14px solid #0f172a;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.iphone-frame {
  width: 28%;
  min-width: 140px;
  max-width: 220px;
  aspect-ratio: 9/19.5;
  background: #ffffff;
  border-radius: 36px;
  border: 10px solid #0f172a;
  position: absolute;
  left: 0%;
  bottom: 12%;
  z-index: 20;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.dynamic-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 22px;
  background: #0f172a;
  border-radius: 12px;
  z-index: 30;
}

.ipad-frame img, .iphone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  .left-pane { padding: 2rem; }
}

@media (max-width: 768px) {
  .split-layout { flex-direction: column; }
  .left-pane { flex: 0 0 100%; padding: 1.5rem 1.25rem; }
  .right-pane { display: none; }
  .shape-2 { right: -100px; }
  
  .logo { display: flex; justify-content: center; width: 100%; margin-bottom: 1.5rem; }
  .logo img { height: 26px; }
  
  h1 { font-size: 2.25rem; margin-bottom: 0.75rem; text-align: center; }
  .subtitle { font-size: 1.05rem; margin-bottom: 1rem; text-align: center; }
  
  .benefits-container { margin-bottom: 1.25rem; }
  .benefits-title { font-size: 1.05rem; margin-bottom: 0.5rem; text-align: center; }
  .benefits-list { gap: 0.5rem 0.25rem; justify-content: center; }
  .benefit-item { font-size: 0.85rem; }
  
  .form-inputs { flex-direction: column; gap: 0.5rem; }
  .form-inputs input { padding: 0.85rem 1rem; font-size: 1rem; text-align: center; }
  .subscribe-form { gap: 0.75rem; }
  .submit-btn { padding: 0.95rem; font-size: 1.05rem; }
  .social-proof { text-align: center; font-size: 0.9rem; }
}
