/* ===== Home Landing Page ===== */
.home-view {
  flex: 1;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  background: var(--color-bg);
}

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

.home-section {
  padding: 72px 0;
}

.home-section__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  line-height: 1.35;
}

.home-section__subtitle {
  margin: 0 auto 40px;
  max-width: 640px;
  font-size: 17px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.7;
}

/* Hero */
.home-hero {
  padding: 8px 0 56px;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg) 100%);
}

.home-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-logo-link,
.hero-logo,
.home-logo {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 24px;
}

.home-logo-link picture,
.brand-home-link picture {
  display: inline-flex;
  line-height: 0;
}

.hero-logo img,
.home-logo img,
.home-logo-link img,
.home-logo-image {
  height: 110px;
  width: auto;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

.home-hero__title {
  margin: 0 0 16px;
  font-size: 56px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.home-hero__subtitle {
  margin: 0 0 36px;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.home-hero__tagline {
  margin: 0 0 36px;
  font-size: 17px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.home-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 36px;
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

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

/* Cards Grid */
.home-grid {
  display: grid;
  gap: 24px;
}

.home-grid--docs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-grid--steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-grid--features {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 168px;
  padding: 24px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  border-color: #BFDBFE;
}

.home-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
}

.home-card__text {
  margin: 0;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}

.home-card--doc {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
}

.home-card--doc:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Steps */
.home-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: 140px;
  padding: 28px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.home-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
}

.home-step__label {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
}

.home-step__arrow {
  display: none;
}

/* Document List */
.home-doc-list {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.home-doc-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 17px;
  color: var(--color-text);
  line-height: 1.5;
}

.home-doc-list__item:last-of-type {
  margin-bottom: 0;
}

.home-doc-list__check {
  flex-shrink: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.home-doc-list__more {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 15px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.6;
}

/* FAQ */
.home-faq {
  max-width: 760px;
  margin: 0 auto;
}

.home-faq__item {
  margin-bottom: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.home-faq__item:last-child {
  margin-bottom: 0;
}

.home-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: background var(--transition);
}

.home-faq__question:hover {
  background: #F8FAFC;
}

.home-faq__icon {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--color-primary);
  transition: transform var(--transition);
}

.home-faq__item.is-open .home-faq__icon {
  transform: rotate(45deg);
}

.home-faq__answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.home-faq__item.is-open .home-faq__answer {
  display: block;
}

/* Disclaimer */
.home-disclaimer {
  padding: 48px 0 72px;
}

.home-disclaimer__box {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 28px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  font-size: 15px;
  color: #92400E;
  line-height: 1.75;
  text-align: center;
}

/* Animations */
.home-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: homeFadeIn 0.7s ease forwards;
}

.home-animate--delay-1 { animation-delay: 0.1s; }
.home-animate--delay-2 { animation-delay: 0.2s; }
.home-animate--delay-3 { animation-delay: 0.3s; }
.home-animate--delay-4 { animation-delay: 0.4s; }

@keyframes homeFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.home-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .home-grid--docs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-grid--features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-section {
    padding: 56px 0;
  }

  .home-hero {
    padding: 12px 0 56px;
  }

  .home-container {
    padding: 0 16px;
  }

  .home-grid--docs,
  .home-grid--features {
    grid-template-columns: 1fr;
  }

  .home-grid--steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-card {
    min-height: 140px;
  }

  .home-step {
    min-height: 120px;
    padding: 22px 16px;
  }
}

@media (min-width: 769px) {
  .home-hero {
    padding-top: 80px;
    padding-bottom: 120px;
  }

  .home-logo-link {
    margin-bottom: 32px;
  }

  .home-hero__title {
    margin-bottom: 24px;
  }

  .home-hero__subtitle {
    margin-bottom: 40px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .hero-logo img,
  .home-logo img,
  .home-logo-link img,
  .home-logo-image {
    height: 90px;
  }

  .home-hero__title {
    font-size: 44px;
  }
}

@media (max-width: 768px) {
  .hero-logo img,
  .home-logo img,
  .home-logo-link img,
  .home-logo-image {
    height: 72px;
  }

  .home-hero__title {
    font-size: 34px;
  }
}

@media (max-width: 480px) {
  .home-hero__cta {
    width: 100%;
    max-width: 320px;
  }
}

/* ===== Site Header Nav ===== */
.site-header {
  padding: 20px 0 16px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  width: 100%;
}

.site-header__nav a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.site-header__nav a:not(.btn):hover {
  color: var(--color-primary);
}

.site-header__cta {
  min-width: 0;
  padding: 10px 20px;
  font-size: 15px;
}

@media (min-width: 769px) {
  .site-header {
    padding: 20px 0;
  }

  .site-header__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }

  .site-header__logo {
    flex-shrink: 0;
  }

  .site-header__nav {
    width: auto;
    justify-content: flex-end;
    gap: 8px 20px;
  }
}

.site-header .home-logo-link,
.site-header .hero-logo,
.site-header .home-logo {
  margin-bottom: 0;
}

.site-header .home-logo-image,
.site-header .home-logo-link img,
.site-header .hero-logo img,
.site-header .home-logo img {
  height: 56px;
  width: auto;
  max-width: 220px;
  max-height: none;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.info-page {
  padding: 48px 0 72px;
}

.info-page .static-page,
.info-page .home-faq {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.info-page .static-page {
  padding: 0;
}

.static-page__updated {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--color-text-muted);
}

.info-page__actions {
  margin-top: 32px;
  text-align: center;
}

.home-faq__more {
  margin-top: 28px;
  text-align: center;
}

.home-faq__more .btn {
  min-width: 220px;
}

@media (max-width: 768px) {
  .site-header {
    padding: 20px 0 16px;
  }

  .site-header .home-logo-image,
  .site-header .home-logo-link img,
  .site-header .hero-logo img,
  .site-header .home-logo img {
    height: 48px;
  }

  .info-page {
    padding: 36px 0 56px;
  }
}
