/*
 * Landing hero (resources/views/home/sections/header.blade.php).
 *
 * Written to share a design language with pricing.css: same font stack, same
 * radii (24px cards, 12px buttons, 999px pills), same border and shadow scale,
 * same eyebrow treatment, same CSS-drawn tick. The two sections bookend the
 * page, so they have to look like they were drawn by the same hand.
 *
 * Everything is namespaced under .masthead on purpose. home.css already owns
 * .hero-title, .hero-subtitle, .welcome-badge, .task-card and .bg-shape, and
 * the auth screens still use those — reusing the names here would restyle
 * login and register as a side effect.
 */

.masthead {
  position: relative;
  overflow: hidden;
  padding: 9.5rem 1.5rem 5rem;
  background: linear-gradient(135deg, #1b4f8a 0%, var(--primary, #205ea3) 45%, #2d588a 100%);
  font-family: 'Outfit', 'Roboto', sans-serif;
  isolation: isolate;
}

/* The same 40px grid the rest of the page uses, so the hero reads as part of
   the site rather than as a banner dropped on top of it. */
.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
}

/* Two soft glows instead of the old hard diagonal wedge: they give the panel
   some depth without cutting the section in half. */
.masthead::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px circle at 82% 18%, rgba(87, 167, 115, 0.22), transparent 62%),
    radial-gradient(720px circle at 8% 88%, rgba(133, 168, 207, 0.2), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.masthead-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 4rem;
  max-width: 1140px;
  margin: 0 auto;
}

/* ---------- Copy ---------- */

.masthead-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.masthead-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ee0a1;
  box-shadow: 0 0 0 4px rgba(126, 224, 161, 0.22);
}

.masthead-title {
  margin: 0 0 1.15rem;
  color: #ffffff;
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* The form name is the thing people scan for, so it gets the accent rather
   than being demoted to a second subtitle line like it used to be. */
.masthead-highlight {
  position: relative;
  display: inline-block;
  color: #9ff0bd;
  white-space: nowrap;
}

.masthead-lede {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* ---------- Benefit list ---------- */

.masthead-list {
  margin: 0 0 2.25rem;
  padding: 0;
  list-style: none;
}

.masthead-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Same construction as .pricing-mark, retuned for a dark background. Drawn in
   CSS so the hero does not depend on an icon font to render correctly. */
.masthead-mark {
  position: relative;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: rgba(126, 224, 161, 0.18);
}

.masthead-mark::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 7px;
  width: 5px;
  height: 10px;
  border: solid #9ff0bd;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Actions ---------- */

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.masthead-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease,
    box-shadow 0.25s ease;
}

.masthead-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.masthead-cta:hover,
.masthead-cta:focus {
  transform: translateY(-2px);
  text-decoration: none;
}

.masthead-cta:hover svg {
  transform: translateX(3px);
}

.masthead-cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Matches .pricing-cta--solid, so the button that starts a signup looks the
   same at the top of the page and inside the pricing card. */
.masthead-cta--solid {
  background: var(--second, #57a773);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(87, 167, 115, 0.32);
}

.masthead-cta--solid:hover,
.masthead-cta--solid:focus {
  background: var(--second-dark, #157145);
  color: #ffffff;
}

.masthead-cta--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.masthead-cta--ghost:hover,
.masthead-cta--ghost:focus {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* ---------- Trust row ---------- */

.masthead-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  max-width: 34rem;
  margin: 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
}

/* Not a flex container: the <strong> inside would become a flex item and the
   gap would open a hole in the middle of the sentence. */
.masthead-trust li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

/* A dot between items instead of wide gaps, so a line that wraps still reads
   as one row of claims rather than as three stray fragments. */
.masthead-trust li:not(:last-child)::after {
  content: '·';
  margin-left: 1.1rem;
  color: rgba(255, 255, 255, 0.45);
}

.masthead-trust strong {
  color: #ffffff;
  font-weight: 600;
}

/* ---------- Right-hand panel ---------- */

.masthead-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/*
 * Same silhouette as .pricing-card — 24px radius, 1px border, the same shadow
 * ramp on hover — with the border and surface inverted for the dark band.
 */
.masthead-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 32px rgba(10, 26, 48, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masthead-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(10, 26, 48, 0.24);
}

/* Nudged out of line so the stack reads as a live product surface rather than
   as three identical rows. */
.masthead-card:nth-child(2) {
  margin-left: 2rem;
}

.masthead-card-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eef4fb;
  color: var(--primary, #205ea3);
}

.masthead-card-icon svg {
  width: 22px;
  height: 22px;
}

.masthead-card-body {
  min-width: 0;
  flex: 1 1 auto;
}

.masthead-card-title {
  margin: 0;
  color: var(--dark, #121621);
  font-size: 1rem;
  font-weight: 600;
}

.masthead-card-sub {
  margin: 0.15rem 0 0;
  color: #6b7280;
  font-size: 0.85rem;
}

.masthead-chip {
  flex: 0 0 auto;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.masthead-chip--done {
  background: rgba(87, 167, 115, 0.16);
  color: var(--second-dark, #157145);
}

.masthead-chip--pending {
  background: rgba(243, 204, 32, 0.2);
  color: #8a6d05;
}

.masthead-chip--secure {
  background: #eef4fb;
  color: var(--primary, #205ea3);
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
  .masthead-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .masthead-card:nth-child(2) {
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .masthead {
    padding: 7.5rem 1rem 3.5rem;
  }

  .masthead-lede {
    font-size: 1rem;
  }

  .masthead-cta {
    flex: 1 1 100%;
    justify-content: center;
  }

  .masthead-card {
    padding: 1rem;
    border-radius: 20px;
  }
}
