/* Mirrors the Resume Builder landing page (frontend/src/components/LandingPage.jsx, Header.jsx,
   LegalFooter.jsx) without Tailwind. Colors: frontend/src/index.css @theme tokens. */
:root {
  --deloitte-black: #000000;
  --deloitte-gray: #53565a;
  --accessible-green: #26890d;
  --accessible-blue: #007cb0;
  --blue4: #0076a8;
  --cool-gray2: #d0d0ce;

  --bg: #ffffff;
  --text: var(--deloitte-black);
  --muted: var(--deloitte-gray);
  --border: #e5e7eb;
  --motif-bg: var(--cool-gray2);
  --link: var(--accessible-blue);
  --link-hover: var(--blue4);
  --focus: var(--accessible-green);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827;
    --text: #ffffff;
    --muted: #d1d5db;
    --border: #374151;
    --motif-bg: #1f2937;
    --link: #60a5fa;
    --link-hover: #93c5fd;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  margin: 0 auto;
  padding: 0 1.5rem;
  max-width: 1536px;
}

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 5rem;
}

.logo {
  display: block;
  height: 2.5rem;
  width: auto;
}

.divider {
  width: 1px;
  height: 2rem;
  background: var(--deloitte-gray);
}

.app-name {
  margin: 0;
  font-weight: 300;
  font-size: 1.125rem;
}

/* Two halves: content left, circle motif right (stacked on small screens) */
.main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
}

.content-inner {
  max-width: 42rem;
}

.heading {
  width: fit-content;
  margin-bottom: 2rem;
}

h1 {
  margin: 0 0 1.5rem;
  font-weight: 300;
  font-size: 2.25rem;
  line-height: 1.1;
}

.green-bar {
  height: 0.25rem;
  background: var(--accessible-green);
}

.lead,
.body {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.625;
}

.lead {
  font-size: 1.125rem;
}

.internal {
  font-weight: 600;
}

.body a {
  color: var(--link);
}

.body a:hover {
  color: var(--link-hover);
}

.status {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.spinner {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  border: 2px solid var(--border);
  border-top-color: var(--accessible-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.retry {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.retry-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.retry-button:hover {
  color: var(--link-hover);
}

.motif {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: var(--motif-bg);
}

.motif img {
  max-width: min(100%, 600px);
  max-height: 600px;
  object-fit: contain;
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
}

.legal a {
  color: var(--link);
  font-size: 1rem;
}

.legal a:hover {
  color: var(--link-hover);
}

@media (min-width: 768px) {
  .main {
    flex-direction: row;
  }

  .content {
    width: 50%;
    padding: 0 4rem;
  }

  .motif {
    width: 50%;
    padding: 3rem;
  }

  h1 {
    font-size: 3rem;
  }

  .lead {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
