/* Unposed HTML landing — mirrors Flutter splash_screen layout tokens. */
:root {
  --primary: #e17100;
  --primary-blend: #e48225;
  --primary-warm: #e8934a;
  --badge-bg: #fff4eb;
  --badge-text: #a3541a;
  --badge-mobile-bg: #fff7ed;
  --badge-mobile-border: #ffedd5;
  --badge-mobile-text: #e98135;
  --text-dark: #1a1a1a;
  --text-grey: #666666;
  --subtitle-desktop: #52525c;
  --dark: #18181b;
  --white: #ffffff;
  --footer-text: #a0a0a0;
  --max: 1200px;
  --pad: 24px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.landing-active {
  overflow: auto !important;
  -webkit-user-select: auto;
  user-select: auto;
}
body.app-active #html-landing,
body.app-active #startup-splash {
  display: none !important;
}

#html-landing {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: auto;
  background: var(--white);
  font-family: var(--font);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}
#html-landing.is-hidden {
  display: none;
}

.landing-inner { width: 100%; background: var(--white); }

/* Header */
.l-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--pad) 8px;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
}
@media (min-width: 768px) {
  .l-header {
    height: 72px;
    padding: 0 var(--pad);
  }
}
.l-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #000; }
.l-brand img {
  height: 40px;
  width: auto;
  border-radius: 10px;
  display: block;
}
.l-brand span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.l-join {
  appearance: none;
  border: none;
  cursor: pointer;
  background: #000;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  height: 40px;
  padding: 0 18px;
  border-radius: 9999px;
}
.l-join:hover { opacity: 0.9; }

/* Badge */
.l-badge-wrap {
  display: flex;
  justify-content: center;
  padding: 38px 32px 0;
}
@media (min-width: 768px) {
  .l-badge-wrap { padding: 4px 32px 0; }
}
.l-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 329px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--badge-mobile-bg);
  border: 1px solid var(--badge-mobile-border);
  color: var(--badge-mobile-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
}
@media (min-width: 768px) {
  .l-badge {
    max-width: none;
    padding: 10px 20px;
    background: var(--badge-bg);
    border: none;
    color: var(--badge-text);
    font-size: 13px;
    line-height: 1.2;
  }
}
.l-badge img { width: 14px; height: 14px; flex-shrink: 0; }
@media (min-width: 768px) {
  .l-badge img { width: 16px; height: 16px; }
}

/* Hero */
.l-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--pad) 0;
  text-align: center;
}
@media (min-width: 768px) {
  .l-hero { padding: 40px var(--pad) 0; }
}
.l-hero h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: var(--primary-blend);
  letter-spacing: 0;
}
@media (min-width: 768px) {
  .l-hero h1 {
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -1.44px;
    white-space: nowrap;
  }
  .l-hero h1 .line { display: inline; }
  .l-hero h1 .line::after { content: " "; }
  .l-hero h1 .line:last-child::after { content: none; }
}
@media (max-width: 767px) {
  .l-hero h1 .line { display: block; }
}
.l-sparkles {
  display: block;
  width: 56px;
  height: auto;
  margin: 8px auto 0;
}
.l-hero-sub {
  margin: 20px auto 0;
  max-width: 720px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text-dark);
}
@media (min-width: 768px) {
  .l-hero-sub {
    margin-top: 28px;
    font-size: 20px;
    line-height: 1.5;
    color: var(--subtitle-desktop);
  }
}
.l-hero-sub p { margin: 0; }

/* Hero prompt card */
.l-feature {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--pad) 0;
}
@media (min-width: 768px) {
  .l-feature { padding-top: 48px; }
}
.l-prompt-card {
  margin: 0 auto;
  max-width: 560px;
  background: #111;
  border-radius: 28px;
  border: 1.5px solid var(--primary-blend);
  padding: 32px 24px 24px;
  color: #fff;
  text-align: center;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .l-prompt-card {
    background: var(--dark);
    padding: 32px 36px;
    max-width: 640px;
    text-align: left;
  }
}
.l-prompt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 117px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: var(--primary-blend);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 23px;
}
@media (min-width: 768px) {
  .l-prompt-badge {
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 22px;
  }
}
.l-prompt-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 37.5px;
  margin: 0 0 23px;
  min-height: 2.5em;
  color: #fff;
}
@media (min-width: 768px) {
  .l-prompt-title {
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.4px;
    margin-bottom: 22px;
  }
}
.l-prompt-joined {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--primary-warm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .l-prompt-joined { margin-bottom: 16px; }
}
.l-prompt-joined img {
  width: 22px;
  height: 16px;
  flex-shrink: 0;
  filter: invert(62%) sepia(48%) saturate(650%) hue-rotate(346deg) brightness(98%) contrast(92%);
}
.l-prompt-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 9999px;
  background: var(--primary-blend);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.l-prompt-cta:hover { filter: brightness(1.05); }
.l-prompt-card.is-fading .l-prompt-title { opacity: 0; transition: opacity 0.35s ease; }
.l-prompt-card .l-prompt-title { transition: opacity 0.35s ease; }

/* Section titles */
.l-section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--pad) 0;
  text-align: center;
}
@media (min-width: 768px) {
  .l-section-head { padding-top: 40px; }
}
.l-section-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: var(--primary-blend);
}
@media (min-width: 768px) {
  .l-section-title {
    gap: 10px;
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.5px;
  }
}
.l-section-title img {
  width: 28px;
  height: 28px;
  /* Approximate AppColors.primaryBlend #E48225 */
  filter: invert(55%) sepia(70%) saturate(600%) hue-rotate(352deg) brightness(95%) contrast(92%);
}
@media (min-width: 768px) {
  .l-section-title img { width: 36px; height: 36px; }
}
.l-section-sub {
  margin: 16px auto 0;
  max-width: 820px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-dark);
}
@media (min-width: 768px) {
  .l-section-sub {
    margin-top: 20px;
    font-size: 20px;
    line-height: 1.5;
    color: var(--subtitle-desktop);
  }
}
.l-section-sub p { margin: 0; }

/* Visibility cards */
.l-vis-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 28px var(--pad) 8px;
  max-width: var(--max);
  margin: 0 auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
  .l-vis-cards {
    justify-content: center;
    overflow: visible;
    padding-top: 36px;
  }
}
.l-vis-card {
  flex: 0 0 auto;
  width: min(267px, 78vw);
  min-height: 362px;
  scroll-snap-align: start;
  border-radius: 24px;
  border: 1.5px solid var(--primary-blend);
  padding: 28px 20px;
  background: linear-gradient(180deg, #2a2a2e 0%, #000 100%);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .l-vis-card {
    width: 266.66px;
    height: 362px;
    min-height: 0;
    padding: 32px 24px;
  }
}
.l-vis-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-blend);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .l-vis-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
  }
}
.l-vis-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}
@media (min-width: 768px) {
  .l-vis-icon img { width: 24px; height: 24px; }
}
.l-vis-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  white-space: pre-line;
  text-align: center;
}
@media (min-width: 768px) {
  .l-vis-card h3 {
    margin-bottom: 16px;
    line-height: 1.25;
  }
}
.l-vis-card p {
  margin: 0;
  font-size: 15px;
  line-height: 26px;
  color: #a3a3a3;
  text-align: center;
}
@media (min-width: 768px) {
  .l-vis-card p {
    font-size: 16px;
    line-height: 1.55;
  }
}

/* Discovery */
.l-discovery {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--pad) 0;
  text-align: center;
}
@media (min-width: 768px) {
  .l-discovery { padding-top: 72px; }
}
.l-discovery h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: var(--primary-blend);
}
@media (min-width: 768px) {
  .l-discovery h2 {
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.5px;
  }
}
.l-pills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
  text-align: left;
}
@media (min-width: 768px) {
  .l-pills { margin-top: 32px; }
}
@media (min-width: 600px) {
  .l-pills { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .l-pills { grid-template-columns: 1fr 1fr 1fr; }
}
.l-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--dark);
  color: #fff;
  border-radius: 40px;
  padding: 14px 16px;
  min-height: 72px;
}
@media (min-width: 768px) {
  .l-pill { padding: 18px 24px; }
}
.l-pill-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.l-pill-icon img { width: 20px; height: 20px; display: block; }
.l-pill-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.l-pill-body p {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  color: #fff;
}
.l-pill-join {
  appearance: none;
  border: none;
  flex-shrink: 0;
  background: var(--primary-blend);
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 9999px;
  white-space: nowrap;
}
.l-pill-join:hover { filter: brightness(1.05); }

/* How it works */
.l-how {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--pad) 0;
  text-align: center;
}
@media (min-width: 768px) {
  .l-how { padding-top: 72px; }
}
.l-how h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 40px;
}
@media (min-width: 768px) {
  .l-how h2 {
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.5px;
  }
}
.l-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}
@media (min-width: 1024px) {
  .l-steps {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 40px;
  }
}
.l-step-connector {
  display: none;
}
@media (min-width: 1024px) {
  .l-step-connector {
    display: block;
    width: 32px;
    height: 2px;
    margin: 0 8px;
    background: var(--primary-blend);
    flex-shrink: 0;
  }
}
.l-step {
  width: 100%;
  max-width: 420px;
  min-height: 320px;
  background: #fff;
  border: 1.5px solid var(--primary-blend);
  border-radius: 24px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
@media (min-width: 1024px) {
  .l-step {
    width: 266.66px;
    max-width: none;
    height: 362px;
    min-height: 0;
    padding: 32px 24px;
  }
}
.l-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-blend);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(228, 130, 37, 0.35);
}
@media (min-width: 768px) {
  .l-step-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
  }
}
.l-step-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}
@media (min-width: 768px) {
  .l-step-icon img { width: 24px; height: 24px; }
}
.l-step-num {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-blend);
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
}
.l-step h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  color: var(--text-dark);
  text-align: center;
}
@media (min-width: 768px) {
  .l-step h3 {
    font-size: 18px;
    line-height: 1.25;
  }
}
.l-step p {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-grey);
  text-align: center;
}
@media (min-width: 768px) {
  .l-step p { line-height: 1.55; }
}

/* CTA band */
.l-cta {
  max-width: 1120px;
  margin: 56px auto 0;
  padding: 0 var(--pad);
}
@media (min-width: 768px) {
  .l-cta { margin-top: 72px; }
}
.l-cta-box {
  background: var(--primary-blend);
  border-radius: 40px;
  padding: 36px 20px;
  text-align: center;
  box-shadow: 0 12px 48px -8px rgba(228, 130, 37, 0.35);
}
@media (min-width: 768px) {
  .l-cta-box { padding: 48px; }
}
.l-cta-box h2 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.9px;
}
@media (min-width: 768px) {
  .l-cta-box h2 {
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.5px;
  }
}
.l-register {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 24px auto 0;
  height: 52px;
  border: none;
  border-radius: 28px;
  background: #fff;
  color: var(--primary-blend);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
@media (min-width: 768px) {
  .l-register { margin-top: 28px; }
}

/* Footer */
.l-footer {
  max-width: var(--max);
  margin: 32px auto 0;
  padding: 56px var(--pad) 32px;
  text-align: center;
}
@media (min-width: 768px) {
  .l-footer { margin-top: 48px; padding-top: 56px; }
}
.l-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.l-footer-brand img {
  height: 44px;
  border-radius: 10px;
}
.l-footer-brand span {
  font-size: 18px;
  font-weight: 600;
}
.l-footer-desc {
  max-width: 340px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-grey);
}
.l-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.l-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.l-socials img { width: 18px; height: 18px; }
.l-footer hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 40px 0 24px;
}
.l-copy {
  margin: 0;
  font-size: 12px;
  color: var(--footer-text);
  line-height: 1.4;
}

/* Waiting overlay when CTA before Flutter ready */
#enter-wait {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(255,255,255,0.72);
  align-items: center;
  justify-content: center;
}
#enter-wait.show { display: flex; }
