:root {
  --brand-primary: #025e53;
  --brand-primary-dark: #014a42;
  --brand-primary-alt: #09b881;
  --brand-accent: #2a8c80;
  --brand-navy: #010a27;
  --background: #f4f7f5;
  --surface: #ffffff;
  --surface-muted: #e8f1ee;
  --text-primary: #010a27;
  --text-secondary: #50645f;
  --text-muted: #8ca09a;
  --border: #dce7e3;
  --border-strong: #b8cbc5;
  --shadow-soft: 0 8px 24px rgba(2, 94, 83, 0.08);
  --shadow-card: 0 6px 14px rgba(31, 41, 51, 0.06);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
}

a:hover {
  color: var(--brand-primary-dark);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header .brand-logo {
  display: block;
  height: 34px;
  width: auto;
  min-width: 120px;
}

@media (min-width: 640px) {
  .site-header .brand-logo {
    height: 40px;
  }
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 40px;
}

.hero {
  text-align: center;
  margin-bottom: 28px;
}

.hero .brand-logo {
  display: block;
  height: 72px;
  width: auto;
  min-width: 180px;
  margin: 8px auto 10px;
}

.hero-tagline {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.card + .card {
  margin-top: 16px;
}

.page-title {
  margin: 0 0 8px;
  font-size: 1.625rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.page-lead {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
  text-align: center;
}

.updated {
  margin: 0 0 24px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.feature-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.feature-item + .feature-item {
  border-top: 1px solid var(--border);
  margin-top: 2px;
  padding-top: 8px;
}

.feature-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--brand-primary-alt);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.feature-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

.legal-section + .legal-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-primary);
}

.legal-section p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.status {
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.button-primary {
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.button-primary:hover {
  color: #ffffff;
}

.button-secondary {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.button-secondary:hover {
  color: var(--text-primary);
}

.invitation-card {
  text-align: center;
}

.invitation-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
}

.invitation-card .page-title {
  font-size: 1.5rem;
}

.site-footer {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 28px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--text-secondary);
}

.legal-page .page-title {
  text-align: left;
  font-size: 1.75rem;
}

.legal-page .updated {
  margin-bottom: 28px;
}

.auth-action-page {
  color: #ffffff;
  background: #090c15;
}

.auth-action-main {
  max-width: 520px;
  padding-top: 48px;
}

.auth-action-brand {
  display: block;
  width: 220px;
  margin: 0 auto 24px;
}

.auth-action-brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) saturate(100%) invert(69%) sepia(59%) saturate(566%)
    hue-rotate(101deg) brightness(84%) contrast(91%);
}

.auth-action-card {
  padding: 28px;
  background: #1b2337;
  border: 1px solid #34415e;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.auth-action-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  place-items: center;
  color: #090c15;
  background: #10b981;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 800;
}

.auth-action-icon-error {
  color: #ffffff;
  background: #ff6b6b;
}

.auth-action-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1.2;
  text-align: center;
}

.auth-action-message,
.auth-action-account {
  color: #aab4c4;
  font-size: 0.9375rem;
  line-height: 1.55;
  text-align: center;
}

.auth-action-message {
  min-height: 2.9em;
  margin: 12px 0 0;
}

.auth-action-account {
  margin: 0 0 20px;
}

.auth-action-account strong {
  color: #ffffff;
}

.auth-action-form {
  margin-top: 24px;
}

.auth-action-form label {
  display: block;
  margin: 14px 0 7px;
  color: #dce4ef;
  font-size: 0.875rem;
  font-weight: 600;
}

.auth-action-form input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  color: #ffffff;
  background: #242f4b;
  border: 1px solid #34415e;
  border-radius: 12px;
  font: inherit;
}

.auth-action-form input:focus {
  border-color: #10b981;
  outline: 3px solid rgba(16, 185, 129, 0.18);
}

.auth-action-button {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  padding: 12px 20px;
  color: #090c15;
  background: #10b981;
  border: 0;
  border-radius: 24px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.auth-action-button:hover {
  color: #090c15;
  background: #34d399;
}

.auth-action-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.auth-action-link {
  text-decoration: none;
}

.auth-action-footer {
  max-width: 520px;
}

.auth-action-footer nav {
  justify-content: center;
  border-top-color: #222d46;
}

.auth-action-footer a {
  color: #8f9cae;
}

[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .auth-action-main {
    padding: 28px 18px 32px;
  }

  .auth-action-card {
    padding: 24px 20px;
  }
}
