/* Jobily Landing Page */

:root {
  --white: #ffffff;
  --mint: #dcfbe3;
  --green: #41857a;
  --green-dark: #356b62;
  --green-light: #5a9d92;
  --text: #1a2e2b;
  --text-muted: #4a635f;
  --text-on-green: #ffffff;
  --border: rgba(65, 133, 122, 0.12);
  --shadow: 0 4px 24px rgba(65, 133, 122, 0.08);
  --shadow-lg: 0 12px 48px rgba(65, 133, 122, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1120px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--green-dark);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header--over-hero {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--green);
}

.logo-mark {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

.site-nav a:hover {
  color: var(--green);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(65, 133, 122, 0.35);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(65, 133, 122, 0.4);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

/* Hero — background image + copy + single CTA */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, 0) 55%,
    rgba(255, 255, 255, 0) 72%,
    rgba(220, 251, 227, 0) 100%
  );
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  background: var(--mint);
  pointer-events: none;
  z-index: 2;
  opacity: 0.35;
}

.hero-blob-1 {
  width: 420px;
  height: 420px;
  top: -100px;
  right: -80px;
}

.hero-blob-2 {
  width: 280px;
  height: 280px;
  bottom: -60px;
  left: -40px;
}

.hero-layout {
  position: relative;
  z-index: 3;
}

.hero-inner {
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--mint);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(3rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 600px;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.hero-cta-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, var(--white) 0%, rgba(220, 251, 227, 0.35) 100%);
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 0.75rem;
}

.section-label-light {
  color: rgba(255, 255, 255, 0.75);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--green);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

/* Green background sections */
.section-green {
  background: var(--green);
  color: var(--text-on-green);
  overflow: hidden;
}

.section-green h2,
.section-green h3 {
  color: var(--text-on-green);
}

.section-green .feature-intro,
.section-green p {
  color: rgba(255, 255, 255, 0.9);
}

.section-green a {
  color: var(--mint);
}

.section-green a:hover {
  color: var(--white);
}

.section-blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(220, 251, 227, 0.15);
  pointer-events: none;
}

.section-blob-1 {
  width: 400px;
  height: 400px;
  top: -150px;
  left: -100px;
}

.section-blob-2 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  right: -80px;
}

/* Feature grids — equal width copy and imagery */
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.feature-grid-reverse .feature-visual {
  order: -1;
}

.feature-intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--mint);
  border: 2px solid var(--green);
  border-radius: 50%;
}

.feature-list-light li {
  color: rgba(255, 255, 255, 0.88);
}

.feature-list-light li::before {
  background: rgba(255, 255, 255, 0.3);
  border-color: var(--mint);
}

.feature-list.compact {
  gap: 0.5rem;
  margin-top: 1rem;
}

.feature-list.compact li {
  font-size: 0.9375rem;
}

/* Feature imagery */
.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-img {
  width: 100%;
  max-width: 616px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.feature-img-on-green {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* Mock UI cards */

.mock-card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.section-green .mock-card {
  background: rgba(255, 255, 255, 0.98);
}

.mock-card-header {
  display: flex;
  gap: 6px;
  padding: 0.875rem 1rem;
  background: var(--mint);
  border-bottom: 1px solid var(--border);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.35;
}

.mock-form {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mock-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
}

.mock-field span {
  color: var(--text-muted);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-field strong {
  color: var(--text);
  font-weight: 600;
}

.mock-field.filled {
  background: rgba(220, 251, 227, 0.5);
  border-color: rgba(65, 133, 122, 0.25);
}

.mock-btn-mock {
  margin-top: 0.5rem;
  padding: 0.65rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
}

.mock-letter {
  padding: 1.5rem;
}

.mock-letter-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 1rem;
}

.mock-letter-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  line-height: 1.55;
}

.mock-letter-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--green-light);
}

.mock-ats {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.ats-score-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0deg 313deg, var(--mint) 313deg 360deg);
  position: relative;
}

.ats-score-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--white);
  border-radius: 50%;
}

.ats-score,
.ats-score-label {
  position: relative;
  z-index: 1;
}

.ats-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.ats-score-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ats-gaps {
  width: 100%;
  text-align: center;
}

.ats-gaps-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.ats-tag {
  display: inline-block;
  margin: 0.2rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
}

.ats-tag.missing {
  background: #fff0f0;
  color: #c44;
  border: 1px solid #fcc;
}

.ats-tag.found {
  background: var(--mint);
  color: var(--green);
  border: 1px solid rgba(65, 133, 122, 0.3);
}

/* Info cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.info-card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.info-card > p:not(.section-label) {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

/* Privacy section */
.privacy-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.privacy-list {
  columns: 1;
}

.privacy-list li {
  font-size: 1.0625rem;
}

/* Pricing */
.pricing-section {
  text-align: center;
}

.pricing-inner {
  max-width: 560px;
}

.pricing-inner h2 {
  margin-bottom: 2rem;
}

.pricing-card {
  padding: 2.5rem;
  background: var(--white);
  border: 2px solid var(--mint);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pricing-highlight {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.pricing-trial {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
  background: var(--mint);
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.pricing-highlight p {
  color: var(--text-muted);
  font-size: 1rem;
}

.pricing-paid {
  width: 100%;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pricing-currency {
  font-size: 1.5rem;
  vertical-align: super;
}

.pricing-period {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Changelog */
.whats-new-section {
  background: var(--mint);
  background: linear-gradient(135deg, rgba(220, 251, 227, 0.6) 0%, var(--white) 60%);
}

.changelog {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.changelog li {
  position: relative;
  padding: 1rem 1.25rem 1rem 2.75rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-muted);
  box-shadow: var(--shadow);
}

.changelog li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
}

/* Final CTA */
.cta-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 6rem 0;
  background: var(--white);
}

.cta-blob {
  position: absolute;
  width: 600px;
  height: 300px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--mint);
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.cta-inner h2 {
  margin-bottom: 0.75rem;
}

.cta-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--green);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.logo-footer .logo-mark {
  border-radius: 8px;
}

body.modal-open {
  overflow: hidden;
}

/* Exit-intent discount modal (first back navigation per session) */
.discount-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  max-width: 420px;
  width: calc(100% - 2rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(26, 46, 43, 0.28);
}

.discount-modal::backdrop {
  background: rgba(26, 46, 43, 0.55);
  backdrop-filter: blur(4px);
}

.discount-modal-inner {
  position: relative;
  padding: 2rem 2rem 1.75rem;
}

.discount-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}

.discount-modal-close:hover {
  background: var(--mint);
  color: var(--green);
}

.discount-modal-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 0.5rem;
}

.discount-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.discount-modal-copy {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.discount-code {
  display: block;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--green);
  background: var(--mint);
  border-radius: var(--radius);
  border: 1px dashed rgba(65, 133, 122, 0.45);
}

.discount-modal-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.discount-modal-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .discount-modal-actions {
    flex-direction: column;
  }

  .discount-modal-actions .btn {
    flex: 0 0 auto;
  }
}

.btn-secondary {
  background: var(--white);
  color: var(--green);
  border: 2px solid var(--green);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--mint);
  color: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
}

.discount-modal-dismiss {
  display: block;
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.discount-modal-dismiss:hover {
  color: var(--green);
}

/* Responsive */
@media (max-width: 900px) {
  .feature-grid,
  .feature-grid-reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-grid-reverse .feature-visual {
    order: 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.92) 65%,
      rgba(255, 255, 255, 0.75) 100%
    );
  }

  .hero-bg img {
    object-position: 80% 30%;
  }

  .btn-lg {
    width: 100%;
    text-align: center;
  }

  .hero-cta {
    width: 100%;
  }

  .pricing-card {
    padding: 1.75rem;
  }
}
