/* Docuvera Tools -- Shared Landing Page Styles
 * Used by: storybook, ui, registry landing pages
 * Tokens aligned with ds-core BrandedHeader light mode + www.docuvera.tools reference
 */

/* -- Reset & Base -- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #131717;       /* palette-brand-neutral-100 */
  --muted: #5e7070;      /* palette-brand-neutral-60 */
  --ink-heading: #2e3b3b; /* palette-brand-neutral-80 */
  --surface: #f4f8f6;
  --line: rgba(20, 37, 35, 0.12);
  --brand: #235a5c;
  --brand-strong: #163c3d;
  --brand-primary-60: #32797b;

  /* Title typography tokens (display-level, static sizes + breakpoint switching, weight 600) */
  --dv-title-01: 3.25rem;   /* 52px -- hero/display headings (from HeroBanner desktop) */
  --dv-title-02: 2.625rem;  /* 42px -- large section titles (from heading-06) */
  --dv-title-03: 2rem;      /* 32px -- page-level titles (from page-title) */

  /* BrandedHeader light mode tokens */
  --header-bg: #ffffff;
  --header-border: #e0e0e0;
  --header-text-brand: #32797b;  /* palette-primary-60 -- matches logo/button */
  --header-text-module: #2e3b3b; /* palette-brand-neutral-80 -- matches h1 heading */
  --header-logo-color: #32797b;  /* palette-primary-60 */
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(35, 90, 92, 0.18), transparent 34%),
    linear-gradient(180deg, #fcfefd 0%, var(--surface) 100%);
}

/* -- Header (replicates BrandedHeader light mode) -- */
.header {
  display: flex;
  align-items: center;
  height: 3rem;
  padding: 0 1rem;
  width: 100%;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  flex-shrink: 0;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--header-text-brand);
}

.header-logo {
  display: inline-flex;
  height: 1.25rem;
  width: auto;
  flex-shrink: 0;
}

.header-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  color: var(--header-text-brand);
  white-space: nowrap;
}

.header-product {
  font-weight: 600;
  color: var(--header-text-brand);
}

.header-module {
  font-weight: 400;
  color: var(--header-text-module);
  margin-left: 0.35em;
}

.header-spacer {
  flex: 1;
  min-width: 1rem;                        /* --cds-spacing-05 (16px) -- prevents btn touching wordmark */
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

/* -- Carbon-style square button -- */
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.125rem;
  letter-spacing: 0.16px;
  text-decoration: none;
  color: #ffffff;
  background-color: var(--brand-primary-60);
  border: none;
  cursor: pointer;
  transition: background-color 70ms;
}

.btn-login:hover {
  background-color: var(--brand);
}

.btn-login:active {
  background-color: var(--brand-strong);
}

.btn-login:focus-visible {
  outline: 2px solid var(--brand-primary-60);
  outline-offset: -2px;
}

/* -- Hero -- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  width: min(960px, 100%);
  margin: 0 auto;
}

.hero h1 {
  font-size: var(--dv-title-01);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ink-heading);
}

.hero .subtitle {
  font-size: 1.25rem;  /* heading-03 size */
  line-height: 1.4;
  font-weight: 400;
  color: var(--muted);
  max-width: 48ch;
}

/* -- Footer (sticky to bottom, transparent bg) -- */
.footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.75rem;  /* label-01 (12px) */
  color: var(--muted);
  flex-shrink: 0;
}

/* -- Responsive: breakpoint switching for title tokens -- */
@media (max-width: 1056px) {
  .hero h1 {
    font-size: var(--dv-title-02);
    line-height: 1.199;
  }
}

@media (max-width: 672px) {
  .hero h1 {
    font-size: var(--dv-title-03);
    line-height: 1.25;
  }

  .hero {
    padding: 2rem 1rem;
  }
}
