@font-face {
  font-family: 'TTNormsProCondensed';
  src: url('/admin/static/assets/fonts/TTNormsProCondensed-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mistrully';
  src: url('/admin/static/assets/fonts/Mistrully.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --surface-dark: #071929;
  --surface-darker: #04111d;
  --surface-accent: linear-gradient(160deg, #1e66a0 0%, #154f84 48%, #0b2f4f 100%);
  --surface-light: #f6f7fb;
  --surface-card: #ffffff;
  --surface-outline: rgba(13, 37, 55, 0.1);
  --text-primary: #0b1f33;
  --text-muted: #5f7289;
  --text-on-dark: rgba(233, 244, 255, 0.92);
  --accent: #ec7a37;
  --accent-soft: rgba(236, 122, 55, 0.16);
  --accent-strong: #f68d4c;
  --cta: #1f9d6f;
  --cta-soft: rgba(31, 157, 111, 0.18);
  --white: #ffffff;
  --shadow-xl: 0 36px 68px rgba(8, 35, 58, 0.22);
  --shadow-lg: 0 24px 48px rgba(9, 31, 51, 0.18);
  --shadow-card: 0 18px 36px rgba(7, 28, 45, 0.14);
  --shadow-soft: 0 18px 32px rgba(9, 25, 42, 0.12);
  --radius-card: 28px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.container--wide {
  width: min(1320px, calc(100% - 80px));
}

.masthead {
  background: var(--white);
  padding: 16px 0 0;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}

.masthead-divider {
  width: 100%;
  height: 1px;
  background: rgba(9, 31, 51, 0.08);
  margin-top: clamp(12px, 2vw, 20px);
}

.masthead-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.compliance-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.compliance-link:hover {
  text-decoration: underline;
  color: var(--accent);
}

.header-compliance-link {
  order: -1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  height: 78px;
  width: auto;
}

.masthead-cta {
  padding: 12px 32px;
  flex-shrink: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(20px, 4vw, 72px);
  align-items: center;
  margin-top: clamp(18px, 3.5vw, 48px);
  padding-bottom: clamp(0px, 2vw, 16px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  align-items: center;
  text-align: center;
  justify-self: end;
}

.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: 'TTNormsProCondensed', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(3.1rem, 6vw, 4.2rem);
  color: var(--text-primary);
  text-align: center;
  line-height: 1.03;
}

.hero-script {
  font-family: 'Mistrully', 'Brush Script MT', cursive;
  font-weight: 400;
  font-size: clamp(3.4rem, 6.6vw, 4.8rem);
  color: var(--accent);
  line-height: 0.9;
  margin-bottom: -12px;
}

.hero-title span:last-child {
  color: var(--text-primary);
}

.hero-lead {
  margin: 4px 0 0;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 520px;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-family: 'TTNormsProCondensed', 'Inter', sans-serif;
  font-weight: 700;
  padding: 12px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-primary {
  background: linear-gradient(135deg, #5fd574, #2dbb80);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(45, 187, 128, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(45, 187, 128, 0.32);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(13, 37, 55, 0.2);
  color: var(--text-primary);
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.hero-cta {
  align-self: center;
  justify-content: center;
  padding: 12px 40px;
  margin-top: 12px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  align-items: center;
}

.hero-login {
  padding: 8px 22px;
  min-height: 44px;
  line-height: 1.05;
  font-size: 0.88rem;
}

.masthead-login {
  padding: 8px 22px;
  min-height: 44px;
  line-height: 1.05;
  font-size: 0.88rem;
}

.btn-google {
  padding-right: 36px;
  padding-left: 36px;
}

.hero-compliance-link {
  font-size: 0.9rem;
  text-transform: none;
}

.btn-label {
  white-space: nowrap;
}

.hero-media {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-end;
}

.hero-device {
  width: 100%;
  max-width: 700px;
  transform: none;
  display: flex;
  margin-bottom: -15px;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero-device img {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  background: var(--white);
}

.section {
  padding: 96px 0;
}

.section--light {
  background: var(--surface-light);
}

.section--accent {
  background: var(--surface-accent);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
  margin-top: clamp(-120px, -10vw, -60px);
  padding: clamp(96px, 12vw, 170px) 0 110px;
}

.section--accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 140% at 20% 0%, rgba(236, 122, 55, 0.22), transparent 62%);
  pointer-events: none;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: rgba(9, 31, 51, 0.12);
  margin: 16px auto 0;
}

.section--accent .section-title {
  color: var(--accent-strong);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section--accent .section-lead {
  color: #ffffff;
}

.section--accent .section-eyebrow {
  color: var(--accent-strong);
}

.section--accent .section-divider {
  background: rgba(233, 244, 255, 0.24);
}

.section--neutral {
  background: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 880px;
  width: 100%;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section--accent .section-header {
  max-width: 1040px;
}

.section-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

.section-title {
  margin: 0;
  font-family: 'TTNormsProCondensed', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  color: var(--text-primary);
}

.section-lead {
  margin: 0;
  font-size: 1.04rem;
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .section--accent .section-title {
    white-space: nowrap;
    font-size: 2.5rem;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--surface-card);
  border-radius: var(--radius-card);
  padding: 36px 32px 52px;
  box-shadow: 0 24px 48px rgba(5, 21, 35, 0.2);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 24px;
  height: 6px;
  border-radius: 6px;
  opacity: 0.92;
}

.feature-card--portal::after {
  background: linear-gradient(90deg, #f68d4c, #fbb27a);
}

.feature-card--dashboard::after {
  background: linear-gradient(90deg, #5896ff, #2b6fdc);
}

.feature-card--notifications::after {
  background: linear-gradient(90deg, #6adf84, #34b85e);
}

.feature-card h3 {
  margin: 0;
  font-size: 1.26rem;
  color: var(--text-primary);
  font-family: 'TTNormsProCondensed', 'Inter', sans-serif;
  letter-spacing: 0.04em;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
}

.feature-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.feature-card li {
  position: relative;
  padding-left: 28px;
}

.feature-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--cta-soft);
  border: 2px solid rgba(31, 157, 111, 0.4);
}

.feature-card li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  width: 5px;
  height: 9px;
  border: solid rgba(9, 31, 49, 0.8);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-soft);
}

.feature-icon::before,
.feature-icon::after {
  content: '';
  display: block;
}

.feature-icon--portal {
  background: linear-gradient(135deg, rgba(236, 122, 55, 0.22), rgba(236, 122, 55, 0.42));
}

.feature-icon--portal::before {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid rgba(236, 122, 55, 0.6);
}

.feature-icon--portal::after {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 6px;
  border: 2px solid rgba(236, 122, 55, 0.7);
  top: 18px;
  left: 28px;
}

.feature-icon--tasks {
  background: linear-gradient(135deg, rgba(84, 152, 255, 0.22), rgba(84, 152, 255, 0.46));
}

.feature-icon--tasks::before {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(84, 152, 255, 0.18);
  border: 2px solid rgba(84, 152, 255, 0.52);
}

.feature-icon--tasks::after {
  position: absolute;
  width: 8px;
  height: 16px;
  border: solid rgba(84, 152, 255, 0.85);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  top: 16px;
  left: 32px;
}

.feature-icon--notifications {
  background: linear-gradient(135deg, rgba(123, 108, 255, 0.22), rgba(123, 108, 255, 0.46));
}

.feature-icon--notifications::before {
  width: 24px;
  height: 24px;
  border-radius: 24px 24px 10px 10px;
  border: 2px solid rgba(123, 108, 255, 0.55);
}

.feature-icon--notifications::after {
  position: absolute;
  bottom: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(123, 108, 255, 0.72);
}

.site-footer {
  background: var(--surface-dark);
  color: rgba(233, 244, 255, 0.78);
  padding: 32px 0 40px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.footer-cta {
  background: none;
  border: none;
  color: var(--accent-strong);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.footer-cta:hover {
  color: #ff9f6a;
}

.footer-login {
  margin: 0;
  color: rgba(233, 244, 255, 0.78);
}

.footer-login-btn {
  margin-left: 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(233, 244, 255, 0.4);
  background: transparent;
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 20px;
  cursor: pointer;
}

.footer-login-btn:hover {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}

.footer-meta {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(233, 244, 255, 0.6);
}

/* Lead modal */
.lead-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.lead-modal.is-open {
  display: flex;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 32, 0.62);
  backdrop-filter: blur(8px);
}

.lead-modal__card {
  position: relative;
  width: min(520px, 100%);
  background: var(--surface-card);
  border-radius: 28px;
  box-shadow: 0 40px 88px rgba(7, 28, 45, 0.35);
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1;
}

.lead-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lead-modal__title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lead-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: none;
  background: rgba(15, 39, 60, 0.08);
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.lead-modal__close:hover {
  transform: rotate(90deg);
  background: rgba(15, 39, 60, 0.14);
}

.lead-modal__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.lead-modal__description {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.lead-pane {
  background: rgba(245, 247, 251, 0.9);
  border-radius: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(11, 48, 79, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead-pane--oauth {
  background: var(--surface-card);
  border: 1px solid rgba(11, 48, 79, 0.08);
  box-shadow: 0 12px 24px rgba(7, 28, 45, 0.08);
}

.lead-pane h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'TTNormsProCondensed', 'Inter', sans-serif;
  letter-spacing: 0.04em;
}

.lead-pane__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.lead-consent {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.lead-consent a {
  color: var(--accent);
  font-weight: 600;
}

.lead-pane label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.lead-pane input[type="email"] {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(11, 48, 79, 0.16);
  padding: 0 14px;
  font-size: 0.95rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.lead-pane input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(236, 122, 55, 0.18);
}

.lead-pane input.is-error {
  border-color: #d23c3c;
  box-shadow: 0 0 0 3px rgba(210, 60, 60, 0.16);
}

.lead-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'TTNormsProCondensed', 'Inter', sans-serif;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(11, 48, 79, 0.92), rgba(6, 25, 43, 0.94));
  color: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.lead-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(7, 28, 45, 0.12);
}

.lead-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.lead-action--primary {
  background: linear-gradient(140deg, #f68d4c, #ec7a37);
  color: #382210;
}

.lead-divider {
  position: relative;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lead-divider span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: var(--surface-card);
}

.lead-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(11, 48, 79, 0.12);
}

.lead-status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 20px;
  color: var(--text-muted);
}

.lead-status.is-error {
  color: #c43a3a;
}

.lead-status.is-success {
  color: #1d8c62;
}

/* Responsive tweaks */
@media (max-width: 1100px) {
  .container--wide {
    width: calc(100% - 48px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 20px;
    align-items: center;
  }

  .hero-copy {
    margin: 0 auto;
    align-items: center;
    text-align: center;
    justify-self: center;
  }

  .hero-cta {
    width: 100%;
    text-align: center;
    align-self: center;
    margin-left: 0;
    margin-top: 12px;
  }

  .hero-device {
    margin: 0 auto;
    max-width: 560px;
    transform: none;
  }

  .section--accent {
    margin-top: -48px;
    padding: 118px 0 96px;
  }
}

@media (max-width: 768px) {
  .container--wide {
    width: calc(100% - 40px);
  }

  .section {
    padding: 72px 0;
  }

  .feature-grid,
  .proof-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .masthead-bar {
    justify-content: center;
  }

  .masthead-cta {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-bottom: 24px;
  }

  .hero-device {
    max-width: 480px;
    transform: none;
  }

  .section--accent {
    margin-top: -24px;
    padding: 110px 0 92px;
  }

  .lead-modal__card {
    padding: 24px;
  }

  .lead-pane {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 32px);
  }

  .container--wide {
    width: calc(100% - 32px);
  }

  .brand img {
    height: 68px;
  }

  .hero-device {
    padding: 0;
    transform: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 28px 24px 48px;
  }

  .feature-card::after {
    left: 24px;
    right: 24px;
    bottom: 20px;
  }

  .steps-aside {
    flex-direction: column;
  }

  .callout {
    width: 100%;
  }

  .lead-modal__card {
    border-radius: 20px;
  }

  .section--accent {
    margin-top: -8px;
    padding: 102px 0 88px;
  }
}
