:root {
  --bg: #090a0c;
  --bg-accent: #090a0c;
  --panel: rgba(255, 252, 246, 0.84);
  --panel-strong: rgba(252, 246, 234, 0.96);
  --panel-muted: rgba(228, 219, 202, 0.72);
  --text: #f0ece4;
  --muted: rgba(225, 220, 210, 0.74);
  --accent: #d9d1c0;
  --accent-deep: #f7f2e7;
  --border: rgba(247, 242, 231, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  font-family: 'Avenir Next', 'Segoe UI Variable', 'Gill Sans', 'Trebuchet MS', sans-serif;
  color: var(--text);
  background: var(--bg-accent);
}

body.homepage {
  --background-visibility: 0.95;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  background: #07080a;
}

body.subpage {
  --background-visibility: 0.72;
  min-height: 100dvh;
  display: grid;
  place-items: start center;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  background: #07080a;
}

body.homepage::before,
body.subpage::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: image-set(
    url('/skyline_toronto.webp') type('image/webp'),
    url('/skyline_toronto.jpg') type('image/jpeg')
  );
  background-position: center 34%;
  background-size: cover;
  filter: grayscale(1) brightness(0.48) contrast(1.02);
  opacity: var(--background-visibility);
  transform: scale(1.03);
  transition: opacity 1.2s var(--ease-luxury), filter 1.2s var(--ease-luxury);
}

body.homepage::after,
body.subpage::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 10, 0.34) 0%, rgba(7, 8, 10, 0.5) 32%, rgba(7, 8, 10, 0.7) 100%),
    radial-gradient(circle at 50% 44%, rgba(32, 35, 40, 0.03) 0%, rgba(7, 8, 10, 0.28) 54%, rgba(7, 8, 10, 0.62) 100%);
  opacity: calc(1 - ((var(--background-visibility) - 0.35) / 0.65) * 0.5);
  transition: opacity 1.2s var(--ease-luxury);
}

a {
  color: var(--accent-deep);
  transition: color 1.2s var(--ease-luxury), opacity 1.2s var(--ease-luxury);
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(1.25rem + env(safe-area-inset-top)) 0 calc(1.25rem + env(safe-area-inset-bottom));
  position: relative;
  z-index: 1;
}

body.homepage .page-shell {
  min-height: 100dvh;
  width: min(1180px, calc(100% - 3rem));
  padding: 2rem 0;
}

body.subpage .page-shell {
  min-height: auto;
  width: min(920px, calc(100% - 3rem));
  padding: 2.5rem 0;
}

.page-shell-narrow {
  width: min(780px, calc(100% - 2rem));
}

.hero-centered {
  width: min(980px, 100%);
  display: flex;
  justify-content: center;
}

.hero-simple {
  width: 100%;
  text-align: center;
  animation: rise-in 900ms var(--ease-luxury) both;
}

.eyebrow {
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--accent-deep);
  font-weight: 800;
}

h1,
h2 {
  font-family: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  line-height: 0.92;
  margin: 0;
}

h1 {
  font-size: clamp(4rem, 10vw, 8.4rem);
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.lede,
p,
li,
label,
input,
button {
  font-size: 1rem;
  line-height: 1.65;
}

.lede {
  max-width: 52rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.lede-compact {
  max-width: none;
  margin: 1rem 0 0;
  font-size: 1rem;
}

.hero-explainer {
  max-width: 33rem;
  margin: 1.35rem auto 0;
  color: var(--muted);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.7rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: rise-in 700ms ease both;
}

.signup-card {
  text-align: center;
  padding: 2.5rem;
}

.panel-accent {
  background: var(--panel-strong);
}

.panel-muted {
  background: var(--panel-muted);
}

.signup-form {
  margin-top: 2rem;
}

.field-label {
  display: block;
  margin-bottom: 0.65rem;
  font-weight: 700;
}

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

.input-row {
  display: flex;
  gap: 0;
  align-items: center;
  max-width: 38rem;
  margin: 0 auto;
  padding: 0.38rem;
  border: 1px solid rgba(247, 242, 231, 0.16);
  border-radius: 999px;
  background: rgba(14, 16, 19, 0.56);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  transition: border-color 1.2s var(--ease-luxury), background-color 1.2s var(--ease-luxury), box-shadow 1.2s var(--ease-luxury);
}

.input-row:focus-within {
  border-color: rgba(247, 242, 231, 0.4);
  background: rgba(16, 18, 21, 0.72);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

input,
button {
  border-radius: 999px;
  border: 1px solid transparent;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 1rem 1.35rem;
  background: transparent;
  color: var(--text);
  min-width: 0;
}

input::placeholder {
  color: rgba(240, 236, 228, 0.5);
}

input:focus,
button:focus {
  outline: none;
}

button {
  min-height: 44px;
  padding: 1rem 1.5rem;
  min-width: 11rem;
  background: rgba(240, 236, 228, 0.08);
  color: var(--accent-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 1.2s var(--ease-luxury), color 1.2s var(--ease-luxury), opacity 1.2s var(--ease-luxury), transform 1.2s var(--ease-luxury);
}

button:hover {
  background: rgba(240, 236, 228, 0.16);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
}

.feature-list li + li {
  margin-top: 0.8rem;
}

.form-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: rgba(234, 229, 219, 0.8);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

.form-status[data-state='error'] {
  color: #f1bab2;
}

.form-status[data-state='success'] {
  color: rgba(234, 229, 219, 0.84);
}

.privacy-copy {
  color: rgba(225, 220, 210, 0.58);
  margin-top: 1.4rem;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.privacy-copy a:hover {
  opacity: 0.72;
}


.subpage-layout {
  width: min(100%, 48rem);
  padding: 2.2rem 0;
  text-align: center;
  animation: rise-in 900ms var(--ease-luxury) both;
}

.subpage-layout-compact {
  width: min(100%, 34rem);
}

.subpage-title {
  font-size: clamp(3rem, 8vw, 5.8rem);
  margin: 0;
}

.subpage-lede {
  max-width: 38rem;
  margin: 1.35rem auto 0;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.legal-layout {
  width: min(100%, 44rem);
}

.legal-copy {
  margin: 2rem auto 0;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(247, 242, 231, 0.12);
  border-radius: 24px;
  background: rgba(12, 14, 17, 0.34);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  text-align: left;
}

.legal-copy p {
  margin: 0;
  color: rgba(232, 227, 218, 0.86);
  overflow-wrap: anywhere;
}

.legal-copy p + p {
  margin-top: 1rem;
}

.subpage-actions {
  margin-top: 1.6rem;
}

.text-link {
  display: inline-block;
  color: var(--accent-deep);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-link:hover {
  opacity: 0.72;
}


.honeypot {
  position: absolute;
  left: -9999px;
}

.legal-panel {
  margin-top: 4rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100%, calc(100% - 1.5rem));
    padding: 1.75rem 0;
  }

  body.homepage .page-shell {
    width: min(100%, calc(100% - 1.5rem));
    padding: 1.75rem 0;
  }

  body.subpage .page-shell {
    width: min(100%, calc(100% - 1.5rem));
    padding: 1.75rem 0;
  }

  .input-row {
    flex-direction: column;
    gap: 0.35rem;
    border-radius: 28px;
    padding: 0.7rem;
  }

  .signup-card {
    padding: 1.5rem;
  }

  .hero-explainer,
  .input-row {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-explainer br {
    display: none;
  }

  input,
  button {
    width: 100%;
  }

  button {
    min-width: 0;
  }

  .hero-explainer {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .subpage-layout,
  .legal-layout {
    width: 100%;
    padding: 1rem 0;
  }

  .subpage-lede {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .legal-copy {
    padding: 1.15rem;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 5.2rem);
  }
}

@media (max-width: 480px) {
  .page-shell,
  body.homepage .page-shell,
  body.subpage .page-shell {
    width: calc(100% - 1rem);
    padding-top: calc(0.9rem + env(safe-area-inset-top));
    padding-bottom: calc(1.1rem + env(safe-area-inset-bottom));
  }

  h1 {
    font-size: clamp(2.4rem, 15vw, 4rem);
    letter-spacing: -0.04em;
  }

  .hero-explainer {
    margin-top: 1rem;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
  }

  .input-row {
    padding: 0.5rem;
  }

  input,
  button {
    font-size: 16px;
    padding: 0.9rem 1rem;
  }

  button {
    font-size: 0.9rem;
    letter-spacing: 0.06em;
  }

  .legal-copy p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .subpage-title {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}