/* ResumePass AI website
   Palette follows the app: calm blue brand, teal for "pass", red for AI-flagged lines. */

:root {
  --ink: #14224a;
  --ink-soft: #4a5575;
  --ink-faint: #7a839e;
  --blue: #2f5fed;
  --blue-deep: #1a3fae;
  --blue-wash: #e3e9fd;
  --bg: #eef1f8;
  --paper: #ffffff;
  --line: #d9deea;
  --flag: #d8413a;
  --flag-bg: #fde0dc;
  --pass: #0e9f9e;
  --pass-bg: #d4f3f1;

  --font-ui: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-doc: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1160px;
  --radius-panel: 18px;
  --radius-paper: 6px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--font-ui);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  left: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 241, 248, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

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

.nav .btn {
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--blue-deep);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 196px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.store-btn:hover {
  background: #0c1636;
  transform: translateY(-1px);
}

.store-btn svg {
  flex: none;
  width: 28px;
  height: 28px;
}

.store-btn small {
  display: block;
  font-size: 11.5px;
  opacity: 0.8;
  line-height: 1.2;
}

.store-btn strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.store-btn.is-soon {
  background: #3a4566;
  cursor: default;
}

.store-btn.is-soon:hover {
  transform: none;
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 88px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
  max-width: 15ch;
}

.hero-lead {
  margin-top: 22px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero .store-row {
  margin-top: 32px;
}

.hero-note {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--ink-faint);
}

/* The resume sheet: the one bold element on the page */

.scan-stage {
  position: relative;
  padding: 24px 24px 56px 0;
}

.sheet {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-paper);
  padding: 34px 34px 38px;
  box-shadow:
    0 1px 0 var(--line),
    0 24px 60px -24px rgba(20, 34, 74, 0.35);
  font-family: var(--font-doc);
  color: #262b3a;
  overflow: hidden;
  transform: rotate(-1.2deg);
}

.sheet-name {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.sheet-role {
  font-size: 14px;
  color: #5b6378;
  margin-top: 2px;
}

.sheet-h {
  margin-top: 18px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e5e8f0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.sheet p {
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 7px;
}

.sheet .job {
  font-weight: 600;
  font-size: 13.5px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sheet .job span {
  font-weight: 400;
  color: #6a7185;
}

.mark {
  border-radius: 3px;
  padding: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-color: transparent;
  transition: background-color 0.5s ease;
}

.scan-done .mark {
  background-color: var(--flag-bg);
  box-shadow: inset 0 -2px 0 rgba(216, 65, 58, 0.45);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(47, 95, 237, 0) 0%, rgba(47, 95, 237, 0.16) 80%, rgba(47, 95, 237, 0.65) 100%);
  transform: translateY(-90px);
  pointer-events: none;
}

.is-scanning .scan-line {
  animation: scan 1.8s cubic-bezier(0.45, 0, 0.3, 1) forwards;
}

@keyframes scan {
  0% {
    transform: translateY(-90px);
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(560px);
    opacity: 0;
  }
}

.result-card {
  position: absolute;
  background: var(--paper);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px -18px rgba(20, 34, 74, 0.45), 0 0 0 1px var(--line);
  font-family: var(--font-body);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.scan-done .result-card {
  opacity: 1;
  transform: none;
}

.result-card.ats {
  right: -8px;
  top: -6px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition-delay: 0.15s;
}

.result-card.ai {
  left: -26px;
  bottom: -14px;
  max-width: 240px;
  transition-delay: 0.35s;
}

.ring {
  --p: 0;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--pass) calc(var(--p) * 1%), var(--pass-bg) 0);
  flex: none;
}

.ring span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}

.result-card .t {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
}

.result-card .s {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-top: 2px;
}

.flag-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--flag);
  margin-right: 6px;
  vertical-align: 1px;
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 18px;
}

/* Tools: a reference list, not a card grid */

.tools {
  background: var(--paper);
}

.tool-list {
  border-top: 1px solid var(--line);
}

.tool {
  display: grid;
  grid-template-columns: 56px 1.1fr 1.4fr 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-wash);
  color: var(--blue);
}

.tool-icon svg {
  width: 24px;
  height: 24px;
}

.tool-icon.pass {
  background: var(--pass-bg);
  color: var(--pass);
}

.tool-icon.flag {
  background: var(--flag-bg);
  color: var(--flag);
}

.tool h3 {
  font-size: 22px;
  font-weight: 650;
  margin-top: 10px;
}

.tool p {
  color: var(--ink-soft);
}

.tool-out {
  font-size: 15px;
  color: var(--ink);
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.tool-out b {
  display: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-faint);
  margin-bottom: 2px;
}

.list-caption {
  display: grid;
  grid-template-columns: 56px 1.1fr 1.4fr 1fr;
  gap: 28px;
  padding-bottom: 12px;
  font-size: 14px;
  color: var(--ink-faint);
  font-weight: 500;
}

.extras {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.extras h3 {
  font-size: 18px;
  font-weight: 650;
}

.extras p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* Steps: a real sequence, so numbers are earned here */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 26px 30px;
  background: var(--paper);
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 20px;
  font-weight: 650;
}

.step p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* Pricing */

.pricing {
  background: var(--ink);
  color: #fff;
}

.pricing .section-head p {
  color: #b7c0dc;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.price-block {
  padding: 32px;
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.price-block h3 {
  font-size: 24px;
  font-weight: 650;
}

.price-block p {
  margin-top: 10px;
  color: #c9d0e6;
}

.price-block ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.price-block li {
  position: relative;
  padding-left: 28px;
  margin-top: 10px;
  color: #e4e8f5;
}

.price-block li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 12px;
  height: 7px;
  border-left: 2px solid #5fd8d6;
  border-bottom: 2px solid #5fd8d6;
  transform: rotate(-45deg);
}

.price-block.featured {
  background: var(--blue);
  border-color: var(--blue);
}

.price-block.featured p,
.price-block.featured li {
  color: #eef2ff;
}

.price-block.featured li::before {
  border-color: #fff;
}

/* Privacy */

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.privacy-points {
  display: grid;
  gap: 28px;
}

.privacy-points h3 {
  font-size: 19px;
  font-weight: 650;
}

.privacy-points p {
  margin-top: 6px;
  color: var(--ink-soft);
}

/* FAQ */

.faq {
  background: var(--paper);
}

.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 19px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq details p {
  padding: 0 44px 24px 0;
  color: var(--ink-soft);
}

/* Final call to action */

.cta {
  padding: 96px 0;
}

.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 56px;
  border-radius: 28px;
  background: var(--blue);
  color: #fff;
}

.cta-box h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  max-width: 18ch;
}

.cta-box p {
  margin-top: 12px;
  color: #dfe6ff;
  max-width: 34em;
}

.cta-box .store-btn {
  background: #fff;
  color: var(--ink);
}

.cta-box .store-btn:hover {
  background: #eef1ff;
}

.cta-box .store-btn.is-soon {
  background: rgba(255, 255, 255, 0.75);
}

.cta-box .store-row {
  flex-direction: column;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-top p {
  margin-top: 12px;
  max-width: 30em;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-links h4 {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink);
}

.footer-links a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  margin-top: 8px;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-faint);
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 56px 0 96px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
}

.legal-nav a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.legal-nav a:hover {
  background: var(--paper);
  color: var(--ink);
}

.legal-nav a[aria-current="page"] {
  background: var(--paper);
  color: var(--blue);
  box-shadow: 0 0 0 1px var(--line);
}

.legal-doc {
  background: var(--paper);
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  padding: 52px 56px 60px;
  max-width: 800px;
}

.legal-doc h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
}

.legal-doc .updated {
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 15px;
}

.legal-doc h2 {
  font-size: 22px;
  font-weight: 650;
  margin-top: 40px;
}

.legal-doc p,
.legal-doc li {
  color: #333b52;
  line-height: 1.7;
}

.legal-doc p {
  margin-top: 12px;
}

.legal-doc ul,
.legal-doc ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-doc li {
  margin-top: 6px;
}

.legal-doc .callout {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--blue-wash);
  color: var(--ink);
}

.legal-doc .callout.warn {
  background: var(--flag-bg);
}

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

@media (max-width: 980px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .scan-stage {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
    padding-right: 12px;
  }

  .result-card.ai {
    left: -6px;
  }

  .result-card.ats {
    right: 0;
  }

  .list-caption {
    display: none;
  }

  .tool-out b {
    display: block;
  }

  .tool {
    grid-template-columns: 56px 1fr;
    gap: 16px 20px;
  }

  .tool > p,
  .tool > .tool-out {
    grid-column: 2;
  }

  .tool h3 {
    margin-top: 10px;
  }

  .extras,
  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .price-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-box {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }

  .cta-box .store-row {
    flex-direction: row;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .legal-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav .btn {
    margin-top: 14px;
    justify-content: center;
    border-bottom: 0;
  }

  .hero {
    padding: 36px 0 64px;
  }

  .section,
  .cta {
    padding: 72px 0;
  }

  .sheet {
    padding: 26px 22px 30px;
  }

  .sheet-name {
    font-size: 22px;
  }

  .result-card.ai {
    top: auto;
    bottom: -18px;
    left: 0;
  }

  .result-card.ats {
    bottom: auto;
    top: 0;
    right: 0;
  }

  .scan-stage {
    padding: 84px 0 40px;
  }

  .store-btn {
    flex: 1 1 190px;
  }

  .legal-doc {
    padding: 32px 22px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
