/*
 * 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.
 */

:root {
  --ink: #111827;
  --ink-light: #1f2937;
  --muted: #5f6f7f;
  --muted-light: #94a3b8;
  --line: #d7e0e7;
  --line-subtle: #edf3f6;
  --panel: #ffffff;
  --paper: #e9eff2;
  --navy: #0b1620;
  --navy-2: #122331;
  --steel: #1f3946;
  --accent: #0f8a7a;
  --accent-hover: #13a18f;
  --accent-dark: #0b6a60;
  --gold: #d6a84f;
  --positive: #0f7a3c;
  --positive-bg: #f0fdf4;
  --negative: #bf2d24;
  --negative-bg: #fef2f2;
  --warning: #ea580c;
  --shadow-sm: 0 1px 2px 0 rgb(11 22 32 / 0.08);
  --shadow: 0 18px 45px -28px rgb(11 22 32 / 0.55), 0 1px 2px rgb(11 22 32 / 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-feature-settings: "tnum", "cv02", "cv03", "cv04";
  letter-spacing: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 0;
  block-size: 280px;
  background: var(--navy);
  pointer-events: none;
}

.auth-body::before {
  block-size: 100%;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

input,
textarea,
button {
  font: inherit;
}

.shell {
  position: relative;
  z-index: 1;
  inline-size: min(1280px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

@media (max-width: 768px) {
  .shell {
    inline-size: calc(100vw - 24px);
    padding: 16px 0 48px;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-block-end: 24px;
  border: 1px solid rgb(255 255 255 / 0.09);
  border-radius: 8px;
  background: var(--navy-2);
  box-shadow: 0 18px 55px -32px rgb(0 0 0 / 0.75);
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
}

.nav-row a,
.nav-row button {
  font-weight: 500;
  border-radius: 6px;
  color: #d9e7ec;
  padding: 8px 10px;
}

.nav-row a:hover,
.nav-row button:hover {
  background: rgb(255 255 255 / 0.08);
  color: #ffffff;
}

@media (max-width: 640px) {
  .nav-row {
    width: 100%;
    justify-content: space-between;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0;
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  border: 1px solid rgb(214 168 79 / 0.55);
  border-radius: 8px;
  background: #132938;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.link-button {
  border: 0;
  background: transparent;
  color: #d9e7ec;
  cursor: pointer;
}

.flash {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-block-end: 20px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  background: var(--panel);
}

.flash-alert {
  background: var(--negative-bg);
  border-color: var(--negative);
  color: var(--negative);
}

.flash-notice {
  background: var(--positive-bg);
  border-color: var(--positive);
  color: var(--positive);
}

.auth-panel {
  inline-size: min(520px, 100%);
  margin: 8vh auto 0;
  background: var(--panel);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 8px;
  padding: 44px;
  box-shadow: 0 24px 80px -36px rgb(0 0 0 / 0.85);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  margin-block-end: 28px;
}

@media (max-width: 640px) {
  .auth-panel {
    padding: 32px 24px;
    margin: 8vh auto 0;
  }
}

.auth-panel h1,
.page-heading h1,
.panel h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-panel h1 {
  font-size: 2.25rem;
  line-height: 1.08;
  margin-block-end: 12px;
}

.auth-panel p,
.page-heading p,
.panel-heading p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.auth-panel > p {
  margin-block-end: 24px;
}

.stack {
  display: grid;
  gap: 16px;
}

label span {
  display: block;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  margin-block-end: 6px;
}

input,
textarea,
select {
  inline-size: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(15 118 110 / 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-light);
}

textarea {
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Code", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  resize: vertical;
  min-block-size: 120px;
}

.primary-button {
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 10px 16px;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.primary-button:hover {
  background: var(--steel);
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.muted-link {
  display: inline-block;
  color: var(--muted);
  font-size: 0.9375rem;
  margin-block-start: 20px;
}

.muted-link:hover {
  color: var(--ink-light);
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-block-end: 24px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  background: var(--navy-2);
  color: white;
  padding: 26px;
  box-shadow: 0 22px 60px -38px rgb(0 0 0 / 0.75);
}

.page-heading h1 {
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
}

.page-heading p {
  color: #b8cbd4;
}

@media (max-width: 640px) {
  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .page-heading h1 {
    font-size: 2.25rem;
  }
}

.eyebrow {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-block-end: 8px;
}

.scorecard {
  min-inline-size: 120px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.07);
  padding: 16px 20px;
  text-align: center;
}

.scorecard strong {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  margin-block-end: 4px;
  color: white;
}

.scorecard span {
  color: #b8cbd4;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
}

.company {
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-block-start: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel-heading {
  border-block-end: 1px solid var(--line-subtle);
  padding-block-end: 16px;
}

@media (max-width: 640px) {
  .panel {
    padding: 20px 16px;
  }
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 20px;
}

.panel-heading h2 {
  font-size: 1.25rem;
}

.panel-heading p {
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .panel-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.watchlist-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
}

.admin-user-form {
  display: flex;
  gap: 16px;
  align-items: end;
}

.admin-user-form label:first-child {
  flex: 1;
}

.admin-toggle {
  min-inline-size: 100px;
}

@media (max-width: 640px) {
  .watchlist-form,
  .admin-user-form {
    grid-template-columns: 1fr;
    display: grid;
  }
}

.schedule-form {
  display: grid;
  grid-template-columns: 2fr 1fr 100px 1.5fr auto auto;
  align-items: end;
  gap: 12px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 24px;
}

.settings-grid .panel {
  margin-block-start: 0;
}

.settings-grid .panel:first-child {
  grid-row: span 2;
}

.settings-form {
  display: grid;
  gap: 14px;
}

.settings-stack {
  display: grid;
  gap: 16px;
}

.status-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 16px;
}

.status-box strong,
.status-box span {
  display: block;
}

.status-box strong {
  color: var(--navy);
  font-size: 1rem;
  margin-block-end: 4px;
}

.status-box span {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .schedule-form,
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .schedule-form,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid .panel:first-child {
    grid-row: auto;
  }
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-block-size: 44px;
}

.check-label input {
  inline-size: auto;
}

.check-label span {
  margin: 0;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block-start: 16px;
}

.button-row p {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}

@media (max-width: 640px) {
  .button-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.inline-form {
  display: inline;
}

.secondary-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfc;
  color: var(--ink);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 10px 16px;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.05s ease;
}

.secondary-button:hover {
  background: var(--line-subtle);
  border-color: var(--muted-light);
}

.secondary-button:active {
  transform: translateY(1px);
}

.table-wrap {
  overflow-x: auto;
  margin-inline: -24px;
  padding-inline: 24px;
}

@media (max-width: 640px) {
  .table-wrap {
    margin-inline: -16px;
    padding-inline: 16px;
  }
}

table {
  inline-size: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-inline-size: 980px;
}

th,
td {
  border-block-start: 1px solid var(--line-subtle);
  padding: 14px 12px;
  text-align: right;
  white-space: nowrap;
  font-size: 0.9375rem;
}

tbody tr {
  transition: background-color 0.1s ease;
}

tbody tr:hover {
  background: #f5faf9;
}

thead th {
  color: #d9e7ec;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  padding-block: 12px;
  background: var(--steel);
  position: sticky;
  top: 0;
}

th:first-child,
td:first-child {
  text-align: left;
  padding-inline-start: 0;
}

th:last-child,
td:last-child {
  padding-inline-end: 0;
}

.ticker,
.company {
  display: block;
}

.ticker {
  font-weight: 700;
  color: var(--navy);
  margin-block-end: 2px;
}

.company {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
}

.positive {
  color: var(--positive);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.negative {
  color: var(--negative);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pill {
  display: inline-block;
  border: 1px solid #c9d8dd;
  border-radius: 999px;
  background: #eef6f5;
  color: var(--accent-dark);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 4px 10px;
  white-space: nowrap;
}

.active-sort {
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
}

.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 32px 0;
}

/* Landing page styles */

.landing-body::before {
  block-size: 100%;
  background: var(--navy);
}

.landing-shell {
  position: relative;
  z-index: 1;
  inline-size: min(1160px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 0 0 80px;
}

@media (max-width: 768px) {
  .landing-shell {
    inline-size: calc(100vw - 32px);
  }
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 48px;
}

.landing-actions,
.final-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-signin-link,
.landing-request-link {
  display: inline-block;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 6px;
  background: rgb(255 255 255 / 0.08);
  color: white;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 8px 16px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.landing-request-link {
  border-color: rgb(214 168 79 / 0.55);
  color: var(--gold);
}

.landing-signin-link:hover,
.landing-request-link:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.3);
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 56px;
  padding: 56px 0 80px;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0 64px;
  }
}

.hero-content {
  inline-size: min(620px, 100%);
}

.hero-title {
  margin: 0 0 20px;
  color: white;
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.hero-subtitle {
  margin: 0 0 36px;
  color: #b8cbd4;
  font-size: 1.125rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1rem;
  }
}

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

.product-preview {
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 8px;
  background: #101f2d;
  box-shadow: 0 28px 85px -45px rgb(0 0 0 / 0.9);
  overflow: hidden;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-block-end: 1px solid rgb(255 255 255 / 0.1);
  padding: 16px 18px;
  color: white;
  font-weight: 600;
}

.preview-toolbar strong {
  border: 1px solid rgb(214 168 79 / 0.45);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.75rem;
  padding: 4px 9px;
}

.preview-grid {
  display: grid;
  padding: 8px 0;
}

.preview-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(64px, 1fr));
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  color: #d9e7ec;
}

.preview-row + .preview-row {
  border-block-start: 1px solid rgb(255 255 255 / 0.07);
}

.preview-head {
  color: #7f95a2;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.preview-row strong {
  color: white;
}

.up {
  color: #76d494;
}

.flat {
  color: #d6c184;
}

@media (max-width: 768px) {
  .product-preview {
    overflow-x: auto;
  }

  .preview-grid {
    min-inline-size: 560px;
  }
}

.hero-button {
  display: inline-block;
  border: 0;
  border-radius: 6px;
  background: var(--gold);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgb(214 168 79 / 0.3);
}

.hero-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgb(214 168 79 / 0.4);
  color: var(--navy);
}

.hero-note {
  margin: 0;
  color: #94a3b8;
  font-size: 0.875rem;
}

.credibility {
  padding: 48px 0;
  border-block-start: 1px solid rgb(255 255 255 / 0.08);
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .credibility-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.credibility-item {
  text-align: center;
}

.credibility-item strong {
  display: block;
  margin-block-end: 8px;
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
}

.credibility-item p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.features {
  padding: 80px 0 64px;
}

.features-heading {
  margin: 0 0 40px;
  color: white;
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .features-heading {
    font-size: 1.875rem;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.04);
  padding: 28px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.feature-card:hover {
  border-color: rgb(255 255 255 / 0.18);
  background: rgb(255 255 255 / 0.06);
}

.feature-card h3 {
  margin: 0 0 12px;
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0;
}

.feature-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.workflow {
  padding: 64px 0;
}

.workflow-heading {
  margin: 0 0 40px;
  color: white;
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .workflow-heading {
    font-size: 1.875rem;
  }
}

.workflow-steps {
  display: grid;
  gap: 24px;
  inline-size: min(680px, 100%);
  margin: 0 auto;
}

.workflow-step {
  display: flex;
  gap: 20px;
  align-items: start;
}

.workflow-number {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid rgb(214 168 79 / 0.4);
  border-radius: 8px;
  background: rgb(214 168 79 / 0.1);
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
}

.workflow-content h3 {
  margin: 0 0 8px;
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0;
}

.workflow-content p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.final-cta {
  padding: 80px 0;
  border-block-start: 1px solid rgb(255 255 255 / 0.08);
}

.final-cta-content {
  text-align: center;
  inline-size: min(600px, 100%);
  margin: 0 auto;
}

.final-cta-content h2 {
  margin: 0 0 16px;
  color: white;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .final-cta-content h2 {
    font-size: 1.875rem;
  }
}

.final-cta-content p {
  margin: 0 0 28px;
  color: #94a3b8;
  font-size: 1.125rem;
}

.final-actions {
  justify-content: center;
}

.request-shell {
  min-block-size: 100vh;
}

.request-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(380px, 1fr);
  gap: 48px;
  align-items: start;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 8px;
  background: #122331;
  padding: 40px;
  box-shadow: 0 28px 85px -45px rgb(0 0 0 / 0.9);
}

.request-panel h1 {
  margin: 0 0 16px;
  color: white;
  font-size: 2.5rem;
  line-height: 1.08;
}

.request-panel p {
  margin: 0;
  color: #b8cbd4;
  font-size: 1rem;
  line-height: 1.65;
}

.request-form {
  display: grid;
  gap: 16px;
}

.request-form label span {
  color: #d9e7ec;
}

.submit-button {
  inline-size: 100%;
  text-align: center;
}

.success-panel {
  grid-template-columns: auto minmax(0, 1fr);
  inline-size: min(760px, 100%);
  margin-inline: auto;
}

.success-mark {
  display: grid;
  place-items: center;
  inline-size: 56px;
  block-size: 56px;
  border: 1px solid rgb(118 212 148 / 0.45);
  border-radius: 8px;
  background: rgb(118 212 148 / 0.1);
  color: #76d494;
  font-size: 2rem;
  font-weight: 800;
}

.success-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-block-start: 28px;
}

@media (max-width: 768px) {
  .landing-nav,
  .landing-actions,
  .final-actions {
    align-items: flex-start;
  }

  .landing-nav,
  .final-actions {
    flex-direction: column;
  }

  .request-panel,
  .success-panel {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .request-panel h1 {
    font-size: 2rem;
  }

  .success-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

.landing-footer {
  padding: 40px 0 0;
  text-align: center;
  border-block-start: 1px solid rgb(255 255 255 / 0.08);
}

.landing-footer p {
  margin: 0;
  color: #5f6f7f;
  font-size: 0.875rem;
}
