/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  scroll-behavior: smooth;
}

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

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #fcfbff;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-primary: #7444e5;
  --color-primary-soft: #f4eeff;
  --color-primary-dark: #5b36bb;
  --color-surface: #ffffff;
  --color-surface-soft: #f8f4ff;
  --color-button: #2a2a32;
  --color-button-hover: #12121a;
  --color-border: #e2e8f0;
  --color-border-soft: rgba(116, 68, 229, 0.12);
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 18px 40px rgba(116, 68, 229, 0.08);
  --border-radius-xl: 28px;
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 12px;
  --border-radius-full: 9999px;
  --transition-fast: 0.2s ease;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-bg-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand-page {
  overflow-x: hidden;
}

.split-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (min-width: 1024px) {
  .split-layout {
    flex-direction: row;
  }
}

.panel {
  width: 100%;
}

.panel-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-bg-primary);
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .panel-left {
    width: 45%;
    min-width: 45%;
  }
}

.panel-inner {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .panel-inner {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  .panel-inner {
    padding: 3rem 4rem 2.5rem;
  }
}

.panel-right {
  display: none;
  position: relative;
  overflow: hidden;
  background: var(--color-surface-soft);
}

@media (min-width: 1024px) {
  .panel-right {
    display: block;
    width: 55%;
    align-self: flex-start;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
  }
}

.hero-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(116, 68, 229, 0.16);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand:hover .brand-logo {
  transform: translateY(-2px) rotate(-3deg);
  box-shadow: 0 16px 36px rgba(116, 68, 229, 0.24);
}

.content-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  align-self: flex-start;
  padding: 1.5rem 0;
}

@media (min-width: 1024px) {
  .content-shell {
    margin: 0;
    padding: 2rem 0;
  }
}

.content-card,
.success-card,
.error-card {
  width: 100%;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.8vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--color-text-main);
  max-width: none;
  white-space: nowrap;
}

.hero-title-accent {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.88em;
}

.hero-copy {
  margin: 0 0 1rem;
  max-width: 32rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.hero-copy-secondary {
  margin-bottom: 2.5rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.field-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.input-field {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.1rem;
  border: 1px solid #dbe3ef;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  background-color: var(--color-bg-primary);
  color: var(--color-text-main);
}

.input-field::placeholder {
  color: #94a3b8;
}

.input-field:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(116, 68, 229, 0.12);
}

.input-field.has-error {
  border-color: #ef4444;
}

.input-field.has-error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

.field-error {
  margin: 0;
  font-size: 0.82rem;
  color: #dc2626;
  line-height: 1.4;
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  cursor: pointer;
}

.consent-checkbox {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.18rem;
  accent-color: var(--color-primary);
  flex: 0 0 auto;
  cursor: pointer;
}

.consent-copy {
  display: block;
}

.btn-primary {
  background-color: var(--color-button);
  color: #ffffff;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
}

.btn-primary:hover {
  background-color: var(--color-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(17, 17, 17, 0.18);
}

.btn-primary:focus-visible,
.footer-link:focus-visible,
.text-link:focus-visible,
.brand:focus-visible,
.input-field:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(116, 68, 229, 0.14);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(17, 17, 17, 0.16);
}

.btn-primary:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.btn-spinner {
  width: 1.05rem;
  height: 1.05rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-block {
  width: 100%;
}

.form-note {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
}

.form-feedback {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #b91c1c;
  line-height: 1.5;
}

.success-card,
.error-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--border-radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .success-card,
  .error-card {
    padding: 2rem;
  }
}

.success-card.active {
  animation: fadeIn 0.4s ease forwards;
}

.success-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.success-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.success-title {
  margin: 0 0 0.45rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #14532d;
}

.success-message {
  margin: 0;
  color: #166534;
  line-height: 1.5;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.content-card {
  animation: fadeInUp 0.5s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .content-card,
  .success-card.active,
  .modal:not(.hidden),
  .modal:not(.hidden) .modal-card,
  .btn-spinner {
    animation: none;
  }

  .btn-primary,
  .footer-link,
  .brand-logo,
  .modal-close {
    transition: none;
  }

  .btn-primary:hover,
  .footer-link:hover,
  .brand:hover .brand-logo {
    transform: none;
  }
}

.page-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-footer p {
  margin: 0;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
}

.footer-button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #94a3b8;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-link:hover {
  color: #475569;
  transform: translateY(-1px);
}

.footer-link svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 640px) {
  .page-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.modal:not(.hidden) {
  animation: modalFade 0.2s ease both;
}

.modal:not(.hidden) .modal-card {
  animation: modalPop 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(100%, 42rem);
  max-height: min(85vh, 48rem);
  overflow-y: auto;
  border-radius: var(--border-radius-lg);
  background: #ffffff;
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .modal-card {
    padding: 2rem;
  }
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.modal-close:active {
  transform: scale(0.94);
}

.modal-backdrop {
  cursor: pointer;
}

.modal-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  line-height: 1.15;
}

.modal-content {
  color: var(--color-text-muted);
}

.modal-content p {
  margin: 0 0 1rem;
  line-height: 1.65;
}

.modal-content strong {
  color: var(--color-text-main);
}

.modal-note {
  font-size: 0.9rem;
  color: #7c3aed;
}

.body-modal-open {
  overflow: hidden;
}

.error-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  box-sizing: border-box;
  text-align: center;
}

@media (min-width: 1024px) and (max-height: 860px) {
  .panel-inner {
    gap: 1.25rem;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }

  .content-shell {
    padding: 1rem 0;
  }

  .hero-title {
    font-size: clamp(1.65rem, 3.3vw, 2.45rem);
    margin-bottom: 0.75rem;
  }

  .hero-copy {
    margin-bottom: 0.85rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-copy-secondary {
    margin-bottom: 1.75rem;
  }

  .waitlist-form {
    gap: 1rem;
  }

  .form-note {
    margin-top: 1rem;
  }
}

.split-layout-error .panel-left {
  background:
    radial-gradient(circle at top left, rgba(116, 68, 229, 0.05), transparent 28%),
    var(--color-bg-primary);
}

.error-code {
  margin: 0 0 0.5rem;
  font-size: clamp(4.5rem, 12vw, 7rem);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}

.error-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 480px) {
  .error-actions {
    flex-direction: row;
    align-items: center;
  }
}

.text-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  color: var(--color-primary-dark);
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
