/* Site-wide stylesheet (no build). */

@import url("./design-kit.css");
@import url("./landing.css");

:root {
  --site-max: 1120px;
  --site-bg: var(--color-bg);
  --site-footer-bg: #0d0d0d;
  --site-footer-text: rgba(255, 255, 255, 0.78);
  --site-footer-muted: rgba(255, 255, 255, 0.6);
  --site-footer-border: rgba(255, 255, 255, 0.12);
  --site-footer-heading: var(--color-primary);
  --site-legal-bg: rgba(245, 245, 245, 0.7);
}

/* Buttons: consistent, pleasant hover/active like design kit */
.btn {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), opacity var(--transition-fast),
    filter var(--transition-fast);
  will-change: transform;
}

.btn:not(.btn--disabled):not(:disabled):hover {
  filter: brightness(0.985);
}

.btn:not(.btn--disabled):not(:disabled):active {
  filter: brightness(0.955);
}

/* Lift + soft shadow mainly for filled CTAs */
.btn--primary:not(.btn--disabled):not(:disabled):hover,
.btn--secondary:not(.btn--disabled):not(:disabled):hover,
.btn--primary-cta:not(.btn--disabled):not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(13, 13, 13, 0.14);
}

.btn--primary:not(.btn--disabled):not(:disabled):active,
.btn--secondary:not(.btn--disabled):not(:disabled):active,
.btn--primary-cta:not(.btn--disabled):not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(13, 13, 13, 0.12);
}

/* Outline/Ghost: no heavy shadow, subtle surface tint */
.btn--outline:not(.btn--disabled):not(:disabled):hover,
.btn--ghost:not(.btn--disabled):not(:disabled):hover {
  background: rgba(13, 13, 13, 0.04);
  filter: none;
  transform: none;
  box-shadow: none;
}

.btn--outline:not(.btn--disabled):not(:disabled):active,
.btn--ghost:not(.btn--disabled):not(:disabled):active {
  background: rgba(13, 13, 13, 0.07);
  filter: none;
  transform: none;
  box-shadow: none;
}

/* Generic page wrappers */
.page-wrap {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

/* Legal/narrow pages: disable scroll-reveal animation */
.page-wrap--narrow .reveal,
.page-wrap--narrow .reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Decorative top background (app-like) */
body {
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1600px;
  /* Prevent clipping: let the decoration extend far enough down. */
  height: clamp(520px, 82vh, 1200px);
  pointer-events: none;
  z-index: -1;
  background-image: url("../assets/bg.svg");
  background-repeat: no-repeat;
  background-position: top center;
  /* Slightly shrink the pattern vertically to avoid clipping at the bottom. */
  background-size: 100% 96%;
}

.page-wrap--narrow {
  /*max-width: 48rem;*/
}

.simple-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 13, 13, 0.06);
}

.simple-header__inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0.9rem var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.page-title {
  font-family: var(--font-header);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.page-subtitle {
  margin: 0.6rem 0 0;
  color: var(--color-gray-600);
  line-height: 1.65;
}

.panel {
  border-radius: 2rem;
  border: 1px solid rgba(13, 13, 13, 0.08);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 22px 60px rgba(13, 13, 13, 0.12);
  padding: 1.25rem;
}

/* Content links (legal pages, panels/notes). Avoid default browser blue. */
.panel a,
.note a {
  color: var(--color-gray-900);
  font-weight: 600;
  text-decoration: none;
}

.panel b,
.panel strong,
.note b,
.note strong {
  font-weight: 600;
}

.panel a:hover,
.note a:hover {
  opacity: 0.9;
}

.panel a:focus-visible,
.note a:focus-visible {
  outline: 3px solid rgba(13, 13, 13, 0.15);
  outline-offset: 2px;
  border-radius: 0.4rem;
}

@media (min-width: 900px) {
  .panel {
    padding: 1.6rem;
  }
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: start;
  }
}

@media (min-width: 900px) {
  .two-col--stretch {
    align-items: stretch;
  }
}

/* Tables */
.table-wrap {
  overflow: auto;
  border-radius: 1.25rem;
  border: 1px solid rgba(13, 13, 13, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

table.site-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
}

table.site-table th,
table.site-table td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(13, 13, 13, 0.08);
}

table.site-table th {
  font-weight: 600;
  color: var(--color-gray-900);
  background: rgba(245, 245, 245, 0.75);
}

table.site-table td {
  color: var(--color-gray-800);
}

.note {
  background: var(--site-legal-bg);
  border: 1px solid rgba(13, 13, 13, 0.08);
  border-radius: 1.5rem;
  padding: 1rem 1rem;
}

.note b {
  color: var(--color-gray-900);
}

/* Forms */
.form {
  display: grid;
  gap: var(--space-md);
}

.login-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.login-meta__remember {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-gray-800);
  font-size: var(--font-size-caption);
  line-height: 1.2;
  user-select: none;
}

.login-meta__remember input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--color-primary);
}

.login-meta__help {
  text-align: right;
  color: var(--color-gray-700);
}

.login-meta__help a {
  color: var(--color-gray-900);
  font-weight: 600;
  text-decoration: none;
}

.login-meta__help a:hover {
  opacity: 0.9;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 520px) {
  .form-actions {
    flex-direction: row;
    align-items: center;
  }
}

.helper {
  font-size: var(--font-size-caption);
  color: var(--color-gray-600);
  line-height: 1.5;
}

.success {
  display: grid;
  gap: 0.8rem;
  place-items: center;
  text-align: center;
}

.check {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1.6rem;
  background: rgba(21, 184, 134, 0.14);
  border: 1px solid rgba(21, 184, 134, 0.35);
  display: grid;
  place-items: center;
}

.check svg {
  width: 2.2rem;
  height: 2.2rem;
  color: #15b886;
}

/* Footer (required on all pages) */
.site-footer {
  background: var(--site-footer-bg);
  color: var(--site-footer-text);
  padding: 3rem 0;
  margin-top: 4rem;
}

.site-footer__inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  gap: 1.5rem;
}

.site-footer__inner > .footer-grid {
  order: 1;
}

.site-footer__inner > :not(.footer-grid) {
  order: 2;
}

@media (min-width: 900px) {
  .site-footer__inner {
    /* Improve readability: nav below disclaimer, full width */
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .site-footer__inner > :nth-child(2) {
    margin-top: 0.25rem;
  }
}

.footer-brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-brand__logo {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.55rem;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.footer-brand__name {
  font-family: var(--font-header);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.footer-brand__left {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.footer-legal-grid {
  display: block;
}

.footer-legal-grid > div {
  display: contents;
}

@media (min-width: 620px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "company"
      "legal"
      "account";
    gap: 1rem 1.5rem;
  }
  .footer-grid > .footer-col:first-child {
    grid-area: company;
    justify-self: start;
    text-align: left;
    justify-content: flex-start;
  }
  .footer-grid > .footer-col:last-child {
    grid-area: account;
    justify-self: start;
    text-align: left;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .footer-grid > .footer-col:last-child h4 {
    flex-basis: 100%;
    margin: 0 0 0.75rem;
    text-align: left;
  }
  .footer-grid > .footer-col--legal {
    grid-area: legal;
    justify-self: stretch;
    text-align: left;
    display: block;
  }
  .footer-col--legal .footer-legal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem 1.5rem;
    align-items: start;
  }
  .footer-col--legal .footer-legal-grid a {
    display: block;
    padding: 0.12rem 0;
  }
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--site-footer-heading);
  letter-spacing: 0.03em;
  text-align: left;
}

.footer-col a {
  display: inline-flex;
  color: var(--site-footer-text);
  text-decoration: none;
  padding: 0.2rem 0;
  font-weight: 500;
  border-radius: 0.5rem;
  text-align: left;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.footer-col {
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1rem;
}

.footer-col h4 {
  flex-basis: 100%;
}

.footer-col br {
  display: none;
}

.footer-col a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.footer-col a:active {
  transform: translateY(1px);
}

@media (min-width: 900px) {
  .footer-col a {
    padding: 0.2rem 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    opacity: 0.92;
  }
  .footer-col a:hover {
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    opacity: 1;
  }
}

.footer-bottom {
  border-top: 1px solid var(--site-footer-border);
  padding-top: 1.25rem;
  display: grid;
  gap: 0.8rem;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
  max-width: none;
}

.footer-disclaimer b {
  font-weight: 600;
}

.ssl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--site-footer-border);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 600;
  width: fit-content;
}

.ssl-badge svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-primary);
}

