:root {
  /* Alineado a apps/mobile/lib/core/theme/app_colors.dart — docs/BRAND_COLOR_SYSTEM.md */
  --lohk-primary: #2797ff;
  --lohk-on-primary: #161c24;
  --lohk-secondary: #0b67bc;
  --lohk-on-secondary: #ffffff;
  --lohk-tertiary: #acc420;
  --lohk-on-tertiary: #161c24;
  --lohk-bg: #f0f5f9;
  --lohk-surface: #ffffff;
  --lohk-text: #161c24;
  --lohk-text-muted: #636f81;
  --lohk-border: #e0e3e7;
  --lohk-success: #27ae52;
  --lohk-on-success: #161c24;
  --lohk-warning: #fc964d;
  --lohk-on-warning: #161c24;
  --lohk-error: #ee4444;
  --lohk-on-error: #ffffff;
  --lohk-info: #0b67bc;
  --lohk-accent4: #eeeeee;
  --lohk-radius: 12px;
  --lohk-radius-lg: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--lohk-text);
  background: var(--lohk-bg);
}

body:has(.landing) {
  --lohk-bg: #161c24;
  background: var(--lohk-bg);
}

h1,
h2,
h3 {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

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

a:hover {
  text-decoration: underline;
}

.card {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--lohk-surface);
  border: 1px solid var(--lohk-border);
  border-radius: var(--lohk-radius-lg);
  text-align: center;
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(39, 174, 82, 0.12);
  color: var(--lohk-success);
}

.card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--lohk-text-muted);
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  border-radius: var(--lohk-radius);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--lohk-on-secondary);
  background: linear-gradient(135deg, var(--lohk-primary), var(--lohk-secondary));
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.92;
}

.auth-card {
  background: var(--lohk-surface);
  border: 1px solid var(--lohk-border);
  border-radius: var(--lohk-radius-lg);
  padding: 1.5rem;
}

.auth-card h1 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.ok {
  color: var(--lohk-success);
}

.err {
  color: var(--lohk-error);
}

.hidden {
  display: none;
}

.auth-card label {
  display: block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.auth-card input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.25rem;
  padding: 0.625rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--lohk-border);
  border-radius: var(--lohk-radius);
}

.auth-card input:focus {
  outline: none;
  border-color: var(--lohk-primary);
  box-shadow: 0 0 0 3px rgba(39, 151, 255, 0.15);
}

.auth-card button {
  margin-top: 1rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--lohk-on-secondary);
  background: linear-gradient(135deg, var(--lohk-primary), var(--lohk-secondary));
  border: none;
  border-radius: var(--lohk-radius);
  cursor: pointer;
}

.auth-card button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

a.continue {
  display: inline-block;
  margin-top: 1rem;
}

.legal-prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--lohk-surface);
  border: 1px solid var(--lohk-border);
  border-radius: var(--lohk-radius-lg);
}

.legal-prose h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.legal-prose h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.75rem;
}

.legal-prose h3 {
  font-size: 1.0625rem;
  margin: 1.25rem 0 0.5rem;
}

.legal-prose h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.legal-prose p,
.legal-prose li {
  color: var(--lohk-text);
}

.legal-prose p {
  margin: 0 0 0.875rem;
}

.legal-prose ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.legal-prose li {
  margin-bottom: 0.35rem;
}

.legal-prose hr {
  border: none;
  border-top: 1px solid var(--lohk-border);
  margin: 1.5rem 0;
}

.legal-prose a {
  color: var(--lohk-primary);
}

/* --- Landing (dark, x.ai-inspired) --- */

.landing {
  --lohk-bg: #161c24;
  --lohk-surface: #212b36;
  --lohk-text: #ffffff;
  --lohk-text-muted: #919bab;
  --lohk-border: #2b3743;
  --lohk-primary: #2797ff;
  --lohk-secondary: #0b67bc;
  --lohk-tertiary: #acc420;

  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  color: var(--lohk-text);
  background: var(--lohk-bg);
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--lohk-border);
  background: rgba(22, 28, 36, 0.85);
  backdrop-filter: blur(12px);
}

.landing-nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.landing-nav-brand img {
  display: block;
  height: 1.75rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 3rem 1.5rem 2.5rem;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
}

.landing-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 3rem 1.5rem 2.5rem;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  box-sizing: border-box;
}

.landing-content--center {
  justify-content: center;
}

.landing .card,
.landing .auth-card {
  color: var(--lohk-text);
}

.landing .auth-card p {
  color: var(--lohk-text-muted);
}

.landing .legal-prose {
  width: 100%;
}

.landing .auth-card {
  width: 100%;
  max-width: 32rem;
}

.landing .auth-card input {
  color: var(--lohk-text);
  background: var(--lohk-bg);
  border-color: var(--lohk-border);
}

.landing-hero {
  width: 100%;
  text-align: center;
}

.landing-eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lohk-text-muted);
}

.landing-title {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--lohk-text);
}

.landing-lead {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--lohk-text-muted);
}

.landing-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.landing-tags li {
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lohk-text-muted);
  border: 1px solid var(--lohk-border);
  border-radius: 999px;
}

.landing-stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.landing-stores-note {
  flex: 1 1 100%;
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--lohk-text-muted);
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  display: block;
  width: auto;
  height: 2.5rem;
}

.store-badge--soon {
  opacity: 0.55;
  cursor: default;
}

/* Phone mockup */

.phone-mock {
  margin: 0;
  width: 100%;
  max-width: 17.5rem;
  perspective: 800px;
}

.phone-mock-frame {
  position: relative;
  border: 1px solid var(--lohk-border);
  border-radius: 2rem;
  background: var(--lohk-bg);
  box-shadow: 0 0 80px rgba(39, 151, 255, 0.08);
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.3s ease;
}

.phone-mock-frame--photo {
  line-height: 0;
}

.phone-mock-frame:hover {
  transform: rotateY(-2deg) rotateX(1deg);
}

.phone-mock-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.landing-footer {
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--lohk-text-muted);
  border-top: 1px solid var(--lohk-border);
}

.landing-footer a {
  color: var(--lohk-text-muted);
  text-decoration: none;
}

.landing-footer a:hover {
  color: var(--lohk-text);
  text-decoration: underline;
}

.landing-footer-sep {
  margin: 0 0.35rem;
  opacity: 0.4;
}

@media (prefers-reduced-motion: reduce) {
  .phone-mock-frame,
  .phone-mock-frame:hover {
    transform: none;
    transition: none;
  }
}

@media (min-width: 768px) {
  .landing-main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 4rem 2.5rem 3rem;
  }

  .landing-hero {
    flex: 0 1 45%;
    text-align: left;
  }

  .landing-lead {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .landing-tags {
    justify-content: flex-start;
  }

  .landing-stores {
    justify-content: flex-start;
  }

  .landing-stores-note {
    text-align: left;
  }

  .phone-mock {
    flex: 0 1 55%;
    max-width: 20rem;
    margin-left: auto;
  }
}

@media (min-width: 1024px) {
  .landing-main {
    padding: 5rem 3rem 3.5rem;
    gap: 5rem;
  }

  .phone-mock {
    max-width: 22rem;
  }
}
