/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

html {
  scroll-behavior: smooth;
  /* A section reached from the header's links starts below the sticky header. */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fafc;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.public-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.public-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  text-decoration: none;
  min-width: max-content;
}

.public-header__mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.public-header__name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.public-header__tagline {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.public-header__nav {
  display: none;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  padding: 4px;
}

.public-header__link {
  border-radius: 999px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 13px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.public-header__link:hover {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.public-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.public-header__user {
  display: none;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.public-header__ghost,
.public-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.public-header__ghost {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  padding: 0 14px;
}

.public-header__cta {
  background: #2563eb;
  color: #ffffff;
  padding: 0 16px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.public-header__ghost:hover,
.public-header__cta:hover {
  transform: translateY(-1px);
}

.public-header__ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.public-header__cta:hover {
  background: #1d4ed8;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.3);
}

/* The public website's footer. */
.public-footer {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
}
.public-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 28px;
}
.public-footer__grid {
  display: grid;
  gap: 36px;
}
.public-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  text-decoration: none;
}
.public-footer__name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.public-footer__tagline {
  max-width: 320px;
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.6;
}
.public-footer__heading {
  margin: 6px 0 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.public-footer__text {
  margin: 14px 0 0;
  font-size: 15px;
  font-style: normal;
  line-height: 1.75;
}
.public-footer__link {
  color: #475569;
  text-decoration: none;
}
.public-footer__link:hover {
  color: #2563eb;
}
.public-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 13px;
}
.public-footer__legal-link {
  color: #94a3b8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.public-footer__legal-link:hover {
  color: #0f172a;
}

@media (min-width: 760px) {
  .public-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Phones and tablets: the links sit behind a menu button (site-menu controller). */
.public-header__menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
}
.public-header__menu-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}
.public-header__menu-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}
.public-header__menu-bars span:nth-child(1) { top: 0; }
.public-header__menu-bars span:nth-child(2) { top: 5px; }
.public-header__menu-bars span:nth-child(3) { top: 10px; }
.public-header__menu-button[aria-expanded="true"] .public-header__menu-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.public-header__menu-button[aria-expanded="true"] .public-header__menu-bars span:nth-child(2) { opacity: 0; }
.public-header__menu-button[aria-expanded="true"] .public-header__menu-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.public-header__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  padding: 6px 16px 20px;
  animation: site-menu-in 160ms ease-out;
}
.public-header__panel[hidden] {
  display: none;
}
.public-header__panel nav,
.public-header__panel-actions {
  max-width: 640px;
  margin: 0 auto;
}
.public-header__panel nav {
  display: flex;
  flex-direction: column;
}
.public-header__panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 6px;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.public-header__panel-link span:last-child {
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
}
.public-header__panel-link:hover {
  background: #f8fafc;
}
.public-header__panel-actions {
  display: grid;
  gap: 10px;
  padding-top: 16px;
}
.public-header__panel-ghost,
.public-header__panel-cta {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.public-header__panel-ghost {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
}
.public-header__panel-cta {
  border: 0;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}
.public-header__panel-user {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

@keyframes site-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Wide screens: every link fits in the bar, so no menu. */
@media (min-width: 1080px) {
  .public-header__nav {
    display: flex;
  }

  .public-header__user {
    display: inline-block;
  }

  .public-header__menu-button,
  .public-header__panel {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .public-header__inner {
    padding: 12px 16px;
    gap: 10px;
  }

  .public-header__tagline,
  .public-header__ghost {
    display: none;
  }

  .public-header__cta {
    padding: 0 12px;
  }
}

/* The smallest phones: sign-up is in the menu. */
@media (max-width: 370px) {
  .public-header__actions .public-header__cta {
    display: none;
  }
}

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

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

@keyframes pos-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pos-scan {
  0% {
    transform: translateY(-20%);
    opacity: 0;
  }

  20%, 80% {
    opacity: 1;
  }

  100% {
    transform: translateY(320%);
    opacity: 0;
  }
}

.motion-rise {
  animation: pos-rise 700ms ease both;
}

.motion-rise-delay-1 {
  animation: pos-rise 700ms ease 120ms both;
}

.motion-rise-delay-2 {
  animation: pos-rise 700ms ease 240ms both;
}

.motion-float {
  animation: pos-float 5s ease-in-out infinite;
}

.motion-scan {
  animation: pos-scan 3.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .motion-rise,
  .motion-rise-delay-1,
  .motion-rise-delay-2,
  .motion-float,
  .motion-scan,
  .public-header__panel {
    animation: none;
  }

  .public-header__menu-bars span {
    transition: none;
  }
}
