/* ============================================================
   ApplyApp Landing – style.css
   ============================================================ */

/* ── Reset & tokens ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #2563EB;
  --blue-dark:   #1d4ed8;
  --blue-50:     #eff6ff;
  --blue-100:    #dbeafe;
  --navy-900:    #0f172a;
  --navy-800:    #1e293b;
  --gray-50:     #f8fafc;
  --gray-100:    #F3F4F6;
  --gray-200:    #E5E7EB;
  --gray-400:    #9CA3AF;
  --gray-500:    #6B7280;
  --gray-700:    #374151;
  --gray-900:    #1e293b;
  --green-500:   #22C55E;
  --red-400:     #F87171;

  --font: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9375rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
}

/* Blue primary (nav, pricing CTAs) */
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,.35); }

/* White (hero CTA, final CTA banner — used on dark backgrounds) */
.btn--white {
  background: #fff;
  color: var(--navy-800);
  border-color: #fff;
  font-weight: 700;
}
.btn--white:hover { background: rgba(255,255,255,.88); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }

/* Ghost */
.btn--ghost { color: var(--gray-700); }
.btn--ghost:hover { background: var(--gray-100); }

/* Outline (light bg) */
.btn--outline {
  border-color: var(--gray-200);
  color: var(--gray-700);
  background: #fff;
}
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }

/* Outline white (dark bg hero) */
.btn--outline-white {
  border-color: rgba(255,255,255,.35);
  color: #fff;
  background: transparent;
}
.btn--outline-white:hover {
  border-color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.08);
}

.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--full { width: 100%; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--gray-900);
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-right: auto;
}
.nav__links a {
  font-size: .9375rem;
  color: var(--gray-500);
  font-weight: 500;
  transition: color .15s;
}
.nav__links a:hover { color: var(--gray-900); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all .2s;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__content { color: var(--navy-800); }

.hero__badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: .02em;
}
.hero__headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy-800);
  margin-bottom: 20px;
}
.hero__sub {
  font-size: 1.125rem;
  color: var(--gray-700);
  max-width: 480px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.hero__pain {
  font-size: .9375rem;
  color: var(--blue);
  font-weight: 600;
  max-width: 460px;
  margin-bottom: 32px;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero__disclaimer {
  font-size: .875rem;
  color: #64748b;
}

/* Hero visual */
.hero__visual {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 14px;
  align-items: start;
}
.browser-frame {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(37,99,235,.12), 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
  min-width: 0;
}
.browser-frame__bar {
  background: #f1f5f9;
  padding: 10px 14px;
  display: flex;
  gap: 6px;
}
.browser-frame__bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.browser-frame__bar span:nth-child(1) { background: #FC605B; }
.browser-frame__bar span:nth-child(2) { background: #FDBC40; }
.browser-frame__bar span:nth-child(3) { background: #34C84A; }
.browser-frame__content { padding: 16px; }

.chat-preview { font-size: .875rem; }
.chat-preview__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 14px;
}
.chat-preview__avatar {
  width: 36px; height: 36px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .75rem;
  flex-shrink: 0;
}
.chat-preview__title { font-weight: 600; font-size: .875rem; }
.chat-preview__status { font-size: .75rem; color: var(--green-500); font-weight: 500; }
.chat-preview__messages { display: flex; flex-direction: column; gap: 10px; }

.msg {
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 90%;
  line-height: 1.5;
}
.msg--bot {
  background: var(--blue-50);
  color: var(--gray-900);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.msg--user {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.msg--bot strong { color: var(--blue-dark); }

.msg.typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}
.msg.typing span {
  width: 6px; height: 6px;
  background: var(--blue);
  opacity: .5;
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.msg.typing span:nth-child(2) { animation-delay: .2s; }
.msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
}

.summary-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
  box-shadow: 0 8px 32px rgba(37,99,235,.14), 0 2px 8px rgba(0,0,0,.06);
  text-align: left;
  position: relative;
  align-self: center;
}
.summary-card__recommended {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-500);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.summary-card__label { font-size: .7rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.summary-card__score-row { font-size: .9375rem; font-weight: 700; color: var(--gray-900); margin-bottom: 14px; }
.summary-card__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
.summary-card__key { font-size: .7rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; }
.summary-card__val { font-size: .8125rem; color: var(--gray-700); line-height: 1.45; }
.summary-card__recommendation {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.summary-card__rec-label { font-size: .7rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; }
.summary-card__rec-value { font-size: .8125rem; font-weight: 600; color: var(--blue); font-style: italic; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section--alt { background: #f1f5f9; }

.section__header { text-align: center; max-width: 620px; margin: 0 auto 64px; }
.section__eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--gray-900);
  margin-bottom: 14px;
  line-height: 1.2;
}
.section__sub { font-size: 1.0625rem; color: var(--gray-500); }

/* ── Features grid ───────────────────────────────────────── */
.features__grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}
.features__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.feature-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feature-card__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.feature-card__icon--blue {
  background: rgba(37,99,235,.1);
  color: var(--blue);
}
.feature-card__icon--orange {
  background: rgba(37,99,235,.1);
  color: var(--blue);
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--gray-900); }
.feature-card p { font-size: .9rem; color: var(--gray-500); line-height: 1.65; flex: 1; }

/* ── Timeline (How it works) ─────────────────────────────── */
.timeline {
  list-style: none;
  max-width: 680px;
  margin: 0 auto;
}
.timeline__step {
  display: flex;
  gap: 28px;
}
.timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.timeline__dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .875rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,.30);
}
.timeline__connector {
  width: 2px;
  flex: 1;
  background: var(--gray-200);
  min-height: 32px;
  margin: 6px 0;
}
.timeline__step:last-child .timeline__connector {
  display: none;
}
.timeline__body {
  padding-bottom: 48px;
  padding-top: 10px;
}
.timeline__body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.timeline__body p {
  font-size: .9375rem;
  color: var(--gray-500);
  line-height: 1.65;
  max-width: 520px;
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gray-700);
}
.pricing__toggle span.active { color: var(--gray-900); font-weight: 600; }

.toggle {
  width: 44px; height: 24px;
  background: var(--gray-200);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: background .2s;
}
.toggle[aria-checked="true"] { background: var(--blue); }
.toggle__knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle[aria-checked="true"] .toggle__knob { transform: translateX(20px); }

.save-badge {
  font-style: normal;
  background: #DCFCE7;
  color: #166534;
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-card--featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.08), var(--shadow-md);
}
.pricing-card__header h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.pricing-card__header p { font-size: .875rem; color: var(--gray-500); }
.pricing-card__price { display: flex; align-items: baseline; gap: 4px; }
.pricing-card__price .price {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--gray-900);
  transition: all .3s;
}
.pricing-card__price .period { color: var(--gray-400); font-size: .9375rem; }

.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--gray-700);
}
.pricing-card__features li.disabled { color: var(--gray-400); }
.pricing-card__features .check { width: 18px; height: 18px; color: var(--green-500); flex-shrink: 0; }
.pricing-card__features li.disabled svg { color: var(--red-400); width: 18px; height: 18px; flex-shrink: 0; }

.pricing__note {
  text-align: center;
  margin-top: 32px;
  font-size: .875rem;
  color: var(--gray-400);
}

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner { padding: 80px 0; }
.cta-banner__inner {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 130%, rgba(255,255,255,.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner__inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  position: relative;
}
.cta-banner__inner p {
  font-size: 1.0625rem;
  opacity: .8;
  margin-bottom: 32px;
  position: relative;
}
.cta-banner__disclaimer {
  font-size: .8125rem;
  opacity: .5;
  margin-top: 16px;
  margin-bottom: 0;
  position: relative;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: #f1f5f9;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: 64px 0 48px;
}
.footer__brand {
  flex: 2 1 0;
  min-width: 0;
}
.footer__brand .nav__logo { color: var(--navy-800); margin-bottom: 12px; }
.footer__brand p { font-size: .875rem; line-height: 1.6; max-width: 280px; }
.footer__nav {
  display: flex;
  gap: 48px;
  flex: 3 1 0;
  justify-content: flex-end;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 0;
  min-width: 100px;
}
.footer__col h4 { color: var(--navy-800); font-size: .875rem; font-weight: 600; margin-bottom: 4px; }
.footer__col a { font-size: .875rem; color: #64748b; transition: color .15s; }
.footer__col a:hover { color: var(--blue); }
.footer__bottom {
  border-top: 1px solid #e2e8f0;
  padding: 20px 0;
  font-size: .8125rem;
  color: #64748b;
}

/* ── Language switcher ───────────────────────────────────── */
.lang-switcher { position: relative; }

.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: transparent;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}
.lang-switcher__btn:hover {
  border-color: var(--blue);
  background: var(--blue-50);
  color: var(--blue);
}

.lang-switcher__flag { font-size: 1rem; line-height: 1; }
.lang-switcher__code { letter-spacing: .04em; }
.lang-switcher__chevron { transition: transform .2s; flex-shrink: 0; }
.lang-switcher__btn[aria-expanded="true"] .lang-switcher__chevron { transform: rotate(180deg); }

.lang-switcher__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 148px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 200;
  animation: dropdownIn .15s ease;
}
.lang-switcher__dropdown.open { display: block; }

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.lang-switcher__dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-700);
  text-align: left;
  transition: background .1s, color .1s;
}
.lang-switcher__dropdown button:hover,
.lang-switcher__dropdown button.active {
  background: var(--blue-50);
  color: var(--blue);
}
.lang-switcher__dropdown button span { font-size: 1rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features__grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero { padding: 72px 0 60px; }
  .hero__sub { max-width: 100%; }
  .hero__pain { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__actions { display: none; }
  .nav__hamburger { display: flex; }
  .nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__hamburger.open span:nth-child(2) { opacity: 0; }
  .nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav--open .nav__links,
  .nav--open .nav__actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-100);
    padding: 20px 24px;
    gap: 16px;
  }
  .nav--open .nav__links { align-items: flex-start; }
  .nav--open .nav__actions { flex-direction: row; padding-top: 0; border: none; }

  .features__grid--4 { grid-template-columns: 1fr; }

  .section { padding: 64px 0; }
  .footer__inner { flex-direction: column; align-items: center; gap: 40px; text-align: center; }
  .footer__brand p { max-width: 100%; }
  .footer__nav { justify-content: center; gap: 32px; flex-wrap: wrap; }
  .footer__col { align-items: center; min-width: 120px; }
  .cta-banner__inner { padding: 48px 24px; }

  .lang-switcher__dropdown { right: auto; left: 0; }
}

@media (max-width: 600px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__visual { grid-template-columns: 1fr; }
  .summary-card { align-self: auto; }
  .timeline__body { padding-bottom: 32px; }
}
