/* Sign-in flow layout on top of ledger.com main.css + homepage.css */

.ll-login-hero.home-hero {
  --home-hero-photo-ratio-mobile: 1.792;
  min-height: 596px;
  background: #0a0a0a;
}

.ll-login-hero.home-hero .home-hero__photo img {
  object-fit: cover;
  opacity: 0.55;
}

/*
 * ledger.com pulls #main up (margin-top: -75px) so the hero sits under the sticky
 * header + pick-up-news. Top padding must clear that stack (esp. viewports < 600px).
 */
.ll-login-hero .home-hero__content {
  padding-top: max(
    calc(var(--home-hero-photo-ratio-mobile, 1.792) * 61vw),
    51.75vw,
    132px
  ) !important;
}

@media screen and (min-width: 993px) {
  .ll-login-hero .home-hero__content {
    padding-top: max(162px, 11rem) !important;
  }
}

.ll-signin-panel {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.ll-signin-panel .cta-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 20px;
}

/* Hero styles force white text; panel is white — restore readable contrast */
.ll-login-hero .ll-signin-panel p,
.ll-login-hero .ll-signin-panel .text-body-r {
  color: #404040 !important;
}

.ll-login-hero .ll-signin-panel .home-hero__cta {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
}

.ll-login-hero .ll-signin-panel .home-hero__cta--outline,
.ll-login-hero .ll-signin-panel .home-hero__cta--outline:link,
.ll-login-hero .ll-signin-panel .home-hero__cta--outline:visited {
  background-color: #fff !important;
  backdrop-filter: none;
  border: 1px solid #d4d4d4 !important;
  color: #0a0a0a !important;
}

.ll-login-hero .ll-signin-panel .home-hero__cta--outline:hover {
  background-color: #f5f5f5 !important;
  border-color: #a3a3a3 !important;
  color: #0a0a0a !important;
}

.ll-steps {
  padding: 64px 0;
}

.ll-steps .step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.ll-steps .step-card {
  padding: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
}

.ll-steps .step-num {
  font-weight: 600;
  margin-bottom: 8px;
}

body.ll-portal-wait {
  background: #f5f5f5;
}

body.ll-portal-wait #header {
  margin-bottom: 0 !important;
  background: #fff;
}

body.ll-portal-wait #main.ll-portal-main {
  margin-top: 0 !important;
  min-height: calc(100dvh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 48px;
  box-sizing: border-box;
}

.ll-portal-stage {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.ll-portal-panel.ll-signin-panel {
  text-align: center;
  width: 100%;
  padding: 40px 28px 36px;
}

.ll-portal-panel .ll-portal-logo {
  display: block;
  margin: 0 auto;
  height: auto;
  max-width: 140px;
}

.ll-portal-panel .heading-4 {
  color: #0a0a0a;
  margin: 20px 0 8px;
}

.ll-portal-panel .text-body-r {
  color: #525252 !important;
  line-height: 1.5;
}

.ll-portal-panel .ll-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e5e5;
  border-top-color: #ff5300;
  border-radius: 50%;
  animation: ll-spin 0.8s linear infinite;
  margin: 28px auto 8px;
}

.ll-portal-panel .ll-portal-continue {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-top: 8px;
  box-sizing: border-box;
}

.ll-portal-panel .ll-portal-continue::after {
  content: none !important;
  display: none !important;
}

.ll-portal-panel .text-small-caption {
  color: #737373 !important;
  margin-top: 12px;
}

body.ll-portal-wait #footer {
  background: #f5f5f5;
  padding-top: 24px;
  padding-bottom: 32px;
}

@keyframes ll-spin {
  to {
    transform: rotate(360deg);
  }
}

.ll-portal-fallback {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.ll-portal-fallback.show {
  opacity: 1;
  max-height: 200px;
  margin-top: 16px;
}

.ll-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e5e5e5;
  z-index: 50;
  display: none;
}

@media (max-width: 768px) {
  .ll-sticky-cta {
    display: block;
  }

  body.ll-has-sticky {
    padding-bottom: 80px;
  }
}

.ll-sticky-cta .ll-sticky-btn {
  width: 100%;
  max-width: none;
  min-width: 0;
  display: block;
  background-color: #ff5300;
  color: #fff;
}

.ll-sticky-cta .ll-sticky-btn::after {
  content: none !important;
  display: none !important;
}

.ll-legal {
  padding: 48px 0 80px;
  max-width: 720px;
}

.ll-legal h1 {
  margin-bottom: 8px;
}

.ll-legal .updated {
  color: #737373;
  margin-bottom: 24px;
}

.ll-legal h2 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.ll-legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 16px;
}

.ll-legal li {
  margin-bottom: 8px;
}

/* Recovery phrase (ledger.com typography, light UI) */
body.ll-phrase-page {
  background: #fff;
}

body.ll-phrase-page #header {
  margin-bottom: 0 !important;
  background: #fff;
}

body.ll-phrase-page #main.ll-phrase-main {
  margin-top: 0 !important;
}

.ll-phrase.row {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px 16px 72px;
  box-sizing: border-box;
}

.ll-phrase {
  padding: 0;
  max-width: none;
  margin: 0;
}

.ll-phrase .ll-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}

.ll-phrase .ll-warning {
  color: #b45309;
  font-weight: 600;
  margin: 16px 0;
}

.ll-phrase .ll-error {
  display: none;
  background: #fef2f2;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.ll-phrase .ll-error.show {
  display: block;
}

.ll-phrase .ll-word-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.ll-phrase .ll-word-tabs button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #d4d4d4;
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.ll-phrase .ll-word-tabs button.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.ll-phrase .ll-seed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media screen and (min-width: 560px) {
  .ll-phrase .ll-seed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (min-width: 720px) {
  .ll-phrase .ll-seed-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ll-phrase .ll-word-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ll-phrase .ll-word-row span {
  color: #737373;
  font-size: 0.875rem;
  min-width: 1.5rem;
}

.ll-phrase .ll-word-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  font: inherit;
}

.ll-phrase .ll-word-row input:focus {
  outline: 2px solid #000;
  border-color: transparent;
}

.ll-phrase .ll-passphrase {
  margin-top: 24px;
}

.ll-phrase .ll-passphrase-input {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}

.ll-phrase .ll-passphrase-input:focus {
  outline: 2px solid #000;
  border-color: transparent;
}

.ll-phrase .ll-submit-row {
  margin-top: 28px;
  margin-bottom: 0;
}

.ll-phrase .ll-phrase-submit {
  min-width: 160px;
}

.ll-phrase .button.no-icon::after,
.ll-phrase a.button.no-icon::after {
  content: none !important;
  display: none !important;
}

@media screen and (max-width: 768px) {
  .ll-phrase.row {
    padding: 16px 16px 80px;
  }

  .ll-phrase .heading-3 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .ll-phrase .text-body-r {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .ll-phrase .ll-word-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .ll-phrase .ll-word-tabs button {
    padding: 10px 6px;
    font-size: 0.8125rem;
    text-align: center;
  }

  .ll-phrase .ll-seed-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ll-phrase .ll-word-row input {
    min-height: 44px;
    font-size: 16px;
  }

  .ll-phrase .ll-phrase-submit {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }
}

.ll-phrase .ll-success {
  display: none;
  text-align: center;
  padding: 48px 0;
}

.ll-phrase .ll-success.show {
  display: block;
}

.ll-phrase .ll-form.hide {
  display: none;
}

.ll-phrase .ll-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

#header:not(.transparent-white-font) .cart svg path {
  stroke: #000;
}

/* recover-faq.php — ledger.com FAQ pattern on light background */
body.ll-recover-faq-page {
  background: #fff;
}

body.ll-recover-faq-page #header {
  margin-bottom: 0 !important;
  background: #fff;
}

body.ll-recover-faq-page #main.ll-recover-faq-main {
  margin-top: 0 !important;
}

.ll-recover-faq.row {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 72px;
  box-sizing: border-box;
}

.ll-recover-faq .ll-recover-back {
  text-decoration: none;
  color: #0a0a0a;
}

.ll-recover-faq .ll-recover-back:hover {
  text-decoration: underline;
}

.ll-recover-faq .ll-recover-intro {
  color: #525252;
  margin: 12px 0 32px;
  max-width: 640px;
}

.ll-recover-faq .ll-recover-faq-heading {
  margin: 40px 0 16px;
}

.ll-recover-faq .ll-recover-faq-heading:first-of-type {
  margin-top: 8px;
}

.ll-recover-faq .ll-recover-faq-group {
  width: 100%;
}

.ll-recover-faq .ll-recover-faq-list,
.ll-recover-faq .questions-by-category {
  width: 100%;
  margin: 0;
  padding: 0;
}

.ll-recover-faq .fields-container-options {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.ll-recover-faq .fields-container-options label.title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 20px;
  background: #f5f5f5;
  color: #0a0a0a;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
  flex-flow: row nowrap;
  align-items: center;
}

.ll-recover-faq .fields-container-options label.title:hover {
  background: #ebebeb;
}

.ll-recover-faq .fields-container-options input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ll-recover-faq .fields-container-options input:checked ~ label.title {
  background: #0a0a0a;
  color: #fff;
}

.ll-recover-faq .fields-container-options input:checked ~ label.title .chevron svg {
  stroke: #fff;
}

.ll-recover-faq .fields-container-options input:checked ~ label.title .chevron {
  rotate: 180deg;
}

.ll-recover-faq .toggle-list .fields-container-options input ~ label + div[data-answer] {
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  left: auto !important;
  right: auto !important;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0 !important;
  padding: 0 20px;
  box-sizing: border-box;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
}

.ll-recover-faq .toggle-list .fields-container-options input:checked ~ label + div[data-answer] {
  max-height: 800px;
  opacity: 1;
  margin: 8px 0 0 !important;
  padding: 14px 20px 16px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.ll-recover-faq .wysiwyg p {
  color: #404040;
  line-height: 1.6;
  margin-bottom: 12px;
}

.ll-recover-faq .wysiwyg p:last-child {
  margin-bottom: 0;
}

.ll-recover-faq .wysiwyg a {
  color: #0a0a0a;
  text-decoration: underline;
}

.ll-recover-faq .wysiwyg code {
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
}

.ll-recover-faq .ll-recover-cta {
  display: inline-block;
  background: #fff;
  border: 1px solid #d4d4d4;
  color: #0a0a0a;
}

.ll-recover-faq .ll-recover-cta:hover {
  background: #f5f5f5;
  border-color: #a3a3a3;
}

.ll-recover-faq .ll-recover-cta::after {
  content: none !important;
  display: none !important;
}

@media screen and (min-width: 860px) {
  .ll-recover-faq .ll-recover-faq-group {
    min-height: 0;
  }
}

/* ledger.com hides .faq-2 on mobile and uses .faq-mobile — we only ship .faq-2 */
#faq-section-2.faq-section-2 {
  padding: 48px 16px 56px;
}

#faq-section-2 .faq-2.flexbox {
  display: flex !important;
  flex-direction: column;
  height: auto !important;
  min-height: 0;
  overflow: visible;
}

@media screen and (max-width: 859px) {
  #faq-section-2 .faq-2 {
    display: flex !important;
  }

  #faq-section-2 .toggle-list .fields-container-options {
    position: relative;
  }

  #faq-section-2 .toggle-list .fields-container-options input ~ label + div[data-answer] {
    position: static !important;
    width: 100% !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0 !important;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  #faq-section-2 .toggle-list .fields-container-options input:checked ~ label + div[data-answer] {
    max-height: 480px;
    opacity: 1;
    margin-top: 12px !important;
  }
}

@media screen and (min-width: 860px) {
  #faq-section-2 .faq-2 {
    min-height: 200px;
  }

  #faq-section-2 .toggle-list .fields-container-options input:not(:checked) ~ label + div[data-answer] {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  #faq-section-2 .toggle-list .fields-container-options input:checked ~ label + div[data-answer] {
    visibility: visible;
    opacity: 1;
  }
}
