/* Resume Maker — brand extras, thin scrollbar, calm motion */

/* -------------------------------------------------------------------------- */
/* Thin branded scrollbar                                                     */
/* -------------------------------------------------------------------------- */

html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-canvas);
}

html::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html::-webkit-scrollbar-track {
  background: var(--color-canvas);
}

html::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
  background-clip: content-box;
  border: 2px solid transparent;
}

/* -------------------------------------------------------------------------- */
/* Atmosphere                                                                 */
/* -------------------------------------------------------------------------- */

.hero-wash {
  background:
    radial-gradient(
      120% 80% at 10% -10%,
      rgba(23, 95, 117, 0.18),
      transparent 55%
    ),
    radial-gradient(
      90% 70% at 100% 0%,
      rgba(236, 157, 19, 0.12),
      transparent 50%
    ),
    linear-gradient(180deg, #ffffff 0%, rgba(46, 46, 46, 0.04) 100%);
}

/* Crossed resume previews (V-shape) — clipped so rotate() never widens the page */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-visual {
    justify-content: flex-end;
  }
}

.hero-cross {
  position: relative;
  width: 100%;
  max-width: 18.5rem;
  margin-inline: auto;
  aspect-ratio: 1 / 1.05;
  /* Room for rotated sheet corners inside the clip */
  padding: 0.75rem 1.25rem 1rem;
  box-sizing: content-box;
}

.hero-cross__sheet {
  position: absolute;
  width: 56%;
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--color-card);
  box-shadow:
    0 14px 34px rgba(23, 95, 117, 0.16),
    0 4px 10px rgba(30, 30, 30, 0.08);
  border: 1px solid rgba(30, 30, 30, 0.08);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
}

.hero-cross__sheet img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.hero-cross__sheet--back {
  left: 10%;
  top: 10%;
  z-index: 1;
  transform: rotate(-12deg);
}

.hero-cross__sheet--front {
  right: 8%;
  top: 16%;
  z-index: 2;
  transform: rotate(8deg);
}

.hero-cross:hover .hero-cross__sheet--back {
  transform: rotate(-14deg) translateY(-4px);
}

.hero-cross:hover .hero-cross__sheet--front {
  transform: rotate(10deg) translateY(-6px);
}

@media (min-width: 640px) {
  .hero-cross {
    max-width: 22rem;
  }
}

@media (min-width: 1024px) {
  .hero-cross {
    max-width: 24rem;
    margin-inline: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cross__sheet,
  .hero-cross:hover .hero-cross__sheet--back,
  .hero-cross:hover .hero-cross__sheet--front {
    transition: none;
  }

  .hero-cross:hover .hero-cross__sheet--back {
    transform: rotate(-12deg);
  }

  .hero-cross:hover .hero-cross__sheet--front {
    transform: rotate(8deg);
  }
}


.logo-mark {
  width: 2rem;
  height: 2.4rem;
  position: relative;
  flex-shrink: 0;
}

.logo-sheet {
  position: absolute;
  width: 1.35rem;
  height: 1.75rem;
  border-radius: 0.25rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.logo-sheet--back {
  left: 0;
  top: 0.2rem;
  background: var(--color-secondary);
  transform: rotate(-12deg);
}

.logo-sheet--front {
  right: 0;
  top: 0;
  background: var(--color-primary);
  transform: rotate(8deg);
}

.logo-sheet::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0.4rem 0 0 0.4rem;
  border-color: rgba(255, 255, 255, 0.45) transparent transparent transparent;
}

.logo-sheet__lines {
  position: absolute;
  left: 0.28rem;
  right: 0.28rem;
  top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.logo-sheet__lines span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.55);
}

.logo-sheet__lines span:nth-child(1) {
  width: 62%;
}
.logo-sheet__lines span:nth-child(2) {
  width: 78%;
}
.logo-sheet__lines span:nth-child(3) {
  width: 54%;
}
.logo-sheet__lines span:nth-child(4) {
  width: 40%;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 10.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.75rem;
  background: var(--color-dark);
  color: var(--color-light);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badge.is-disabled {
  opacity: 0.72;
  cursor: not-allowed;
  pointer-events: none;
}

.store-badge__label {
  font-size: 0.65rem;
  opacity: 0.8;
  line-height: 1;
}

.store-badge__name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Get the App — QR + phone */
.get-app-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .get-app-visual {
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .get-app-visual {
    justify-content: flex-end;
  }
}

.get-app-qr {
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Phone mock — matches app preview style */
.get-app-phone {
  position: relative;
  flex-shrink: 0;
}

.get-app-phone__glow {
  position: absolute;
  left: 50%;
  top: 55%;
  z-index: 0;
  width: 85%;
  height: 70%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(236, 157, 19, 0.22);
  filter: blur(28px);
  pointer-events: none;
}

.get-app-phone__bezel {
  position: relative;
  z-index: 1;
  width: 12.75rem;
  border-radius: 2rem;
  padding: 0.65rem 0.55rem 0.7rem;
  background: linear-gradient(165deg, #3a3a3a 0%, #141414 55%, #0a0a0a 100%);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.get-app-phone__notch {
  width: 5rem;
  height: 0.85rem;
  margin: 0 auto 0.5rem;
  border-radius: 999px;
  background: #0a0a0a;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.06);
}

.get-app-phone__screen {
  display: flex;
  flex-direction: column;
  min-height: 17.5rem;
  border-radius: 1.35rem;
  background: #eef1f2;
  padding: 0.65rem 0.75rem 0.85rem;
}

.get-app-phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(30, 30, 30, 0.75);
  font-variant-numeric: tabular-nums;
}

.get-app-phone__signal {
  display: block;
  width: 2.25rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.22);
}

.get-app-phone__brand {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.get-app-phone__brand-resume {
  color: var(--color-secondary);
}

.get-app-phone__brand-maker {
  color: var(--color-primary);
}

.get-app-phone__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.get-app-phone__card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.75rem 0.7rem;
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(30, 30, 30, 0.06);
}

.get-app-phone__card--muted {
  background: #e4e8ea;
  box-shadow: none;
}

.get-app-phone__bar {
  display: block;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.14);
}

.get-app-phone__card--muted .get-app-phone__bar {
  background: rgba(30, 30, 30, 0.12);
}

.get-app-phone__bar--sm {
  width: 38%;
}

.get-app-phone__bar--lg {
  width: 100%;
}

.get-app-phone__bar--md {
  width: 72%;
}

.get-app-phone__cta {
  margin-top: auto;
  padding: 0.55rem 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--color-primary);
  border-radius: 0.65rem;
  box-shadow: 0 4px 12px rgba(23, 95, 117, 0.35);
}

@media (min-width: 640px) {
  .get-app-phone__bezel {
    width: 14rem;
  }

  .get-app-phone__screen {
    min-height: 19rem;
  }

  .get-app-phone__brand {
    font-size: 1.125rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .get-app-phone__bezel {
    animation: phone-float 5s ease-in-out infinite;
  }
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .get-app-phone__bezel {
    animation: none;
  }
}


/* -------------------------------------------------------------------------- */
/* Motion — content always in HTML; JS only adds .is-visible                  */
/* -------------------------------------------------------------------------- */

.hero-animate > * {
  opacity: 0;
  transform: translateY(1rem);
  animation: calm-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-animate > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero-animate > *:nth-child(2) {
  animation-delay: 0.15s;
}
.hero-animate > *:nth-child(3) {
  animation-delay: 0.25s;
}
.hero-animate > *:nth-child(4) {
  animation-delay: 0.35s;
}
.hero-animate > *:nth-child(5) {
  animation-delay: 0.45s;
}

[data-reveal] {
  /* Visible by default (no-JS / crawlers). Hidden only when JS opts in. */
}

html.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.js-motion [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js-motion [data-reveal][data-delay='1'].is-visible {
  transition-delay: 0.08s;
}
html.js-motion [data-reveal][data-delay='2'].is-visible {
  transition-delay: 0.16s;
}
html.js-motion [data-reveal][data-delay='3'].is-visible {
  transition-delay: 0.24s;
}

@keyframes calm-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-animate > *,
  html.js-motion [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .store-badge:hover {
    transform: none;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--color-primary);
  color: var(--color-light);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}
