/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *

 */
/*
 * NOTE: removed `require_tree .` so the one-pager template stylesheet
 * (one_pager.css) does not bleed into the main app bundle. Top-level files
 * in this directory are still independently available via
 * `stylesheet_link_tag "<name>"` thanks to `link_directory ../stylesheets .css`
 * in app/assets/config/manifest.js.
 */

.landing-page {
  min-height: 100vh;
  background: #f7f8fb;
  color: #111827;
  overflow-x: hidden;
}

.legal-page {
  min-height: 100vh;
  background: #f8fafc;
  color: #111827;
  padding: 24px;
}

.legal-nav {
  width: min(980px, 100%);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.legal-brand {
  color: #111827;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
}

.legal-nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.legal-nav-links a,
.legal-document a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 650;
}

.legal-nav-links a:hover,
.legal-document a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.legal-document {
  width: min(980px, 100%);
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.legal-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 22px;
  margin-bottom: 30px;
}

.legal-header p {
  margin: 0 0 10px;
  color: #475569;
  font-weight: 750;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.legal-header h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

.legal-header span {
  display: block;
  margin-top: 12px;
  color: #64748b;
  font-size: 0.95rem;
}

.legal-document section {
  margin-top: 28px;
}

.legal-document h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0;
}

.legal-document p,
.legal-document li {
  color: #334155;
  font-size: 1rem;
  line-height: 1.72;
}

.legal-document p {
  margin: 10px 0 0;
}

.legal-document ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-document li + li {
  margin-top: 8px;
}

.legal-document strong {
  color: #0f172a;
  font-weight: 750;
}

@media (max-width: 640px) {
  .legal-page {
    padding: 18px 14px;
  }

  .legal-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-document {
    border-radius: 8px;
  }
}

.landing-hero {
  position: relative;
  isolation: isolate;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f7f8fb;
}

.landing-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.92) 58%, rgba(255, 255, 255, 1) 100%);
}

.landing-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 74%);
}

.landing-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 248, 251, 1) 0%, rgba(247, 248, 251, 0.92) 28%, rgba(247, 248, 251, 0.35) 58%, rgba(247, 248, 251, 0.88) 100%),
    linear-gradient(180deg, rgba(247, 248, 251, 0) 0%, rgba(247, 248, 251, 0) 62%, rgba(255, 255, 255, 1) 100%);
}

.landing-nav {
  position: relative;
  z-index: 2;
  width: 100%;
}

.landing-nav-inner,
.landing-hero-content,
.landing-section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.landing-nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.landing-logo {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  flex: 0 0 auto;
}

.landing-logo-image {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.landing-brand-name,
.landing-brand-subtitle {
  display: block;
  letter-spacing: 0;
}

.landing-brand-name {
  color: #111827;
  font-size: 0.95rem;
  line-height: 1.1;
  font-weight: 700;
}

.landing-brand-subtitle {
  margin-top: 3px;
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 500;
}

.landing-nav-note {
  color: #334155;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 650;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.landing-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 104px;
  padding-bottom: 96px;
  max-width: 1180px;
}

.landing-eyebrow {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 8px 12px;
  color: #0f766e;
  background: rgba(240, 253, 250, 0.86);
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 999px;
  font-size: 0.86rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

.landing-hero h1 {
  max-width: 650px;
  margin: 0;
  color: #0f172a;
  font-size: 4.15rem;
  line-height: 0.98;
  font-weight: 780;
  letter-spacing: 0;
}

.landing-lede {
  max-width: 570px;
  margin: 28px 0 0;
  color: #475569;
  font-size: 1.18rem;
  line-height: 1.72;
  letter-spacing: 0;
}

.landing-cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.landing-auth-form {
  margin: 0;
}

.landing-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 50px;
  padding: 0 18px;
  color: #111827;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.landing-auth-button:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 24, 39, 0.24);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.landing-google-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.landing-cta-copy {
  max-width: 260px;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.landing-product {
  position: absolute;
  top: 104px;
  right: max(-20px, calc((100vw - 1180px) / 2 - 18px));
  width: min(720px, 62vw);
  z-index: 0;
  transform: perspective(1100px) rotateX(2deg) rotateY(-7deg);
  transform-origin: center right;
}

.landing-window {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.22);
}

.landing-window-top {
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.9);
}

.landing-window-dots {
  display: flex;
  gap: 7px;
}

.landing-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.landing-window-dots span:nth-child(1) { background: #ef4444; }
.landing-window-dots span:nth-child(2) { background: #f59e0b; }
.landing-window-dots span:nth-child(3) { background: #10b981; }

.landing-search {
  width: min(280px, 52%);
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #94a3b8;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.landing-product-body {
  min-height: 470px;
  display: grid;
  grid-template-columns: 168px 1fr;
}

.landing-product-rail {
  padding: 18px 12px;
  background: #0f172a;
  color: #cbd5e1;
}

.landing-rail-item {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.landing-rail-item + .landing-rail-item {
  margin-top: 6px;
}

.landing-rail-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.landing-rail-status {
  margin-top: 212px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a7f3d0;
  font-size: 0.78rem;
  font-weight: 700;
}

.landing-rail-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.landing-product-main {
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.landing-product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.landing-kicker {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 700;
}

.landing-product-title {
  margin-top: 4px;
  color: #111827;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 780;
}

.landing-score {
  color: #0f766e;
  background: #ccfbf1;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.landing-message-card {
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.landing-message-card + .landing-message-card {
  margin-top: 12px;
}

.landing-message-card.priority {
  border-color: rgba(16, 185, 129, 0.42);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.12);
}

.landing-message-card.muted {
  opacity: 0.78;
}

.landing-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-message-title {
  margin-top: 9px;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 800;
}

.landing-message-card p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.5;
}

.landing-message-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.landing-message-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #111827;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.landing-workflow {
  padding: 78px 0 84px;
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.landing-section-heading {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.landing-section-heading p {
  margin: 4px 0 0;
  color: #0f766e;
  font-size: 0.83rem;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-section-heading h2 {
  max-width: 760px;
  margin: 0;
  color: #111827;
  font-size: 2.15rem;
  line-height: 1.08;
  font-weight: 780;
  letter-spacing: 0;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.landing-feature-card {
  min-height: 210px;
  padding: 22px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.landing-feature-index {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
}

.landing-feature-card h3 {
  margin: 46px 0 0;
  color: #111827;
  font-size: 1.02rem;
  line-height: 1.28;
  font-weight: 800;
}

.landing-feature-card p {
  margin: 10px 0 0;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.58;
}

.landing-footer {
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.landing-footer-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.4;
}

.landing-footer-inner a {
  color: #475569;
  font-weight: 700;
  text-decoration: none;
}

.landing-footer-inner a:hover {
  color: #0f172a;
  text-decoration: underline;
}

@media (max-width: 1020px) {
  .landing-hero {
    min-height: 700px;
  }

  .landing-hero-content {
    padding-top: 82px;
    padding-bottom: 88px;
  }

  .landing-hero h1 {
    font-size: 3.25rem;
    max-width: 560px;
  }

  .landing-lede {
    max-width: 560px;
    font-size: 1.05rem;
  }

  .landing-product {
    top: 100px;
    right: -310px;
    width: 720px;
    opacity: 0.45;
    transform: perspective(1000px) rotateX(2deg) rotateY(-8deg);
  }

  .landing-backdrop::after {
    background:
      linear-gradient(90deg, rgba(247, 248, 251, 1) 0%, rgba(247, 248, 251, 0.94) 50%, rgba(247, 248, 251, 0.7) 100%),
      linear-gradient(180deg, rgba(247, 248, 251, 0) 0%, rgba(247, 248, 251, 0) 62%, rgba(255, 255, 255, 1) 100%);
  }

  .landing-section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .landing-feature-grid {
    grid-template-columns: 1fr;
  }

  .landing-feature-card {
    min-height: 0;
  }

  .landing-feature-card h3 {
    margin-top: 32px;
  }
}

@media (max-width: 640px) {
  .landing-nav-inner,
  .landing-hero-content,
  .landing-section-inner {
    width: min(100% - 32px, 1180px);
  }

  .landing-hero {
    min-height: 690px;
  }

  .landing-nav-inner {
    height: 70px;
  }

  .landing-brand-subtitle,
  .landing-nav-note {
    display: none;
  }

  .landing-hero-content {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .landing-eyebrow {
    max-width: 320px;
    border-radius: 8px;
    line-height: 1.35;
  }

  .landing-hero h1 {
    max-width: 340px;
    font-size: 2.5rem;
    line-height: 1.02;
  }

  .landing-lede {
    max-width: 340px;
    font-size: 1rem;
    line-height: 1.62;
  }

  .landing-cta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .landing-auth-button {
    width: 100%;
    min-height: 52px;
  }

  .landing-auth-form {
    width: min(100%, 320px);
  }

  .landing-cta-copy {
    max-width: 320px;
  }

  .landing-product {
    top: 284px;
    right: -480px;
    width: 690px;
    opacity: 0.24;
  }

  .landing-product-body {
    grid-template-columns: 130px 1fr;
  }

  .landing-product-main {
    padding: 18px;
  }

  .landing-workflow {
    padding: 58px 0 62px;
  }

  .landing-section-heading h2 {
    font-size: 1.75rem;
    line-height: 1.15;
  }

  .landing-feature-card {
    padding: 18px;
  }

  .landing-footer-inner {
    min-height: 82px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 18px 0;
  }
}
