/*
  Landing page: a white top bar, a pale hero with one pill button, centred
  sections with numbered steps, a feature list, an FAQ, and a plain footer.
  Phone first -- every section is a single column until there is room.
*/

.landing-page {
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
}

.landing-page h1,
.landing-page h2,
.landing-page h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

/* ---- Top bar ------------------------------------------------------------ */
.landing-nav {
  position: sticky;
  z-index: 40;
  top: 0;
  height: calc(64px + var(--safe-top));
  padding-top: var(--safe-top);
  background: var(--choco);
  border-bottom: 1px solid var(--line);
}

.landing-nav .brand {
  font-size: 19px;
}

.landing-nav-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-links {
  display: none;
}

.landing-links a {
  padding: 8px 12px;
  color: var(--muted);
  border-radius: var(--radius-pill);
  font-size: 16px;
}

.landing-links a:hover {
  color: var(--ink);
  background: var(--card-2);
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-actions .btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.landing-login {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  padding: 48px 0 52px;
  background: var(--card-2);
}

.hero-inner {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(34px, 8vw, 54px);
  font-weight: 700;
  line-height: 1.12;
}

.hero-lead {
  max-width: 42ch;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-button {
  min-height: 52px;
  padding: 0 30px;
  font-size: 18px;
}

/* A small drawing of a CV page -- decoration, hidden from assistive
   software and drawn entirely in CSS. Paper stays white in both themes. */
.hero-sheet {
  display: none;
  width: min(100%, 360px);
  padding: 24px;
  justify-self: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

.hero-sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-sheet-photo {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: #2563EB;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

.hero-sheet-head b,
.hero-sheet-head small {
  display: block;
}

.hero-sheet-head b {
  color: #1D1D20;
  font-size: 16px;
  letter-spacing: .04em;
}

.hero-sheet-head small {
  color: #2563EB;
  font-size: 13px;
  font-weight: 700;
}

.hero-sheet em {
  margin-top: 8px;
  color: #2563EB;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-sheet i {
  display: block;
  height: 7px;
  background: #E8ECF1;
  border-radius: 4px;
}

.hero-sheet i.short {
  width: 62%;
}

.hero-sheet i.rule {
  height: 2px;
  margin: 6px 0 2px;
  background: #2563EB;
}

.hero-sheet-chips {
  display: flex;
  gap: 6px;
}

.hero-sheet-chips span {
  width: 54px;
  height: 18px;
  background: #E8EFFD;
  border-radius: 999px;
}

/* ---- Shared section layout ---------------------------------------------- */
.how,
.features,
.templates-strip,
.faq,
.final-cta {
  padding: 56px 0;
}

.how h2,
.features h2,
.templates-strip h2,
.faq h2,
.final-cta h2 {
  max-width: 22ch;
  margin: 0 auto 32px;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
}

/* ---- How it works: numbered steps in outlined circles -------------------- */
.step-list {
  display: grid;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  gap: 32px;
  list-style: none;
  text-align: center;
}

.step-list li > span {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  place-items: center;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  font-size: 17px;
}

.step-list h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.step-list p {
  max-width: 34ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* ---- Features: icon in an outlined circle, then a short line ------------ */
.features {
  border-top: 1px solid var(--line);
}

.feature-list {
  display: grid;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  gap: 22px;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: none;
  place-items: center;
  color: var(--brand);
  border: 1.5px solid var(--line);
  border-radius: 50%;
}

.feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature-list h3 {
  margin: 2px 0 4px;
  font-size: 19px;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* ---- Templates: a dark band with every template, scrolled sideways ----- */
.templates-strip {
  color: #F3F4F6;
  background: #1D1D20;
}

.showcase-head {
  display: flex;
  margin-bottom: 28px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.templates-strip .showcase-head h2 {
  max-width: none;
  margin: 0 0 8px;
  color: #F3F4F6;
  text-align: left;
}

.showcase-head p {
  margin: 0;
  color: #C7CAD1;
  font-size: 17px;
}

.showcase-arrows {
  display: none;
  gap: 8px;
}

.showcase-arrows .icon-btn {
  width: 46px;
  height: 46px;
  color: #F3F4F6;
  background: transparent;
  border: 1px solid #4A4D55;
  border-radius: 50%;
}

.showcase-arrows .icon-btn:hover:not(:disabled) {
  background: #2C2E34;
}

.showcase-arrows .icon-btn:disabled {
  opacity: .35;
  cursor: default;
}

/* The row runs edge to edge; its first card lines up with the page
   content, and cards snap into place as it scrolls. */
.showcase {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(16px, calc((100vw - var(--content)) / 2));
  scrollbar-width: thin;
  scrollbar-color: #4A4D55 transparent;
}

.showcase:focus-visible {
  outline: 3px solid #60A5FA;
  outline-offset: -3px;
}

.showcase-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 4px max(16px, calc((100vw - var(--content)) / 2)) 20px;
  gap: 18px;
  list-style: none;
}

.showcase-track li {
  scroll-snap-align: start;
}

.showcase-card {
  display: grid;
  width: 220px;
  gap: 10px;
  color: #F3F4F6;
  text-decoration: none;
}

.showcase-card .cv-thumb {
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  transition: transform var(--motion-fast) var(--ease-out);
}

.showcase-card:hover .cv-thumb,
.showcase-card:focus-visible .cv-thumb {
  transform: translateY(-4px);
}

.showcase-card:focus-visible {
  outline: none;
}

.showcase-card:focus-visible .cv-thumb {
  outline: 3px solid #60A5FA;
  outline-offset: 3px;
}

.showcase-name {
  font-size: 17px;
  font-weight: 700;
}

.showcase-use {
  margin-top: -6px;
  color: #93C5FD;
  font-size: 15px;
}

/* ---- FAQ ---------------------------------------------------------------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  min-height: 60px;
  padding: 16px 4px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 18px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--muted);
  font-size: 24px;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0;
  padding: 0 4px 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ---- Closing call to action --------------------------------------------- */
.final-cta {
  background: var(--card-2);
}

.final-cta-inner {
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 12px;
}

.final-cta p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 18px;
}

/* ---- Footer ------------------------------------------------------------- */
.landing-footer {
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--canvas);
  border-top: 1px solid var(--line);
}

.landing-footer-inner {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.landing-footer .brand {
  font-size: 17px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--ink);
}

.landing-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---- Larger screens ----------------------------------------------------- */
@media (min-width: 760px) {
  .hero {
    padding: 88px 0;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 48px;
  }

  .hero-sheet {
    display: grid;
  }

  .how,
  .features,
  .templates-strip,
  .faq,
  .final-cta {
    padding: 88px 0;
  }

  .how h2,
  .features h2,
  .templates-strip h2,
  .faq h2 {
    margin-bottom: 48px;
  }

  .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .showcase-arrows {
    display: flex;
  }

  .showcase-card {
    width: 250px;
  }

  .landing-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 900px) {
  .landing-links {
    position: absolute;
    left: 50%;
    display: flex;
    gap: 4px;
    transform: translateX(-50%);
  }

  .landing-nav-inner {
    position: relative;
  }
}

/* ---- Phones ------------------------------------------------------------- */
@media (max-width: 759px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero-button {
    width: 100%;
  }

  /* The logo's wordmark gives way before the two buttons do. */
  .landing-nav .brand > span:last-child {
    display: none;
  }

  .landing-actions .btn {
    min-height: 44px;
    padding: 0 14px;
  }
}

/* ==========================================================================
   Premium finish -- light, depth, and motion only; layout is unchanged.
   ========================================================================== */
.landing-nav {
  background: color-mix(in srgb, var(--choco) 84%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
}

/* Nav links: an underline that grows from the centre. */
.landing-links a {
  position: relative;
  transition: color var(--motion-fast) var(--ease-out), background-color var(--motion-base) var(--ease-out);
}

.landing-links a::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--motion-base) var(--ease-out);
}

.landing-links a:hover {
  background: transparent;
}

.landing-links a:hover::after {
  transform: scaleX(1);
}

/* Hero: a soft blue wash and a CV page that floats gently. */
.hero {
  position: relative;
  background:
    radial-gradient(60% 70% at 85% 30%, var(--glow-soft), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, var(--glow-soft), transparent 70%),
    var(--card-2);
}

.hero-button {
  min-width: 220px;
}

.hero-sheet {
  transition: transform var(--motion-slow) var(--ease-out), box-shadow var(--motion-slow) var(--ease-out);
  animation: hero-float 6s ease-in-out infinite;
  box-shadow: 0 30px 60px -20px rgba(16, 24, 40, .28), 0 0 0 1px rgba(16, 24, 40, .04);
}

.hero-sheet:hover {
  animation-play-state: paused;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(0deg); }
}

/* How it works: the number circles fill with brand blue on hover. */
.step-list li {
  padding: 24px 16px;
  border-radius: var(--radius-lg);
  transition: background-color var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-out);
}

.step-list li:hover {
  background: var(--card);
  box-shadow: var(--lift-shadow);
  transform: translateY(-3px);
}

.step-list li > span {
  transition: color var(--motion-base) var(--ease-out), background-color var(--motion-base) var(--ease-out), border-color var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-spring);
}

.step-list li:hover > span {
  color: var(--on-brand);
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 6px 16px -6px var(--glow);
  transform: scale(1.08);
}

/* Features: a tinted icon that lights up with its row. */
.feature-list li {
  padding: 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  transition: border-color var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-out), background-color var(--motion-base) var(--ease-out);
}

.feature-list li:hover {
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--lift-shadow);
  transform: translateY(-3px);
}

.feature-icon {
  background: var(--brand-soft);
  border-color: transparent;
  transition: color var(--motion-base) var(--ease-out), background-color var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-spring);
}

.feature-list li:hover .feature-icon {
  color: var(--on-brand);
  background: var(--brand);
  transform: rotate(-6deg) scale(1.06);
}

/* Template showcase: a deeper band, cards that rise with a blue glow. */
.templates-strip {
  background:
    radial-gradient(50% 80% at 10% 0%, rgba(37, 99, 235, .22), transparent 70%),
    radial-gradient(40% 70% at 95% 100%, rgba(37, 99, 235, .16), transparent 70%),
    #16171B;
}

.showcase-arrows .icon-btn:hover:not(:disabled) {
  color: #fff;
  background: #2563EB;
  border-color: #2563EB;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .6);
}

.showcase-card .cv-thumb {
  transition: transform var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out);
}

.showcase-card:hover .cv-thumb,
.showcase-card:focus-visible .cv-thumb {
  transform: translateY(-8px);
  box-shadow: 0 24px 44px -12px rgba(0, 0, 0, .6), 0 0 0 2px #3B82F6, 0 0 32px -4px rgba(59, 130, 246, .45);
}

.showcase-use {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--motion-fast) var(--ease-out), gap var(--motion-base) var(--ease-out);
}

.showcase-use::after {
  content: "→";
  transition: transform var(--motion-base) var(--ease-spring);
}

.showcase-card:hover .showcase-use {
  color: #BFDBFE;
}

.showcase-card:hover .showcase-use::after {
  transform: translateX(4px);
}

/* FAQ: rows tint on hover and the + turns into a −. */
.faq summary {
  transition: color var(--motion-fast) var(--ease-out), padding var(--motion-base) var(--ease-out);
}

.faq summary:hover {
  color: var(--brand);
  padding-left: 10px;
}

.faq summary::after {
  transition: transform var(--motion-base) var(--ease-spring), color var(--motion-fast) var(--ease-out);
}

.faq summary:hover::after {
  color: var(--brand);
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

.faq details[open] p {
  animation: faq-open var(--motion-base) var(--ease-out);
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* Closing call to action: the same soft wash as the hero. */
.final-cta {
  background:
    radial-gradient(50% 90% at 50% 100%, var(--glow-soft), transparent 70%),
    var(--card-2);
}

.footer-links a {
  transition: color var(--motion-fast) var(--ease-out);
}

/* Room above the row so a lifted card is not clipped by the scroller. */
.showcase-track {
  padding-top: 16px;
}
